Class: Google::Apis::ContentV2sandbox::InvoiceSummary
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2sandbox::InvoiceSummary
- Defined in:
- generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/representations.rb
Instance Attribute Summary collapse
-
#additional_charge_summaries ⇒ Array<Google::Apis::ContentV2sandbox::InvoiceSummaryAdditionalChargeSummary>
Summary of the total amounts of the additional charges.
-
#customer_balance ⇒ Google::Apis::ContentV2sandbox::Amount
Customer balance on this invoice.
-
#google_balance ⇒ Google::Apis::ContentV2sandbox::Amount
Google balance on this invoice.
-
#merchant_balance ⇒ Google::Apis::ContentV2sandbox::Amount
Merchant balance on this invoice.
-
#product_total ⇒ Google::Apis::ContentV2sandbox::Amount
Total price for the product.
-
#promotion_summaries ⇒ Array<Google::Apis::ContentV2sandbox::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
154 155 156 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 154 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_charge_summaries ⇒ Array<Google::Apis::ContentV2sandbox::InvoiceSummaryAdditionalChargeSummary>
Summary of the total amounts of the additional charges.
Corresponds to the JSON property additionalChargeSummaries
119 120 121 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 119 def additional_charge_summaries @additional_charge_summaries end |
#customer_balance ⇒ Google::Apis::ContentV2sandbox::Amount
Customer balance on this invoice. A positive amount means the customer is
paying, a negative one means the customer is receiving money. Note that it
must always be true that merchant_balance + customer_balance + google_balance =
0.
Corresponds to the JSON property customerBalance
127 128 129 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 127 def customer_balance @customer_balance end |
#google_balance ⇒ Google::Apis::ContentV2sandbox::Amount
Google balance on this invoice. A positive amount means Google is paying, a
negative one means Google is receiving money. Note that it must always be true
that merchant_balance + customer_balance + google_balance = 0.
Corresponds to the JSON property googleBalance
134 135 136 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 134 def google_balance @google_balance end |
#merchant_balance ⇒ Google::Apis::ContentV2sandbox::Amount
Merchant balance on this invoice. A positive amount means the merchant is
paying, a negative one means the merchant is receiving money. Note that it
must always be true that merchant_balance + customer_balance + google_balance =
0.
Corresponds to the JSON property merchantBalance
142 143 144 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 142 def merchant_balance @merchant_balance end |
#product_total ⇒ Google::Apis::ContentV2sandbox::Amount
Total price for the product.
Corresponds to the JSON property productTotal
147 148 149 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 147 def product_total @product_total end |
#promotion_summaries ⇒ Array<Google::Apis::ContentV2sandbox::Promotion>
Summary for each promotion.
Corresponds to the JSON property promotionSummaries
152 153 154 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 152 def promotion_summaries @promotion_summaries end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
159 160 161 162 163 164 165 166 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 159 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 |