diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-20 14:34:56 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-20 14:34:56 +0530 |
commit | a8fb16021d6f71e6d0c7fae6b440e5c3197b8867 (patch) | |
tree | ff893a899e34d7f94dad420b0a6907e95f2942cb /packages/taler-wallet-core/src/TalerErrorCode.ts | |
parent | 786976e5a8e10f6a3eab50cacbefe98d8b2364f5 (diff) | |
download | wallet-core-a8fb16021d6f71e6d0c7fae6b440e5c3197b8867.tar.xz |
handle withdrawals aborted by the bank, add test
Diffstat (limited to 'packages/taler-wallet-core/src/TalerErrorCode.ts')
-rw-r--r-- | packages/taler-wallet-core/src/TalerErrorCode.ts | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/TalerErrorCode.ts b/packages/taler-wallet-core/src/TalerErrorCode.ts index fd3ca1fc8..412f3ef8a 100644 --- a/packages/taler-wallet-core/src/TalerErrorCode.ts +++ b/packages/taler-wallet-core/src/TalerErrorCode.ts @@ -1768,6 +1768,13 @@ export enum TalerErrorCode { POST_TRANSFERS_DB_LOOKUP_ERROR = 2413, /** + * The merchant backend cannot create an instance with the given default max deposit fee or default max wire fee because the fee currencies are incompatible with the merchant's currency in the config. + * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). + * (A value of 0 indicates that the error is generated client-side). + */ + POST_INSTANCES_BAD_CURRENCY = 2449, + + /** * The merchant backend cannot create an instance under the given identifier as one already exists. Use PATCH to modify the existing entry. * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). * (A value of 0 indicates that the error is generated client-side). @@ -2734,6 +2741,41 @@ export enum TalerErrorCode { MERCHANT_GET_ORDER_INVALID_TOKEN = 2923, /** + * The merchant backup failed to lookup the order status in the database. + * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR (500). + * (A value of 0 indicates that the error is generated client-side). + */ + MERCHANT_PRIVATE_GET_ORDERS_STATUS_DB_LOOKUP_ERROR = 2924, + + /** + * The merchant backup failed to lookup the contract terms in the database. + * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR (500). + * (A value of 0 indicates that the error is generated client-side). + */ + MERCHANT_PRIVATE_GET_ORDERS_CONTRACT_DB_LOOKUP_ERROR = 2925, + + /** + * The merchant backup failed to parse the order contract terms. + * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR (500). + * (A value of 0 indicates that the error is generated client-side). + */ + MERCHANT_PRIVATE_GET_ORDERS_PARSE_CONTRACT_ERROR = 2926, + + /** + * The merchant backup failed to lookup the refunds in the database. + * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR (500). + * (A value of 0 indicates that the error is generated client-side). + */ + MERCHANT_PRIVATE_GET_ORDERS_REFUND_DB_LOOKUP_ERROR = 2927, + + /** + * The merchant backup failed to lookup filtered orders in the database. + * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR (500). + * (A value of 0 indicates that the error is generated client-side). + */ + MERCHANT_PRIVATE_GET_ORDERS_BY_FILTER_DB_LOOKUP_ERROR = 2928, + + /** * The signature from the exchange on the deposit confirmation is invalid. Returned with a "400 Bad Request" status code. * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). * (A value of 0 indicates that the error is generated client-side). @@ -3154,6 +3196,13 @@ export enum TalerErrorCode { WALLET_CORE_NOT_AVAILABLE = 7011, /** + * The bank has aborted a withdrawal operation, and thus a withdrawal can't complete. + * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). + * (A value of 0 indicates that the error is generated client-side). + */ + WALLET_WITHDRAWAL_OPERATION_ABORTED_BY_BANK = 7012, + + /** * End of error code range. * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). * (A value of 0 indicates that the error is generated client-side). |