@bebapps/rapyd-sdk
Version:
An un-official [Rapyd](https://rapyd.net) SDK for Node.js.
27 lines (26 loc) • 1.73 kB
text/typescript
export enum AddressError {
/**
* The request tried to retrieve an address, but the address ID was not found. The request was rejected. Corrective action: Use a valid address ID.
*/
ERROR_ADDRESS_GET = 'ERROR_ADDRESS_GET',
/**
* The request attempted an operation that requires an address, but Line 1 of the address was missing or contained special characters. The request was rejected. Corrective action: Use only alphabetic characters and spaces for 'line_1' in the 'address' object.
*/
INVALID_ADDRESS_LINE_1 = 'INVALID_ADDRESS_LINE_1',
/**
* The request attempted an operation that requires an address, but the name associated with the address was missing or contained special characters. The request was rejected. Corrective action: Use only alphabetic characters and spaces for 'name' in the 'address' object.
*/
INVALID_ADDRESS_NAME = 'INVALID_ADDRESS_NAME',
/**
* The request tried to add or update a phone number for an address, but the phone number is not in proper E.164 format or is not valid. The request was rejected. Corrective action: Submit the phone number in proper E.164 format.
*/
INVALID_ADDRESS_PHONE_NUMBER = 'INVALID_ADDRESS_PHONE_NUMBER',
/**
* The request tried to create or update a customer's address, but the postal code was not valid. The request was rejected. Corrective action: Use the correct postal code.
*/
INVALID_ADDRESS_ZIP = 'INVALID_ADDRESS_ZIP',
/**
* The request attempted an operation that requires an array of addresses, but the request provided a single address object. The request was rejected. Corrective action: For 'addresses', use an array of address objects.
*/
INVALID_ADDRESSES_FORMAT = 'INVALID_ADDRESSES_FORMAT',
};