Class: ChargeBee::Item
Defined Under Namespace
Classes: ApplicableItem, BundleConfiguration, BundleItem
Instance Attribute Summary collapse
-
#applicable_items ⇒ Object
Returns the value of attribute applicable_items.
-
#archived_at ⇒ Object
Returns the value of attribute archived_at.
-
#bundle_configuration ⇒ Object
Returns the value of attribute bundle_configuration.
-
#bundle_items ⇒ Object
Returns the value of attribute bundle_items.
-
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#description ⇒ Object
Returns the value of attribute description.
-
#enabled_for_checkout ⇒ Object
Returns the value of attribute enabled_for_checkout.
-
#enabled_in_portal ⇒ Object
Returns the value of attribute enabled_in_portal.
-
#external_name ⇒ Object
Returns the value of attribute external_name.
-
#gift_claim_redirect_url ⇒ Object
Returns the value of attribute gift_claim_redirect_url.
-
#id ⇒ Object
Returns the value of attribute id.
-
#included_in_mrr ⇒ Object
Returns the value of attribute included_in_mrr.
-
#is_giftable ⇒ Object
Returns the value of attribute is_giftable.
-
#is_shippable ⇒ Object
Returns the value of attribute is_shippable.
-
#item_applicability ⇒ Object
Returns the value of attribute item_applicability.
-
#item_family_id ⇒ Object
Returns the value of attribute item_family_id.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#metered ⇒ Object
Returns the value of attribute metered.
-
#name ⇒ Object
Returns the value of attribute name.
-
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unit ⇒ Object
Returns the value of attribute unit.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#usage_calculation ⇒ Object
Returns the value of attribute usage_calculation.
Class Method Summary collapse
-
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .update(id, params = {}, env = nil, headers = {}) ⇒ Object
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_items ⇒ Object
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_at ⇒ Object
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_configuration ⇒ Object
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_items ⇒ Object
Returns the value of attribute bundle_items.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def bundle_items @bundle_items end |
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def business_entity_id @business_entity_id end |
#channel ⇒ Object
Returns the value of attribute channel.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def channel @channel end |
#description ⇒ Object
Returns the value of attribute description.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def description @description end |
#enabled_for_checkout ⇒ Object
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_portal ⇒ Object
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_name ⇒ Object
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_url ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def id @id end |
#included_in_mrr ⇒ Object
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_giftable ⇒ Object
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_shippable ⇒ Object
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_applicability ⇒ Object
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_id ⇒ Object
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 |
#metadata ⇒ Object
Returns the value of attribute metadata.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def @metadata end |
#metered ⇒ Object
Returns the value of attribute metered.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def metered @metered end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def name @name end |
#redirect_url ⇒ Object
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_version ⇒ Object
Returns the value of attribute resource_version.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def resource_version @resource_version end |
#status ⇒ Object
Returns the value of attribute status.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def type @type end |
#unit ⇒ Object
Returns the value of attribute unit.
16 17 18 |
# File 'lib/chargebee/models/item.rb', line 16 def unit @unit end |
#updated_at ⇒ Object
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_calculation ⇒ Object
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
25 26 27 |
# File 'lib/chargebee/models/item.rb', line 25 def self.create(params, env=nil, headers={}) Request.send('post', uri_path("items"), params, env, headers) end |
.delete(id, env = nil, headers = {}) ⇒ Object
41 42 43 |
# File 'lib/chargebee/models/item.rb', line 41 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
37 38 39 |
# File 'lib/chargebee/models/item.rb', line 37 def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("items"), params, env, headers) end |