Class: CheckoutSdk::Identities::AmlScreening::AmlScreeningClient

Inherits:
Client
  • Object
show all
Defined in:
lib/checkout_sdk/identities/aml_screening/aml_screening_client.rb

Overview

Client for the Identities — AML Screening API.

Instance Attribute Summary

Attributes inherited from Client

#api_client, #authorization_type, #configuration

Instance Method Summary collapse

Constructor Details

#initialize(api_client, configuration) ⇒ AmlScreeningClient

Returns a new instance of AmlScreeningClient.

Parameters:



13
14
15
# File 'lib/checkout_sdk/identities/aml_screening/aml_screening_client.rb', line 13

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

Instance Method Details

#create_aml_verification(aml_verification_request) ⇒ Object

Parameters:



18
19
20
# File 'lib/checkout_sdk/identities/aml_screening/aml_screening_client.rb', line 18

def create_aml_verification(aml_verification_request)
  api_client.invoke_post(AML_VERIFICATIONS, sdk_authorization, aml_verification_request)
end

#get_aml_verification(aml_verification_id) ⇒ Object

Parameters:

  • aml_verification_id (String)


23
24
25
# File 'lib/checkout_sdk/identities/aml_screening/aml_screening_client.rb', line 23

def get_aml_verification(aml_verification_id)
  api_client.invoke_get(build_path(AML_VERIFICATIONS, aml_verification_id), sdk_authorization)
end