pub struct PaymentSummaryApiSchema {
pub order_id: String,
pub amount: i64,
pub id: String,
pub processor: Option<String>,
pub status: String,
pub metadata: Option<Value>,
pub date: String,
pub currency_code: String,
}
Fields§
§order_id: String
Your reference for the payment.
amount: i64
The payment amount, in minor units. e.g. $7 would show as 700
.
id: String
The unique payment ID.
You can use this ID to retrieve the payment details, or perform downstream operations.
processor: Option<String>
The payment processor used for this payment.
status: String
See the payment status table for more information.
metadata: Option<Value>
Additional data to be used throughout the payment lifecycle.
A dictionary of key-value pairs where the values can only be strings or integers.
e.g. {"productId": 1001, "merchantId": "a13bsd62s"}
date: String
The date and time at which the payment was created in UTC format.
currency_code: String
The 3-letter currency code in ISO 4217 format.
e.g. use USD
for US dollars.
Trait Implementations§
Source§impl Debug for PaymentSummaryApiSchema
impl Debug for PaymentSummaryApiSchema
Source§impl<'de> Deserialize<'de> for PaymentSummaryApiSchema
impl<'de> Deserialize<'de> for PaymentSummaryApiSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PaymentSummaryApiSchema
impl Display for PaymentSummaryApiSchema
Auto Trait Implementations§
impl Freeze for PaymentSummaryApiSchema
impl RefUnwindSafe for PaymentSummaryApiSchema
impl Send for PaymentSummaryApiSchema
impl Sync for PaymentSummaryApiSchema
impl Unpin for PaymentSummaryApiSchema
impl UnwindSafe for PaymentSummaryApiSchema
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more