Struct paypal_rs::orders::OrderPayload [−][src]
pub struct OrderPayload { pub intent: Intent, pub payer: Option<Payer>, pub purchase_units: Vec<PurchaseUnit>, pub application_context: Option<ApplicationContext>, }
Expand description
A order payload to be used when creating an order.
Fields
intent: Intent
The intent to either capture payment immediately or authorize a payment for an order after order creation.
payer: Option<Payer>
The customer who approves and pays for the order. The customer is also known as the payer.
purchase_units: Vec<PurchaseUnit>
An array of purchase units. Each purchase unit establishes a contract between a payer and the payee. Each purchase unit represents either a full or partial order that the payer intends to purchase from the payee.
application_context: Option<ApplicationContext>
Customize the payer experience during the approval process for the payment with PayPal.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
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 RefUnwindSafe for OrderPayload
impl Send for OrderPayload
impl Sync for OrderPayload
impl Unpin for OrderPayload
impl UnwindSafe for OrderPayload