Class: CheckoutSdk::Previous::Sources::SourcesClient

Inherits:
Client
  • Object
show all
Defined in:
lib/checkout_sdk/sources/sources_client.rb

Instance Attribute Summary

Attributes inherited from Client

#api_client, #authorization_type, #configuration

Instance Method Summary collapse

Constructor Details

#initialize(api_client, configuration) ⇒ SourcesClient

Returns a new instance of SourcesClient.

Parameters:



12
13
14
# File 'lib/checkout_sdk/sources/sources_client.rb', line 12

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

Instance Method Details

#create_sepa_source(sepa_source_request) ⇒ Object

Parameters:



17
18
19
# File 'lib/checkout_sdk/sources/sources_client.rb', line 17

def create_sepa_source(sepa_source_request)
  api_client.invoke_post(SOURCES, sdk_authorization, sepa_source_request)
end