Class: PreludeSDK::Resources::Intel::KYC
- Inherits:
-
Object
- Object
- PreludeSDK::Resources::Intel::KYC
- Defined in:
- lib/prelude_sdk/resources/intel/kyc.rb,
sig/prelude_sdk/resources/intel/kyc.rbs
Overview
Retrieve detailed information about a phone number including carrier data, line type, and portability status.
Instance Method Summary collapse
-
#initialize(client:) ⇒ KYC
constructor
private
A new instance of KYC.
-
#match(phone, address: nil, birthdate: nil, country: nil, email: nil, family_name: nil, given_name: nil, locality: nil, postal_code: nil, region: nil, request_options: {}) ⇒ PreludeSDK::Models::Intel::KYCMatchResponse
Verify identity attributes against the subscriber record held by the end-user's mobile operator.
Constructor Details
#initialize(client:) ⇒ KYC
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of KYC.
56 57 58 |
# File 'lib/prelude_sdk/resources/intel/kyc.rb', line 56 def initialize(client:) @client = client end |
Instance Method Details
#match(phone, address: nil, birthdate: nil, country: nil, email: nil, family_name: nil, given_name: nil, locality: nil, postal_code: nil, region: nil, request_options: {}) ⇒ PreludeSDK::Models::Intel::KYCMatchResponse
Verify identity attributes against the subscriber record held by the end-user's mobile operator. Send a phone number along with the attributes to check; Prelude resolves the operator internally and returns a per-attribute match. Currently available for France only (Orange, SFR, Bouygues) and must be enabled for your account.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/prelude_sdk/resources/intel/kyc.rb', line 42 def match(phone, params = {}) parsed, = PreludeSDK::Intel::KYCMatchParams.dump_request(params) @client.request( method: :post, path: ["v2/intel/kyc/match/%1$s", phone], body: parsed, model: PreludeSDK::Models::Intel::KYCMatchResponse, options: ) end |