Class: ChargeBee::LedgerOperation

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/ledger_operation.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, #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

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#auto_release_timestampObject

Returns the value of attribute auto_release_timestamp.



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

def auto_release_timestamp
  @auto_release_timestamp
end

#created_atObject

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_balanceObject

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

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#ledger_operation_timestampObject

Returns the value of attribute ledger_operation_timestamp.



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

def ledger_operation_timestamp
  @ledger_operation_timestamp
end

#metadataObject

Returns the value of attribute metadata.



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

def 
  @metadata
end

#modified_atObject

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_balanceObject

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_balanceObject

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_idObject

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_balanceObject

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_balanceObject

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_balanceObject

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_idObject

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

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

#unit_idObject

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_typeObject

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.authorize(params, env=nil, headers={})
  jsonKeys = { 
      :metadata => 0,
  }
  options = {}
  Request.send('post', uri_path("ledger_operations","authorize"), params, env, headers,nil, true, jsonKeys, options)
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,
  }
  options = {}
  Request.send('post', uri_path("ledger_operations","capture"), params, env, headers,nil, true, jsonKeys, options)
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.capture_authorization(params, env=nil, headers={})
  jsonKeys = { 
      :metadata => 0,
  }
  options = {}
  Request.send('post', uri_path("ledger_operations","capture_authorization"), params, env, headers,nil, true, jsonKeys, options)
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 = { 
  }
  options = {}
  Request.send('get', uri_path("ledger_operations"), params, env, headers,nil, false, jsonKeys, options)
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.release_authorization(params, env=nil, headers={})
  jsonKeys = { 
      :metadata => 0,
  }
  options = {}
  Request.send('post', uri_path("ledger_operations","release_authorization"), params, env, headers,nil, true, jsonKeys, options)
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 = { 
  }
  options = {}
  Request.send('get', uri_path("ledger_operations",id.to_s), {}, env, headers,nil, false, jsonKeys, options)
end