pub struct CheckoutSession {Show 15 fields
pub checkout_session_id: String,
pub payment_method_category: Option<PaymentMethodCategory>,
pub source_currency: String,
pub destination_currency: String,
pub source_amount: PositiveDecimal,
pub destination_amount: PositiveDecimal,
pub authorized_amount: Option<PositiveDecimal>,
pub status: String,
pub external_id: Option<ExternalID>,
pub customer_id: CustomerID,
pub return_url: ReturnURL,
pub line_items: LineItems,
pub session_type: String,
pub expiry: Option<DateTime>,
pub created: DateTime,
}Expand description
Checkout session
Fields§
§checkout_session_id: StringCheckout session ID
payment_method_category: Option<PaymentMethodCategory>Payment method category (optional)
source_currency: StringSource currency
destination_currency: StringDestination currency
source_amount: PositiveDecimalSource amount
destination_amount: PositiveDecimalDestination amount
Authorized amount
status: StringStatus
external_id: Option<ExternalID>External ID (optional)
customer_id: CustomerIDCustomer ID
return_url: ReturnURLReturn URL
line_items: LineItemsLine items
session_type: StringType
expiry: Option<DateTime>Expiry (optional)
created: DateTimeCreated timestamp
Trait Implementations§
Source§impl Clone for CheckoutSession
impl Clone for CheckoutSession
Source§fn clone(&self) -> CheckoutSession
fn clone(&self) -> CheckoutSession
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckoutSession
impl Debug for CheckoutSession
Source§impl<'de> Deserialize<'de> for CheckoutSession
impl<'de> Deserialize<'de> for CheckoutSession
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
Auto Trait Implementations§
impl Freeze for CheckoutSession
impl RefUnwindSafe for CheckoutSession
impl Send for CheckoutSession
impl Sync for CheckoutSession
impl Unpin for CheckoutSession
impl UnwindSafe for CheckoutSession
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