tosspayments/data/
transaction.rs

1use serde::{Deserialize, Serialize};
2
3use crate::data::{PaymentMethod, PaymentStatus};
4
5#[derive(Clone, Debug, Serialize, Deserialize)]
6#[serde(rename_all = "camelCase")]
7pub struct Transaction {
8  pub m_id: String,
9  pub transaction_key: String,
10  pub payment_key: String,
11  pub order_id: String,
12  pub method: PaymentMethod,
13  pub customer_key: Option<String>,
14  pub use_escrow: bool,
15  pub receipt_url: String,
16  pub status: PaymentStatus,
17  pub transaction_at: String,
18  pub currency: String,
19  pub amount: i32,
20}