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

#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

#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



33
34
35
36
37
38
39
# File 'lib/chargebee/models/ledger_operation.rb', line 33

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