Struct primer_api::model::ClientSessionApiResponse  
source · [−]pub struct ClientSessionApiResponse {
    pub customer_id: Option<String>,
    pub order: Option<OrderDetailsApiSchema>,
    pub currency_code: Option<String>,
    pub amount: Option<Value>,
    pub order_id: Option<String>,
    pub metadata: Option<Value>,
    pub customer: Option<CustomerDetailsApiSchema>,
    pub payment_method: Option<CheckoutPaymentMethodOptionsApiSchema>,
}Fields
customer_id: Option<String>A unique identifier for your customer.
order: Option<OrderDetailsApiSchema>More information associated with the order.
currency_code: Option<String>The 3-letter currency code in ISO 4217 format.
e.g. use USD for US dollars.
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.
order_id: Option<String>Your reference for the payment.
metadata: Option<Value>Additional data to be used throughout the payment lifecycle.
customer: Option<CustomerDetailsApiSchema>More information associated with the customer.
payment_method: Option<CheckoutPaymentMethodOptionsApiSchema>Enable certain options associated with the payment methods.
Trait Implementations
sourceimpl Debug for ClientSessionApiResponse
 
impl Debug for ClientSessionApiResponse
sourceimpl<'de> Deserialize<'de> for ClientSessionApiResponse
 
impl<'de> Deserialize<'de> for ClientSessionApiResponse
sourcefn 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
sourceimpl Display for ClientSessionApiResponse
 
impl Display for ClientSessionApiResponse
sourceimpl Serialize for ClientSessionApiResponse
 
impl Serialize for ClientSessionApiResponse
Auto Trait Implementations
impl RefUnwindSafe for ClientSessionApiResponse
impl Send for ClientSessionApiResponse
impl Sync for ClientSessionApiResponse
impl Unpin for ClientSessionApiResponse
impl UnwindSafe for ClientSessionApiResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more