Class: ChargeBee::ItemPrice
- Defined in:
- lib/chargebee/models/item_price.rb
Defined Under Namespace
Classes: AccountingDetail, TaxDetail, Tier
Instance Attribute Summary collapse
-
#accounting_detail ⇒ Object
Returns the value of attribute accounting_detail.
-
#archivable ⇒ Object
Returns the value of attribute archivable.
-
#archived_at ⇒ Object
Returns the value of attribute archived_at.
-
#billing_cycles ⇒ Object
Returns the value of attribute billing_cycles.
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#description ⇒ Object
Returns the value of attribute description.
-
#external_name ⇒ Object
Returns the value of attribute external_name.
-
#free_quantity ⇒ Object
Returns the value of attribute free_quantity.
-
#free_quantity_in_decimal ⇒ Object
Returns the value of attribute free_quantity_in_decimal.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoice_notes ⇒ Object
Returns the value of attribute invoice_notes.
-
#is_taxable ⇒ Object
Returns the value of attribute is_taxable.
-
#item_family_id ⇒ Object
Returns the value of attribute item_family_id.
-
#item_id ⇒ Object
Returns the value of attribute item_id.
-
#item_type ⇒ Object
Returns the value of attribute item_type.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent_item_id ⇒ Object
Returns the value of attribute parent_item_id.
-
#period ⇒ Object
Returns the value of attribute period.
-
#period_unit ⇒ Object
Returns the value of attribute period_unit.
-
#price ⇒ Object
Returns the value of attribute price.
-
#price_in_decimal ⇒ Object
Returns the value of attribute price_in_decimal.
-
#pricing_model ⇒ Object
Returns the value of attribute pricing_model.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#shipping_period ⇒ Object
Returns the value of attribute shipping_period.
-
#shipping_period_unit ⇒ Object
Returns the value of attribute shipping_period_unit.
-
#show_description_in_invoices ⇒ Object
Returns the value of attribute show_description_in_invoices.
-
#show_description_in_quotes ⇒ Object
Returns the value of attribute show_description_in_quotes.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tax_detail ⇒ Object
Returns the value of attribute tax_detail.
-
#tiers ⇒ Object
Returns the value of attribute tiers.
-
#trial_end_action ⇒ Object
Returns the value of attribute trial_end_action.
-
#trial_period ⇒ Object
Returns the value of attribute trial_period.
-
#trial_period_unit ⇒ Object
Returns the value of attribute trial_period_unit.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
-
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil, headers = {}) ⇒ Object
- .find_applicable_item_prices(id, params = {}, env = nil, headers = {}) ⇒ Object
- .find_applicable_items(id, params = {}, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, 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, #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_detail ⇒ Object
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 |
#archivable ⇒ Object
Returns the value of attribute archivable.
16 17 18 |
# File 'lib/chargebee/models/item_price.rb', line 16 def archivable @archivable end |
#archived_at ⇒ Object
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_cycles ⇒ Object
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 |
#channel ⇒ Object
Returns the value of attribute channel.
16 17 18 |
# File 'lib/chargebee/models/item_price.rb', line 16 def channel @channel end |
#created_at ⇒ Object
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_code ⇒ Object
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 |
#description ⇒ Object
Returns the value of attribute description.
16 17 18 |
# File 'lib/chargebee/models/item_price.rb', line 16 def description @description end |
#external_name ⇒ Object
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_quantity ⇒ Object
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_decimal ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/chargebee/models/item_price.rb', line 16 def id @id end |
#invoice_notes ⇒ Object
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_taxable ⇒ Object
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_id ⇒ Object
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_id ⇒ Object
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_type ⇒ Object
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 |
#metadata ⇒ Object
Returns the value of attribute metadata.
16 17 18 |
# File 'lib/chargebee/models/item_price.rb', line 16 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/chargebee/models/item_price.rb', line 16 def name @name end |
#parent_item_id ⇒ Object
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 |
#period ⇒ Object
Returns the value of attribute period.
16 17 18 |
# File 'lib/chargebee/models/item_price.rb', line 16 def period @period end |
#period_unit ⇒ Object
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 |
#price ⇒ Object
Returns the value of attribute price.
16 17 18 |
# File 'lib/chargebee/models/item_price.rb', line 16 def price @price end |
#price_in_decimal ⇒ Object
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_model ⇒ Object
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_version ⇒ Object
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_period ⇒ Object
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_unit ⇒ Object
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_invoices ⇒ Object
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_quotes ⇒ Object
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 |
#status ⇒ Object
Returns the value of attribute status.
16 17 18 |
# File 'lib/chargebee/models/item_price.rb', line 16 def status @status end |
#tax_detail ⇒ Object
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 |
#tiers ⇒ Object
Returns the value of attribute tiers.
16 17 18 |
# File 'lib/chargebee/models/item_price.rb', line 16 def tiers @tiers end |
#trial_end_action ⇒ Object
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_period ⇒ Object
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_unit ⇒ Object
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_at ⇒ Object
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 |