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.
-
#end_balance ⇒ Object
Returns the value of attribute end_balance.
-
#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.
-
#start_balance ⇒ Object
Returns the value of attribute 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 |
#end_balance ⇒ Object
Returns the value of attribute end_balance.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def end_balance @end_balance 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 |
#start_balance ⇒ Object
Returns the value of attribute start_balance.
4 5 6 |
# File 'lib/chargebee/models/ledger_operation.rb', line 4 def start_balance @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
34 35 36 37 38 39 40 |
# File 'lib/chargebee/models/ledger_operation.rb', line 34 def self.(params, env=nil, headers={}) jsonKeys = { :metadata => 0, } = {} Request.send('post', uri_path("ledger_operations","authorize"), params, env, headers,nil, true, jsonKeys, ) end |
.capture(params, env = nil, headers = {}) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/chargebee/models/ledger_operation.rb', line 26 def self.capture(params, env=nil, headers={}) jsonKeys = { :metadata => 0, } = {} Request.send('post', uri_path("ledger_operations","capture"), params, env, headers,nil, true, jsonKeys, ) end |
.capture_authorization(params, env = nil, headers = {}) ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/chargebee/models/ledger_operation.rb', line 42 def self.(params, env=nil, headers={}) jsonKeys = { :metadata => 0, } = {} Request.send('post', uri_path("ledger_operations","capture_authorization"), params, env, headers,nil, true, jsonKeys, ) end |
.list_ledger_operations(params, env = nil, headers = {}) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/chargebee/models/ledger_operation.rb', line 19 def self.list_ledger_operations(params, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("ledger_operations"), params, env, headers,nil, false, jsonKeys, ) end |
.release_authorization(params, env = nil, headers = {}) ⇒ Object
50 51 52 53 54 55 56 |
# File 'lib/chargebee/models/ledger_operation.rb', line 50 def self.(params, env=nil, headers={}) jsonKeys = { :metadata => 0, } = {} Request.send('post', uri_path("ledger_operations","release_authorization"), params, env, headers,nil, true, jsonKeys, ) end |
.retrieve_ledger_operation(id, env = nil, headers = {}) ⇒ Object
OPERATIONS
12 13 14 15 16 17 |
# File 'lib/chargebee/models/ledger_operation.rb', line 12 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, ) end |