Class: Twilio::REST::Marketplace::V1::InstalledAddOnContext::InstalledAddOnUsageList::MarketplaceV1InstalledAddOnInstalledAddOnUsage

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ MarketplaceV1InstalledAddOnInstalledAddOnUsage

Returns a new instance of MarketplaceV1InstalledAddOnInstalledAddOnUsage.



28
29
30
31
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 28

def initialize(payload)
        @total_submitted = payload["total_submitted"]
        @billable_items = payload["billable_items"]
end

Instance Attribute Details

#billable_itemsObject

Parameters:

  • : (total_submitted)
    Float

    Total amount in local currency that was billed in this request. Aggregates all billable_items that were successfully submitted.

  • : (billable_items)
    Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>


27
28
29
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 27

def billable_items
  @billable_items
end

#total_submittedObject

Parameters:

  • : (total_submitted)
    Float

    Total amount in local currency that was billed in this request. Aggregates all billable_items that were successfully submitted.

  • : (billable_items)
    Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>


27
28
29
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 27

def 
  @total_submitted
end

Instance Method Details

#to_json(options = {}) ⇒ Object



32
33
34
35
36
37
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 32

def to_json(options = {})
{
        "total_submitted": @total_submitted,
        "billable_items": @billable_items,
}.to_json(options)
end