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

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.