Class: ChargeBee::CreditUnit
- Defined in:
- lib/chargebee/models/credit_unit.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#created_by ⇒ Object
Returns the value of attribute created_by.
-
#external_name ⇒ Object
Returns the value of attribute external_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_unlimited ⇒ Object
Returns the value of attribute is_unlimited.
-
#name ⇒ Object
Returns the value of attribute name.
-
#overdraft_amount ⇒ Object
Returns the value of attribute overdraft_amount.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#updated_by ⇒ Object
Returns the value of attribute updated_by.
Class Method Summary collapse
- .archive(id, env = nil, headers = {}) ⇒ Object
- .create(params, env = nil, headers = {}) ⇒ Object
-
.list(params = {}, env = nil, headers = {}) ⇒ Object
OPERATIONS -----------.
- .reactivate(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, #respond_to_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
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def created_at @created_at end |
#created_by ⇒ Object
Returns the value of attribute created_by.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def created_by @created_by end |
#external_name ⇒ Object
Returns the value of attribute external_name.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def external_name @external_name end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def id @id end |
#is_unlimited ⇒ Object
Returns the value of attribute is_unlimited.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def is_unlimited @is_unlimited end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def name @name end |
#overdraft_amount ⇒ Object
Returns the value of attribute overdraft_amount.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def overdraft_amount @overdraft_amount end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def resource_version @resource_version end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def updated_at @updated_at end |
#updated_by ⇒ Object
Returns the value of attribute updated_by.
4 5 6 |
# File 'lib/chargebee/models/credit_unit.rb', line 4 def updated_by @updated_by end |
Class Method Details
.archive(id, env = nil, headers = {}) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/chargebee/models/credit_unit.rb', line 35 def self.archive(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("credit_units",id.to_s,"archive_command"), {}, env, headers,nil, false, jsonKeys, , "creditUnit", "archive") end |
.create(params, env = nil, headers = {}) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/chargebee/models/credit_unit.rb', line 17 def self.create(params, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("credit_units"), params, env, headers,nil, false, jsonKeys, , "creditUnit", "create") end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
OPERATIONS
10 11 12 13 14 15 |
# File 'lib/chargebee/models/credit_unit.rb', line 10 def self.list(params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send_list_request('get', uri_path("credit_units"), params, env, headers,nil, false, jsonKeys, , "creditUnit", "list") end |
.reactivate(id, env = nil, headers = {}) ⇒ Object
44 45 46 47 48 49 50 51 |
# File 'lib/chargebee/models/credit_unit.rb', line 44 def self.reactivate(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("credit_units",id.to_s,"reactivate_command"), {}, env, headers,nil, false, jsonKeys, , "creditUnit", "reactivate") end |
.update(id, params = {}, env = nil, headers = {}) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/chargebee/models/credit_unit.rb', line 26 def self.update(id, params={}, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("credit_units",id.to_s), params, env, headers,nil, false, jsonKeys, , "creditUnit", "update") end |