Class: ChargeBee::ItemPrice

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

Defined Under Namespace

Classes: AccountingDetail, TaxDetail, TaxProvidersField, 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

#accounting_detailObject

Returns the value of attribute accounting_detail.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def accounting_detail
  @accounting_detail
end

#archivableObject

Returns the value of attribute archivable.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def archivable
  @archivable
end

#archived_atObject

Returns the value of attribute archived_at.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def archived_at
  @archived_at
end

#billing_cyclesObject

Returns the value of attribute billing_cycles.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def billing_cycles
  @billing_cycles
end

#channelObject

Returns the value of attribute channel.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def channel
  @channel
end

#created_atObject

Returns the value of attribute created_at.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def created_at
  @created_at
end

#currency_codeObject

Returns the value of attribute currency_code.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def currency_code
  @currency_code
end

#descriptionObject

Returns the value of attribute description.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def description
  @description
end

#external_nameObject

Returns the value of attribute external_name.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def external_name
  @external_name
end

#free_quantityObject

Returns the value of attribute free_quantity.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def free_quantity
  @free_quantity
end

#free_quantity_in_decimalObject

Returns the value of attribute free_quantity_in_decimal.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def free_quantity_in_decimal
  @free_quantity_in_decimal
end

#idObject

Returns the value of attribute id.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def id
  @id
end

#invoice_notesObject

Returns the value of attribute invoice_notes.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def invoice_notes
  @invoice_notes
end

#is_taxableObject

Returns the value of attribute is_taxable.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def is_taxable
  @is_taxable
end

#item_family_idObject

Returns the value of attribute item_family_id.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def item_family_id
  @item_family_id
end

#item_idObject

Returns the value of attribute item_id.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def item_id
  @item_id
end

#item_typeObject

Returns the value of attribute item_type.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def item_type
  @item_type
end

#metadataObject

Returns the value of attribute metadata.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def 
  @metadata
end

#nameObject

Returns the value of attribute name.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def name
  @name
end

#parent_item_idObject

Returns the value of attribute parent_item_id.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def parent_item_id
  @parent_item_id
end

#periodObject

Returns the value of attribute period.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def period
  @period
end

#period_unitObject

Returns the value of attribute period_unit.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def period_unit
  @period_unit
end

#priceObject

Returns the value of attribute price.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def price
  @price
end

#price_in_decimalObject

Returns the value of attribute price_in_decimal.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def price_in_decimal
  @price_in_decimal
end

#price_variant_idObject

Returns the value of attribute price_variant_id.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def price_variant_id
  @price_variant_id
end

#pricing_modelObject

Returns the value of attribute pricing_model.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def pricing_model
  @pricing_model
end

#proration_typeObject

Returns the value of attribute proration_type.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def proration_type
  @proration_type
end

#resource_versionObject

Returns the value of attribute resource_version.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def resource_version
  @resource_version
end

#shipping_periodObject

Returns the value of attribute shipping_period.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def shipping_period
  @shipping_period
end

#shipping_period_unitObject

Returns the value of attribute shipping_period_unit.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def shipping_period_unit
  @shipping_period_unit
end

#show_description_in_invoicesObject

Returns the value of attribute show_description_in_invoices.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def show_description_in_invoices
  @show_description_in_invoices
end

#show_description_in_quotesObject

Returns the value of attribute show_description_in_quotes.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def show_description_in_quotes
  @show_description_in_quotes
end

#statusObject

Returns the value of attribute status.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def status
  @status
end

#tax_detailObject

Returns the value of attribute tax_detail.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def tax_detail
  @tax_detail
end

#tax_providers_fieldsObject

Returns the value of attribute tax_providers_fields.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def tax_providers_fields
  @tax_providers_fields
end

#tiersObject

Returns the value of attribute tiers.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def tiers
  @tiers
end

#trial_end_actionObject

Returns the value of attribute trial_end_action.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def trial_end_action
  @trial_end_action
end

#trial_periodObject

Returns the value of attribute trial_period.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def trial_period
  @trial_period
end

#trial_period_unitObject

Returns the value of attribute trial_period_unit.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def trial_period_unit
  @trial_period_unit
end

#updated_atObject

Returns the value of attribute updated_at.



20
21
22
# File 'lib/chargebee/models/item_price.rb', line 20

def updated_at
  @updated_at
end

Class Method Details

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

OPERATIONS




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

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

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



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

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



55
56
57
# File 'lib/chargebee/models/item_price.rb', line 55

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



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

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



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

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



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

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



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

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