Sha256: 2cf16e0e02edd37360719984ba8dcd606164fef616ea647455e91828b0a7fc5a

Contents?: true

Size: 921 Bytes

Versions: 39

Compression:

Stored size: 921 Bytes

Contents

module ChargeBee
  class ItemEntitlement < Model

  attr_accessor :id, :item_id, :item_type, :feature_id, :feature_name, :value, :name

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

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

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

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

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

  end # ~ItemEntitlement
end # ~ChargeBee

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
chargebee-2.47.0.beta.1 lib/chargebee/models/item_entitlement.rb
chargebee-2.46.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.45.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.44.1 lib/chargebee/models/item_entitlement.rb
chargebee-2.44.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.43.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.42.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.41.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.40.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.38.1 lib/chargebee/models/item_entitlement.rb
chargebee-2.38.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.37.1 lib/chargebee/models/item_entitlement.rb
chargebee-2.37.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.36.2 lib/chargebee/models/item_entitlement.rb
chargebee-2.36.1 lib/chargebee/models/item_entitlement.rb
chargebee-2.36.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.35.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.34.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.33.0 lib/chargebee/models/item_entitlement.rb
chargebee-2.32.0 lib/chargebee/models/item_entitlement.rb