Skip to content

Latest commit

 

History

History
549 lines (403 loc) · 15.9 KB

File metadata and controls

549 lines (403 loc) · 15.9 KB

TripletexRubyClient::BankreconciliationApi

All URIs are relative to https://tripletex.no/v2

Method HTTP request Description
adjustment PUT /bank/reconciliation/{id}/:adjustment [BETA] Add an adjustment to reconciliation by ID.
closed_with_unmatched_transactions GET /bank/reconciliation/closedWithUnmatchedTransactions [BETA] Get the last closed reconciliation with unmached transactions by account ID.
delete DELETE /bank/reconciliation/{id} [BETA] Delete bank reconciliation by ID.
get GET /bank/reconciliation/{id} [BETA] Get bank reconciliation.
last_closed GET /bank/reconciliation/>lastClosed [BETA] Get last closed reconciliation by account ID.
post POST /bank/reconciliation [BETA] Post a bank reconciliation.
put PUT /bank/reconciliation/{id} [BETA] Update a bank reconciliation.
search GET /bank/reconciliation [BETA] Find bank reconciliation corresponding with sent data.

adjustment

ListResponseBankReconciliationAdjustment adjustment(id, opts)

[BETA] Add an adjustment to reconciliation by ID.

Example

# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
#   # Configure HTTP basic authorization: tokenAuthScheme
#   config.username = 'YOUR USERNAME'
#   config.password = 'YOUR PASSWORD'
# end
# Setup authorization
# 
TripletexRubyClient.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
  config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
  config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
  config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::BankreconciliationApi.new

id = 56 # Integer | Element ID

opts = { 
  body: [TripletexRubyClient::BankReconciliationAdjustment.new] # Array<BankReconciliationAdjustment> | Adjustments
}

begin
  #[BETA] Add an adjustment to reconciliation by ID.
  result = api_instance.adjustment(id, opts)
  p result
rescue TripletexRubyClient::ApiError => e
  puts "Exception when calling BankreconciliationApi->adjustment: #{e}"
end

Parameters

Name Type Description Notes
id Integer Element ID
body Array<BankReconciliationAdjustment> Adjustments [optional]

Return type

ListResponseBankReconciliationAdjustment

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: Not defined

closed_with_unmatched_transactions

ResponseWrapperBankReconciliation closed_with_unmatched_transactions(account_id, opts)

[BETA] Get the last closed reconciliation with unmached transactions by account ID.

Example

# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
#   # Configure HTTP basic authorization: tokenAuthScheme
#   config.username = 'YOUR USERNAME'
#   config.password = 'YOUR PASSWORD'
# end
# Setup authorization
# 
TripletexRubyClient.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
  config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
  config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
  config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::BankreconciliationApi.new

account_id = 56 # Integer | Account ID

opts = { 
  start: 'start_example', # String | Format is yyyy-MM-dd
  fields: 'fields_example' # String | Fields filter pattern
}

begin
  #[BETA] Get the last closed reconciliation with unmached transactions by account ID.
  result = api_instance.closed_with_unmatched_transactions(account_id, opts)
  p result
rescue TripletexRubyClient::ApiError => e
  puts "Exception when calling BankreconciliationApi->closed_with_unmatched_transactions: #{e}"
end

Parameters

Name Type Description Notes
account_id Integer Account ID
start String Format is yyyy-MM-dd [optional]
fields String Fields filter pattern [optional]

Return type

ResponseWrapperBankReconciliation

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

delete

delete(id)

[BETA] Delete bank reconciliation by ID.

Example

# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
#   # Configure HTTP basic authorization: tokenAuthScheme
#   config.username = 'YOUR USERNAME'
#   config.password = 'YOUR PASSWORD'
# end
# Setup authorization
# 
TripletexRubyClient.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
  config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
  config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
  config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::BankreconciliationApi.new

id = 56 # Integer | Element ID


begin
  #[BETA] Delete bank reconciliation by ID.
  api_instance.delete(id)
rescue TripletexRubyClient::ApiError => e
  puts "Exception when calling BankreconciliationApi->delete: #{e}"
end

Parameters

Name Type Description Notes
id Integer Element ID

Return type

nil (empty response body)

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

get

ResponseWrapperBankReconciliation get(id, opts)

[BETA] Get bank reconciliation.

Example

# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
#   # Configure HTTP basic authorization: tokenAuthScheme
#   config.username = 'YOUR USERNAME'
#   config.password = 'YOUR PASSWORD'
# end
# Setup authorization
# 
TripletexRubyClient.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
  config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
  config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
  config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::BankreconciliationApi.new

id = 56 # Integer | Element ID

opts = { 
  fields: 'fields_example' # String | Fields filter pattern
}

begin
  #[BETA] Get bank reconciliation.
  result = api_instance.get(id, opts)
  p result
