Class: ChargeBee::DifferentialPrice

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

Defined Under Namespace

Classes: ParentPeriod, Tier

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, #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_idObject

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_atObject

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_codeObject

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

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/chargebee/models/differential_price.rb', line 12

def id
  @id
end

#item_price_idObject

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_atObject

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_idObject

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_periodsObject

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

#priceObject

Returns the value of attribute price.



12
13
14
# File 'lib/chargebee/models/differential_price.rb', line 12

def price
  @price
end

#price_in_decimalObject

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_versionObject

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

#statusObject

Returns the value of attribute status.



12
13
14
# File 'lib/chargebee/models/differential_price.rb', line 12

def status
  @status
end

#tiersObject

Returns the value of attribute tiers.



12
13
14
# File 'lib/chargebee/models/differential_price.rb', line 12

def tiers
  @tiers
end

#updated_atObject

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

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



22
23
24
# File 'lib/chargebee/models/differential_price.rb', line 22

def self.retrieve(id, params, env=nil, headers={})
  Request.send('get', uri_path("differential_prices",id.to_s), params, env, headers)
end

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



26
27
28
# File 'lib/chargebee/models/differential_price.rb', line 26

def self.update(id, params, env=nil, headers={})
  Request.send('post', uri_path("differential_prices",id.to_s), params, env, headers)
end