Class: CheckoutSdk::Previous::Apm::SepaClient

Inherits:
Client
  • Object
show all
Defined in:
lib/checkout_sdk/apm/previous/sepa/sepa_client.rb

Instance Attribute Summary

Attributes inherited from Client

#api_client, #authorization_type, #configuration

Instance Method Summary collapse

Constructor Details

#initialize(api_client, configuration) ⇒ SepaClient

Returns a new instance of SepaClient.

Parameters:



15
16
17
# File 'lib/checkout_sdk/apm/previous/sepa/sepa_client.rb', line 15

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

Instance Method Details

#cancel_mandate(mandate_id) ⇒ Object

Parameters:

  • mandate_id (String)


25
26
27
# File 'lib/checkout_sdk/apm/previous/sepa/sepa_client.rb', line 25

def cancel_mandate(mandate_id)
  api_client.invoke_post(build_path(SEPA_MANDATES, mandate_id, CANCEL), sdk_authorization)
end

#cancel_mandate_via_ppro(mandate_id) ⇒ Object

Parameters:

  • mandate_id (String)


35
36
37
# File 'lib/checkout_sdk/apm/previous/sepa/sepa_client.rb', line 35

def cancel_mandate_via_ppro(mandate_id)
  api_client.invoke_post(build_path(APMS, PPRO, SEPA_MANDATES, mandate_id, CANCEL), sdk_authorization)
end

#get_mandate(mandate_id) ⇒ Object

Parameters:

  • mandate_id (String)


20
21
22
# File 'lib/checkout_sdk/apm/previous/sepa/sepa_client.rb', line 20

def get_mandate(mandate_id)
  api_client.invoke_get(build_path(SEPA_MANDATES, mandate_id), sdk_authorization)
end

#get_mandate_via_ppro(mandate_id) ⇒ Object

Parameters:

  • mandate_id (String)


30
31
32
# File 'lib/checkout_sdk/apm/previous/sepa/sepa_client.rb', line 30

def get_mandate_via_ppro(mandate_id)
  api_client.invoke_get(build_path(APMS, PPRO, SEPA_MANDATES, mandate_id), sdk_authorization)
end