rescue TripletexRubyClient::ApiError => e
  puts "Exception when calling BankreconciliationApi->get: #{e}"
end

Parameters

Name Type Description Notes
id Integer Element ID
fields String Fields filter pattern [optional]

Return type

ResponseWrapperBankReconciliation

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

last_closed

ResponseWrapperBankReconciliation last_closed(account_id, opts)

[BETA] Get last closed reconciliation by account ID.

Example

# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
#   # Configure HTTP basic authorization: tokenAuthScheme
#   config.username = 'YOUR USERNAME'
#   config.password = 'YOUR PASSWORD'
# end
# Setup authorization
# 
TripletexRubyClient.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
  config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
  config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
  config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::BankreconciliationApi.new

account_id = 56 # Integer | Account ID

opts = { 
  after: 'after_example', # String | Format is yyyy-MM-dd
  fields: 'fields_example' # String | Fields filter pattern
}

begin
  #[BETA] Get last closed reconciliation by account ID.
  result = api_instance.last_closed(account_id, opts)
  p result
rescue TripletexRubyClient::ApiError => e
  puts "Exception when calling BankreconciliationApi->last_closed: #{e}"
end

Parameters

Name Type Description Notes
account_id Integer Account ID
after String Format is yyyy-MM-dd [optional]
fields String Fields filter pattern [optional]

Return type

ResponseWrapperBankReconciliation

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

post

ResponseWrapperBankReconciliation post(opts)

[BETA] Post a bank reconciliation.

Example

# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
#   # Configure HTTP basic authorization: tokenAuthScheme
#   config.username = 'YOUR USERNAME'
#   config.password = 'YOUR PASSWORD'
# end
# Setup authorization
# 
TripletexRubyClient.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
  config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
  config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
  config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::BankreconciliationApi.new

opts = { 
  body: TripletexRubyClient::BankReconciliation.new # BankReconciliation | JSON representing the new object to be created. Should not have ID and version set.
}

begin
  #[BETA] Post a bank reconciliation.
  result = api_instance.post(opts)
  p result
rescue TripletexRubyClient::ApiError => e
  puts "Exception when calling BankreconciliationApi->post: #{e}"
end

Parameters

Name Type Description Notes
body BankReconciliation JSON representing the new object to be created. Should not have ID and version set. [optional]

Return type

ResponseWrapperBankReconciliation

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: Not defined

put

ResponseWrapperBankReconciliation put(id, opts)

[BETA] Update a bank reconciliation.

Example

# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
#   # Configure HTTP basic authorization: tokenAuthScheme
#   config.username = 'YOUR USERNAME'
#   config.password = 'YOUR PASSWORD'
# end
# Setup authorization
# 
TripletexRubyClient.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
  config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
  config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
  config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::BankreconciliationApi.new

id = 56 # Integer | Element ID

opts = { 
  body: TripletexRubyClient::BankReconciliation.new # BankReconciliation | Partial object describing what should be updated
}

begin
  #[BETA] Update a bank reconciliation.
  result = api_instance.put(id, opts)
  p result
rescue TripletexRubyClient::ApiError => e
  puts "Exception when calling BankreconciliationApi->put: #{e}"
end

Parameters

Name Type Description Notes
id Integer Element ID
body BankReconciliation Partial object describing what should be updated [optional]

Return type

ResponseWrapperBankReconciliation

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: Not defined

search

ListResponseBankReconciliation search(opts)

[BETA] Find bank reconciliation corresponding with sent data.

Example

# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
#   # Configure HTTP basic authorization: tokenAuthScheme
#   config.username = 'YOUR USERNAME'
#   config.password = 'YOUR PASSWORD'
# end
# Setup authorization
# 
TripletexRubyClient.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
  config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
  config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
  config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::BankreconciliationApi.new

opts = { 
  id: 'id_example', # String | List of IDs
  accounting_period_id: 'accounting_period_id_example', # String | List of IDs
  account_id: 'account_id_example', # String | List of IDs
  from: 0, # Integer | From index
  count: 1000, # Integer | Number of elements to return
  sorting: 'sorting_example', # String | Sorting pattern
  fields: 'fields_example' # String | Fields filter pattern
}

begin
  #[BETA] Find bank reconciliation corresponding with sent data.
  result = api_instance.search(opts)
  p result
rescue TripletexRubyClient::ApiError => e
  puts "Exception when calling BankreconciliationApi->search: #{e}"
end

Parameters

Name Type Description Notes
id String List of IDs [optional]
accounting_period_id String List of IDs [optional]
account_id String List of IDs [optional]
from Integer From index [optional] [default to 0]
count Integer Number of elements to return [optional] [default to 1000]
sorting String Sorting pattern [optional]
fields String Fields filter pattern [optional]

Return type

ListResponseBankReconciliation

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined