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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InvoiceSummary

Returns a new instance of InvoiceSummary.



3364
3365
3366
# File 'lib/google/apis/content_v2/classes.rb', line 3364

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



3337
3338
3339
# File 'lib/google/apis/content_v2/classes.rb', line 3337

def additional_charge_summaries
  @additional_charge_summaries
end

#customer_balanceGoogle::Apis::ContentV2::Amount

Deprecated. Corresponds to the JSON property customerBalance



3342
3343
3344
# File 'lib/google/apis/content_v2/classes.rb', line 3342

def customer_balance
  @customer_balance
end

#google_balanceGoogle::Apis::ContentV2::Amount

Deprecated. Corresponds to the JSON property googleBalance



3347
3348
3349
# File 'lib/google/apis/content_v2/classes.rb', line 3347

def google_balance
  @google_balance
end

#merchant_balanceGoogle::Apis::ContentV2::Amount

Deprecated. Corresponds to the JSON property merchantBalance



3352
3353
3354
# File 'lib/google/apis/content_v2/classes.rb', line 3352

def merchant_balance
  @merchant_balance
end

#product_totalGoogle::Apis::ContentV2::Amount

[required] Total price for the product. Corresponds to the JSON property productTotal



3357
3358
3359
# File 'lib/google/apis/content_v2/classes.rb', line 3357

def product_total
  @product_total
end

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

Deprecated. Corresponds to the JSON property promotionSummaries



3362
3363
3364
# File 'lib/google/apis/content_v2/classes.rb', line 3362

def promotion_summaries
  @promotion_summaries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3369
3370
3371
3372
3373
3374
3375
3376
# File 'lib/google/apis/content_v2/classes.rb', line 3369

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