Class: Google::Apis::ContentV2_1::InvoiceSummary
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::InvoiceSummary
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#additional_charge_summaries ⇒ Array<Google::Apis::ContentV2_1::InvoiceSummaryAdditionalChargeSummary>
Summary of the total amounts of the additional charges.
-
#customer_balance ⇒ Google::Apis::ContentV2_1::Amount
[required] Customer balance on this invoice.
-
#google_balance ⇒ Google::Apis::ContentV2_1::Amount
[required] Google balance on this invoice.
-
#merchant_balance ⇒ Google::Apis::ContentV2_1::Amount
[required] Merchant balance on this invoice.
-
#product_total ⇒ Google::Apis::ContentV2_1::Amount
[required] Total price for the product.
-
#promotion_summaries ⇒ Array<Google::Apis::ContentV2_1::Promotion>
Summary for each promotion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InvoiceSummary
constructor
A new instance of InvoiceSummary.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ InvoiceSummary
Returns a new instance of InvoiceSummary
2640 2641 2642 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2640 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_charge_summaries ⇒ Array<Google::Apis::ContentV2_1::InvoiceSummaryAdditionalChargeSummary>
Summary of the total amounts of the additional charges.
Corresponds to the JSON property additionalChargeSummaries
2603 2604 2605 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2603 def additional_charge_summaries @additional_charge_summaries end |
#customer_balance ⇒ Google::Apis::ContentV2_1::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.
Corresponds to the JSON property customerBalance
2613 2614 2615 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2613 def customer_balance @customer_balance end |
#google_balance ⇒ Google::Apis::ContentV2_1::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.
Corresponds to the JSON property googleBalance
2620 2621 2622 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2620 def google_balance @google_balance end |
#merchant_balance ⇒ Google::Apis::ContentV2_1::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.
Corresponds to the JSON property merchantBalance
2628 2629 2630 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2628 def merchant_balance @merchant_balance end |
#product_total ⇒ Google::Apis::ContentV2_1::Amount
[required] Total price for the product.
Corresponds to the JSON property productTotal
2633 2634 2635 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2633 def product_total @product_total end |
#promotion_summaries ⇒ Array<Google::Apis::ContentV2_1::Promotion>
Summary for each promotion.
Corresponds to the JSON property promotionSummaries
2638 2639 2640 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2638 def promotion_summaries @promotion_summaries end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2645 2646 2647 2648 2649 2650 2651 2652 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2645 def update!(**args) @additional_charge_summaries = args[:additional_charge_summaries] if args.key?(:additional_charge_summaries) @customer_balance = args[:customer_balance] if args.key?(:customer_balance) @google_balance = args[:google_balance] if args.key?(:google_balance) @merchant_balance = args[:merchant_balance] if args.key?(:merchant_balance) @product_total = args[:product_total] if args.key?(:product_total) @promotion_summaries = args[:promotion_summaries] if args.key?(:promotion_summaries) end |