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
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 Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration