Struct paypal_rs::invoice::PaymentDetail[][src]

pub struct PaymentDetail {
    pub type: Option<PaymentType>,
    pub payment_id: Option<String>,
    pub payment_date: Option<DateTime<Utc>>,
    pub method: PaymentMethod,
    pub note: Option<String>,
    pub amount: Option<Money>,
    pub shipping_info: Option<ContactInformation>,
}
Expand description

Payment detail

Fields

type: Option<PaymentType>

The payment type in an invoicing flow which can be PayPal or an external cash or check payment.

payment_id: Option<String>

The ID for a PayPal payment transaction. Required for the PAYPAL payment type.

payment_date: Option<DateTime<Utc>>

The date when the invoice was paid, in Internet date and time format.

method: PaymentMethod

The payment mode or method through which the invoicer can accept the payment.

note: Option<String>

A note associated with an external cash or check payment.

amount: Option<Money>

The payment amount to record against the invoice. If you omit this parameter, the total invoice amount is marked as paid. This amount cannot exceed the amount due.

shipping_info: Option<ContactInformation>

The recipient’s shipping information. Includes the user’s contact information, which includes name and address.

Trait Implementations

Formats the value using the given formatter. 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.