Sha256: b20fec4fdb1b728fa500ebeaa3e5e3f7617d48a019fc89f6c4bd2e0769bcc4c1

Contents?: true

Size: 1.15 KB

Versions: 36

Compression:

Stored size: 1.15 KB

Contents

module ChargeBee
  class Item < Model

    class ApplicableItem < Model
      attr_accessor :id
    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, :metadata

  # 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

36 entries across 36 versions & 1 rubygems

Version Path
chargebee-2.43.0 lib/chargebee/models/item.rb
chargebee-2.42.0 lib/chargebee/models/item.rb
chargebee-2.41.0 lib/chargebee/models/item.rb
chargebee-2.40.0 lib/chargebee/models/item.rb
chargebee-2.38.1 lib/chargebee/models/item.rb
chargebee-2.38.0 lib/chargebee/models/item.rb
chargebee-2.37.1 lib/chargebee/models/item.rb
chargebee-2.37.0 lib/chargebee/models/item.rb
chargebee-2.36.2 lib/chargebee/models/item.rb
chargebee-2.36.1 lib/chargebee/models/item.rb
chargebee-2.36.0 lib/chargebee/models/item.rb
chargebee-2.35.0 lib/chargebee/models/item.rb
chargebee-2.34.0 lib/chargebee/models/item.rb
chargebee-2.33.0 lib/chargebee/models/item.rb
chargebee-2.32.0 lib/chargebee/models/item.rb
chargebee-2.31.1 lib/chargebee/models/item.rb
chargebee-2.31.0 lib/chargebee/models/item.rb
chargebee-2.30.0 lib/chargebee/models/item.rb
chargebee-2.29.0 lib/chargebee/models/item.rb
chargebee-2.28.0 lib/chargebee/models/item.rb