Struct paypal_rs::invoice::RefundDetail [−][src]
pub struct RefundDetail { pub type: Option<PaymentType>, pub refund_id: Option<String>, pub refund_date: Option<DateTime<Utc>>, pub amount: Option<Money>, pub method: PaymentMethod, }
Expand description
Refund details
Fields
type: Option<PaymentType>
The PayPal refund type. Indicates whether the refund was paid through PayPal or externally in the invoicing flow.
refund_id: Option<String>
The ID for a PayPal payment transaction. Required for the PAYPAL payment type.
refund_date: Option<DateTime<Utc>>
The date when the invoice was refunded, in Internet date format.
amount: Option<Money>
The amount to record as refunded. If you omit the amount, the total invoice paid amount is recorded as refunded.
method: PaymentMethod
The payment mode or method through which the invoicer can accept the payments.
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 RefundDetail
impl Send for RefundDetail
impl Sync for RefundDetail
impl Unpin for RefundDetail
impl UnwindSafe for RefundDetail