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: StringYour reference for the payment.
amount: i64The payment amount, in minor units. e.g. $7 would show as 700.
id: StringThe 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: StringSee 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: StringThe date and time at which the payment was created in UTC format.
currency_code: StringThe 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