create Customer Identity
suspend fun createCustomerIdentity(request: CustomerIdentityRequests.CreateCustomerIdentityRequest): Pair<CustomerIdentity?, NetworkingError?>
Creates a new customer identity verification record with the supplied PII.
Return
A Pair where the first element is the created CustomerIdentity on success, and the second element is a NetworkingError on failure; one of the two will be null.
Parameters
request
The request body containing the customer's personal information required to initiate identity verification.
fun createCustomerIdentity(request: CustomerIdentityRequests.CreateCustomerIdentityRequest, completionHandler: (CustomerIdentity?, NetworkingError?) -> Unit)
Creates a new customer identity verification record with the supplied PII and delivers the result to the provided callback.
Parameters
request
The request body containing the customer's personal information required to initiate identity verification.
completion Handler
Invoked with the created CustomerIdentity on success, or a NetworkingError on failure; one of the two arguments will be null.