Class: ChargeBee::UsageCharge

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/usage_charge.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #respond_to_missing?, #to_s, uri_path

Constructor Details

This class inherits a constructor from ChargeBee::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeBee::Model

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



4
5
6
# File 'lib/chargebee/models/usage_charge.rb', line 4

def amount
  @amount
end

#currency_codeObject

Returns the value of attribute currency_code.



4
5
6
# File 'lib/chargebee/models/usage_charge.rb', line 4

def currency_code
  @currency_code
end

#feature_idObject

Returns the value of attribute feature_id.



4
5
6
# File 'lib/chargebee/models/usage_charge.rb', line 4

def feature_id
  @feature_id
end

#included_usageObject

Returns the value of attribute included_usage.



4
5
6
# File 'lib/chargebee/models/usage_charge.rb', line 4

def included_usage
  @included_usage
end

#metered_item_price_idObject

Returns the value of attribute metered_item_price_id.



4
5
6
# File 'lib/chargebee/models/usage_charge.rb', line 4

def metered_item_price_id
  @metered_item_price_id
end

#on_demand_usageObject

Returns the value of attribute on_demand_usage.



4
5
6
# File 'lib/chargebee/models/usage_charge.rb', line 4

def on_demand_usage
  @on_demand_usage
end

#subscription_idObject

Returns the value of attribute subscription_id.



4
5
6
# File 'lib/chargebee/models/usage_charge.rb', line 4

def subscription_id
  @subscription_id
end

#total_usageObject

Returns the value of attribute total_usage.



4
5
6
# File 'lib/chargebee/models/usage_charge.rb', line 4

def total_usage
  @total_usage
end

#usage_fromObject

Returns the value of attribute usage_from.



4
5
6
# File 'lib/chargebee/models/usage_charge.rb', line 4

def usage_from
  @usage_from
end

#usage_toObject

Returns the value of attribute usage_to.



4
5
6
# File 'lib/chargebee/models/usage_charge.rb', line 4

def usage_to
  @usage_to
end

Class Method Details

.retrieve_usage_charges_for_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object

OPERATIONS




10
11
12
13
14
15
# File 'lib/chargebee/models/usage_charge.rb', line 10

def self.retrieve_usage_charges_for_subscription(id, params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("subscriptions",id.to_s,"usage_charges"), params, env, headers,nil, false, jsonKeys, options)
end