Sha256: 56a688a35e22e86331406a30ab86c2fce79b9b657320d161b4c5022ed46ebea7
Contents?: true
Size: 715 Bytes
Versions: 5
Compression:
Stored size: 715 Bytes
Contents
module Yoti # Manage the API's AML check requests class AmlCheckRequest # # @param [AmlProfile] aml_profile # def initialize(aml_profile) @aml_profile = aml_profile @payload = aml_profile.payload @request = request end # @return [Hash] a JSON representation of the AML check response def response JSON.parse(@request.body) end private 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 end end
Version data entries
5 entries across 5 versions & 1 rubygems