Class: Google::Apis::ContentV2::InvoiceSummary

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InvoiceSummary

Returns a new instance of InvoiceSummary



2645
2646
2647
# File 'generated/google/apis/content_v2/classes.rb', line 2645

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#additional_charge_summariesArray<Google::Apis::ContentV2::InvoiceSummaryAdditionalChargeSummary>

Summary of the total amounts of the additional charges. Corresponds to the JSON property additionalChargeSummaries



2610
2611
2612
# File 'generated/google/apis/content_v2/classes.rb', line 2610

def additional_charge_summaries
  @additional_charge_summaries
end

#customer_balanceGoogle::Apis::ContentV2::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



2618
2619
2620
# File 'generated/google/apis/content_v2/classes.rb', line 2618

def customer_balance
  @customer_balance
end

#google_balanceGoogle::Apis::ContentV2::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



2625
2626
2627
# File 'generated/google/apis/content_v2/classes.rb', line 2625

def google_balance
  @google_balance
end

#merchant_balanceGoogle::Apis::ContentV2::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



2633
2634
2635
# File 'generated/google/apis/content_v2/classes.rb', line 2633

def merchant_balance
  @merchant_balance
end

#product_totalGoogle::Apis::ContentV2::Amount

Total price for the product. Corresponds to the JSON property productTotal



2638
2639
2640
# File 'generated/google/apis/content_v2/classes.rb', line 2638

def product_total
  @product_total
end

#promotion_summariesArray<Google::Apis::ContentV2::Promotion>

Summary for each promotion. Corresponds to the JSON property promotionSummaries



2643
2644
2645
# File 'generated/google/apis/content_v2/classes.rb', line 2643

def promotion_summaries
  @promotion_summaries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2650
2651
2652
2653
2654
2655
2656
2657
# File 'generated/google/apis/content_v2/classes.rb', line 2650

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