Class: ChargeBee::DifferentialPrice
- Defined in:
- lib/chargebee/models/differential_price.rb
Defined Under Namespace
Classes: ParentPeriod, Tier
Instance Attribute Summary collapse
-
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#id ⇒ Object
Returns the value of attribute id.
-
#item_price_id ⇒ Object
Returns the value of attribute item_price_id.
-
#modified_at ⇒ Object
Returns the value of attribute modified_at.
-
#parent_item_id ⇒ Object
Returns the value of attribute parent_item_id.
-
#parent_periods ⇒ Object
Returns the value of attribute parent_periods.
-
#price ⇒ Object
Returns the value of attribute price.
-
#price_in_decimal ⇒ Object
Returns the value of attribute price_in_decimal.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tiers ⇒ Object
Returns the value of attribute tiers.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
-
.create(id, params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .delete(id, params, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, params, env = nil, headers = {}) ⇒ Object
- .update(id, params, env = nil, headers = {}) ⇒ Object
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #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
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def business_entity_id @business_entity_id end |
#created_at ⇒ Object
Returns the value of attribute created_at.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def created_at @created_at end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def currency_code @currency_code end |
#id ⇒ Object
Returns the value of attribute id.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def id @id end |
#item_price_id ⇒ Object
Returns the value of attribute item_price_id.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def item_price_id @item_price_id end |
#modified_at ⇒ Object
Returns the value of attribute modified_at.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def modified_at @modified_at end |
#parent_item_id ⇒ Object
Returns the value of attribute parent_item_id.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def parent_item_id @parent_item_id end |
#parent_periods ⇒ Object
Returns the value of attribute parent_periods.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def parent_periods @parent_periods end |
#price ⇒ Object
Returns the value of attribute price.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def price @price end |
#price_in_decimal ⇒ Object
Returns the value of attribute price_in_decimal.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def price_in_decimal @price_in_decimal end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def resource_version @resource_version end |
#status ⇒ Object
Returns the value of attribute status.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def status @status end |
#tiers ⇒ Object
Returns the value of attribute tiers.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def tiers @tiers end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def updated_at @updated_at end |
Class Method Details
.create(id, params, env = nil, headers = {}) ⇒ Object
OPERATIONS
18 19 20 |
# File 'lib/chargebee/models/differential_price.rb', line 18 def self.create(id, params, env=nil, headers={}) Request.send('post', uri_path("item_prices",id.to_s,"differential_prices"), params, env, headers) end |
.delete(id, params, env = nil, headers = {}) ⇒ Object
30 31 32 |
# File 'lib/chargebee/models/differential_price.rb', line 30 def self.delete(id, params, env=nil, headers={}) Request.send('post', uri_path("differential_prices",id.to_s,"delete"), params, env, headers) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
34 35 36 |
# File 'lib/chargebee/models/differential_price.rb', line 34 def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("differential_prices"), params, env, headers) end |