Struct google_content2::InvoiceSummary [−][src]
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 Default for InvoiceSummary
[src]
impl Default for InvoiceSummary
fn default() -> InvoiceSummary
[src]
fn default() -> InvoiceSummary
Returns the "default value" for a type. Read more
impl Clone for InvoiceSummary
[src]
impl Clone for InvoiceSummary
fn clone(&self) -> InvoiceSummary
[src]
fn clone(&self) -> InvoiceSummary
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for InvoiceSummary
[src]
impl Debug for InvoiceSummary
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for InvoiceSummary
[src]
impl Part for InvoiceSummary
Auto Trait Implementations
impl Send for InvoiceSummary
impl Send for InvoiceSummary
impl Sync for InvoiceSummary
impl Sync for InvoiceSummary