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

Creates a new order payload with the required properties.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.