Class: ChargeBee::Item

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

Defined Under Namespace

Classes: ApplicableItem, BundleConfiguration, BundleItem

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #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.



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

def applicable_items
  @applicable_items
end

#archived_atObject

Returns the value of attribute archived_at.



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

def archived_at
  @archived_at
end

#bundle_configurationObject

Returns the value of attribute bundle_configuration.



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

def bundle_configuration
  @bundle_configuration
end

#bundle_itemsObject

Returns the value of attribute bundle_items.



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

def bundle_items
  @bundle_items
end

#channelObject

Returns the value of attribute channel.



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

def channel
  @channel
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#enabled_for_checkoutObject

Returns the value of attribute enabled_for_checkout.



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

def enabled_for_checkout
  @enabled_for_checkout
end

#enabled_in_portalObject

Returns the value of attribute enabled_in_portal.



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

def enabled_in_portal
  @enabled_in_portal
end

#external_nameObject

Returns the value of attribute external_name.



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

def external_name
  @external_name
end

#gift_claim_redirect_urlObject

Returns the value of attribute gift_claim_redirect_url.



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

def gift_claim_redirect_url
  @gift_claim_redirect_url
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#included_in_mrrObject

Returns the value of attribute included_in_mrr.



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

def included_in_mrr
  @included_in_mrr
end

#is_giftableObject

Returns the value of attribute is_giftable.



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

def is_giftable
  @is_giftable
end

#is_shippableObject

Returns the value of attribute is_shippable.



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

def is_shippable
  @is_shippable
end

#item_applicabilityObject

Returns the value of attribute item_applicability.



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

def item_applicability
  @item_applicability
end

#item_family_idObject

Returns the value of attribute item_family_id.



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

def item_family_id
  @item_family_id
end

#metadataObject

Returns the value of attribute metadata.



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

def 
  @metadata
end

#meteredObject

Returns the value of attribute metered.



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

def metered
  @metered
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#redirect_urlObject

Returns the value of attribute redirect_url.



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

def redirect_url
  @redirect_url
end

#resource_versionObject

Returns the value of attribute resource_version.



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

def resource_version
  @resource_version
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

#unitObject

Returns the value of attribute unit.



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

def unit
  @unit
end

#updated_atObject

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end

#usage_calculationObject

Returns the value of attribute usage_calculation.



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

def usage_calculation
  @usage_calculation
end

Class Method Details

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

OPERATIONS




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

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

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



40
41
42
# File 'lib/chargebee/models/item.rb', line 40

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



36
37
38
# File 'lib/chargebee/models/item.rb', line 36

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



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

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



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

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