taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 9eddb34acb915613d33cb26430bb2f20074f141b
parent e5747aa88008c3d94bf49907b44629c8a08292b4
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Sat, 24 Oct 2026 10:42:46 +0200

gana: update error codes

Diffstat:
Mpackages/taler-util/src/taler-error-codes.ts | 134+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 131 insertions(+), 3 deletions(-)

diff --git a/packages/taler-util/src/taler-error-codes.ts b/packages/taler-util/src/taler-error-codes.ts @@ -1009,6 +1009,14 @@ export enum TalerErrorCode { /** + * The denominations of an age-restricted withdraw request do not all use the same age mask. All denominations of an age-restricted withdraw must have the same age groups. + * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). + * (A value of 0 indicates that the error is generated client-side). + */ + EXCHANGE_WITHDRAW_AGE_MASK_MISMATCH = 1166, + + + /** * The withdraw operation included the same planchet more than once. This is not allowed. * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). * (A value of 0 indicates that the error is generated client-side). @@ -1705,6 +1713,14 @@ export enum TalerErrorCode { /** + * The purse expiration time is further in the future than the exchange allows. + * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). + * (A value of 0 indicates that the error is generated client-side). + */ + EXCHANGE_RESERVES_PURSE_EXPIRATION_TOO_LATE = 1779, + + + /** * The signature by the reserve affirming the open operation is invalid. * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). * (A value of 0 indicates that the error is generated client-side). @@ -1753,6 +1769,14 @@ export enum TalerErrorCode { /** + * A different request to keep the reserve open was already processed with the same request timestamp. Each open request of a reserve must use a distinct request timestamp. + * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). + * (A value of 0 indicates that the error is generated client-side). + */ + EXCHANGE_RESERVES_OPEN_TIMESTAMP_REUSE = 1791, + + + /** * The auditor that was supposed to be disabled is unknown to this exchange. * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). * (A value of 0 indicates that the error is generated client-side). @@ -2057,6 +2081,22 @@ export enum TalerErrorCode { /** + * The purse expiration time is further in the future than the exchange allows. + * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). + * (A value of 0 indicates that the error is generated client-side). + */ + EXCHANGE_PURSE_CREATE_EXPIRATION_TOO_LATE = 1862, + + + /** + * The denomination of a coin deposited into the purse stops being legally valid before the purse expiration time. + * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). + * (A value of 0 indicates that the error is generated client-side). + */ + EXCHANGE_PURSE_DENOMINATION_LEGAL_EXPIRES_TOO_SOON = 1863, + + + /** * The signature using the merge key is invalid. * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). * (A value of 0 indicates that the error is generated client-side). @@ -3257,6 +3297,38 @@ export enum TalerErrorCode { /** + * The payment succeeded, but the donation authority (Donau) could not issue the donation receipts at this time. The response contains the payment confirmation. The wallet should replay the payment request later to obtain the receipts. + * Returned with an HTTP status code of #MHD_HTTP_BAD_GATEWAY (502). + * (A value of 0 indicates that the error is generated client-side). + */ + MERCHANT_POST_ORDERS_ID_PAY_DONAU_RECEIPTS_DELAYED = 2188, + + + /** + * The payment succeeded, but the donation authority (Donau) refused to issue the donation receipts. The response contains the payment confirmation. Replaying the payment request will not produce the receipts. + * Returned with an HTTP status code of #MHD_HTTP_BAD_GATEWAY (502). + * (A value of 0 indicates that the error is generated client-side). + */ + MERCHANT_POST_ORDERS_ID_PAY_DONAU_RECEIPTS_REFUSED = 2189, + + + /** + * The order was already paid and has since been refunded, possibly only in part. The payment request can no longer be replayed. The wallet should query the refunds instead. + * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). + * (A value of 0 indicates that the error is generated client-side). + */ + MERCHANT_POST_ORDERS_ID_PAY_REPLAY_AFTER_REFUND = 2190, + + + /** + * The donation year in the request is not the current year. Nothing was paid. The wallet should create the donation receipt requests for the current year and try again. + * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). + * (A value of 0 indicates that the error is generated client-side). + */ + MERCHANT_POST_ORDERS_ID_PAY_DONATION_YEAR_INVALID = 2191, + + + /** * The contract hash does not match the given order ID. * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). * (A value of 0 indicates that the error is generated client-side). @@ -5345,11 +5417,11 @@ export enum TalerErrorCode { /** - * The wallet could not register an alias with the directory service. + * The wallet could not use the directory service. * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). * (A value of 0 indicates that the error is generated client-side). */ - WALLET_ALIAS_REGISTRATION_FAILED = 7063, + WALLET_DIRECTORY_UNAVAILABLE = 7063, /** @@ -5449,6 +5521,62 @@ export enum TalerErrorCode { /** + * The wallet could register the mailbox because the signature was invalid. + * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). + * (A value of 0 indicates that the error is generated client-side). + */ + WALLET_MAILBOX_REGISTER_INVALID_SIGNATURE = 7076, + + + /** + * The specified order ID in the Mailbox-Order-Id header does not permit sending of this message. Possible reasons include the order being for a different message, unpaid or malformed. + * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). + * (A value of 0 indicates that the error is generated client-side). + */ + WALLET_MAILBOX_MESSAGE_SEND_DENIED = 7077, + + + /** + * The signature is invalid. + * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). + * (A value of 0 indicates that the error is generated client-side). + */ + WALLET_MAILBOX_MESSAGE_DELETE_DENIED = 7078, + + + /** + * The checksum does not match the messages currently at the head of the mailbox, or count is larger than the number of messages currently in the mailbox. + * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). + * (A value of 0 indicates that the error is generated client-side). + */ + WALLET_MAILBOX_MESSAGE_DELETE_FAILED = 7079, + + + /** + * Alias type not supported. + * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). + * (A value of 0 indicates that the error is generated client-side). + */ + WALLET_DIRECTORY_ALIAS_NOT_SUPPORTED = 7080, + + + /** + * Solution unknown (original registration attempt may have expired). + * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). + * (A value of 0 indicates that the error is generated client-side). + */ + WALLET_DIRECTORY_ALIAS_SOLUTION_UNKNOWN = 7081, + + + /** + * Solution invalid. + * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). + * (A value of 0 indicates that the error is generated client-side). + */ + WALLET_DIRECTORY_ALIAS_SOLUTION_INCORRECT = 7082, + + + /** * The service encountered a timeout with its payment backend. * Returned with an HTTP status code of #MHD_HTTP_GATEWAY_TIMEOUT (504). * (A value of 0 indicates that the error is generated client-side). @@ -6026,7 +6154,7 @@ export enum TalerErrorCode { /** * The donation amount specified in the request exceeds the limit of the charity. - * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). + * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). * (A value of 0 indicates that the error is generated client-side). */ DONAU_EXCEEDING_DONATION_LIMIT = 8610,