create Customer Identity With
suspend fun createCustomerIdentityWith(customerId: String): Pair<CustomerIdentity?, NetworkingError?>
Creates a new identity verification record attached to an existing customer.
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
customer Id
The unique identifier of the existing customer to associate with the new identity verification record.
fun createCustomerIdentityWith(customerId: String, completionHandler: (CustomerIdentity?, NetworkingError?) -> Unit)
Creates a new identity verification record attached to an existing customer and delivers the result to the provided callback.
Parameters
customer Id
The unique identifier of the existing customer to associate with the new identity verification record.
completion Handler
Invoked with the created CustomerIdentity on success, or a NetworkingError on failure; one of the two arguments will be null.