Sha256: 9102fa9fadeb259820496c73a5f2d5f1e8e0196e61106b80a02d0d914999230b
Contents?: true
Size: 1.32 KB
Versions: 34
Compression:
Stored size: 1.32 KB
Contents
module ChargeBee class Addon < Model attr_accessor :id, :name, :invoice_name, :description, :type, :charge_type, :price, :currency_code, :period, :period_unit, :unit, :status, :archived_at, :enabled_in_portal, :tax_code, :sku, :accounting_code, :accounting_category1, :accounting_category2, :resource_version, :updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data # OPERATIONS #----------- def self.create(params, env=nil, headers={}) Request.send('post', uri_path("addons"), params, env, headers) end def self.update(id, params={}, env=nil, headers={}) Request.send('post', uri_path("addons",id.to_s), params, env, headers) end def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("addons"), params, env, headers) end def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("addons",id.to_s), {}, env, headers) end def self.delete(id, env=nil, headers={}) Request.send('post', uri_path("addons",id.to_s,"delete"), {}, env, headers) end def self.copy(params, env=nil, headers={}) Request.send('post', uri_path("addons","copy"), params, env, headers) end def self.unarchive(id, env=nil, headers={}) Request.send('post', uri_path("addons",id.to_s,"unarchive"), {}, env, headers) end end # ~Addon end # ~ChargeBee
Version data entries
34 entries across 34 versions & 1 rubygems