pub struct ClientSessionApiResponse {
pub customer: Option<CustomerDetailsApiSchema>,
pub customer_id: Option<String>,
pub order: Option<OrderDetailsApiSchema>,
pub order_id: Option<String>,
pub metadata: Option<Value>,
pub amount: Option<Value>,
pub payment_method: Option<CheckoutPaymentMethodOptionsApiSchema>,
pub currency_code: Option<String>,
}
Fields§
§customer: Option<CustomerDetailsApiSchema>
More information associated with the customer.
customer_id: Option<String>
A unique identifier for your customer.
order: Option<OrderDetailsApiSchema>
More information associated with the order.
order_id: Option<String>
Your reference for the payment.
metadata: Option<Value>
Additional data to be used throughout the payment lifecycle.
amount: Option<Value>
The amount you are going to charge the customer, in minor units. This amount is calculated from the line items, shipping and other amounts provided in the order
.
If a top-level amount is provided, it would override any calculated amount.
payment_method: Option<CheckoutPaymentMethodOptionsApiSchema>
Enable certain options associated with the payment methods.
currency_code: Option<String>
The 3-letter currency code in ISO 4217 format.
e.g. use USD
for US dollars.
Trait Implementations§
Source§impl Debug for ClientSessionApiResponse
impl Debug for ClientSessionApiResponse
Source§impl<'de> Deserialize<'de> for ClientSessionApiResponse
impl<'de> Deserialize<'de> for ClientSessionApiResponse
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 ClientSessionApiResponse
impl Display for ClientSessionApiResponse
Auto Trait Implementations§
impl Freeze for ClientSessionApiResponse
impl RefUnwindSafe for ClientSessionApiResponse
impl Send for ClientSessionApiResponse
impl Sync for ClientSessionApiResponse
impl Unpin for ClientSessionApiResponse
impl UnwindSafe for ClientSessionApiResponse
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