Class: CheckoutSdk::Previous::Reconciliation::ReconciliationClient

Inherits:
Client
  • Object
show all
Defined in:
lib/checkout_sdk/reconciliation/reconciliation_client.rb

Instance Attribute Summary

Attributes inherited from Client

#api_client, #authorization_type, #configuration

Instance Method Summary collapse

Constructor Details

#initialize(api_client, configuration) ⇒ ReconciliationClient

Returns a new instance of ReconciliationClient.

Parameters:



15
16
17
# File 'lib/checkout_sdk/reconciliation/reconciliation_client.rb', line 15

def initialize(api_client, configuration)
  super(api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY)
end

Instance Method Details

#query_payments_report(payments_filter) ⇒ Object

Parameters:



20
21
22
# File 'lib/checkout_sdk/reconciliation/reconciliation_client.rb', line 20

def query_payments_report(payments_filter)
  api_client.invoke_get(build_path(REPORTING, PAYMENTS), sdk_authorization, payments_filter)
end

#query_statements_report(data_range) ⇒ Object

Parameters:



30
31
32
# File 'lib/checkout_sdk/reconciliation/reconciliation_client.rb', line 30

def query_statements_report(data_range)
  api_client.invoke_get(build_path(REPORTING, STATEMENTS), sdk_authorization, data_range)
end

#retrieve_csv_payment_report(data_range) ⇒ Object

Parameters:



35
36
37
# File 'lib/checkout_sdk/reconciliation/reconciliation_client.rb', line 35

def retrieve_csv_payment_report(data_range)
  api_client.invoke_get(build_path(REPORTING, PAYMENTS, DOWNLOAD), sdk_authorization, data_range)
end

#retrieve_csv_single_statement_report(statement_id) ⇒ Object

Parameters:

  • statement_id (String)


40
41
42
# File 'lib/checkout_sdk/reconciliation/reconciliation_client.rb', line 40

def retrieve_csv_single_statement_report(statement_id)
  api_client.invoke_get(build_path(REPORTING, STATEMENTS, statement_id, PAYMENTS, DOWNLOAD), sdk_authorization)
end

#retrieve_csv_statements_report(data_range) ⇒ Object

Parameters:



45
46
47
# File 'lib/checkout_sdk/reconciliation/reconciliation_client.rb', line 45

def retrieve_csv_statements_report(data_range)
  api_client.invoke_get(build_path(REPORTING, STATEMENTS, DOWNLOAD), sdk_authorization, data_range)
end

#single_payment_report(payment_id) ⇒ Object

Parameters:

  • payment_id (String)


25
26
27
# File 'lib/checkout_sdk/reconciliation/reconciliation_client.rb', line 25

def single_payment_report(payment_id)
  api_client.invoke_get(build_path(REPORTING, PAYMENTS, payment_id), sdk_authorization)
end