Class: ChargeBee::LedgerOperation
- Defined in:
- lib/chargebee/models/ledger_operation.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#auto_release_timestamp ⇒ Object
Returns the value of attribute auto_release_timestamp.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#ledger_operation_timestamp ⇒ Object
Returns the value of attribute ledger_operation_timestamp.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#modified_at ⇒ Object
Returns the value of attribute modified_at.
-
#overdraft_end_balance ⇒ Object
Returns the value of attribute overdraft_end_balance.
-
#overdraft_start_balance ⇒ Object
Returns the value of attribute overdraft_start_balance.
-
#parent_ledger_operation_id ⇒ Object
Returns the value of attribute parent_ledger_operation_id.
-
#provisioned_end_balance ⇒ Object
Returns the value of attribute provisioned_end_balance.
-
#provisioned_start_balance ⇒ Object
Returns the value of attribute provisioned_start_balance.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unit_id ⇒ Object
Returns the value of attribute unit_id.
-
#unit_type ⇒ Object
Returns the value of attribute unit_type.
Class Method Summary collapse
- .authorize(params, env = nil, headers = {}) ⇒ Object
- .capture(params, env = nil, headers = {}) ⇒ Object
- .capture_authorization(params, env = nil, headers = {}) ⇒ Object
- .list_ledger_operations(params, env = nil, headers = {}) ⇒ Object
- .release_authorization(params, env = nil, headers = {}) ⇒ Object
-
.retrieve_ledger_operation(id, env = nil, headers = {}) ⇒ Object
OPERATIONS -----------.
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
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def amount @amount end |
#auto_release_timestamp ⇒ Object
Returns the value of attribute auto_release_timestamp.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def @auto_release_timestamp end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def id @id end |
#ledger_operation_timestamp ⇒ Object
Returns the value of attribute ledger_operation_timestamp.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def @ledger_operation_timestamp end |
#metadata ⇒ Object
Returns the value of attribute metadata.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def @metadata end |
#modified_at ⇒ Object
Returns the value of attribute modified_at.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def modified_at @modified_at end |
#overdraft_end_balance ⇒ Object
Returns the value of attribute overdraft_end_balance.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def overdraft_end_balance @overdraft_end_balance end |
#overdraft_start_balance ⇒ Object
Returns the value of attribute overdraft_start_balance.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def overdraft_start_balance @overdraft_start_balance end |
#parent_ledger_operation_id ⇒ Object
Returns the value of attribute parent_ledger_operation_id.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def parent_ledger_operation_id @parent_ledger_operation_id end |
#provisioned_end_balance ⇒ Object
Returns the value of attribute provisioned_end_balance.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def provisioned_end_balance @provisioned_end_balance end |
#provisioned_start_balance ⇒ Object
Returns the value of attribute provisioned_start_balance.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def provisioned_start_balance @provisioned_start_balance end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def subscription_id @subscription_id end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def type @type end |
#unit_id ⇒ Object
Returns the value of attribute unit_id.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def unit_id @unit_id end |
#unit_type ⇒ Object
Returns the value of attribute unit_type.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def unit_type @unit_type end |
Class Method Details
.authorize(params, env = nil, headers = {}) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/chargebee/models/ledger_operation.rb', line 33 def self.(params, env=nil, headers={}) jsonKeys = { :metadata => 0, } = {} Request.send('post', uri_path("ledger_operations","authorize"), params, env, headers,nil, true, jsonKeys, , "ledgerOperation", "authorize") end |
.capture(params, env = nil, headers = {}) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/chargebee/models/ledger_operation.rb', line 25 def self.capture(params, env=nil, headers={}) jsonKeys = { :metadata => 0, } = {} Request.send('post', uri_path("ledger_operations","capture"), params, env, headers,nil, true, jsonKeys, , "ledgerOperation", "capture") end |
.capture_authorization(params, env = nil, headers = {}) ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/chargebee/models/ledger_operation.rb', line 41 def self.(params, env=nil, headers={}) jsonKeys = { :metadata => 0, } = {} Request.send('post', uri_path("ledger_operations","capture_authorization"), params, env, headers,nil, true, jsonKeys, , "ledgerOperation", "captureAuthorization") end |
.list_ledger_operations(params, env = nil, headers = {}) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/chargebee/models/ledger_operation.rb', line 18 def self.list_ledger_operations(params, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("ledger_operations"), params, env, headers,nil, false, jsonKeys, , "ledgerOperation", "listLedgerOperations") end |
.release_authorization(params, env = nil, headers = {}) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/chargebee/models/ledger_operation.rb', line 49 def self.(params, env=nil, headers={}) jsonKeys = { :metadata => 0, } = {} Request.send('post', uri_path("ledger_operations","release_authorization"), params, env, headers,nil, true, jsonKeys, , "ledgerOperation", "releaseAuthorization") end |
.retrieve_ledger_operation(id, env = nil, headers = {}) ⇒ Object
OPERATIONS
11 12 13 14 15 16 |
# File 'lib/chargebee/models/ledger_operation.rb', line 11 def self.retrieve_ledger_operation(id, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("ledger_operations",id.to_s), {}, env, headers,nil, false, jsonKeys, , "ledgerOperation", "retrieveLedgerOperation") end |