Class: ChargeBee::Addon

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

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

#accounting_category1Object

Returns the value of attribute accounting_category1.



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

def accounting_category1
  @accounting_category1
end

#accounting_category2Object

Returns the value of attribute accounting_category2.



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

def accounting_category2
  @accounting_category2
end

#accounting_codeObject

Returns the value of attribute accounting_code.



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

def accounting_code
  @accounting_code
end

#archived_atObject

Returns the value of attribute archived_at.



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

def archived_at
  @archived_at
end

#charge_typeObject

Returns the value of attribute charge_type.



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

def charge_type
  @charge_type
end

#currency_codeObject

Returns the value of attribute currency_code.



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

def currency_code
  @currency_code
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#enabled_in_portalObject

Returns the value of attribute enabled_in_portal.



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

def enabled_in_portal
  @enabled_in_portal
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#invoice_nameObject

Returns the value of attribute invoice_name.



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

def invoice_name
  @invoice_name
end

#invoice_notesObject

Returns the value of attribute invoice_notes.



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

def invoice_notes
  @invoice_notes
end

#meta_dataObject

Returns the value of attribute meta_data.



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

def 
  
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#periodObject

Returns the value of attribute period.



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

def period
  @period
end

#period_unitObject

Returns the value of attribute period_unit.



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

def period_unit
  @period_unit
end

#priceObject

Returns the value of attribute price.



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

def price
  @price
end

#resource_versionObject

Returns the value of attribute resource_version.



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

def resource_version
  @resource_version
end

#skuObject

Returns the value of attribute sku.



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

def sku
  @sku
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#tax_codeObject

Returns the value of attribute tax_code.



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

def tax_code
  @tax_code
end

#tax_profile_idObject

Returns the value of attribute tax_profile_id.



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

def tax_profile_id
  @tax_profile_id
end

#taxableObject

Returns the value of attribute taxable.



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

def taxable
  @taxable
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

#unitObject

Returns the value of attribute unit.



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

def unit
  @unit
end

#updated_atObject

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end

Class Method Details

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



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

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

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

OPERATIONS




12
13
14
# File 'lib/chargebee/models/addon.rb', line 12

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

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



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

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

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



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

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

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



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

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

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



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

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

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



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

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