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

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>,
}
Expand description

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

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.