Class: ChargeBee::AttachedItem

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

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

#billing_cyclesObject

Returns the value of attribute billing_cycles.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def billing_cycles
  @billing_cycles
end

#business_entity_idObject

Returns the value of attribute business_entity_id.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def business_entity_id
  @business_entity_id
end

#channelObject

Returns the value of attribute channel.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def channel
  @channel
end

#charge_on_eventObject

Returns the value of attribute charge_on_event.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def charge_on_event
  @charge_on_event
end

#charge_onceObject

Returns the value of attribute charge_once.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def charge_once
  @charge_once
end

#created_atObject

Returns the value of attribute created_at.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def id
  @id
end

#item_idObject

Returns the value of attribute item_id.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def item_id
  @item_id
end

#parent_item_idObject

Returns the value of attribute parent_item_id.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def parent_item_id
  @parent_item_id
end

#quantityObject

Returns the value of attribute quantity.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def quantity
  @quantity
end

#quantity_in_decimalObject

Returns the value of attribute quantity_in_decimal.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def quantity_in_decimal
  @quantity_in_decimal
end

#resource_versionObject

Returns the value of attribute resource_version.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def resource_version
  @resource_version
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def status
  @status
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def type
  @type
end

#updated_atObject

Returns the value of attribute updated_at.



4
5
6
# File 'lib/chargebee/models/attached_item.rb', line 4

def updated_at
  @updated_at
end

Class Method Details

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

OPERATIONS




11
12
13
# File 'lib/chargebee/models/attached_item.rb', line 11

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

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



23
24
25
# File 'lib/chargebee/models/attached_item.rb', line 23

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

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



27
28
29
# File 'lib/chargebee/models/attached_item.rb', line 27

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

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



19
20
21
# File 'lib/chargebee/models/attached_item.rb', line 19

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

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



15
16
17
# File 'lib/chargebee/models/attached_item.rb', line 15

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