[][src]Struct paypal_rs::invoice::Breakdown

pub struct Breakdown {
    pub item_total: Option<Money>,
    pub discount: Option<AggregatedDiscount>,
    pub tax_total: Option<Money>,
    pub shipping: Option<ShippingCost>,
    pub custom: Option<CustomAmount>,
}

The breakdown of the amount. Breakdown provides details such as total item amount, total tax amount, custom amount, shipping and discounts, if any.

Fields

item_total: Option<Money>

The subtotal for all items. Must equal the sum of (items[].unit_amount * items[].quantity) for all items.

discount: Option<AggregatedDiscount>

The discount can be at the item or invoice level, or both. Can be applied as a percent or amount. If you provide both amount and percent, amount takes precedent.

tax_total: Option<Money>

The aggregated amount of the item and shipping taxes.

shipping: Option<ShippingCost>

The shipping fee for all items. Includes tax on shipping.

custom: Option<CustomAmount>

The custom amount to apply to an invoice. If you include a label, you must include the custom amount.

Trait Implementations

impl Debug for Breakdown[src]

impl Default for Breakdown[src]

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

impl Serialize for Breakdown[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.