Class: ChargeBee::ItemPrice
- Defined in:
- lib/chargebee/models/item_price.rb
Defined Under Namespace
Classes: AccountingDetail, TaxDetail, TaxProvidersField, 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.
-
#price_variant_id ⇒ Object
Returns the value of attribute price_variant_id.
-
#pricing_model ⇒ Object
Returns the value of attribute pricing_model.
-
#proration_type ⇒ Object
Returns the value of attribute proration_type.
-
#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.
-
#tax_providers_fields ⇒ Object
Returns the value of attribute tax_providers_fields.
-
#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, #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_detail ⇒ Object
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 |
#archivable ⇒ Object
Returns the value of attribute archivable.
20 21 22 |
# File 'lib/chargebee/models/item_price.rb', line 20 def archivable @archivable end |
#archived_at ⇒ Object
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_cycles ⇒ Object
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 |
#channel ⇒ Object
Returns the value of attribute channel.
20 21 22 |
# File 'lib/chargebee/models/item_price.rb', line 20 def channel @channel end |
#created_at ⇒ Object
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_code ⇒ Object
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 |
#description ⇒ Object
Returns the value of attribute description.
20 21 22 |
# File 'lib/chargebee/models/item_price.rb', line 20 def description @description end |
#external_name ⇒ Object
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_quantity ⇒ Object
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_decimal ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
20 21 22 |
# File 'lib/chargebee/models/item_price.rb', line 20 def id @id end |
#invoice_notes ⇒ Object
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_taxable ⇒ Object
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_id ⇒ Object
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_id ⇒ Object
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_type ⇒ Object
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 |
#metadata ⇒ Object
Returns the value of attribute metadata.
20 21 22 |
# File 'lib/chargebee/models/item_price.rb', line 20 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/chargebee/models/item_price.rb', line 20 def name @name end |
#parent_item_id ⇒ Object
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 |
#period ⇒ Object
Returns the value of attribute period.
20 21 22 |
# File 'lib/chargebee/models/item_price.rb', line 20 def period @period end |
#period_unit ⇒ Object
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 |
#price ⇒ Object
Returns the value of attribute price.
20 21 22 |
# File 'lib/chargebee/models/item_price.rb', line 20 def price @price end |
#price_in_decimal ⇒ Object
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_id ⇒ Object
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_model ⇒ Object
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_type ⇒ Object
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_version ⇒ Object
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_period ⇒ Object
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_unit ⇒ Object
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_invoices ⇒ Object
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_quotes ⇒ Object
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 |
#status ⇒ Object
Returns the value of attribute status.
20 21 22 |
# File 'lib/chargebee/models/item_price.rb', line 20 def status @status end |
#tax_detail ⇒ Object
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_fields ⇒ Object
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 |
#tiers ⇒ Object
Returns the value of attribute tiers.
20 21 22 |
# File 'lib/chargebee/models/item_price.rb', line 20 def tiers @tiers end |
#trial_end_action ⇒ Object
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_period ⇒ Object
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_unit ⇒ Object
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_at ⇒ Object
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 |