@bebapps/rapyd-sdk
Version:
An un-official [Rapyd](https://rapyd.net) SDK for Node.js.
119 lines (118 loc) • 9.16 kB
text/typescript
export enum IdentityVerificationError {
/**
* The request attempted a hosted page operation for identity verification process, but the contact was of type 'business' and the verification process is only for personal contacts. The request was rejected. Corrective action: Add a personal contact to the wallet and run the verification process on the personal contact.
*/
ERROR_HOSTED_PAGE_INVALID_CONTACT = 'ERROR_HOSTED_PAGE_INVALID_CONTACT',
/**
* The request tried to validate identity, but the operation failed. The request was rejected. Corrective action: Check all parameters and provide a unique reference ID for each identity verification operation, whether successful or unsuccessful.
*/
ERROR_ID_VERIFICATION = 'ERROR_ID_VERIFICATION',
/**
* The request tried to verify the identity of a wallet contact, but the identity was already verified and cannot be verified twice. The request was rejected. Corrective action: None. Determine why multiple attempts were made to verify the same identity.
*/
ERROR_ID_VERIFICATION_ALREADY_COMPLETE = 'ERROR_ID_VERIFICATION_ALREADY_COMPLETE',
/**
* The request tried to verify the identity of a wallet contact, but the verification process is still pending. The request was rejected. Corrective action: Wait for the process to complete.
*/
ERROR_ID_VERIFICATION_ALREADY_IN_PROGRESS = 'ERROR_ID_VERIFICATION_ALREADY_IN_PROGRESS',
/**
* The request tried to validate identity, but the back side image provided was not properly encoded into Base64. The request was rejected. Corrective action: Convert the image into Base64 encoding, using all options that are required, as verified by your testing.
*/
ERROR_ID_VERIFICATION_BACK_SIDE_IMAGE_ENCODING_INVALID = 'ERROR_ID_VERIFICATION_BACK_SIDE_IMAGE_ENCODING_INVALID',
/**
* The request tried to validate identity, but the back side image provided was not the correct MIME type. The request was rejected. Corrective action: Use a JPEG or PNG image.
*/
ERROR_ID_VERIFICATION_BACK_SIDE_IMAGE_MIME_TYPE_INVALID = 'ERROR_ID_VERIFICATION_BACK_SIDE_IMAGE_MIME_TYPE_INVALID',
/**
* The request tried to validate identity, but the required back side image was not found. The request was rejected. Corrective action: Submit the back side image with JPEG or PNG format, Base-64 encoded.
*/
ERROR_ID_VERIFICATION_BACK_SIDE_IMAGE_MISSING = 'ERROR_ID_VERIFICATION_BACK_SIDE_IMAGE_MISSING',
/**
* The request tried to validate identity, but the 'reference_id' body parameter was previously used. The request was rejected. Corrective action: Provide a unique reference ID for each identity verification operation, whether successful or unsuccessful.
*/
ERROR_ID_VERIFICATION_DUPLICATE_REFERENCE_ID = 'ERROR_ID_VERIFICATION_DUPLICATE_REFERENCE_ID',
/**
* The request tried to validate identity, but an image was not valid. The request was rejected. Corrective action: Use clear, readable images.
*/
ERROR_ID_VERIFICATION_IMAGE_NOT_VALID = 'ERROR_ID_VERIFICATION_IMAGE_NOT_VALID',
/**
* The request tried to validate identity, but the back side image provided was not properly encoded into Base64. The request was rejected. Corrective action: Convert the image into Base64 encoding, using all options that are required, as verified by your testing.
*/
ERROR_ID_VERIFICATION_INVALID_BACK_SIDE_IMAGE_ENCODING = 'ERROR_ID_VERIFICATION_INVALID_BACK_SIDE_IMAGE_ENCODING',
/**
* The request tried to validate identity, but the document provided was not a supported type. The request was rejected. Corrective action: Use 'List Official Identification Documents' to find the documents supported in the country.
*/
ERROR_ID_VERIFICATION_INVALID_DOCUMENT_TYPE = 'ERROR_ID_VERIFICATION_INVALID_DOCUMENT_TYPE',
/**
* The request tried to validate identity, but the associated wallet was not found. Corrective action: In the 'ewallet' field, provide the wallet ID, a string starting with 'ewallet'.
*/
ERROR_ID_VERIFICATION_INVALID_EWALLET = 'ERROR_ID_VERIFICATION_INVALID_EWALLET',
/**
* The request tried to validate identity, but the face image provided was not properly encoded into Base64. The request was rejected. Corrective action: Convert the image into Base64 encoding, using all options that are required, as verified by your testing.
*/
ERROR_ID_VERIFICATION_INVALID_FACE_IMAGE_ENCODING = 'ERROR_ID_VERIFICATION_INVALID_FACE_IMAGE_ENCODING',
/**
* The request tried to validate identity, but the face image provided was not the correct MIME type. The request was rejected. Corrective action: Use a JPEG or PNG image.
*/
ERROR_ID_VERIFICATION_INVALID_FACE_IMAGE_MIME_TYPE = 'ERROR_ID_VERIFICATION_INVALID_FACE_IMAGE_MIME_TYPE',
/**
* The request tried to parse a document, but the front side image provided was not the correct MIME type. The request was rejected. Corrective action: Use a JPEG or PNG image.
*/
ERROR_ID_VERIFICATION_INVALID_FRONTSIDE_IMAGE_MIME_TYPE = 'ERROR_ID_VERIFICATION_INVALID_FRONTSIDE_IMAGE_MIME_TYPE',
/**
* The request tried to verify identity, but the reference ID contains more than 36 characters. The request was rejected. Corrective action: Use a reference ID with 36 characters or less.
*/
ERROR_ID_VERIFICATION_INVALID_REFERENCE_ID = 'ERROR_ID_VERIFICATION_INVALID_REFERENCE_ID',
/**
* The request tried to parse a document, but the required back side image was not found. The request was rejected. Corrective action: Submit the back side image with JPEG or PNG format, Base-64 encoded.
*/
ERROR_ID_VERIFICATION_MISSING_BACK_SIDE_IMAGE = 'ERROR_ID_VERIFICATION_MISSING_BACK_SIDE_IMAGE',
/**
* The request tried to validate identity, but the 'country' body parameter was empty or missing. Corrective action: Provide the 2-letter ISO code for the country in uppercase letters.
*/
ERROR_ID_VERIFICATION_MISSING_COUNTRY = 'ERROR_ID_VERIFICATION_MISSING_COUNTRY',
/**
* The request tried to validate identity, but the 'document_type' body parameter was empty or missing. Corrective action: Use 'List Official Identification Documents' to find the document types that are supported in the country.
*/
ERROR_ID_VERIFICATION_MISSING_DOCUMENT_TYPE = 'ERROR_ID_VERIFICATION_MISSING_DOCUMENT_TYPE',
/**
* The request tried to validate identity, but the 'ewallet' body parameter was empty or missing. Corrective action: Provide the wallet ID, a string starting with 'ewallet_'.
*/
ERROR_ID_VERIFICATION_MISSING_EWALLET = 'ERROR_ID_VERIFICATION_MISSING_EWALLET',
/**
* The request tried to validate identity, but the 'ewallet' body parameter was empty or missing. Corrective action: Provide the wallet ID, a string starting with 'ewallet_'.
*/
ERROR_ID_VERIFICATION_MISSING_EWALLET_ID = 'ERROR_ID_VERIFICATION_MISSING_EWALLET_ID',
/**
* The request tried to validate identity, but the face image was missing. The request was rejected. Corrective action: Provide the face image.
*/
ERROR_ID_VERIFICATION_MISSING_FACE_IMAGE = 'ERROR_ID_VERIFICATION_MISSING_FACE_IMAGE',
/**
* The request tried to parse a document, but the required front side image was not found. The request was rejected. Corrective action: Submit the front side image with JPEG or PNG format, Base-64 encoded.
*/
ERROR_ID_VERIFICATION_MISSING_FRONTSIDE_IMAGE = 'ERROR_ID_VERIFICATION_MISSING_FRONTSIDE_IMAGE',
/**
* The request tried to validate identity, but the 'reference_id' body parameter was empty or missing. Corrective action: Provide the merchant's reference ID for the identity verification operation.
*/
ERROR_ID_VERIFICATION_MISSING_REFERENCE_ID = 'ERROR_ID_VERIFICATION_MISSING_REFERENCE_ID',
/**
* The request tried to validate identity, but the maximum number of requests for this individual has been reached. The request was rejected. Corrective action: None. Contact Client Support.
*/
ERROR_MAX_NUMBER_OF_IDENTITY_VERIFICATIONS = 'ERROR_MAX_NUMBER_OF_IDENTITY_VERIFICATIONS',
/**
* The request tried to add or update a date of birth, but it was not in the correct format or was a date in the future. The request was rejected. Corrective action: Provide a valid birthdate in mm/dd/yyyy format.
*/
INVALID_DATE_OF_BIRTH = 'INVALID_DATE_OF_BIRTH',
/**
* The request tried to validate identity, but the ID number was missing or not recognized. The request was rejected. Corrective action: Provide the ID number and verify that it contains only alphanumeric characters and spaces.
*/
INVALID_IDENTIFICATION_NUMBER = 'INVALID_IDENTIFICATION_NUMBER',
/**
* The request tried to validate identity, but the document type was missing or not recognized. The request was rejected. Corrective action: Provide the required document type. To determine valid types, use 'List Official Identification Documents'.
*/
INVALID_IDENTIFICATION_TYPE = 'INVALID_IDENTIFICATION_TYPE',
/**
* The request attempted an operation that processed a URL for an image, but the operation failed. Corrective action: Provide a valid HTTP or HTTP URL with a JPG or PNG file extension.
*/
INVALID_IMAGE_URL = 'INVALID_IMAGE_URL',
};