Sha256: 449a5991768c119adb8855e0082f1166959f846e597a11af80565021c7191ba9

Contents?: true

Size: 1.04 KB

Versions: 39

Compression:

Stored size: 1.04 KB

Contents

module ChargeBee
  class AttachedItem < Model

  attr_accessor :id, :parent_item_id, :item_id, :type, :status, :quantity, :quantity_in_decimal,
  :billing_cycles, :charge_on_event, :charge_once, :created_at, :resource_version, :updated_at,
  :channel

  # OPERATIONS
  #-----------

  def self.create(id, params, env=nil, headers={})
    Request.send('post', uri_path("items",id.to_s,"attached_items"), params, env, headers)
  end

  def self.update(id, params, env=nil, headers={})
    Request.send('post', uri_path("attached_items",id.to_s), params, env, headers)
  end

  def self.retrieve(id, params, env=nil, headers={})
    Request.send('get', uri_path("attached_items",id.to_s), params, env, headers)
  end

  def self.delete(id, params, env=nil, headers={})
    Request.send('post', uri_path("attached_items",id.to_s,"delete"), params, env, headers)
  end

  def self.list(id, params={}, env=nil, headers={})
    Request.send_list_request('get', uri_path("items",id.to_s,"attached_items"), params, env, headers)
  end

  end # ~AttachedItem
end # ~ChargeBee

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
chargebee-2.45.0 lib/chargebee/models/attached_item.rb
chargebee-2.44.1 lib/chargebee/models/attached_item.rb
chargebee-2.44.0 lib/chargebee/models/attached_item.rb
chargebee-2.43.0 lib/chargebee/models/attached_item.rb
chargebee-2.42.0 lib/chargebee/models/attached_item.rb
chargebee-2.41.0 lib/chargebee/models/attached_item.rb
chargebee-2.40.0 lib/chargebee/models/attached_item.rb
chargebee-2.38.1 lib/chargebee/models/attached_item.rb
chargebee-2.38.0 lib/chargebee/models/attached_item.rb
chargebee-2.37.1 lib/chargebee/models/attached_item.rb
chargebee-2.37.0 lib/chargebee/models/attached_item.rb
chargebee-2.36.2 lib/chargebee/models/attached_item.rb
chargebee-2.36.1 lib/chargebee/models/attached_item.rb
chargebee-2.36.0 lib/chargebee/models/attached_item.rb
chargebee-2.35.0 lib/chargebee/models/attached_item.rb
chargebee-2.34.0 lib/chargebee/models/attached_item.rb
chargebee-2.33.0 lib/chargebee/models/attached_item.rb
chargebee-2.32.0 lib/chargebee/models/attached_item.rb
chargebee-2.31.1 lib/chargebee/models/attached_item.rb
chargebee-2.31.0 lib/chargebee/models/attached_item.rb