@bebapps/rapyd-sdk
Version:
An un-official [Rapyd](https://rapyd.net) SDK for Node.js.
31 lines (30 loc) • 2.23 kB
text/typescript
export enum RapydAuthorizationError {
/**
* The request tried to simulate an authorization operation on a card transaction, but the amount was not valid. The request was rejected. Corrective action: Set 'amount' to a positive decimal number.
*/
ERROR_AUTHORIZATION_INVALID_AMOUNT = 'ERROR_AUTHORIZATION_INVALID_AMOUNT',
/**
* The request tried to simulate an authorization operation on a card transaction, but the currency was not valid. The request was rejected. Corrective action: Set 'currency' to a 3-letter ISO 4217 code.
*/
ERROR_AUTHORIZATION_INVALID_CURRENCY = 'ERROR_AUTHORIZATION_INVALID_CURRENCY',
/**
* The request tried to simulate an authorization operation on a card transaction, but the amount was not found. The request was rejected. Corrective action: Set 'amount' to a positive decimal number.
*/
ERROR_AUTHORIZATION_MISSING_AMOUNT = 'ERROR_AUTHORIZATION_MISSING_AMOUNT',
/**
* The request tried to simulate an authorization operation on a card transaction, but the card was not found. The request was rejected. Corrective action: Set 'card_id' to the card ID, a string starting with 'card’.
*/
ERROR_AUTHORIZATION_MISSING_CARD_ID = 'ERROR_AUTHORIZATION_MISSING_CARD_ID',
/**
* The request tried to simulate an authorization operation on a card transaction, but the transaction was not found. The request was rejected. Corrective action: Set 'card_transaction_id' to the ID of the transaction, a string starting with 'cit’.
*/
ERROR_AUTHORIZATION_MISSING_CARD_TRANSACTION_ID = 'ERROR_AUTHORIZATION_MISSING_CARD_TRANSACTION_ID',
/**
* The request tried to simulate an authorization operation on a card transaction, but the currency was not found. The request was rejected. Corrective action: Set 'currency' to a 3-letter ISO 4217 code.
*/
ERROR_AUTHORIZATION_MISSING_CURRENCY = 'ERROR_AUTHORIZATION_MISSING_CURRENCY',
/**
* The request tried to simulate an authorization operation on a card transaction, but the financial impact was not found. The request was rejected. Corrective action: Set 'financial_impact' to 'credit' or 'debit'.
*/
ERROR_AUTHORIZATION_MISSING_FINANCIAL_IMPACT = 'ERROR_AUTHORIZATION_MISSING_FINANCIAL_IMPACT',
};