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
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 PaymentDetail
impl Send for PaymentDetail
impl Sync for PaymentDetail
impl Unpin for PaymentDetail
impl UnwindSafe for PaymentDetail