UNPKG

@bebapps/rapyd-sdk

Version:

An un-official [Rapyd](https://rapyd.net) SDK for Node.js.

115 lines (114 loc) 9.45 kB
export enum WalletContactError { /** * The request tried to create a personal contact for a Rapyd wallet, but the contact type was 'personal' and business details were given. Business details are not allowed for a personal contact. The request was rejected. Corrective action: In the 'contact' object, set 'business_details' to null. */ BUSINESS_DETAILS_NOT_ALLOWED_FOR_PERSONAL_CONTACT = 'BUSINESS_DETAILS_NOT_ALLOWED_FOR_PERSONAL_CONTACT', /** * The request tried to add a second business contact to a company wallet, but a company wallet can have only one business contact. The request was rejected. Corrective action: Set ‘contact_type' to 'personal’. */ CANNOT_CREATE_MORE_THAN_ONE_BUSINESS_CONTACT = 'CANNOT_CREATE_MORE_THAN_ONE_BUSINESS_CONTACT', /** * The request tried to create a personal wallet, but the contact type was 'business'. The request was rejected. Corrective action: In the 'contact' object, set 'contact_type' to 'personal'. */ CREATE_PERSONAL_WALLET_REQUIRES_PERSONAL_CONTACT = 'CREATE_PERSONAL_WALLET_REQUIRES_PERSONAL_CONTACT', /** * The request tried to add a contact to a personal wallet, but a personal wallet can have only one contact. The request was rejected. Corrective action: None. Determine why an attempt was made to give a personal wallet two contacts. Consider creating a company wallet. */ ERROR_ADD_CONTACT_TOO_MANY_CONTACTS = 'ERROR_ADD_CONTACT_TOO_MANY_CONTACTS', /** * The request tried to create a contact in a wallet, but the operation failed. Corrective action: Verify that the wallet exists, and check all input parameters. */ ERROR_CREATE_EWALLET_CONTACT = 'ERROR_CREATE_EWALLET_CONTACT', /** * The request tried to remove a business contact from a company wallet, but this operation is not possible. The request was rejected. Corrective action: None. If you are trying to replace the business contact with another business contact, use 'Update Wallet Contact'. */ ERROR_DELETE_BUSINESS_CONTACT = 'ERROR_DELETE_BUSINESS_CONTACT', /** * The request tried to delete a contact, but the wallet was a personal wallet. A personal wallet can have only one contact and it cannot be deleted. The request was rejected. Corrective action: None. Determine why an attempt was made to delete the contact. */ ERROR_DELETE_CONTACT_FROM_PERSONAL_EWALLET = 'ERROR_DELETE_CONTACT_FROM_PERSONAL_EWALLET', /** * The request tried to delete a contact from a wallet, but the contact was not found. The request was rejected. Corrective action: Determine whether the contact was already deleted, and why there were multiple requests to delete it. */ ERROR_DELETE_EWALLET_CONTACT = 'ERROR_DELETE_EWALLET_CONTACT', /** * The request attempted an operation that requires a wallet contact, but the city of the contact was not found. The request was rejected. Corrective action: Use 'Update Wallet Contact' to add the name of the city to the 'city' field in the 'address' object. */ ERROR_EWALLET_CONTACT_ADDRESS_CITY_NOT_FOUND = 'ERROR_EWALLET_CONTACT_ADDRESS_CITY_NOT_FOUND', /** * The request attempted an operation that requires a wallet contact, but the contact was not found. The request was rejected. Corrective action: Provide the ID of a valid wallet contact, which is a string starting with 'cont_'. */ ERROR_EWALLET_CONTACT_NOT_FOUND = 'ERROR_EWALLET_CONTACT_NOT_FOUND', /** * The request attempted an operation that requires a wallet contact, but the contact was not found. The request was rejected. Corrective action: In the path, specify the ID of a valid wallet, a string starting with 'ewallet_', and the ID of a valid contact belonging to that wallet, a string starting with 'cont_'. */ ERROR_GET_EWALLET_CONTACT = 'ERROR_GET_EWALLET_CONTACT', /** * The request tried to update a business wallet contact, but there was a format error in the business details. The request was rejected. Corrective action: Provide all data in the correct format. See the API reference. */ ERROR_UPDATE_EWALLET_CONTACT = 'ERROR_UPDATE_EWALLET_CONTACT', /** * The request tried to change the type of a wallet contact, but this operation is not allowed. The request was rejected. Corrective action: None. Create a new wallet with the type of contact you want. */ ERROR_UPDATE_WALLET_CONTACT_TYPE = 'ERROR_UPDATE_WALLET_CONTACT_TYPE', /** * The request tried to add or update a nationality, but it was not in the correct format. The request was rejected. Corrective action: In the 'country' field, enter the 2-letter ISO 3166-1 ALPHA-2 country code. */ ERROR_WALLET_CONTACT_NATIONALITY_CODE_NOT_VALID = 'ERROR_WALLET_CONTACT_NATIONALITY_CODE_NOT_VALID', /** * The request created a wallet, but the address of the contact did not have a name. The wallet was created and it is not valid without it. Corrective action: Contact Client Support. */ EWALLET_BUSINESS_DETAILS_ADDRESS_NAME_NOT_VALID = 'EWALLET_BUSINESS_DETAILS_ADDRESS_NAME_NOT_VALID', /** * The request created a wallet, but the address of the contact did not have a 'line1’ field or was not an object. The wallet was created and it is not valid without it. Corrective action: Contact Client Support. */ EWALLET_BUSINESS_DETAILS_ADDRESS_LINE1_NOT_VALID = 'EWALLET_BUSINESS_DETAILS_ADDRESS_LINE1_NOT_VALID', /** * The request tried to update a wallet, but the business address was missing required information or contained special characters. The request was rejected. Corrective action: Inside the 'address' object, which is inside the 'business_details' object, provide 'name' with alphanumerics and spaces and 'line_1' with a string. */ EWALLET_UPDATED_WITH_NO_BUSINESS_DETAILS_DUE_TO_INVALID_ADDRESS = 'EWALLET_UPDATED_WITH_NO_BUSINESS_DETAILS_DUE_TO_INVALID_ADDRESS', /** * The request tried to create a company wallet, but the entity type was missing or not recognized. The request was rejected. Corrective action: In the 'business_details' object, set 'entity_type' to one of the following values: 'sole_prop', 'partnership', 'company', 'government', 'charity', 'NPO', 'association', 'trust'. */ INVALID_EWALLET_BUSINESS_ENTITY_TYPE = 'INVALID_EWALLET_BUSINESS_ENTITY_TYPE', /** * The request tried to create a company wallet, but the business name was missing or contained special characters. The request was rejected. Corrective action: In the 'business_details' object, set the 'name' field to a string made up of alphabetic characters and spaces. */ INVALID_EWALLET_BUSINESS_NAME = 'INVALID_EWALLET_BUSINESS_NAME', /** * The request tried to create a company wallet, but the business registration number was missing or contained special characters. The request was rejected. Corrective action: In the 'business_details' object, set the 'registration_number' field to a string made up of alphabetic characters and spaces. */ INVALID_EWALLET_BUSINESS_REGISTRATION_NUMBER = 'INVALID_EWALLET_BUSINESS_REGISTRATION_NUMBER', /** * The request tried to create an eWallet with the 'type' body parameter set to 'company', but 'business_sub_category' contained special characters. The request was rejected. Corrective action: Provide a valid business subcategory. */ INVALID_EWALLET_BUSINESS_SUB_CATEGORY = 'INVALID_EWALLET_BUSINESS_SUB_CATEGORY', /** * The request tried to create or update an eWallet contact, but the 'contact_type' was not recognized. The request was rejected. Corrective action: Set 'contact_type' to one of the following values: 'personal', 'business' */ INVALID_EWALLET_CONTACT_TYPE = 'INVALID_EWALLET_CONTACT_TYPE', /** * The request tried to create an eWallet with the 'type' body parameter set to 'company', but 'industry_category' was not set or contained special characters. The request was rejected. Corrective action: Provide a valid industry category. */ INVALID_EWALLET_INDUSTRY_CATEGORY = 'INVALID_EWALLET_INDUSTRY_CATEGORY', /** * The request tried to create a wallet contact, but the gender was not recognized. The request was rejected. Corrective action: Set 'gender' to one of the following values: 'male', 'female', 'other', 'not_applicable' */ INVALID_GENDER = 'INVALID_GENDER', /** * The request tried to create a wallet contact, but the house type was not recognized. The request was rejected. Corrective action: Set 'house_type' to one of the following values: 'lease', 'live_with_family', 'own', 'owner', 'month_to_month', 'housing_project' */ INVALID_HOUSE_TYPE = 'INVALID_HOUSE_TYPE', /** * The request tried to create a wallet contact, but the marital status was not recognized. The request was rejected. Corrective action: Set 'marital_status' to one of the following values: 'married', 'single', 'divorced', 'widowed', 'cohabiting', 'not_applicable' */ INVALID_MARITAL_STATUS = 'INVALID_MARITAL_STATUS', /** * The request tried to create a wallet contact, but the middle name contained special characters. The request was rejected. Corrective action: Use only alphabetic characters and spaces for 'middle_name'. */ INVALID_MIDDLE_NAME = 'INVALID_MIDDLE_NAME', /** * The request tried to create a wallet contact, but the second last name contained special characters. The request was rejected. Corrective action: Use only alphabetic characters and spaces for 'second_last_name'. */ INVALID_SECOND_LAST_NAME = 'INVALID_SECOND_LAST_NAME', };