Struct paypal_rs::data::invoice::PaymentDetail
source · 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§
source§impl Clone for PaymentDetail
impl Clone for PaymentDetail
source§fn clone(&self) -> PaymentDetail
fn clone(&self) -> PaymentDetail
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PaymentDetail
impl Debug for PaymentDetail
source§impl<'de> Deserialize<'de> for PaymentDetail
impl<'de> Deserialize<'de> for PaymentDetail
source§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