Struct paypal_rs::orders::Payer[][src]

pub struct Payer {
    pub name: Option<PayerName>,
    pub email_address: Option<String>,
    pub payer_id: Option<String>,
    pub phone: Option<Phone>,
    pub birth_date: Option<String>,
    pub tax_info: Option<TaxInfo>,
    pub address: Option<Address>,
}
Expand description

The customer who approves and pays for the order. The customer is also known as the payer.

https://developer.paypal.com/docs/api/orders/v2/#definition-payer

Fields

name: Option<PayerName>

The name of the payer.

email_address: Option<String>

The email address of the payer.

payer_id: Option<String>

The PayPal-assigned ID for the payer.

phone: Option<Phone>

The phone number of the customer. Available only when you enable the Contact Telephone Number option in the Profile & Settings for the merchant’s PayPal account.

birth_date: Option<String>

The birth date of the payer in YYYY-MM-DD format.

tax_info: Option<TaxInfo>

The tax information of the payer. Required only for Brazilian payer’s.

address: Option<Address>

The address of the payer.

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.