Class: ChargeBee::UsageCharge
- Defined in:
- lib/chargebee/models/usage_charge.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#feature_id ⇒ Object
Returns the value of attribute feature_id.
-
#included_usage ⇒ Object
Returns the value of attribute included_usage.
-
#metered_item_price_id ⇒ Object
Returns the value of attribute metered_item_price_id.
-
#on_demand_usage ⇒ Object
Returns the value of attribute on_demand_usage.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#total_usage ⇒ Object
Returns the value of attribute total_usage.
-
#usage_from ⇒ Object
Returns the value of attribute usage_from.
-
#usage_to ⇒ Object
Returns the value of attribute usage_to.
Class Method Summary collapse
-
.retrieve_usage_charges_for_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
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
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/chargebee/models/usage_charge.rb', line 4 def amount @amount end |
#currency_code ⇒ Object
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_id ⇒ Object
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_usage ⇒ Object
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_id ⇒ Object
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_usage ⇒ Object
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_id ⇒ Object
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_usage ⇒ Object
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_from ⇒ Object
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_to ⇒ Object
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 = { } = {} Request.send('get', uri_path("subscriptions",id.to_s,"usage_charges"), params, env, headers,nil, false, jsonKeys, ) end |