Class: ChargeBee::ItemPrice

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

Defined Under Namespace

Classes: AccountingDetail, TaxDetail, Tier

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_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

#accounting_detailObject

Returns the value of attribute accounting_detail.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def accounting_detail
  @accounting_detail
end

#archivableObject

Returns the value of attribute archivable.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def archivable
  @archivable
end

#archived_atObject

Returns the value of attribute archived_at.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def archived_at
  @archived_at
end

#billing_cyclesObject

Returns the value of attribute billing_cycles.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def billing_cycles
  @billing_cycles
end

#channelObject

Returns the value of attribute channel.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def channel
  @channel
end

#created_atObject

Returns the value of attribute created_at.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def created_at
  @created_at
end

#currency_codeObject

Returns the value of attribute currency_code.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def currency_code
  @currency_code
end

#descriptionObject

Returns the value of attribute description.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def description
  @description
end

#external_nameObject

Returns the value of attribute external_name.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def external_name
  @external_name
end

#free_quantityObject

Returns the value of attribute free_quantity.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def free_quantity
  @free_quantity
end

#free_quantity_in_decimalObject

Returns the value of attribute free_quantity_in_decimal.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def free_quantity_in_decimal
  @free_quantity_in_decimal
end

#idObject

Returns the value of attribute id.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def id
  @id
end

#invoice_notesObject

Returns the value of attribute invoice_notes.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def invoice_notes
  @invoice_notes
end

#is_taxableObject

Returns the value of attribute is_taxable.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def is_taxable
  @is_taxable
end

#item_family_idObject

Returns the value of attribute item_family_id.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def item_family_id
  @item_family_id
end

#item_idObject

Returns the value of attribute item_id.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def item_id
  @item_id
end

#item_typeObject

Returns the value of attribute item_type.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def item_type
  @item_type
end

#metadataObject

Returns the value of attribute metadata.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def 
  @metadata
end

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def name
  @name
end

#parent_item_idObject

Returns the value of attribute parent_item_id.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def parent_item_id
  @parent_item_id
end

#periodObject

Returns the value of attribute period.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def period
  @period
end

#period_unitObject

Returns the value of attribute period_unit.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def period_unit
  @period_unit
end

#priceObject

Returns the value of attribute price.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def price
  @price
end

#price_in_decimalObject

Returns the value of attribute price_in_decimal.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def price_in_decimal
  @price_in_decimal
end

#pricing_modelObject

Returns the value of attribute pricing_model.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def pricing_model
  @pricing_model
end

#resource_versionObject

Returns the value of attribute resource_version.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def resource_version
  @resource_version
end

#shipping_periodObject

Returns the value of attribute shipping_period.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def shipping_period
  @shipping_period
end

#shipping_period_unitObject

Returns the value of attribute shipping_period_unit.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def shipping_period_unit
  @shipping_period_unit
end

#show_description_in_invoicesObject

Returns the value of attribute show_description_in_invoices.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def show_description_in_invoices
  @show_description_in_invoices
end

#show_description_in_quotesObject

Returns the value of attribute show_description_in_quotes.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def show_description_in_quotes
  @show_description_in_quotes
end

#statusObject

Returns the value of attribute status.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def status
  @status
end

#tax_detailObject

Returns the value of attribute tax_detail.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def tax_detail
  @tax_detail
end

#tiersObject

Returns the value of attribute tiers.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def tiers
  @tiers
end

#trial_end_actionObject

Returns the value of attribute trial_end_action.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def trial_end_action
  @trial_end_action
end

#trial_periodObject

Returns the value of attribute trial_period.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def trial_period
  @trial_period
end

#trial_period_unitObject

Returns the value of attribute trial_period_unit.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def trial_period_unit
  @trial_period_unit
end

#updated_atObject

Returns the value of attribute updated_at.



16
17
18
# File 'lib/chargebee/models/item_price.rb', line 16

def updated_at
  @updated_at
end

Class Method Details

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

OPERATIONS




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

def self.create(params, env=nil, headers={})
  Request.send('post', uri_path("item_prices"), params, env, headers)
end

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



42
43
44
# File 'lib/chargebee/models/item_price.rb', line 42

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

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



50
51
52
# File 'lib/chargebee/models/item_price.rb', line 50

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

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



46
47
48
# File 'lib/chargebee/models/item_price.rb', line 46

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

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



38
39
40
# File 'lib/chargebee/models/item_price.rb', line 38

def self.list(params={}, env=nil, headers={})
  Request.send_list_request('get', uri_path("item_prices"), params, env, headers)
end

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



30
31
32
# File 'lib/chargebee/models/item_price.rb', line 30

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

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



34
35
36
# File 'lib/chargebee/models/item_price.rb', line 34

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