Sha256: 35b8457b7639b9ca671d45b292b90383ed8a028709816f8c0c536cf37d3266fb
Contents?: true
Size: 1.86 KB
Versions: 1
Compression:
Stored size: 1.86 KB
Contents
module ChargeBee class Plan < Model class ApplicableAddon < Model attr_accessor :id end class AttachedAddon < Model attr_accessor :id, :quantity, :billing_cycles, :type end class EventBasedAddon < Model attr_accessor :id, :quantity, :on_event, :charge_once end attr_accessor :id, :name, :invoice_name, :description, :price, :currency_code, :period, :period_unit, :trial_period, :trial_period_unit, :charge_model, :free_quantity, :setup_cost, :downgrade_penalty, :status, :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages, :enabled_in_portal, :addon_applicability, :tax_code, :sku, :accounting_code, :accounting_category1, :accounting_category2, :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit, :resource_version, :updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data, :applicable_addons, :attached_addons, :event_based_addons # OPERATIONS #----------- def self.create(params, env=nil, headers={}) Request.send('post', uri_path("plans"), params, env, headers) end def self.update(id, params={}, env=nil, headers={}) Request.send('post', uri_path("plans",id.to_s), params, env, headers) end def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("plans"), params, env, headers) end def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("plans",id.to_s), {}, env, headers) end def self.delete(id, env=nil, headers={}) Request.send('post', uri_path("plans",id.to_s,"delete"), {}, env, headers) end def self.copy(params, env=nil, headers={}) Request.send('post', uri_path("plans","copy"), params, env, headers) end def self.unarchive(id, env=nil, headers={}) Request.send('post', uri_path("plans",id.to_s,"unarchive"), {}, env, headers) end end # ~Plan end # ~ChargeBee
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chargebee-2.5.7 | lib/chargebee/models/plan.rb |