Class: CheckoutSdk::CheckoutApi

Inherits:
Object
  • Object
show all
Defined in:
lib/checkout_sdk/checkout_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ CheckoutApi

Returns a new instance of CheckoutApi.

Parameters:



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/checkout_sdk/checkout_api.rb', line 79

def initialize(configuration)
  api_client = base_api_client configuration
  @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
  @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
  @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
  @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
  @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
  @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
  @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
  @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
  @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
  @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
  @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
  @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
  @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
  @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
  @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
  @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
  @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
  @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
  @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
  @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
  @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
  @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
  @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
  @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
end

Instance Attribute Details

#accountsCheckoutSdk::Accounts::AccountsClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#balancesCheckoutSdk::Balances::BalancesClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#contextsCheckoutSdk::Payments::PaymentContextsClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#customersCheckoutSdk::Customers::CustomersClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#disputesCheckoutSdk::Disputes::DisputesClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#financialCheckoutSdk::Financial::FinancialClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#flowCheckoutSdk::Payments::FlowClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#forexCheckoutSdk::Forex::ForexClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#forwardCheckoutSdk::Forward::ForwardClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#hostedCheckoutSdk::Payments::HostedPaymentsClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#idealCheckoutSdk::Apm::IdealClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#instrumentsCheckoutSdk::Instruments::InstrumentsClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#issuingCheckoutSdk::Issuing::IssuingClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end


52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#metadataCheckoutSdk::Metadata::MetadataClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#payment_sessionsCheckoutSdk::Payments::PaymentSessionsClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#paymentsCheckoutSdk::Payments::PaymentsClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#payments_setupsCheckoutSdk::Payments::PaymentSetupsClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#reportsCheckoutSdk::Reports::ReportsClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#riskCheckoutSdk::Risk::RiskClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#sessionsCheckoutSdk::Sessions::SessionsClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#tokensCheckoutSdk::Tokens::TokensClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#transfersCheckoutSdk::Transfers::TransfersClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end

#workflowsCheckoutSdk::Workflows::WorkflowsClient



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/checkout_sdk/checkout_api.rb', line 52

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :forex,
              :hosted,
              :instruments,
              :links,
              :payments,
              :payments_setups,
              :flow,
              :reports,
              :sessions,
              :tokens,
              :ideal,
              :accounts,
              :workflows,
              :risk,
              :balances,
              :transfers,
              :metadata,
              :financial,
              :issuing,
              :contexts,
              :payment_sessions,
              :forward

  # @param [CheckoutConfiguration] configuration
  def initialize(configuration)
    api_client = base_api_client configuration
    @customers = CheckoutSdk::Customers::CustomersClient.new api_client, configuration
    @disputes = CheckoutSdk::Disputes::DisputesClient.new api_client, configuration
    @forex = CheckoutSdk::Forex::ForexClient.new api_client, configuration
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Payments::PaymentsClient.new api_client, configuration
    @reports = CheckoutSdk::Reports::ReportsClient.new api_client, configuration
    @sessions = CheckoutSdk::Sessions::SessionsClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @ideal = CheckoutSdk::Apm::IdealClient.new api_client, configuration
    @workflows = CheckoutSdk::Workflows::WorkflowsClient.new api_client, configuration
    @accounts = CheckoutSdk::Accounts::AccountsClient.new(api_client, files_client(configuration), configuration)
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @balances = CheckoutSdk::Balances::BalancesClient.new(balances_client(configuration), configuration)
    @transfers = CheckoutSdk::Transfers::TransfersClient.new(transfers_client(configuration), configuration)
    @metadata = CheckoutSdk::Metadata::MetadataClient.new api_client, configuration
    @financial = CheckoutSdk::Financial::FinancialClient.new api_client, configuration
    @issuing = CheckoutSdk::Issuing::IssuingClient.new api_client, configuration
    @contexts = CheckoutSdk::Payments::PaymentContextsClient.new api_client, configuration
    @payment_sessions = CheckoutSdk::Payments::PaymentSessionsClient.new api_client, configuration
    @payments_setups = CheckoutSdk::Payments::PaymentSetupsClient.new api_client, configuration
    @flow = CheckoutSdk::Payments::FlowClient.new api_client, configuration
    @forward = CheckoutSdk::Forward::ForwardClient.new(api_client, configuration)
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    base_uri = configuration.environment.base_uri
    subdomain = configuration.environment_subdomain

    base_uri = subdomain.base_uri if subdomain&.base_uri

    ApiClient.new(configuration, base_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def files_client(configuration)
    ApiClient.new(configuration, configuration.environment.files_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def balances_client(configuration)
    ApiClient.new(configuration, configuration.environment.balances_uri)
  end

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def transfers_client(configuration)
    ApiClient.new(configuration, configuration.environment.transfers_uri)
  end
end