class Yoti::AmlCheckRequest
Manage the API's AML check requests
Public Class Methods
new(aml_profile)
click to toggle source
@param [AmlProfile] aml_profile
# File lib/yoti/http/aml_check_request.rb, line 7 def initialize(aml_profile) @aml_profile = aml_profile @payload = aml_profile.payload @request = request end
Public Instance Methods
response()
click to toggle source
@return [Hash] a JSON representation of the AML check response
# File lib/yoti/http/aml_check_request.rb, line 14 def response JSON.parse(@request.body) end
Private Instance Methods
request()
click to toggle source
# File lib/yoti/http/aml_check_request.rb, line 20 def request Yoti::Request .builder .with_http_method('POST') .with_base_url(Yoti.configuration.api_endpoint) .with_endpoint('aml-check') .with_query_param('appId', Yoti.configuration.client_sdk_id) .with_payload(@payload) .build end