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.
-
#deleted ⇒ Object
Returns the value of attribute deleted.
-
#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, #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
#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 |
#deleted ⇒ Object
Returns the value of attribute deleted.
12 13 14 |
# File 'lib/chargebee/models/differential_price.rb', line 12 def deleted @deleted 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
19 20 21 22 23 24 25 26 27 |
# File 'lib/chargebee/models/differential_price.rb', line 19 def self.create(id, params, env=nil, headers={}) jsonKeys = { :period => 1, } = { :isIdempotent => true } Request.send('post', uri_path("item_prices",id.to_s,"differential_prices"), params, env, headers,nil, false, jsonKeys, ) end |
.delete(id, params, env = nil, headers = {}) ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/chargebee/models/differential_price.rb', line 46 def self.delete(id, params, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("differential_prices",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys, ) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
55 56 57 58 59 60 |
# File 'lib/chargebee/models/differential_price.rb', line 55 def self.list(params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send_list_request('get', uri_path("differential_prices"), params, env, headers,nil, false, jsonKeys, ) end |
.retrieve(id, params, env = nil, headers = {}) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/chargebee/models/differential_price.rb', line 29 def self.retrieve(id, params, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("differential_prices",id.to_s), params, env, headers,nil, false, jsonKeys, ) end |
.update(id, params, env = nil, headers = {}) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/chargebee/models/differential_price.rb', line 36 def self.update(id, params, env=nil, headers={}) jsonKeys = { :period => 1, } = { :isIdempotent => true } Request.send('post', uri_path("differential_prices",id.to_s), params, env, headers,nil, false, jsonKeys, ) end |