Class: Worldline::Acquiring::SDK::V1::Acquirer::Merchant::Accountverifications::AccountVerificationsClient
- Inherits:
-
ApiResource
- Object
- ApiResource
- Worldline::Acquiring::SDK::V1::Acquirer::Merchant::Accountverifications::AccountVerificationsClient
- Defined in:
- lib/worldline/acquiring/sdk/v1/acquirer/merchant/accountverifications/account_verifications_client.rb
Overview
AccountVerifications client. Thread-safe.
Instance Attribute Summary
Attributes inherited from ApiResource
Instance Method Summary collapse
-
#initialize(parent, path_context) ⇒ AccountVerificationsClient
constructor
A new instance of AccountVerificationsClient.
-
#process_account_verification(body, context = nil) ⇒ Worldline::Acquiring::SDK::V1::Domain::ApiAccountVerificationResponse
Resource /processing/v1/{acquirerId}/{merchantId}/account-verifications - Verify account.
Constructor Details
#initialize(parent, path_context) ⇒ AccountVerificationsClient
Returns a new instance of AccountVerificationsClient.
22 23 24 |
# File 'lib/worldline/acquiring/sdk/v1/acquirer/merchant/accountverifications/account_verifications_client.rb', line 22 def initialize(parent, path_context) super(parent: parent, path_context: path_context) end |
Instance Method Details
#process_account_verification(body, context = nil) ⇒ Worldline::Acquiring::SDK::V1::Domain::ApiAccountVerificationResponse
Resource /processing/v1/{acquirerId}/{merchantId}/account-verifications - Verify account
39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/worldline/acquiring/sdk/v1/acquirer/merchant/accountverifications/account_verifications_client.rb', line 39 def process_account_verification(body, context = nil) uri = instantiate_uri('/processing/v1/{acquirerId}/{merchantId}/account-verifications', nil) @communicator.post( uri, nil, nil, body, Worldline::Acquiring::SDK::V1::Domain::ApiAccountVerificationResponse, context) rescue Worldline::Acquiring::SDK::Communication::ResponseException => e error_type = Worldline::Acquiring::SDK::V1::Domain::ApiPaymentErrorResponse error_object = @communicator.marshaller.unmarshal(e.body, error_type) raise Worldline::Acquiring::SDK::V1.create_exception(e.status_code, e.body, error_object, context) end |