UNPKG

@bebapps/rapyd-sdk

Version:

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

103 lines (102 loc) 8.19 kB
export enum WalletTransactionError { /** * The request tried to cancel a wallet transaction, but the transaction was not found. The request was rejected. Corrective action: Provide a valid transaction ID. */ CANCEL_TRANSACTION_ERROR = 'CANCEL_TRANSACTION_ERROR', /** * The request tried to complete a wallet transaction, but the transaction was not found. The request was rejected. Corrective action: Provide a valid transaction ID. */ COMPLETE_TRANSACTION_ERROR = 'COMPLETE_TRANSACTION_ERROR', /** * The request attempted an operation that puts funds in a wallet, but the amount exceeds the limit set for that wallet for funds of that currency. The request was rejected. Corrective action: Transfer an amount that does not put the destination wallet over its limit for that currency. */ ERROR_AMOUNT_EXCEEDS_DESTINATION_EWALLET_LIMIT = 'ERROR_AMOUNT_EXCEEDS_DESTINATION_EWALLET_LIMIT', /** * The request tried to transfer funds to a wallet, but the amount would cause the wallet to exceed its balance limit. The request was rejected. Corrective action: Remove money from the wallet before trying to add more, or deposit a different amount. To raise the balance limit, you can complete the customer identity verification process. */ ERROR_AMOUNT_EXCEEDS_DESTINATION_EWALLET_LIMIT_BY_MERCHANT_CONTROLLED_PARAMETERS = 'ERROR_AMOUNT_EXCEEDS_DESTINATION_EWALLET_LIMIT_BY_MERCHANT_CONTROLLED_PARAMETERS', /** * The request tried to create or update a limit on a wallet currency account, but the limit offered was lower than the amount of currency in the account. The request was rejected. Corrective action: Set a limit that is less than or equal to the amount currently in the account. */ ERROR_EWALLET_ACCOUNT_LIMIT_EXCEEDS_CURRENT_BALANCE = 'ERROR_EWALLET_ACCOUNT_LIMIT_EXCEEDS_CURRENT_BALANCE', /** * The request tried to create or update a limit on a wallet currency account, but the limit was not valid. The request was rejected. Corrective action: Use a positive number. */ ERROR_EWALLET_LIMIT_NOT_VALID = 'ERROR_EWALLET_LIMIT_NOT_VALID', /** * The request tried to transfer funds to a wallet, but the wallet was disabled. The request was rejected. Corrective action: Enable the destination wallet. */ ERROR_EWALLET_TRANSFER_DESTINATION_EWALLET_DISABLED = 'ERROR_EWALLET_TRANSFER_DESTINATION_EWALLET_DISABLED', /** * The request tried to set a response to a transfer between wallets, but the ID of the transfer transaction was not found. The request was rejected. Corrective action: Use a valid transaction ID. */ ERROR_EWALLET_TRANSFER_ID_NOT_FOUND = 'ERROR_EWALLET_TRANSFER_ID_NOT_FOUND', /** * The request tried to transfer funds from a wallet, but the wallet was disabled. The request was rejected. Corrective action: Enable the source wallet. */ ERROR_EWALLET_TRANSFER_SOURCE_EWALLET_DISABLED = 'ERROR_EWALLET_TRANSFER_SOURCE_EWALLET_DISABLED', /** * The request tried to transfer funds from a wallet, but the wallet was not found. The request was rejected. Corrective action: Use the correct phone number for the source wallet. */ ERROR_EWALLET_TRANSFER_SOURCE_EWALLET_NOT_FOUND = 'ERROR_EWALLET_TRANSFER_SOURCE_EWALLET_NOT_FOUND', /** * The request tried to retrieve details of a transaction, but the transaction was not found. The request was rejected. Corrective action: Provide a valid transaction ID, which is a UUID. */ ERROR_GET_ACCOUNT_FUNDS_DETAILS = 'ERROR_GET_ACCOUNT_FUNDS_DETAILS', /** * The request tried to retrieve a bank account transaction for a wallet, but the transaction was not found. The request was rejected. Corrective action: For 'bank_account', use the bank account number that was issued to the wallet. For 'transaction', use the ID of the transaction, which is a UUID. To find the transaction ID, use 'Retrieve Bank Account History for Wallet'. */ ERROR_GET_ISSUING_TRANSACTION = 'ERROR_GET_ISSUING_TRANSACTION', /** * The request tried to retrieve a transaction, but the transaction was not found. The request was rejected. Corrective action: Use the ID of a wallet that has not been closed, and the ID of a transaction that is associated with that wallet. */ ERROR_GET_TRANSACTION = 'ERROR_GET_TRANSACTION', /** * The request attempted to put funds on hold, but this operation is not permitted for a client wallet. The request was rejected. Corrective action. None. */ ERROR_PUT_FUNDS_ON_HOLD_CLIENT_WALLET = 'ERROR_PUT_FUNDS_ON_HOLD_CLIENT_WALLET', /** * The request attempted to release on-hold funds, but this operation is not permitted for a client wallet. The request was rejected. Corrective action. None. */ ERROR_RELEASE_ON_HOLD_FUNDS_CLIENT_WALLET = 'ERROR_RELEASE_ON_HOLD_FUNDS_CLIENT_WALLET', /** * The request tried to accept, reject or cancel a transfer that was previously declined by the transferee. The request was rejected. Corrective action: If the intent was to accept, create a new transfer. Otherwise, determine why a transfer response was attempted on a declined transaction. */ ERROR_RESPONSE_TRANSFER = 'ERROR_RESPONSE_TRANSFER', /** * The request tried to transfer funds, but the source was the same as the destination. The request was rejected. Corrective action: Set 'source_ewallet' and 'destination_ewallet' to the IDs of two different wallets. */ ERROR_TRANSFER_FUNDS_DESTINATION_AND_SOURCE_CANNOT_BE_THE_SAME = 'ERROR_TRANSFER_FUNDS_DESTINATION_AND_SOURCE_CANNOT_BE_THE_SAME', /** * The request tried to accept, reject or cancel a transfer between wallets, but the transaction was not found. The request was rejected. Corrective action: If the intent was to accept, create a new transfer. */ ERROR_TRANSFER_RESPONSE_INVALID_DETAILS = 'ERROR_TRANSFER_RESPONSE_INVALID_DETAILS', /** * The request tried to accept, reject or cancel a transfer that was previously canceled by the sender. The request was rejected. Corrective action: If the intent was to accept, create a new transfer. Otherwise, determine why a transfer response was attempted on a canceled transaction. */ ERROR_TRANSFER_RESPONSE_PREVIOUSLY_CANCELED = 'ERROR_TRANSFER_RESPONSE_PREVIOUSLY_CANCELED', /** * The request tried to accept, reject or cancel a transfer that was previously declined by the transferee. The request was rejected. Corrective action: If the intent was to accept, create a new transfer. Otherwise, determine why a transfer response was attempted on a declined transaction. */ ERROR_TRANSFER_RESPONSE_PREVIOUSLY_DECLINED = 'ERROR_TRANSFER_RESPONSE_PREVIOUSLY_DECLINED', /** * The request tried to add funds to or remove funds from a wallet, but the wallet was not found. The request was rejected. Corrective action: Set 'ewallet' to the ID of a valid wallet that has not been blocked or deleted. The ID is a string starting with 'ewallet_'. */ ERROR_UPDATE_FUNDS = 'ERROR_UPDATE_FUNDS', /** * The request tried to retrieve a transaction, but the transaction was not found. The request was rejected. Corrective action: Verify that the transaction ID is correct and that it is associated with the eWallet specified. */ INVALID_TRANSACTION_ID = 'INVALID_TRANSACTION_ID', /** * The request tried to transfer funds from a wallet to another wallet, but the input parameters were not valid. The request was rejected. Corrective action: For 'currency', use the ISO 4217 code. For 'source_ewallet' and 'destination_ewallet', use the IDs of valid wallets. */ INVALID_TRANSFER_DETAILS = 'INVALID_TRANSFER_DETAILS', /** * The request tried to set a response to a transfer between eWallets, but the status was not recognized. The request was rejected. Corrective action: Set the 'status' field to one of the following values: 'accept', 'decline', 'cancel'. */ INVALID_TRANSFER_STATUS = 'INVALID_TRANSFER_STATUS', /** * The request attempted an operation that requires funds in a specific currency, but there were not sufficient funds in that currency. The request was rejected. Corrective action: Transfer funds to the wallet in the required currency. */ NOT_ENOUGH_FUNDS = 'NOT_ENOUGH_FUNDS', };