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

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>,
}

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

impl Debug for Payer[src]

impl Default for Payer[src]

Auto Trait Implementations

impl RefUnwindSafe for Payer

impl Send for Payer

impl Sync for Payer

impl Unpin for Payer

impl UnwindSafe for Payer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.