Class: CheckoutSdk::Previous::CheckoutApi

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ CheckoutApi

Returns a new instance of CheckoutApi.

Parameters:



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 50

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
  @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
  @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
  @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
  @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
  @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
  @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
  @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
  @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
  @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
  @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
  @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
  @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
end

Instance Attribute Details

#customersCheckoutSdk::Customers::CustomerClient

Returns:

  • (CheckoutSdk::Customers::CustomerClient)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#disputesCheckoutSdk::Disputes::DisputesClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#eventsCheckoutSdk::Previous::Events::EventsClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#hostedCheckoutSdk::Payments::HostedPaymentsClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#instrumentsCheckoutSdk::Previous::Instruments::InstrumentsClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#klarnaCheckoutSdk::Previous::Apm::KlarnaClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#paymentsCheckoutSdk::Payments::PaymentsClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#reconciliationCheckoutSdk::Previous::Reconciliation::ReconciliationClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#riskCheckoutSdk::Risk::RiskClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#sepaCheckoutSdk::Previous::Apm::SepaClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#sourcesCheckoutSdk::Previous::Sources::SourcesClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#tokensCheckoutSdk::Tokens::TokensClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end

#webhooksCheckoutSdk::Previous::Webhooks::WebhooksClient



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/checkout_sdk/previous/checkout_api.rb', line 33

class CheckoutApi
  attr_reader :customers,
              :disputes,
              :hosted,
              :instruments,
              :links,
              :payments,
              :sources,
              :tokens,
              :klarna,
              :sepa,
              :risk,
              :reconciliation,
              :webhooks,
              :events

  # @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
    @hosted = CheckoutSdk::Payments::HostedPaymentsClient.new api_client, configuration
    @instruments = CheckoutSdk::Previous::Instruments::InstrumentsClient.new api_client, configuration
    @links = CheckoutSdk::Payments::PaymentsLinksClient.new api_client, configuration
    @payments = CheckoutSdk::Previous::Payments::PaymentsClient.new api_client, configuration
    @sources = CheckoutSdk::Previous::Sources::SourcesClient.new api_client, configuration
    @tokens = CheckoutSdk::Tokens::TokensClient.new api_client, configuration
    @klarna = CheckoutSdk::Previous::Apm::KlarnaClient.new api_client, configuration
    @sepa = CheckoutSdk::Previous::Apm::SepaClient.new api_client, configuration
    @risk = CheckoutSdk::Risk::RiskClient.new api_client, configuration
    @reconciliation = CheckoutSdk::Previous::Reconciliation::ReconciliationClient.new api_client, configuration
    @webhooks = CheckoutSdk::Previous::Webhooks::WebhooksClient.new api_client, configuration
    @events = CheckoutSdk::Previous::Events::EventsClient.new api_client, configuration
  end

  private

  # @param [CheckoutConfiguration] configuration
  # @return [ApiClient]
  def base_api_client(configuration)
    CheckoutSdk::ApiClient.new configuration, configuration.environment.base_uri
  end
end