Class: ChargeBee::Item

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/item.rb

Defined Under Namespace

Classes: ApplicableItem

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #to_s, uri_path

Constructor Details

This class inherits a constructor from ChargeBee::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeBee::Model

Instance Attribute Details

#applicable_itemsObject

Returns the value of attribute applicable_items.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def applicable_items
  @applicable_items
end

#archived_atObject

Returns the value of attribute archived_at.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def archived_at
  @archived_at
end

#channelObject

Returns the value of attribute channel.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def channel
  @channel
end

#descriptionObject

Returns the value of attribute description.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def description
  @description
end

#enabled_for_checkoutObject

Returns the value of attribute enabled_for_checkout.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def enabled_for_checkout
  @enabled_for_checkout
end

#enabled_in_portalObject

Returns the value of attribute enabled_in_portal.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def enabled_in_portal
  @enabled_in_portal
end

#external_nameObject

Returns the value of attribute external_name.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def external_name
  @external_name
end

#gift_claim_redirect_urlObject

Returns the value of attribute gift_claim_redirect_url.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def gift_claim_redirect_url
  @gift_claim_redirect_url
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def id
  @id
end

#included_in_mrrObject

Returns the value of attribute included_in_mrr.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def included_in_mrr
  @included_in_mrr
end

#is_giftableObject

Returns the value of attribute is_giftable.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def is_giftable
  @is_giftable
end

#is_shippableObject

Returns the value of attribute is_shippable.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def is_shippable
  @is_shippable
end

#item_applicabilityObject

Returns the value of attribute item_applicability.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def item_applicability
  @item_applicability
end

#item_family_idObject

Returns the value of attribute item_family_id.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def item_family_id
  @item_family_id
end

#metadataObject

Returns the value of attribute metadata.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def 
  @metadata
end

#meteredObject

Returns the value of attribute metered.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def metered
  @metered
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def name
  @name
end

#redirect_urlObject

Returns the value of attribute redirect_url.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def redirect_url
  @redirect_url
end

#resource_versionObject

Returns the value of attribute resource_version.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def resource_version
  @resource_version
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def status
  @status
end

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def type
  @type
end

#unitObject

Returns the value of attribute unit.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def unit
  @unit
end

#updated_atObject

Returns the value of attribute updated_at.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def updated_at
  @updated_at
end

#usage_calculationObject

Returns the value of attribute usage_calculation.



8
9
10
# File 'lib/chargebee/models/item.rb', line 8

def usage_calculation
  @usage_calculation
end

Class Method Details

.create(params, env = nil, headers = {}) ⇒ Object

OPERATIONS




16
17
18
# File 'lib/chargebee/models/item.rb', line 16

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

.delete(id, env = nil, headers = {}) ⇒ Object



32
33
34
# File 'lib/chargebee/models/item.rb', line 32

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

.list(params = {}, env = nil, headers = {}) ⇒ Object



28
29
30
# File 'lib/chargebee/models/item.rb', line 28

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

.retrieve(id, env = nil, headers = {}) ⇒ Object



20
21
22
# File 'lib/chargebee/models/item.rb', line 20

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

.update(id, params = {}, env = nil, headers = {}) ⇒ Object



24
25
26
# File 'lib/chargebee/models/item.rb', line 24

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