Class: ChargeBee::Plan
Defined Under Namespace
Classes: ApplicableAddon, AttachedAddon, EventBasedAddon, TaxProvidersField, Tier
Instance Attribute Summary collapse
-
#accounting_category1 ⇒ Object
Returns the value of attribute accounting_category1.
-
#accounting_category2 ⇒ Object
Returns the value of attribute accounting_category2.
-
#accounting_category3 ⇒ Object
Returns the value of attribute accounting_category3.
-
#accounting_category4 ⇒ Object
Returns the value of attribute accounting_category4.
-
#accounting_code ⇒ Object
Returns the value of attribute accounting_code.
-
#addon_applicability ⇒ Object
Returns the value of attribute addon_applicability.
-
#applicable_addons ⇒ Object
Returns the value of attribute applicable_addons.
-
#archived_at ⇒ Object
Returns the value of attribute archived_at.
-
#attached_addons ⇒ Object
Returns the value of attribute attached_addons.
-
#avalara_sale_type ⇒ Object
Returns the value of attribute avalara_sale_type.
-
#avalara_service_type ⇒ Object
Returns the value of attribute avalara_service_type.
-
#avalara_transaction_type ⇒ Object
Returns the value of attribute avalara_transaction_type.
-
#billing_cycles ⇒ Object
Returns the value of attribute billing_cycles.
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#charge_model ⇒ Object
Returns the value of attribute charge_model.
-
#claim_url ⇒ Object
Returns the value of attribute claim_url.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#description ⇒ Object
Returns the value of attribute description.
-
#downgrade_penalty ⇒ Object
Returns the value of attribute downgrade_penalty.
-
#enabled_in_hosted_pages ⇒ Object
Returns the value of attribute enabled_in_hosted_pages.
-
#enabled_in_portal ⇒ Object
Returns the value of attribute enabled_in_portal.
-
#event_based_addons ⇒ Object
Returns the value of attribute event_based_addons.
-
#free_quantity ⇒ Object
Returns the value of attribute free_quantity.
-
#free_quantity_in_decimal ⇒ Object
Returns the value of attribute free_quantity_in_decimal.
-
#giftable ⇒ Object
Returns the value of attribute giftable.
-
#hsn_code ⇒ Object
Returns the value of attribute hsn_code.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoice_name ⇒ Object
Returns the value of attribute invoice_name.
-
#invoice_notes ⇒ Object
Returns the value of attribute invoice_notes.
-
#is_shippable ⇒ Object
Returns the value of attribute is_shippable.
-
#meta_data ⇒ Object
Returns the value of attribute meta_data.
-
#name ⇒ Object
Returns the value of attribute name.
-
#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.
-
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#setup_cost ⇒ Object
Returns the value of attribute setup_cost.
-
#shipping_frequency_period ⇒ Object
Returns the value of attribute shipping_frequency_period.
-
#shipping_frequency_period_unit ⇒ Object
Returns the value of attribute shipping_frequency_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.
-
#sku ⇒ Object
Returns the value of attribute sku.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tax_code ⇒ Object
Returns the value of attribute tax_code.
-
#tax_profile_id ⇒ Object
Returns the value of attribute tax_profile_id.
-
#tax_providers_fields ⇒ Object
Returns the value of attribute tax_providers_fields.
-
#taxable ⇒ Object
Returns the value of attribute taxable.
-
#taxjar_product_code ⇒ Object
Returns the value of attribute taxjar_product_code.
-
#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
- .copy(params, env = nil, headers = {}) ⇒ Object
-
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .unarchive(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_category1 ⇒ Object
Returns the value of attribute accounting_category1.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def accounting_category1 @accounting_category1 end |
#accounting_category2 ⇒ Object
Returns the value of attribute accounting_category2.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def accounting_category2 @accounting_category2 end |
#accounting_category3 ⇒ Object
Returns the value of attribute accounting_category3.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def accounting_category3 @accounting_category3 end |
#accounting_category4 ⇒ Object
Returns the value of attribute accounting_category4.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def accounting_category4 @accounting_category4 end |
#accounting_code ⇒ Object
Returns the value of attribute accounting_code.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def accounting_code @accounting_code end |
#addon_applicability ⇒ Object
Returns the value of attribute addon_applicability.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def addon_applicability @addon_applicability end |
#applicable_addons ⇒ Object
Returns the value of attribute applicable_addons.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def applicable_addons @applicable_addons end |
#archived_at ⇒ Object
Returns the value of attribute archived_at.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def archived_at @archived_at end |
#attached_addons ⇒ Object
Returns the value of attribute attached_addons.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def attached_addons @attached_addons end |
#avalara_sale_type ⇒ Object
Returns the value of attribute avalara_sale_type.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def avalara_sale_type @avalara_sale_type end |
#avalara_service_type ⇒ Object
Returns the value of attribute avalara_service_type.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def avalara_service_type @avalara_service_type end |
#avalara_transaction_type ⇒ Object
Returns the value of attribute avalara_transaction_type.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def avalara_transaction_type @avalara_transaction_type end |
#billing_cycles ⇒ Object
Returns the value of attribute billing_cycles.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def billing_cycles @billing_cycles end |
#channel ⇒ Object
Returns the value of attribute channel.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def channel @channel end |
#charge_model ⇒ Object
Returns the value of attribute charge_model.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def charge_model @charge_model end |
#claim_url ⇒ Object
Returns the value of attribute claim_url.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def claim_url @claim_url end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def currency_code @currency_code end |
#description ⇒ Object
Returns the value of attribute description.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def description @description end |
#downgrade_penalty ⇒ Object
Returns the value of attribute downgrade_penalty.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def downgrade_penalty @downgrade_penalty end |
#enabled_in_hosted_pages ⇒ Object
Returns the value of attribute enabled_in_hosted_pages.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def enabled_in_hosted_pages @enabled_in_hosted_pages end |
#enabled_in_portal ⇒ Object
Returns the value of attribute enabled_in_portal.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def enabled_in_portal @enabled_in_portal end |
#event_based_addons ⇒ Object
Returns the value of attribute event_based_addons.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def event_based_addons @event_based_addons end |
#free_quantity ⇒ Object
Returns the value of attribute free_quantity.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def free_quantity @free_quantity end |
#free_quantity_in_decimal ⇒ Object
Returns the value of attribute free_quantity_in_decimal.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def free_quantity_in_decimal @free_quantity_in_decimal end |
#giftable ⇒ Object
Returns the value of attribute giftable.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def giftable @giftable end |
#hsn_code ⇒ Object
Returns the value of attribute hsn_code.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def hsn_code @hsn_code end |
#id ⇒ Object
Returns the value of attribute id.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def id @id end |
#invoice_name ⇒ Object
Returns the value of attribute invoice_name.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def invoice_name @invoice_name end |
#invoice_notes ⇒ Object
Returns the value of attribute invoice_notes.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def invoice_notes @invoice_notes end |
#is_shippable ⇒ Object
Returns the value of attribute is_shippable.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def is_shippable @is_shippable end |
#meta_data ⇒ Object
Returns the value of attribute meta_data.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def @meta_data end |
#name ⇒ Object
Returns the value of attribute name.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def name @name end |
#period ⇒ Object
Returns the value of attribute period.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def period @period end |
#period_unit ⇒ Object
Returns the value of attribute period_unit.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def period_unit @period_unit end |
#price ⇒ Object
Returns the value of attribute price.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def price @price end |
#price_in_decimal ⇒ Object
Returns the value of attribute price_in_decimal.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def price_in_decimal @price_in_decimal end |
#pricing_model ⇒ Object
Returns the value of attribute pricing_model.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def pricing_model @pricing_model end |
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def redirect_url @redirect_url end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def resource_version @resource_version end |
#setup_cost ⇒ Object
Returns the value of attribute setup_cost.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def setup_cost @setup_cost end |
#shipping_frequency_period ⇒ Object
Returns the value of attribute shipping_frequency_period.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def shipping_frequency_period @shipping_frequency_period end |
#shipping_frequency_period_unit ⇒ Object
Returns the value of attribute shipping_frequency_period_unit.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def shipping_frequency_period_unit @shipping_frequency_period_unit end |
#show_description_in_invoices ⇒ Object
Returns the value of attribute show_description_in_invoices.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def show_description_in_invoices @show_description_in_invoices end |
#show_description_in_quotes ⇒ Object
Returns the value of attribute show_description_in_quotes.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def show_description_in_quotes @show_description_in_quotes end |
#sku ⇒ Object
Returns the value of attribute sku.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def sku @sku end |
#status ⇒ Object
Returns the value of attribute status.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def status @status end |
#tax_code ⇒ Object
Returns the value of attribute tax_code.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def tax_code @tax_code end |
#tax_profile_id ⇒ Object
Returns the value of attribute tax_profile_id.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def tax_profile_id @tax_profile_id end |
#tax_providers_fields ⇒ Object
Returns the value of attribute tax_providers_fields.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def tax_providers_fields @tax_providers_fields end |
#taxable ⇒ Object
Returns the value of attribute taxable.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def taxable @taxable end |
#taxjar_product_code ⇒ Object
Returns the value of attribute taxjar_product_code.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def taxjar_product_code @taxjar_product_code end |
#tiers ⇒ Object
Returns the value of attribute tiers.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def tiers @tiers end |
#trial_end_action ⇒ Object
Returns the value of attribute trial_end_action.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def trial_end_action @trial_end_action end |
#trial_period ⇒ Object
Returns the value of attribute trial_period.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def trial_period @trial_period end |
#trial_period_unit ⇒ Object
Returns the value of attribute trial_period_unit.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def trial_period_unit @trial_period_unit end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
24 25 26 |
# File 'lib/chargebee/models/plan.rb', line 24 def updated_at @updated_at end |
Class Method Details
.copy(params, env = nil, headers = {}) ⇒ Object
58 59 60 |
# File 'lib/chargebee/models/plan.rb', line 58 def self.copy(params, env=nil, headers={}) Request.send('post', uri_path("plans","copy"), params, env, headers) end |
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
38 39 40 |
# File 'lib/chargebee/models/plan.rb', line 38 def self.create(params, env=nil, headers={}) Request.send('post', uri_path("plans"), params, env, headers) end |
.delete(id, env = nil, headers = {}) ⇒ Object
54 55 56 |
# File 'lib/chargebee/models/plan.rb', line 54 def self.delete(id, env=nil, headers={}) Request.send('post', uri_path("plans",id.to_s,"delete"), {}, env, headers) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
46 47 48 |
# File 'lib/chargebee/models/plan.rb', line 46 def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("plans"), params, env, headers) end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
50 51 52 |
# File 'lib/chargebee/models/plan.rb', line 50 def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("plans",id.to_s), {}, env, headers) end |