[][src]Struct paypal_rs::invoice::Configuration

pub struct Configuration {
    pub tax_calculated_after_discount: Option<bool>,
    pub tax_inclusive: Option<bool>,
    pub allow_tip: Option<bool>,
    pub partial_payment: Option<PartialPayment>,
    pub template_id: Option<String>,
}

The invoice configuration details. Includes partial payment, tip, and tax calculated after discount.

Fields

tax_calculated_after_discount: Option<bool>

Indicates whether the tax is calculated before or after a discount. If false, the tax is calculated before a discount. If true, the tax is calculated after a discount.

tax_inclusive: Option<bool>

Indicates whether the unit price includes tax.

allow_tip: Option<bool>

Indicates whether the invoice enables the customer to enter a tip amount during payment. If true, the invoice shows a tip amount field so that the customer can enter a tip amount. If false, the invoice does not show a tip amount field.

partial_payment: Option<PartialPayment>

The partial payment details. Includes the minimum amount that the invoicer wants the payer to pay.

template_id: Option<String>

The template ID. The template determines the layout of the invoice. Includes which fields to show and hide. Default: PayPal system template.

Trait Implementations

impl Debug for Configuration[src]

impl<'de> Deserialize<'de> for Configuration[src]

impl Serialize for Configuration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.