[][src]Struct google_content2_sandbox::InvoiceSummary

pub struct InvoiceSummary {
    pub product_total: Option<Amount>,
    pub google_balance: Option<Amount>,
    pub merchant_balance: Option<Amount>,
    pub promotion_summaries: Option<Vec<Promotion>>,
    pub customer_balance: Option<Amount>,
    pub additional_charge_summaries: Option<Vec<InvoiceSummaryAdditionalChargeSummary>>,
}

There is no detailed description.

This type is not used in any activity, and only used as part of another schema.

Fields

product_total: Option<Amount>

[required] Total price for the product.

google_balance: Option<Amount>

[required] Google balance on this invoice. A negative amount means Google is paying, a positive one means Google is receiving money. Note: the sum of merchant_balance, customer_balance and google_balance must always be zero.

merchant_balance: Option<Amount>

[required] Merchant balance on this invoice. A negative amount means the merchant is paying, a positive one means the merchant is receiving money. Note: the sum of merchant_balance, customer_balance and google_balance must always be zero.

promotion_summaries: Option<Vec<Promotion>>

Summary for each promotion.

customer_balance: Option<Amount>

[required] Customer balance on this invoice. A negative amount means the customer is paying, a positive one means the customer is receiving money. Note: the sum of merchant_balance, customer_balance and google_balance must always be zero.

Furthermore the absolute value of this amount is expected to be equal to the sum of product amount and additional charges, minus promotions.

additional_charge_summaries: Option<Vec<InvoiceSummaryAdditionalChargeSummary>>

Summary of the total amounts of the additional charges.

Trait Implementations

impl Clone for InvoiceSummary[src]

impl Debug for InvoiceSummary[src]

impl Default for InvoiceSummary[src]

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

impl Part for InvoiceSummary[src]

impl Serialize for InvoiceSummary[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> Typeable for T where
    T: Any