Sha256: 26a74a080f52e665338c44ab345cf0c46eb60b7cbdc1c0fe0a7a2f57e5b20476
Contents?: true
Size: 1.39 KB
Versions: 6
Compression:
Stored size: 1.39 KB
Contents
module ChargeBee class Item < Model class ApplicableItem < Model attr_accessor :id end class BundleItem < Model attr_accessor :item_id, :item_type, :quantity, :price_allocation end class BundleConfiguration < Model attr_accessor :type end attr_accessor :id, :name, :external_name, :description, :status, :resource_version, :updated_at, :item_family_id, :type, :is_shippable, :is_giftable, :redirect_url, :enabled_for_checkout, :enabled_in_portal, :included_in_mrr, :item_applicability, :gift_claim_redirect_url, :unit, :metered, :usage_calculation, :archived_at, :channel, :applicable_items, :bundle_items, :bundle_configuration, :metadata, :business_entity_id # OPERATIONS #----------- def self.create(params, env=nil, headers={}) Request.send('post', uri_path("items"), params, env, headers) end def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("items",id.to_s), {}, env, headers) end def self.update(id, params={}, env=nil, headers={}) Request.send('post', uri_path("items",id.to_s), params, env, headers) end def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("items"), params, env, headers) end def self.delete(id, env=nil, headers={}) Request.send('post', uri_path("items",id.to_s,"delete"), {}, env, headers) end end # ~Item end # ~ChargeBee
Version data entries
6 entries across 6 versions & 1 rubygems