taler-rust

GNU Taler code in Rust. Largely core banking integrations.
Log | Files | Refs | Submodules | README | LICENSE

commit b4f40a3ae0c294a4255919202a7995ac6c988f5f
parent 15f1ddb98ec14dc19cdbec98618212adbd6b4ae8
Author: Antoine A <>
Date:   Thu, 26 Nov 2026 11:17:26 +0100

common: sync gana error codes

Diffstat:
MCargo.lock | 16++++++++--------
Mcommon/taler-common/src/error_code.rs | 572++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
2 files changed, 417 insertions(+), 171 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -22,9 +22,9 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.21" +version = "0.2.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" +checksum = "57b212daf2e827b1ccdd778b7eb48ba433e58cb0e4f27b43cd6b7a608425a014" [[package]] name = "anes" @@ -2023,9 +2023,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.11.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19" +checksum = "5b0e5c7d67bc53f435386b2130fdc900488c5703770f6d8a4633060e34288a27" dependencies = [ "cfg-if", "cpufeatures", @@ -3189,18 +3189,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.8.65" +version = "0.8.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32bc8a75f879cd6fe53a6bedf3c28f0e1b914c77424fc2be9e2ec85d7d25aff5" +checksum = "cba8a86aee14fc8cc6c208af60854b3d4ab7185a9a369a12c648faa2716ff42a" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.65" +version = "0.8.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8bfd2644ea1681f60cf95029ff18aa8ad1cc3f7b8fe37286f8e473bb29f816b" +checksum = "f89bca3b96ceb3cfcb4572790402f977442270d252b9a8504ebc258760c55f94" dependencies = [ "proc-macro2", "quote", diff --git a/common/taler-common/src/error_code.rs b/common/taler-common/src/error_code.rs @@ -33,17 +33,17 @@ pub enum ErrorCode { NONE = 0, /// An error response did not include an error code in the format expected by the client. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server. INVALID = 1, - /// An internal failure happened on the client side. Details should be in the local logs. Check if you are using the latest available version or file a report with the developers. + /// An internal failure occurred on the client side. Details should be in the local logs. Check whether the latest available version is in use or file a report with the developers. GENERIC_CLIENT_INTERNAL_ERROR = 2, /// The client does not support the protocol version advertised by the server. GENERIC_CLIENT_UNSUPPORTED_PROTOCOL_VERSION = 3, - /// The response we got from the server was not in the expected format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server. + /// The response received from the server was not in the expected format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and the network connection to the server. GENERIC_INVALID_RESPONSE = 10, /// The operation timed out. Trying again might help. Check the network connection. GENERIC_TIMEOUT = 11, /// The protocol version given by the server does not follow the required format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server. GENERIC_VERSION_MALFORMED = 12, - /// The service responded with a reply that was in the right data format, but the content did not satisfy the protocol. Please file a bug report. + /// The service returned a response in the correct data format, but its content did not satisfy the protocol. File a bug report. GENERIC_REPLY_MALFORMED = 13, /// There is an error in the client-side configuration, for example an option is set to an invalid value. Check the logs and fix the local configuration. GENERIC_CONFIGURATION_INVALID = 14, @@ -51,47 +51,47 @@ pub enum ErrorCode { GENERIC_UNEXPECTED_REQUEST_ERROR = 15, /// The token used by the client to authorize the request does not grant the required permissions for the request. Check the requirements and obtain a suitable authorization token to proceed. GENERIC_TOKEN_PERMISSION_INSUFFICIENT = 16, - /// The HTTP method used is invalid for this endpoint. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + /// The HTTP method used is invalid for this endpoint. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers. GENERIC_METHOD_INVALID = 20, - /// There is no endpoint defined for the URL provided by the client. Check if you used the correct URL and/or file a report with the developers of the client software. + /// There is no endpoint defined for the URL provided by the client. Check whether the URL is correct or file a report with the client software developers. GENERIC_ENDPOINT_UNKNOWN = 21, - /// The JSON in the client's request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + /// The JSON in the client's request was malformed. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers. GENERIC_JSON_INVALID = 22, - /// Some of the HTTP headers provided by the client were malformed and caused the server to not be able to handle the request. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + /// Some of the HTTP headers provided by the client were malformed, so the server could not handle the request. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers. GENERIC_HTTP_HEADERS_MALFORMED = 23, - /// The payto:// URI provided by the client is malformed. Check that you are using the correct syntax as of RFC 8905 and/or that you entered the bank account number correctly. + /// The `payto://` URI provided by the client is malformed. Check that it uses the syntax specified by RFC 8905 and that the bank account number is correct. GENERIC_PAYTO_URI_MALFORMED = 24, - /// A required parameter in the request was missing. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + /// A required parameter in the request was missing. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers. GENERIC_PARAMETER_MISSING = 25, - /// A parameter in the request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + /// A parameter in the request was malformed. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers. GENERIC_PARAMETER_MALFORMED = 26, /// The reserve public key was malformed. GENERIC_RESERVE_PUB_MALFORMED = 27, - /// The body in the request could not be decompressed by the server. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + /// The body in the request could not be decompressed by the server. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers. GENERIC_COMPRESSION_INVALID = 28, - /// A segment in the path of the URL provided by the client is malformed. Check that you are using the correct encoding for the URL. + /// A segment in the path of the URL provided by the client is malformed. Check that the URL uses the correct encoding. GENERIC_PATH_SEGMENT_MALFORMED = 29, - /// The currency involved in the operation is not acceptable for this server. Check your configuration and make sure the currency specified for a given service provider is one of the currencies supported by that provider. + /// The currency involved in the operation is not acceptable for this server. Check the configuration and ensure that the currency specified for the service provider is supported by that provider. GENERIC_CURRENCY_MISMATCH = 30, - /// The URI is longer than the longest URI the HTTP server is willing to parse. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit. + /// The URI is longer than the longest URI the HTTP server is willing to parse. If this was a legitimate request, the server administrator or software developers may need to increase the limit. GENERIC_URI_TOO_LONG = 31, - /// The body is too large to be permissible for the endpoint. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit. + /// The body is too large for the endpoint. If this was a legitimate request, the server administrator or software developers may need to increase the limit. GENERIC_UPLOAD_EXCEEDS_LIMIT = 32, - /// A parameter in the request was given that must not be present. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + /// A parameter that must not be present was included in the request. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers. GENERIC_PARAMETER_EXTRA = 33, /// The service refused the request due to lack of proper authorization. Accessing this endpoint requires an access token from the account owner. GENERIC_UNAUTHORIZED = 40, - /// The service refused the request as the given authorization token is unknown. You should request a valid access token from the account owner. + /// The service refused the request because the given authorization token is unknown. The client should request a valid access token from the account owner. GENERIC_TOKEN_UNKNOWN = 41, - /// The service refused the request as the given authorization token expired. You should request a fresh authorization token from the account owner. + /// The service refused the request because the given authorization token expired. The client should request a fresh authorization token from the account owner. GENERIC_TOKEN_EXPIRED = 42, - /// The service refused the request as the given authorization token is invalid or malformed. You should check that you have the right credentials. + /// The service refused the request because the given authorization token is invalid or malformed. The client should check that it has the correct credentials. GENERIC_TOKEN_MALFORMED = 43, - /// The service refused the request due to lack of proper rights on the resource. You may need different credentials to be allowed to perform this operation. + /// The service refused the request because the client lacks the required rights on the resource. The client may need different credentials to perform this operation. GENERIC_FORBIDDEN = 44, - /// The service failed initialize its connection to the database. The system administrator should check that the service has permissions to access the database and that the database is running. + /// The service failed to initialize its connection to the database. The system administrator should check that the service has permission to access the database and that the database is running. GENERIC_DB_SETUP_FAILED = 50, - /// The service encountered an error event to just start the database transaction. The system administrator should check that the database is running. + /// The service encountered an error while starting the database transaction. The system administrator should check that the database is running. GENERIC_DB_START_FAILED = 51, /// The service failed to store information in its database. The system administrator should check that the database is running and review the service logs. GENERIC_DB_STORE_FAILED = 52, @@ -99,27 +99,27 @@ pub enum ErrorCode { GENERIC_DB_FETCH_FAILED = 53, /// The service encountered an unrecoverable error trying to commit a transaction to the database. The system administrator should check that the database is running and review the service logs. GENERIC_DB_COMMIT_FAILED = 54, - /// The service encountered an error event to commit the database transaction, even after repeatedly retrying it there was always a conflicting transaction. This indicates a repeated serialization error; it should only happen if some client maliciously tries to create conflicting concurrent transactions. It could also be a sign of a missing index. Check if you are using the latest available version and/or file a report with the developers. + /// The service encountered an error while committing the database transaction; despite repeated retries, a conflicting transaction persisted. This indicates a serialization error. It may be caused by conflicting concurrent transactions or a missing index. Check that the latest available version is being used and file a report with the developers if the problem persists. GENERIC_DB_SOFT_FAILURE = 55, - /// The service's database is inconsistent and violates service-internal invariants. Check if you are using the latest available version and/or file a report with the developers. + /// The service's database is inconsistent and violates service-internal invariants. Check whether the latest available version is in use or file a report with the developers. GENERIC_DB_INVARIANT_FAILURE = 56, - /// The HTTP server experienced an internal invariant failure (bug). Check if you are using the latest available version and/or file a report with the developers. + /// The HTTP server experienced an internal invariant failure (bug). Check whether the latest available version is in use or file a report with the developers. GENERIC_INTERNAL_INVARIANT_FAILURE = 60, - /// The service could not compute a cryptographic hash over some JSON value. Check if you are using the latest available version and/or file a report with the developers. + /// The service could not compute a cryptographic hash over a JSON value. Check whether the latest available version is in use or file a report with the developers. GENERIC_FAILED_COMPUTE_JSON_HASH = 61, - /// The service could not compute an amount. Check if you are using the latest available version and/or file a report with the developers. + /// The service could not compute an amount. Check whether the latest available version is in use or file a report with the developers. GENERIC_FAILED_COMPUTE_AMOUNT = 62, /// The HTTP server had insufficient memory to parse the request. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate. GENERIC_PARSER_OUT_OF_MEMORY = 70, /// The HTTP server failed to allocate memory. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate. GENERIC_ALLOCATION_FAILURE = 71, - /// The HTTP server failed to allocate memory for building JSON reply. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate. + /// The HTTP server failed to allocate memory for building a JSON response. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Ask the system administrator to investigate. GENERIC_JSON_ALLOCATION_FAILURE = 72, /// The HTTP server failed to allocate memory for making a CURL request. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate. GENERIC_CURL_ALLOCATION_FAILURE = 73, - /// The backend could not locate a required template to generate an HTML reply. The system administrator should check if the resource files are installed in the correct location and are readable to the service. + /// The backend could not locate a required template to generate an HTML response. The system administrator should check whether the resource files are installed in the correct location and readable by the service. GENERIC_FAILED_TO_LOAD_TEMPLATE = 74, - /// The backend could not expand the template to generate an HTML reply. The system administrator should investigate the logs and check if the templates are well-formed. + /// The backend could not expand the template to generate an HTML response. The system administrator should investigate the logs and check whether the templates are well-formed. GENERIC_FAILED_TO_EXPAND_TEMPLATE = 75, /// The requested feature is not implemented by the server. The system administrator of the server may try to update the software or build it with other options to enable the feature. GENERIC_FEATURE_NOT_IMPLEMENTED = 76, @@ -129,13 +129,13 @@ pub enum ErrorCode { GENERIC_REQUESTED_FORMAT_UNSUPPORTED = 78, /// Exchange is badly configured and thus cannot operate. EXCHANGE_GENERIC_BAD_CONFIGURATION = 1000, - /// Operation specified unknown for this endpoint. + /// The specified operation is unknown for this endpoint. EXCHANGE_GENERIC_OPERATION_UNKNOWN = 1001, /// The number of segments included in the URI does not match the number of segments expected by the endpoint. EXCHANGE_GENERIC_WRONG_NUMBER_OF_SEGMENTS = 1002, /// The same coin was already used with a different denomination previously. EXCHANGE_GENERIC_COIN_CONFLICTING_DENOMINATION_KEY = 1003, - /// The public key of given to a "/coins/" endpoint of the exchange was malformed. + /// The public key given to the `/coins/` endpoint of the exchange was malformed. EXCHANGE_GENERIC_COINS_INVALID_COIN_PUB = 1004, /// The exchange is not aware of the denomination key the wallet requested for the operation. EXCHANGE_GENERIC_DENOMINATION_KEY_UNKNOWN = 1005, @@ -145,13 +145,13 @@ pub enum ErrorCode { EXCHANGE_GENERIC_KEYS_MISSING = 1007, /// Validity period of the denomination lies in the future. EXCHANGE_GENERIC_DENOMINATION_VALIDITY_IN_FUTURE = 1008, - /// Denomination key of the coin is past its expiration time for the requested operation. + /// The denomination key of the coin has passed its expiration time for the requested operation. EXCHANGE_GENERIC_DENOMINATION_EXPIRED = 1009, /// Denomination key of the coin has been revoked. EXCHANGE_GENERIC_DENOMINATION_REVOKED = 1010, /// An operation where the exchange interacted with a security module timed out. EXCHANGE_GENERIC_SECMOD_TIMEOUT = 1011, - /// The respective coin did not have sufficient residual value for the operation. The "history" in this response provides the "residual_value" of the coin, which may be less than its "original_value". + /// The coin did not have sufficient residual value for the operation. The `history` in this response provides the coin's `residual_value`, which may be less than its `original_value`. EXCHANGE_GENERIC_INSUFFICIENT_FUNDS = 1012, /// The exchange had an internal error reconstructing the transaction history of the coin that was being processed. EXCHANGE_GENERIC_COIN_HISTORY_COMPUTATION_FAILED = 1013, @@ -181,13 +181,13 @@ pub enum ErrorCode { EXCHANGE_GENERIC_PURSE_UNKNOWN = 1025, /// The purse has expired. EXCHANGE_GENERIC_PURSE_EXPIRED = 1026, - /// The exchange has no information about the "reserve_pub" that was given. + /// The exchange has no information about the `reserve_pub` that was provided. EXCHANGE_GENERIC_RESERVE_UNKNOWN = 1027, /// The exchange is not allowed to proceed with the operation until the client has satisfied a KYC check. EXCHANGE_GENERIC_KYC_REQUIRED = 1028, - /// Inconsistency between provided age commitment and attest: either none or both must be provided + /// The provided age commitment and attestation are inconsistent: either both must be provided or neither may be provided. EXCHANGE_PURSE_DEPOSIT_COIN_CONFLICTING_ATTEST_VS_AGE_COMMITMENT = 1029, - /// The provided attestation for the minimum age couldn't be verified by the exchange. + /// The provided attestation for the minimum age could not be verified by the exchange. EXCHANGE_PURSE_DEPOSIT_COIN_AGE_ATTESTATION_FAILURE = 1030, /// The purse was deleted. EXCHANGE_GENERIC_PURSE_DELETED = 1031, @@ -209,11 +209,11 @@ pub enum ErrorCode { EXCHANGE_GENERIC_KYC_FALLBACK_FAILED = 1039, /// The specified fallback measure for a KYC operation is unknown. This is a bug. Users should contact the exchange operator. EXCHANGE_GENERIC_KYC_FALLBACK_UNKNOWN = 1040, - /// The exchange is not aware of the bank account (payto URI or hash thereof) specified in the request and thus cannot perform the requested operation. The client should check that the select account is correct. + /// The exchange is not aware of the bank account (payto URI or hash thereof) specified in the request and thus cannot perform the requested operation. The client should check that the selected account is correct. EXCHANGE_GENERIC_BANK_ACCOUNT_UNKNOWN = 1041, /// The AML processing at the exchange did not terminate in an adequate timeframe. This is likely a configuration problem at the payment service provider. Users should contact the exchange operator. EXCHANGE_GENERIC_AML_PROGRAM_RECURSION_DETECTED = 1042, - /// A check against sanction lists failed. This is indicative of an internal error in the sanction list processing logic. This needs to be investigated by the exchange operator. + /// A check against sanctions lists failed. This indicates an internal error in the sanctions-list processing logic. The exchange operator should investigate. EXCHANGE_GENERIC_KYC_SANCTION_LIST_CHECK_FAILED = 1043, /// The process to generate a PDF from a template failed. A likely cause is a syntactic error in the template. This needs to be investigated by the exchange operator. EXCHANGE_GENERIC_TYPST_TEMPLATE_FAILURE = 1044, @@ -231,23 +231,23 @@ pub enum ErrorCode { EXCHANGE_GENERIC_AML_OFFICER_READ_ONLY = 1050, /// The exchange did not find information about the specified transaction in the database. EXCHANGE_DEPOSITS_GET_NOT_FOUND = 1100, - /// The wire hash of given to a "/deposits/" handler was malformed. + /// The wire hash given to the `/deposits/` handler was malformed. EXCHANGE_DEPOSITS_GET_INVALID_H_WIRE = 1101, - /// The merchant key of given to a "/deposits/" handler was malformed. + /// The merchant key given to the `/deposits/` handler was malformed. EXCHANGE_DEPOSITS_GET_INVALID_MERCHANT_PUB = 1102, - /// The hash of the contract terms given to a "/deposits/" handler was malformed. + /// The hash of the contract terms given to the `/deposits/` handler was malformed. EXCHANGE_DEPOSITS_GET_INVALID_H_CONTRACT_TERMS = 1103, - /// The coin public key of given to a "/deposits/" handler was malformed. + /// The coin public key given to the `/deposits/` handler was malformed. EXCHANGE_DEPOSITS_GET_INVALID_COIN_PUB = 1104, - /// The signature returned by the exchange in a /deposits/ request was malformed. + /// The signature returned by the exchange in a `/deposits/` request was malformed. EXCHANGE_DEPOSITS_GET_INVALID_SIGNATURE_BY_EXCHANGE = 1105, /// The signature of the merchant is invalid. EXCHANGE_DEPOSITS_GET_MERCHANT_SIGNATURE_INVALID = 1106, - /// The provided policy data was not accepted + /// The provided policy data was not accepted. EXCHANGE_DEPOSITS_POLICY_NOT_ACCEPTED = 1107, - /// The given reserve does not have sufficient funds to admit the requested withdraw operation at this time. The response includes the current "balance" of the reserve as well as the transaction "history" that lead to this balance. + /// The given reserve does not have sufficient funds to admit the requested withdrawal operation at this time. The response includes the current `balance` of the reserve and the transaction `history` that led to this balance. EXCHANGE_WITHDRAW_INSUFFICIENT_FUNDS = 1150, - /// The given reserve does not have sufficient funds to admit the requested age-withdraw operation at this time. The response includes the current "balance" of the reserve as well as the transaction "history" that lead to this balance. + /// The given reserve does not have sufficient funds to admit the requested age-withdrawal operation at this time. The response includes the current `balance` of the reserve and the transaction `history` that led to this balance. EXCHANGE_AGE_WITHDRAW_INSUFFICIENT_FUNDS = 1151, /// The amount to withdraw together with the fee exceeds the numeric range for Taler amounts. This is not a client failure, as the coin value and fees come from the exchange's configuration. EXCHANGE_WITHDRAW_AMOUNT_FEE_OVERFLOW = 1152, @@ -255,7 +255,7 @@ pub enum ErrorCode { EXCHANGE_WITHDRAW_SIGNATURE_FAILED = 1153, /// The signature of the reserve is not valid. EXCHANGE_WITHDRAW_RESERVE_SIGNATURE_INVALID = 1154, - /// When computing the reserve history, we ended up with a negative overall balance, which should be impossible. + /// Computing the reserve history resulted in a negative overall balance, which should be impossible. EXCHANGE_RESERVE_HISTORY_ERROR_INSUFFICIENT_FUNDS = 1155, /// The reserve did not have sufficient funds in it to pay for a full reserve history statement. EXCHANGE_GET_RESERVE_HISTORY_ERROR_INSUFFICIENT_BALANCE = 1156, @@ -271,10 +271,12 @@ pub enum ErrorCode { EXCHANGE_WITHDRAW_AMOUNT_OVERFLOW = 1162, /// The total sum of value and fees from the denominations differs from the committed amount with fees. EXCHANGE_AGE_WITHDRAW_AMOUNT_INCORRECT = 1163, - /// The original commitment differs from the calculated hash + /// The original commitment differs from the calculated hash. EXCHANGE_WITHDRAW_REVEAL_INVALID_HASH = 1164, - /// The maximum age in the commitment is too large for the reserve + /// The maximum age in the commitment is too large for the reserve. EXCHANGE_WITHDRAW_MAXIMUM_AGE_TOO_LARGE = 1165, + /// 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. + EXCHANGE_WITHDRAW_AGE_MASK_MISMATCH = 1166, /// The withdraw operation included the same planchet more than once. This is not allowed. EXCHANGE_WITHDRAW_IDEMPOTENT_PLANCHET = 1175, /// The signature made by the coin over the deposit permission is not valid. @@ -285,9 +287,9 @@ pub enum ErrorCode { EXCHANGE_DEPOSIT_NEGATIVE_VALUE_AFTER_FEE = 1207, /// The stated refund deadline is after the wire deadline. EXCHANGE_DEPOSIT_REFUND_DEADLINE_AFTER_WIRE_DEADLINE = 1208, - /// The stated wire deadline is "never", which makes no sense. + /// The stated wire deadline is `never`, which is not allowed. EXCHANGE_DEPOSIT_WIRE_DEADLINE_IS_NEVER = 1209, - /// The exchange failed to canonicalize and hash the given wire format. For example, the merchant failed to provide the "salt" or a valid payto:// URI in the wire details. Note that while the exchange will do some basic sanity checking on the wire details, it cannot warrant that the banking system will ultimately be able to route to the specified address, even if this check passed. + /// The exchange failed to canonicalize and hash the given wire format. For example, the merchant failed to provide the `salt` or a valid `payto://` URI in the wire details. Note that the exchange performs only basic sanity checking on the wire details; it cannot guarantee that the banking system can route funds to the specified address, even if this check succeeds. EXCHANGE_DEPOSIT_INVALID_WIRE_FORMAT_JSON = 1210, /// The hash of the given wire address does not match the wire hash specified in the proposal data. EXCHANGE_DEPOSIT_INVALID_WIRE_FORMAT_CONTRACT_HASH_CONFLICT = 1211, @@ -305,7 +307,7 @@ pub enum ErrorCode { EXCHANGE_MELT_FEES_EXCEED_CONTRIBUTION = 1302, /// The signature made with the coin to be melted is invalid. EXCHANGE_MELT_COIN_SIGNATURE_INVALID = 1303, - /// The denomination of the given coin has past its expiration date and it is also not a valid zombie (that is, was not refreshed with the fresh coin being subjected to recoup). + /// The denomination of the given coin has passed its expiration date and is not a valid zombie (that is, it was not refreshed with the fresh coin being subjected to recoup). EXCHANGE_MELT_COIN_EXPIRED_NO_ZOMBIE = 1305, /// The signature returned by the exchange in a melt request was malformed. EXCHANGE_MELT_INVALID_SIGNATURE_BY_EXCHANGE = 1306, @@ -325,9 +327,9 @@ pub enum ErrorCode { EXCHANGE_REFRESHES_REVEAL_AMOUNT_INSUFFICIENT = 1360, /// The signature made with the coin over the link data is invalid. EXCHANGE_REFRESHES_REVEAL_LINK_SIGNATURE_INVALID = 1361, - /// The refresh session hash given to a /refreshes/ handler was malformed. + /// The refresh session hash given to the `/refreshes/` handler was malformed. EXCHANGE_REFRESHES_REVEAL_INVALID_RCH = 1362, - /// Operation specified invalid for this endpoint. + /// The specified operation is invalid for this endpoint. EXCHANGE_REFRESHES_REVEAL_OPERATION_INVALID = 1363, /// The client provided age commitment data, but age restriction is not supported on this server. EXCHANGE_REFRESHES_REVEAL_AGE_RESTRICTION_NOT_SUPPORTED = 1364, @@ -335,7 +337,7 @@ pub enum ErrorCode { EXCHANGE_REFRESHES_REVEAL_AGE_RESTRICTION_COMMITMENT_INVALID = 1365, /// The coin specified in the link request is unknown to the exchange. EXCHANGE_LINK_COIN_UNKNOWN = 1400, - /// The public key of given to a /transfers/ handler was malformed. + /// The public key given to the `/transfers/` handler was malformed. EXCHANGE_TRANSFERS_GET_WTID_MALFORMED = 1450, /// The exchange did not find information about the specified wire transfer identifier in the database. EXCHANGE_TRANSFERS_GET_WTID_NOT_FOUND = 1451, @@ -347,13 +349,13 @@ pub enum ErrorCode { EXCHANGE_PURSES_INVALID_WAIT_TARGET = 1475, /// The signature on the purse status returned by the exchange was invalid. EXCHANGE_PURSES_GET_INVALID_SIGNATURE_BY_EXCHANGE = 1476, - /// The exchange knows literally nothing about the coin we were asked to refund. But without a transaction history, we cannot issue a refund. This is kind-of OK, the owner should just refresh it directly without executing the refund. + /// The exchange has no information about the coin to be refunded. Without a transaction history, it cannot issue a refund. This is acceptable; the owner should refresh the coin directly without executing the refund. EXCHANGE_REFUND_COIN_NOT_FOUND = 1500, - /// We could not process the refund request as the coin's transaction history does not permit the requested refund because then refunds would exceed the deposit amount. The "history" in the response proves this. + /// The refund request could not be processed because the coin's transaction history does not permit it: the refunds would exceed the deposit amount. The `history` in the response demonstrates this. EXCHANGE_REFUND_CONFLICT_DEPOSIT_INSUFFICIENT = 1501, - /// The exchange knows about the coin we were asked to refund, but not about the specific /deposit operation. Hence, we cannot issue a refund (as we do not know if this merchant public key is authorized to do a refund). + /// The exchange knows about the coin to be refunded, but not about the specific `/deposit` operation. Therefore, it cannot issue a refund because it does not know whether this merchant public key is authorized to issue one. EXCHANGE_REFUND_DEPOSIT_NOT_FOUND = 1502, - /// The exchange can no longer refund the customer/coin as the money was already transferred (paid out) to the merchant. (It should be past the refund deadline.) + /// The exchange can no longer refund the customer or coin because the money was already transferred to the merchant. The refund deadline has passed. EXCHANGE_REFUND_MERCHANT_ALREADY_PAID = 1503, /// The refund fee specified for the request is lower than the refund fee charged by the exchange for the given denomination key of the refunded coin. EXCHANGE_REFUND_FEE_TOO_LOW = 1504, @@ -381,6 +383,12 @@ pub enum ErrorCode { EXCHANGE_RECOUP_COIN_BALANCE_NEGATIVE = 1554, /// The coin's denomination has not been revoked yet. EXCHANGE_RECOUP_NOT_ELIGIBLE = 1555, + /// The number of coins in the recoup request does not match the number of coins signed in the withdraw operation. + EXCHANGE_RECOUP_WITHDRAW_BATCH_SIZE_MISMATCH = 1556, + /// The hash over the coins in the recoup request does not match the commitment of the withdraw operation. At least one disclosed coin was not part of the operation. + EXCHANGE_RECOUP_WITHDRAW_COMMITMENT_MISMATCH = 1557, + /// The denomination of a disclosed coin differs from the denomination recorded for that position of the withdraw operation. + EXCHANGE_RECOUP_WITHDRAW_DENOMINATION_MISMATCH = 1558, /// The given coin signature is invalid for the request. EXCHANGE_RECOUP_REFRESH_SIGNATURE_INVALID = 1575, /// The exchange could not find the corresponding melt operation. The request is denied. @@ -389,19 +397,25 @@ pub enum ErrorCode { EXCHANGE_RECOUP_REFRESH_BLINDING_FAILED = 1578, /// The coin's denomination has not been revoked yet. EXCHANGE_RECOUP_REFRESH_NOT_ELIGIBLE = 1580, - /// This exchange does not allow clients to request /keys for times other than the current (exchange) time. + /// The number of coins in the recoup request does not match the number of coins signed in the refresh operation. + EXCHANGE_RECOUP_REFRESH_BATCH_SIZE_MISMATCH = 1581, + /// The hash over the coins in the recoup request does not match the commitment of the refresh operation. At least one disclosed coin was not part of the operation. + EXCHANGE_RECOUP_REFRESH_COMMITMENT_MISMATCH = 1582, + /// The denomination of a disclosed coin differs from the denomination recorded for that position of the refresh operation. + EXCHANGE_RECOUP_REFRESH_DENOMINATION_MISMATCH = 1583, + /// This exchange does not allow clients to request `/keys` for times other than the current exchange time. EXCHANGE_KEYS_TIMETRAVEL_FORBIDDEN = 1600, /// A signature in the server's response was malformed. EXCHANGE_WIRE_SIGNATURE_INVALID = 1650, - /// No bank accounts are enabled for the exchange. The administrator should enable-account using the taler-exchange-offline tool. + /// No bank accounts are enabled for the exchange. The administrator should enable an account using the `taler-exchange-offline` tool. EXCHANGE_WIRE_NO_ACCOUNTS_CONFIGURED = 1651, /// The payto:// URI stored in the exchange database for its bank account is malformed. EXCHANGE_WIRE_INVALID_PAYTO_CONFIGURED = 1652, /// No wire fees are configured for an enabled wire method of the exchange. The administrator must set the wire-fee using the taler-exchange-offline tool. EXCHANGE_WIRE_FEES_NOT_CONFIGURED = 1653, - /// This purse was previously created with different meta data. + /// This purse was previously created with different metadata. EXCHANGE_RESERVES_PURSE_CREATE_CONFLICTING_META_DATA = 1675, - /// This purse was previously merged with different meta data. + /// This purse was previously merged with different metadata. EXCHANGE_RESERVES_PURSE_MERGE_CONFLICTING_META_DATA = 1676, /// The reserve has insufficient funds to create another purse. EXCHANGE_RESERVES_PURSE_CREATE_INSUFFICIENT_FUNDS = 1677, @@ -419,7 +433,7 @@ pub enum ErrorCode { EXCHANGE_DENOMINATION_HELPER_BUG = 1701, /// The helper refuses to sign with the key, because it is too early: the validity period has not yet started. EXCHANGE_DENOMINATION_HELPER_TOO_EARLY = 1702, - /// The signature of the exchange on the reply was invalid. + /// The exchange's signature on the response was invalid. EXCHANGE_PURSE_DEPOSIT_EXCHANGE_SIGNATURE_INVALID = 1725, /// The exchange failed to talk to the process responsible for its private signing keys. EXCHANGE_SIGNKEY_HELPER_UNAVAILABLE = 1750, @@ -437,11 +451,13 @@ pub enum ErrorCode { EXCHANGE_RESERVES_PURSE_MERGE_SIGNATURE_INVALID = 1777, /// The signature by the reserve affirming the merge is invalid. EXCHANGE_RESERVES_RESERVE_MERGE_SIGNATURE_INVALID = 1778, + /// The purse expiration time is further in the future than the exchange allows. + EXCHANGE_RESERVES_PURSE_EXPIRATION_TOO_LATE = 1779, /// The signature by the reserve affirming the open operation is invalid. EXCHANGE_RESERVES_OPEN_BAD_SIGNATURE = 1785, /// The signature by the reserve affirming the close operation is invalid. EXCHANGE_RESERVES_CLOSE_BAD_SIGNATURE = 1786, - /// The signature by the reserve affirming the attestion request is invalid. + /// The signature by the reserve affirming the attestation request is invalid. EXCHANGE_RESERVES_ATTEST_BAD_SIGNATURE = 1787, /// The exchange does not know an origin account to which the remaining reserve balance could be wired to, and the wallet failed to provide one. EXCHANGE_RESERVES_CLOSE_NO_TARGET_ACCOUNT = 1788, @@ -449,6 +465,8 @@ pub enum ErrorCode { EXCHANGE_RESERVES_OPEN_INSUFFICIENT_FUNDS = 1789, /// A coin signature for a deposit to pay to open the reserve is invalid. EXCHANGE_RESERVES_OPEN_COIN_SIGNATURE_INVALID = 1790, + /// 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. + EXCHANGE_RESERVES_OPEN_TIMESTAMP_REUSE = 1791, /// The auditor that was supposed to be disabled is unknown to this exchange. EXCHANGE_MANAGEMENT_AUDITOR_NOT_FOUND = 1800, /// The exchange has a more recently signed conflicting instruction and is thus refusing the current change (replay detected). @@ -493,17 +511,17 @@ pub enum ErrorCode { EXCHANGE_AML_DECISION_INVALID_OFFICER = 1826, /// There is a more recent AML decision on file. The decision was rejected as timestamps of AML decisions must be monotonically increasing. EXCHANGE_AML_DECISION_MORE_RECENT_PRESENT = 1827, - /// There AML decision would impose an AML check of a type that is not provided by any KYC provider known to the exchange. + /// The AML decision would impose an AML check of a type that is not provided by any KYC provider known to the exchange. EXCHANGE_AML_DECISION_UNKNOWN_CHECK = 1828, /// The signature affirming the change in the AML officer status is invalid. EXCHANGE_MANAGEMENT_UPDATE_AML_OFFICER_SIGNATURE_INVALID = 1830, /// A more recent decision about the AML officer status is known to the exchange. EXCHANGE_MANAGEMENT_AML_OFFICERS_MORE_RECENT_PRESENT = 1831, - /// The exchange already has this denomination key configured, but with different meta data. This should not be possible, contact the developers for support. + /// The exchange already has this denomination key configured, but with different metadata. This should not be possible; contact the developers for support. EXCHANGE_MANAGEMENT_CONFLICTING_DENOMINATION_META_DATA = 1832, - /// The exchange already has this signing key configured, but with different meta data. This should not be possible, contact the developers for support. + /// The exchange already has this signing key configured, but with different metadata. This should not be possible; contact the developers for support. EXCHANGE_MANAGEMENT_CONFLICTING_SIGNKEY_META_DATA = 1833, - /// The purse was previously created with different meta data. + /// The purse was previously created with different metadata. EXCHANGE_PURSE_CREATE_CONFLICTING_META_DATA = 1850, /// The purse was previously created with a different contract. EXCHANGE_PURSE_CREATE_CONFLICTING_CONTRACT_STORED = 1851, @@ -511,20 +529,24 @@ pub enum ErrorCode { EXCHANGE_PURSE_CREATE_COIN_SIGNATURE_INVALID = 1852, /// The purse expiration time is in the past. EXCHANGE_PURSE_CREATE_EXPIRATION_BEFORE_NOW = 1853, - /// The purse expiration time is "never". + /// The purse expiration time is `never`. EXCHANGE_PURSE_CREATE_EXPIRATION_IS_NEVER = 1854, - /// The purse signature over the purse meta data is invalid. + /// The purse signature over the purse metadata is invalid. EXCHANGE_PURSE_CREATE_SIGNATURE_INVALID = 1855, /// The signature over the encrypted contract is invalid. EXCHANGE_PURSE_ECONTRACT_SIGNATURE_INVALID = 1856, /// The signature from the exchange over the confirmation is invalid. EXCHANGE_PURSE_CREATE_EXCHANGE_SIGNATURE_INVALID = 1857, - /// The coin was previously deposited with different meta data. + /// The coin was previously deposited with different metadata. EXCHANGE_PURSE_DEPOSIT_CONFLICTING_META_DATA = 1858, - /// The encrypted contract was previously uploaded with different meta data. + /// The encrypted contract was previously uploaded with different metadata. EXCHANGE_PURSE_ECONTRACT_CONFLICTING_META_DATA = 1859, /// The deposited amount is less than the purse fee. EXCHANGE_CREATE_PURSE_NEGATIVE_VALUE_AFTER_FEE = 1860, + /// The purse expiration time is further in the future than the exchange allows. + 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. + EXCHANGE_PURSE_DENOMINATION_LEGAL_EXPIRES_TOO_SOON = 1863, /// The signature using the merge key is invalid. EXCHANGE_PURSE_MERGE_INVALID_MERGE_SIGNATURE = 1876, /// The signature using the reserve key is invalid. @@ -539,7 +561,7 @@ pub enum ErrorCode { EXCHANGE_MANAGEMENT_ADD_PARTNER_SIGNATURE_INVALID = 1890, /// Conflicting data for the partner already exists with the exchange. EXCHANGE_MANAGEMENT_ADD_PARTNER_DATA_CONFLICT = 1891, - /// The auditor signature over the denomination meta data is invalid. + /// The auditor signature over the denomination metadata is invalid. EXCHANGE_AUDITORS_AUDITOR_SIGNATURE_INVALID = 1900, /// The auditor that was specified is unknown to this exchange. EXCHANGE_AUDITORS_AUDITOR_UNKNOWN = 1901, @@ -551,7 +573,7 @@ pub enum ErrorCode { EXCHANGE_KYC_GENERIC_AML_PROGRAM_TIMEOUT = 1918, /// The KYC info access token is not recognized. Hence the request was denied. EXCHANGE_KYC_INFO_AUTHORIZATION_FAILED = 1919, - /// The exchange got stuck in a long series of (likely recursive) KYC rules without user-inputs that did not result in a timely conclusion. This is a configuration failure. Please contact the administrator. + /// The exchange got stuck in a long series of likely recursive KYC rules without user input, preventing a timely conclusion. This is a configuration failure. The administrator should investigate. EXCHANGE_KYC_RECURSIVE_RULE_DETECTED = 1920, /// The submitted KYC data lacks an attribute that is required by the KYC form. Please submit the complete form. EXCHANGE_KYC_AML_FORM_INCOMPLETE = 1921, @@ -569,7 +591,7 @@ pub enum ErrorCode { EXCHANGE_KYC_PROOF_BACKEND_ERROR = 1927, /// The backend signaled an authorization failure. EXCHANGE_KYC_PROOF_BACKEND_AUTHORIZATION_FAILED = 1928, - /// The exchange is unaware of having made an the authorization request. + /// The exchange is unaware of having made the authorization request. EXCHANGE_KYC_PROOF_REQUEST_UNKNOWN = 1929, /// The KYC authorization signature was invalid. Hence the request was denied. EXCHANGE_KYC_CHECK_AUTHORIZATION_FAILED = 1930, @@ -593,7 +615,7 @@ pub enum ErrorCode { EXCHANGE_KYC_CHECK_REQUEST_UNKNOWN = 1939, /// The exchange has no account public key to check the KYC authorization signature against. Hence the request was denied. The user should do a wire transfer to the exchange with the KYC authorization key in the subject. EXCHANGE_KYC_CHECK_AUTHORIZATION_KEY_UNKNOWN = 1940, - /// The form has been previously uploaded, and may only be filed once. The user should be redirected to their main KYC page and see if any other steps need to be taken. + /// The form was previously uploaded and may only be submitted once. The user should be redirected to the main KYC page to determine whether further steps are required. EXCHANGE_KYC_FORM_ALREADY_UPLOADED = 1941, /// The internal state of the exchange specifying KYC measures is malformed. Please contact technical support. EXCHANGE_KYC_MEASURES_MALFORMED = 1942, @@ -633,7 +655,7 @@ pub enum ErrorCode { MERCHANT_GENERIC_INSTANCE_UNKNOWN = 2000, /// The start and end-times in the wire fee structure leave a hole. This is not allowed. MERCHANT_GENERIC_HOLE_IN_WIRE_FEE_STRUCTURE = 2001, - /// The master key of the exchange does not match the one configured for this merchant. As a result, we refuse to do business with this exchange. The administrator should check if they configured the exchange correctly in the merchant backend. + /// The master key of the exchange does not match the one configured for this merchant. As a result, the merchant refuses to do business with this exchange. The administrator should check whether the exchange is configured correctly in the merchant backend. MERCHANT_GENERIC_EXCHANGE_MASTER_KEY_MISMATCH = 2002, /// The product category is not known to the backend. MERCHANT_GENERIC_CATEGORY_UNKNOWN = 2003, @@ -641,7 +663,7 @@ pub enum ErrorCode { MERCHANT_GENERIC_UNIT_UNKNOWN = 2004, /// The proposal is not known to the backend. MERCHANT_GENERIC_ORDER_UNKNOWN = 2005, - /// The order provided to the backend could not be completed, because a product to be completed via inventory data is not actually in our inventory. + /// The order provided to the backend could not be completed because a product specified through inventory data is not in the inventory. MERCHANT_GENERIC_PRODUCT_UNKNOWN = 2006, /// The reward ID is unknown. This could happen if the reward has expired. MERCHANT_GENERIC_REWARD_ID_UNKNOWN = 2007, @@ -655,7 +677,7 @@ pub enum ErrorCode { MERCHANT_GENERIC_EXCHANGE_TIMEOUT = 2011, /// The merchant failed to talk to the exchange. MERCHANT_GENERIC_EXCHANGE_CONNECT_FAILURE = 2012, - /// The exchange returned a maformed response. + /// The exchange returned a malformed response. MERCHANT_GENERIC_EXCHANGE_REPLY_MALFORMED = 2013, /// The exchange returned an unexpected response status. MERCHANT_GENERIC_EXCHANGE_UNEXPECTED_STATUS = 2014, @@ -665,13 +687,13 @@ pub enum ErrorCode { MERCHANT_GENERIC_INSTANCE_DELETED = 2016, /// The backend could not find the inbound wire transfer specified in the request. MERCHANT_GENERIC_TRANSFER_UNKNOWN = 2017, - /// The backend could not find the template(id) because it is not exist. + /// The backend could not find the template with the specified ID because it does not exist. MERCHANT_GENERIC_TEMPLATE_UNKNOWN = 2018, - /// The backend could not find the webhook(id) because it is not exist. + /// The backend could not find the webhook with the specified ID because it does not exist. MERCHANT_GENERIC_WEBHOOK_UNKNOWN = 2019, - /// The backend could not find the webhook(serial) because it is not exist. + /// The backend could not find the webhook with the specified serial because it does not exist. MERCHANT_GENERIC_PENDING_WEBHOOK_UNKNOWN = 2020, - /// The backend could not find the OTP device(id) because it is not exist. + /// The backend could not find the OTP device with the specified ID because it does not exist. MERCHANT_GENERIC_OTP_DEVICE_UNKNOWN = 2021, /// The account is not known to the backend. MERCHANT_GENERIC_ACCOUNT_UNKNOWN = 2022, @@ -691,11 +713,11 @@ pub enum ErrorCode { MERCHANT_EXCHANGE_SIGN_PUB_UNKNOWN = 2029, /// The merchant backend does not support the requested feature. MERCHANT_GENERIC_FEATURE_NOT_AVAILABLE = 2030, - /// This operation requires multi-factor authorization and the respective instance does not have a sufficient number of factors that could be validated configured. You need to ask the system administrator to perform this operation. + /// This operation requires multi-factor authorization, but the instance does not have enough configured factors that can be validated. The system administrator must perform this operation. MERCHANT_GENERIC_MFA_MISSING = 2031, /// A donation authority (Donau) provided an invalid response. This should be analyzed by the administrator. Trying again later may help. MERCHANT_GENERIC_DONAU_INVALID_RESPONSE = 2032, - /// The unit referenced in the request is builtin and cannot be modified or deleted. + /// The unit referenced in the request is built-in and cannot be modified or deleted. MERCHANT_GENERIC_UNIT_BUILTIN = 2033, /// The report ID provided to the backend is not known to the backend. MERCHANT_GENERIC_REPORT_UNKNOWN = 2034, @@ -709,12 +731,14 @@ pub enum ErrorCode { MERCHANT_GENERIC_SESSION_UNKNOWN = 2038, /// The merchant does not have a charity associated with the selected Donau. As a result, it cannot generate the requested donation receipt. This could happen if the charity was removed from the backend between order creation and payment. MERCHANT_GENERIC_DONAU_CHARITY_UNKNOWN = 2039, - /// The merchant does not expect any transfer with the given ID and can thus not return any details about it. + /// The merchant does not expect a transfer with the given ID and therefore cannot return any details about it. MERCHANT_GENERIC_EXPECTED_TRANSFER_UNKNOWN = 2040, /// The Donau is not known to the backend. MERCHANT_GENERIC_DONAU_UNKNOWN = 2041, /// The access token is not known to the backend. MERCHANT_GENERIC_ACCESS_TOKEN_UNKNOWN = 2042, + /// The fountain is not known to the backend. + MERCHANT_GENERIC_FOUNTAIN_UNKNOWN = 2043, /// One of the binaries needed to generate the PDF is not installed. If this feature is required, the system administrator should make sure Typst and pdftk are both installed. MERCHANT_GENERIC_NO_TYPST_OR_PDFTK = 2048, /// The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response. @@ -737,12 +761,18 @@ pub enum ErrorCode { MERCHANT_TAN_TOO_MANY_ATTEMPTS = 2127, /// The backend failed to launch a helper process required for the multi-factor authentication step. The backend operator should check the logs and fix the Taler merchant backend configuration. MERCHANT_TAN_MFA_HELPER_EXEC_FAILED = 2128, - /// The challenge was already solved. Thus, we refuse to send it again. + /// The challenge was already solved. Therefore, the service refuses to send it again. MERCHANT_TAN_CHALLENGE_SOLVED = 2129, /// It is too early to request another transmission of the challenge. The client should wait and see if they received the previous challenge. MERCHANT_TAN_TOO_EARLY = 2130, /// There have been too many attempts to solve MFA. The client may attempt again in the future. MERCHANT_MFA_FORBIDDEN = 2131, + /// The transmission helper rejected the address configured for this multi-factor authentication step: it is malformed, of the wrong length, not a mobile subscription, unallocated, or blocked. The address should be corrected. + MERCHANT_TAN_ADDRESS_UNUSABLE = 2132, + /// The address is valid but the recipient could not be reached: the handset is switched off or out of coverage, or the message expired before delivery. Retrying later may succeed. + MERCHANT_TAN_ADDRESS_UNREACHABLE = 2133, + /// The transmission helper is misconfigured: a required credential is absent, the configured credentials were refused by the provider, or the provider account has insufficient balance. The backend operator should check the logs and fix the Taler merchant backend configuration. + MERCHANT_TAN_HELPER_MISCONFIGURED = 2134, /// The exchange responded saying that funds were insufficient (for example, due to double-spending). MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_FUNDS = 2150, /// The denomination key used for payment is not listed among the denomination keys of the exchange. @@ -755,11 +785,11 @@ pub enum ErrorCode { MERCHANT_POST_ORDERS_ID_PAY_FEES_EXCEED_PAYMENT = 2154, /// After considering deposit and wire fees, the payment is insufficient to satisfy the required amount for the contract. The client should revisit the logic used to calculate fees it must cover. MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_DUE_TO_FEES = 2155, - /// Even if we do not consider deposit and wire fees, the payment is insufficient to satisfy the required amount for the contract. + /// Even without considering deposit and wire fees, the payment is insufficient to satisfy the required amount for the contract. MERCHANT_POST_ORDERS_ID_PAY_PAYMENT_INSUFFICIENT = 2156, /// The signature over the contract of one of the coins was invalid. MERCHANT_POST_ORDERS_ID_PAY_COIN_SIGNATURE_INVALID = 2157, - /// When we tried to find information about the exchange to issue the deposit, we failed. This usually only happens if the merchant backend is somehow unable to get its own HTTP client logic to work. + /// The merchant backend failed to find information about the exchange to issue the deposit. This usually happens when the merchant backend's HTTP client logic is not working. MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LOOKUP_FAILED = 2158, /// The refund deadline in the contract is after the transfer deadline. MERCHANT_POST_ORDERS_ID_PAY_REFUND_DEADLINE_PAST_WIRE_TRANSFER_DEADLINE = 2159, @@ -767,7 +797,7 @@ pub enum ErrorCode { MERCHANT_POST_ORDERS_ID_PAY_ALREADY_PAID = 2160, /// The payment is too late, the offer has expired. MERCHANT_POST_ORDERS_ID_PAY_OFFER_EXPIRED = 2161, - /// The "merchant" field is missing in the proposal data. This is an internal error as the proposal is from the merchant's own database at this point. + /// The `merchant` field is missing from the proposal data. This is an internal error because the proposal comes from the merchant's own database at this point. MERCHANT_POST_ORDERS_ID_PAY_MERCHANT_FIELD_MISSING = 2162, /// Failed to locate merchant's account information matching the wire hash given in the proposal. MERCHANT_POST_ORDERS_ID_PAY_WIRE_HASH_UNKNOWN = 2163, @@ -775,9 +805,9 @@ pub enum ErrorCode { MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_DEPOSIT_EXPIRED = 2165, /// The exchange of the deposited coin charges a wire fee that could not be added to the total (total amount too high). MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_WIRE_FEE_ADDITION_FAILED = 2166, - /// The contract was not fully paid because of refunds. Note that clients MAY treat this as paid if, for example, contracts must be executed despite of refunds. + /// The contract was not fully paid because of refunds. Clients may treat it as paid if, for example, the contract must be executed despite refunds. MERCHANT_POST_ORDERS_ID_PAY_REFUNDED = 2167, - /// According to our database, we have refunded more than we were paid (which should not be possible). + /// The database indicates that more was refunded than was paid, which should not be possible. MERCHANT_POST_ORDERS_ID_PAY_REFUNDS_EXCEED_PAYMENTS = 2168, /// The refund request is too late because it is past the wire transfer deadline of the order. The merchant must find a different way to pay back the money to the customer. MERCHANT_PRIVATE_POST_REFUND_AFTER_WIRE_DEADLINE = 2169, @@ -787,7 +817,7 @@ pub enum ErrorCode { MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_MISSING = 2171, /// The payment required a minimum age but one of the coins provided an age_commitment that contained a wrong number of public keys compared to the number of age groups defined in the denomination of the coin. MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_SIZE_MISMATCH = 2172, - /// The payment required a minimum age but one of the coins provided a minimum_age_sig that couldn't be verified with the given age_commitment for that particular minimum age. + /// The payment required a minimum age, but one of the coins provided a `minimum_age_sig` that could not be verified with the given `age_commitment` for that minimum age. MERCHANT_POST_ORDERS_ID_PAY_AGE_VERIFICATION_FAILED = 2173, /// The payment required no minimum age but one of the coins (of a denomination with support for age restriction) did not provide the required h_age_commitment. MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_HASH_MISSING = 2174, @@ -809,12 +839,22 @@ pub enum ErrorCode { MERCHANT_POST_ORDERS_ID_PAY_TOKEN_ENVELOPE_COUNT_MISMATCH = 2182, /// Invalid token because it was already used, is expired or not yet valid. MERCHANT_POST_ORDERS_ID_PAY_TOKEN_INVALID = 2183, - /// The payment violates a transaction limit configured at the given exchange. The wallet has a bug in that it failed to check exchange limits during coin selection. Please report the bug to your wallet developer. + /// The payment violates a transaction limit configured at the given exchange. The wallet failed to check exchange limits during coin selection. The wallet developer should investigate. MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_TRANSACTION_LIMIT_VIOLATION = 2184, /// The donation amount provided in the BKPS does not match the amount of the order choice. MERCHANT_POST_ORDERS_ID_PAY_DONATION_AMOUNT_MISMATCH = 2185, /// Some of the exchanges involved refused the request for reasons related to legitimization. The wallet should try with coins of different exchanges. The merchant should check if they have some legitimization process pending at the exchange. MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LEGALLY_REFUSED = 2186, + /// The order was already paid, but the request specified a different choice. The client should use the choice with which the order was actually paid. + MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_MISMATCH = 2187, + /// 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. + 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. + 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. + 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. + MERCHANT_POST_ORDERS_ID_PAY_DONATION_YEAR_INVALID = 2191, /// The contract hash does not match the given order ID. MERCHANT_POST_ORDERS_ID_PAID_CONTRACT_HASH_MISMATCH = 2200, /// The signature of the merchant is not valid for the given contract hash. @@ -835,9 +875,9 @@ pub enum ErrorCode { MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_HASH_MISSMATCH = 2255, /// The array of coins cannot be empty. MERCHANT_POST_ORDERS_ID_ABORT_COINS_ARRAY_EMPTY = 2256, - /// We are waiting for the exchange to provide us with key material before checking the wire transfer. + /// The merchant is waiting for the exchange to provide key material before checking the wire transfer. MERCHANT_EXCHANGE_TRANSFERS_AWAITING_KEYS = 2258, - /// We are waiting for the exchange to provide us with the list of aggregated transactions. + /// The merchant is waiting for the exchange to provide the list of aggregated transactions. MERCHANT_EXCHANGE_TRANSFERS_AWAITING_LIST = 2259, /// The endpoint indicated in the wire transfer does not belong to a GNU Taler exchange. MERCHANT_EXCHANGE_TRANSFERS_FATAL_NO_EXCHANGE = 2260, @@ -845,7 +885,7 @@ pub enum ErrorCode { MERCHANT_EXCHANGE_TRANSFERS_FATAL_NOT_FOUND = 2261, /// The interaction with the exchange is delayed due to rate limiting. MERCHANT_EXCHANGE_TRANSFERS_RATE_LIMITED = 2262, - /// We experienced a transient failure in our interaction with the exchange. + /// The merchant experienced a transient failure while interacting with the exchange. MERCHANT_EXCHANGE_TRANSFERS_TRANSIENT_FAILURE = 2263, /// The response from the exchange was unacceptable and should be reviewed with an auditor. MERCHANT_EXCHANGE_TRANSFERS_HARD_FAILURE = 2264, @@ -855,11 +895,11 @@ pub enum ErrorCode { MERCHANT_POST_ACCOUNTS_EXCHANGE_TOO_OLD = 2276, /// The merchant backend failed to reach the specified exchange. This probably means that the exchange is currently down. Contact the exchange operator or simply retry again later. MERCHANT_POST_ACCOUNTS_KYCAUTH_EXCHANGE_UNREACHABLE = 2277, - /// We could not claim the order because the backend is unaware of it. + /// The order could not be claimed because the backend is unaware of it. MERCHANT_POST_ORDERS_ID_CLAIM_NOT_FOUND = 2300, - /// We could not claim the order because someone else claimed it first. + /// The order could not be claimed because another client claimed it first. MERCHANT_POST_ORDERS_ID_CLAIM_ALREADY_CLAIMED = 2301, - /// The client-side experienced an internal failure. + /// The client experienced an internal failure. MERCHANT_POST_ORDERS_ID_CLAIM_CLIENT_INTERNAL_FAILURE = 2302, /// The unclaim signature of the wallet is not valid for the given contract hash. MERCHANT_POST_ORDERS_UNCLAIM_SIGNATURE_INVALID = 2303, @@ -889,31 +929,31 @@ pub enum ErrorCode { MERCHANT_PRIVATE_POST_ORDERS_REFUND_AFTER_WIRE_DEADLINE = 2504, /// The order creation request is invalid because the delivery date given is in the past. MERCHANT_PRIVATE_POST_ORDERS_DELIVERY_DATE_IN_PAST = 2505, - /// The order creation request is invalid because a wire deadline of "never" is not allowed. + /// The order creation request is invalid because a wire deadline of `never` is not allowed. MERCHANT_PRIVATE_POST_ORDERS_WIRE_DEADLINE_IS_NEVER = 2506, /// The order creation request is invalid because the given payment deadline is in the past. MERCHANT_PRIVATE_POST_ORDERS_PAY_DEADLINE_IN_PAST = 2507, /// The order creation request is invalid because the given refund deadline is in the past. MERCHANT_PRIVATE_POST_ORDERS_REFUND_DEADLINE_IN_PAST = 2508, - /// The backend does not trust any exchange that would allow funds to be wired to any bank account of this instance using the wire method specified with the order. (Note that right now, we do not support the use of exchange bank accounts with mandatory currency conversion.) One likely cause for this is that the taler-merchant-exchangekeyupdate process is not running. + /// The backend does not trust any exchange that would allow funds to be wired to a bank account of this instance using the wire method specified with the order. Exchange bank accounts with mandatory currency conversion are not currently supported. A likely cause is that the `taler-merchant-exchangekeyupdate` process is not running. MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGES_FOR_WIRE_METHOD = 2509, /// One of the paths to forget is malformed. MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_SYNTAX_INCORRECT = 2510, /// One of the paths to forget was not marked as forgettable. MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_NOT_FORGETTABLE = 2511, - /// The refund amount would violate a refund transaction limit configured at the given exchange. Please find another way to refund the customer, and inquire with your legislator why they make strange banking regulations. + /// The refund amount would violate a refund transaction limit configured at the given exchange. The merchant should use another way to refund the customer and consult the exchange operator about the applicable regulations. MERCHANT_POST_ORDERS_ID_REFUND_EXCHANGE_TRANSACTION_LIMIT_VIOLATION = 2512, - /// The total order amount exceeds hard legal transaction limits from the available exchanges, thus a customer could never legally make this payment. You may try to increase your limits by passing legitimization checks with exchange operators. You could also inquire with your legislator why the limits are prohibitively low for your business. + /// The total order amount exceeds the legal transaction limits of the available exchanges, so a customer could not legally make this payment. The merchant may increase its limits by completing legitimization checks with exchange operators. MERCHANT_PRIVATE_POST_ORDERS_AMOUNT_EXCEEDS_LEGAL_LIMITS = 2513, - /// A currency specified to be paid in the contract is not supported by any exchange that this instance can currently use. Possible solutions include (1) specifying a different currency, (2) adding additional suitable exchange operators to the merchant backend configuration, or (3) satisfying compliance rules of an configured exchange to begin using the service of that provider. + /// A currency specified to be paid in the contract is not supported by any exchange that this instance can currently use. Possible solutions include (1) specifying a different currency, (2) adding suitable exchange operators to the merchant backend configuration, or (3) satisfying the compliance rules of a configured exchange to begin using that provider's service. MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGE_FOR_CURRENCY = 2514, - /// The order provided to the backend could not be deleted, our offer is still valid and awaiting payment. Deletion may work later after the offer has expired if it remains unpaid. + /// The order provided to the backend could not be deleted because the offer is still valid and awaiting payment. Deletion may work after the offer expires if it remains unpaid. MERCHANT_PRIVATE_DELETE_ORDERS_AWAITING_PAYMENT = 2520, /// The order provided to the backend could not be deleted as the order was already paid. MERCHANT_PRIVATE_DELETE_ORDERS_ALREADY_PAID = 2521, /// The client requested a report granularity that is not available at the backend. Possible solutions include extending the backend code and/or the database statistic triggers to support the desired data granularity. Alternatively, the client could request a different granularity. MERCHANT_PRIVATE_GET_STATISTICS_REPORT_GRANULARITY_UNAVAILABLE = 2525, - /// The amount to be refunded is inconsistent: either is lower than the previous amount being awarded, or it exceeds the original price paid by the customer. + /// The requested cumulative Taler refund is inconsistent: it is lower than the amount already awarded, exceeds the amount paid through Taler, or would make the combined Taler and external refunds exceed the full order total. MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_INCONSISTENT_AMOUNT = 2530, /// Only paid orders can be refunded, and the frontend specified an unpaid order to issue a refund for. MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_ORDER_UNPAID = 2531, @@ -923,9 +963,19 @@ pub enum ErrorCode { MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_SLUG_UNKNOWN = 2533, /// A token family referenced in this order is either expired or not valid yet. MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_NOT_VALID = 2534, + /// The order cannot be collected by the backend as it is not a genuinely free Taler payment: the Taler amount is not zero, or the selected choice has token inputs or outputs and thus requires a customer wallet. + MERCHANT_PRIVATE_POST_ORDERS_ID_COLLECT_NOT_FREE = 2535, + /// The order cannot be collected by the backend as it was already claimed by a customer wallet. The wallet owns the order and must execute the free payment itself. + MERCHANT_PRIVATE_POST_ORDERS_ID_COLLECT_ALREADY_CLAIMED = 2536, + /// The order provided to the backend could not be deleted as it has payments that were settled outside of Taler. Deletion requires an explicit force operation. + MERCHANT_PRIVATE_DELETE_ORDERS_EXTERNALLY_PAID = 2537, + /// The external refund could not be recorded as the cumulative externally refunded amount would exceed the full order total minus the amount already refunded through Taler. + MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_EXTERNAL_INCONSISTENT_AMOUNT = 2538, + /// An external refund with the same identifier was already recorded for this order, but with different details. + MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_EXTERNAL_ALREADY_EXISTS = 2539, /// The exchange says it does not know this transfer. MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_UNKNOWN = 2550, - /// We internally failed to execute the /track/transfer request. + /// The backend failed to execute the `/track/transfer` request internally. MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR = 2551, /// The amount transferred differs between what was submitted and what the exchange claimed. MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_TRANSFERS = 2552, @@ -933,9 +983,9 @@ pub enum ErrorCode { MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_REPORTS = 2553, /// The exchange charged a different wire fee than what it originally advertised, and it is higher. MERCHANT_PRIVATE_POST_TRANSFERS_BAD_WIRE_FEE = 2554, - /// We did not find the account that the transfer was made to. + /// The backend did not find the account to which the transfer was made. MERCHANT_PRIVATE_POST_TRANSFERS_ACCOUNT_NOT_FOUND = 2555, - /// The backend could not delete the transfer as the echange already replied to our inquiry about it and we have integrated the result. + /// The backend could not delete the transfer because the exchange already responded to the inquiry and the result was integrated. MERCHANT_PRIVATE_DELETE_TRANSFERS_ALREADY_CONFIRMED = 2556, /// The backend could not persist the wire transfer due to the state of the backend. This usually means that a wire transfer with the same wire transfer subject but a different amount was previously submitted to the backend. MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_SUBMISSION = 2557, @@ -955,13 +1005,15 @@ pub enum ErrorCode { MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_AUTH = 2602, /// The merchant backend cannot create an instance under the given identifier, the previous one was deleted but must be purged first. MERCHANT_PRIVATE_POST_INSTANCES_PURGE_REQUIRED = 2603, + /// The merchant backend cannot update an instance's authentication settings because the required current password was missing or did not match. + MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_OLD_PASSWORD = 2604, /// The merchant backend cannot update an instance under the given identifier, the previous one was deleted but must be purged first. MERCHANT_PRIVATE_PATCH_INSTANCES_PURGE_REQUIRED = 2625, /// The bank account referenced in the requested operation was not found. MERCHANT_PRIVATE_ACCOUNT_DELETE_UNKNOWN_ACCOUNT = 2626, /// The bank account specified in the request already exists at the merchant. MERCHANT_PRIVATE_ACCOUNT_EXISTS = 2627, - /// The bank account specified is not acceptable for this exchange. The exchange either does not support the wire method or something else about the specific account. Consult the exchange account constraints and specify a different bank account if you want to use this exchange. + /// The bank account specified is not acceptable for this exchange. The exchange either does not support the wire method or does not support another property of the account. Check the exchange account constraints and specify a different bank account if necessary. MERCHANT_PRIVATE_ACCOUNT_NOT_ELIGIBLE_FOR_EXCHANGE = 2628, /// The product ID exists. MERCHANT_PRIVATE_POST_PRODUCTS_CONFLICT_PRODUCT_EXISTS = 2650, @@ -977,11 +1029,11 @@ pub enum ErrorCode { MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_SOLD_REDUCED = 2663, /// The lock request is for more products than we have left (unlocked) in stock. MERCHANT_PRIVATE_POST_PRODUCTS_LOCK_INSUFFICIENT_STOCKS = 2670, - /// The deletion request is for a product that is locked. The product cannot be deleted until the existing offer to expires. + /// The deletion request is for a locked product. The product cannot be deleted until the existing offer expires. MERCHANT_PRIVATE_DELETE_PRODUCTS_CONFLICTING_LOCK = 2680, - /// The proposed name for the product group is already in use. You should select a different name. + /// The proposed name for the product group is already in use. The client should select a different name. MERCHANT_PRIVATE_PRODUCT_GROUP_CONFLICTING_NAME = 2690, - /// The proposed name for the money pot is already in use. You should select a different name. + /// The proposed name for the money pot is already in use. The client should select a different name. MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_NAME = 2691, /// The total amount in the money pot is different from the amount required by the request. The client should fetch the current pot total and retry with the latest amount to succeed. MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_TOTAL = 2692, @@ -1005,6 +1057,8 @@ pub enum ErrorCode { MERCHANT_PRIVATE_POST_TEMPLATES_CONFLICT_TEMPLATE_EXISTS = 2850, /// The OTP device ID already exists. MERCHANT_PRIVATE_POST_OTP_DEVICES_CONFLICT_OTP_DEVICE_EXISTS = 2851, + /// The OTP device algorithm cannot be changed, or the device was concurrently replaced or changed during the update. + MERCHANT_PRIVATE_PATCH_OTP_DEVICES_CONFLICT = 2852, /// Amount given in the using template and in the template contract. There is a conflict. MERCHANT_POST_USING_TEMPLATES_AMOUNT_CONFLICT_TEMPLATES_CONTRACT_AMOUNT = 2860, /// Subject given in the using template and in the template contract. There is a conflict. @@ -1013,9 +1067,9 @@ pub enum ErrorCode { MERCHANT_POST_USING_TEMPLATES_NO_AMOUNT = 2862, /// Subject not given in the using template and in the template contract. There is a conflict. MERCHANT_POST_USING_TEMPLATES_NO_SUMMARY = 2863, - /// The selected template has a different type than the one specified in the request of the client. This may happen if the template was updated since the last time the client fetched it. The client should re-fetch the current template and send a request of the correct type. + /// The selected template has a different type from the one specified in the client request. This may happen if the template was updated since the client last fetched it. The client should refetch the current template and send a request with the correct type. MERCHANT_POST_USING_TEMPLATES_WRONG_TYPE = 2864, - /// The selected template does not allow one of the specified products to be included in the order. This may happen if the template was updated since the last time the client fetched it. The client should re-fetch the current template and send a request of the correct type. + /// The selected template does not allow one of the specified products to be included in the order. This may happen if the template was updated since the client last fetched it. The client should refetch the current template and send a request with the correct type. MERCHANT_POST_USING_TEMPLATES_WRONG_PRODUCT = 2865, /// The selected combination of products does not allow the backend to compute a price for the order in any of the supported currencies. This may happen if the template was updated since the last time the client fetched it or if the wallet assembled an unsupported combination of products. The site administrator might want to specify additional prices for products, while the client should re-fetch the current template and send a request with a combination of products for which prices exist in the same currency. MERCHANT_POST_USING_TEMPLATES_NO_CURRENCY = 2866, @@ -1023,6 +1077,12 @@ pub enum ErrorCode { MERCHANT_PRIVATE_POST_WEBHOOKS_CONFLICT_WEBHOOK_EXISTS = 2900, /// The webhook serial elready exists. MERCHANT_PRIVATE_POST_PENDING_WEBHOOKS_CONFLICT_PENDING_WEBHOOK_EXISTS = 2910, + /// A withdrawal entry refers to a token family without a matching grant in the fountain. + MERCHANT_POST_FOUNTAIN_WITHDRAW_GRANT_UNKNOWN = 2950, + /// The desired token validity time selects an issue key slot outside of the grant's key window. + MERCHANT_POST_FOUNTAIN_WITHDRAW_SLOT_OUTSIDE_WINDOW = 2951, + /// The grant's per-period withdrawal limit is exhausted for the requested issue key slot. + MERCHANT_POST_FOUNTAIN_WITHDRAW_LIMIT_EXCEEDED = 2952, /// The auditor refused the connection due to a lack of authorization. AUDITOR_GENERIC_UNAUTHORIZED = 3001, /// This method is not allowed here. @@ -1105,7 +1165,7 @@ pub enum ErrorCode { BANK_NON_ADMIN_PATCH_LEGAL_NAME = 5135, /// A non-admin user has tried to change their debt limit. BANK_NON_ADMIN_PATCH_DEBT_LIMIT = 5136, - /// A non-admin user has tried to change their password whihout providing the current one. + /// A non-admin user tried to change their password without providing the current password. BANK_NON_ADMIN_PATCH_MISSING_OLD_PASSWORD = 5137, /// Provided old password does not match current password. BANK_PATCH_BAD_OLD_PASSWORD = 5138, @@ -1115,7 +1175,7 @@ pub enum ErrorCode { BANK_NON_ADMIN_PATCH_CASHOUT = 5140, /// A non-admin user has tried to change their contact info. BANK_NON_ADMIN_PATCH_CONTACT = 5141, - /// The client tried to create a transaction that credit the admin account. + /// The client tried to create a transaction that credits the administrator's account. BANK_ADMIN_CREDITOR = 5142, /// The referenced challenge was not found. BANK_CHALLENGE_NOT_FOUND = 5143, @@ -1125,7 +1185,7 @@ pub enum ErrorCode { BANK_NON_ADMIN_SET_TAN_CHANNEL = 5145, /// A non-admin user has tried to set their minimum cashout amount. BANK_NON_ADMIN_SET_MIN_CASHOUT = 5146, - /// Amount of currency conversion it less than the minimum allowed. + /// The amount of the currency conversion is less than the minimum allowed. BANK_CONVERSION_AMOUNT_TO_SMALL = 5147, /// Specified amount will not work for this withdrawal. BANK_AMOUNT_DIFFERS = 5148, @@ -1135,15 +1195,15 @@ pub enum ErrorCode { BANK_PASSWORD_TOO_SHORT = 5150, /// Provided password is too long. BANK_PASSWORD_TOO_LONG = 5151, - /// Bank account is locked and cannot authenticate using his password. + /// The bank account is locked, and the user cannot authenticate with their password. BANK_ACCOUNT_LOCKED = 5152, - /// The client attempted to update a transaction' details that was already aborted. + /// The client attempted to update the details of a transaction that was already aborted. BANK_UPDATE_ABORT_CONFLICT = 5153, /// The wtid for a request to transfer funds has already been used, but with a different request unpaid. BANK_TRANSFER_WTID_REUSED = 5154, - /// A non-admin user has tried to set their conversion rate class + /// A non-admin user tried to set their conversion rate class. BANK_NON_ADMIN_SET_CONVERSION_RATE_CLASS = 5155, - /// The referenced conversion rate class was not found + /// The referenced conversion rate class was not found. BANK_CONVERSION_RATE_CLASS_UNKNOWN = 5156, /// The client tried to use an already taken name. BANK_NAME_REUSE = 5157, @@ -1155,11 +1215,13 @@ pub enum ErrorCode { BANK_BAD_SIGNATURE = 5160, /// The provided timestamp is too old. BANK_OLD_TIMESTAMP = 5161, - /// The authorization_pub for a request to transfer funds has already been used for another non recurrent transfer. + /// The `authorization_pub` for a request to transfer funds has already been used for another non-recurring transfer. BANK_TRANSFER_MAPPING_REUSED = 5162, /// The authorization_pub for a request to transfer funds is not currently registered. BANK_TRANSFER_MAPPING_UNKNOWN = 5163, - /// The sync service failed find the account in its database. + /// A non-admin user tried to set or change the exchange status of an account. + BANK_NON_ADMIN_SET_EXCHANGE = 5164, + /// The sync service failed to find the account in its database. SYNC_ACCOUNT_UNKNOWN = 6100, /// The SHA-512 hash provided in the If-None-Match header is malformed. SYNC_BAD_IF_NONE_MATCH = 6101, @@ -1179,9 +1241,9 @@ pub enum ErrorCode { SYNC_INVALID_UPLOAD = 6108, /// HTTP server experienced a timeout while awaiting promised payment. SYNC_PAYMENT_GENERIC_TIMEOUT = 6109, - /// Sync could not setup the payment request with its own backend. + /// The sync service could not set up the payment request with its own backend. SYNC_PAYMENT_CREATE_BACKEND_ERROR = 6110, - /// The sync service failed find the backup to be updated in its database. + /// The sync service failed to find the backup to be updated in its database. SYNC_PREVIOUS_BACKUP_UNKNOWN = 6111, /// The "Content-length" field for the upload is missing. SYNC_MISSING_CONTENT_LENGTH = 6112, @@ -1189,11 +1251,15 @@ pub enum ErrorCode { SYNC_GENERIC_BACKEND_ERROR = 6113, /// Sync experienced a timeout communicating with its payment backend. SYNC_GENERIC_BACKEND_TIMEOUT = 6114, + /// The provided new content is based on an outdated backup: the previous write was overwritten in the meantime. + SYNC_CONFLICTING_WRITE = 6115, + /// The backup does not form a consistent linked list (e.g. the previous block does not match the given hash). + SYNC_INCONSISTENT_BACKUP = 6116, /// The wallet does not implement a version of the exchange protocol that is compatible with the protocol version of the exchange. WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE = 7000, /// The wallet encountered an unexpected exception. This is likely a bug in the wallet implementation. WALLET_UNEXPECTED_EXCEPTION = 7001, - /// The wallet received a response from a server, but the response can't be parsed. + /// The wallet received a response from a server, but the response cannot be parsed. WALLET_RECEIVED_MALFORMED_RESPONSE = 7002, /// The wallet tried to make a network request, but it received no response. WALLET_NETWORK_ERROR = 7003, @@ -1211,7 +1277,7 @@ pub enum ErrorCode { WALLET_EXCHANGE_COIN_SIGNATURE_INVALID = 7009, /// The wallet core service is not available. WALLET_CORE_NOT_AVAILABLE = 7011, - /// The bank has aborted a withdrawal operation, and thus a withdrawal can't complete. + /// The bank aborted a withdrawal operation, so the withdrawal cannot complete. WALLET_WITHDRAWAL_OPERATION_ABORTED_BY_BANK = 7012, /// An HTTP request made by the wallet timed out. WALLET_HTTP_REQUEST_GENERIC_TIMEOUT = 7013, @@ -1229,7 +1295,7 @@ pub enum ErrorCode { WALLET_CONTRACT_TERMS_SIGNATURE_INVALID = 7019, /// The contract terms given by the merchant are malformed. WALLET_CONTRACT_TERMS_MALFORMED = 7020, - /// A pending operation failed, and thus the request can't be completed. + /// A pending operation failed, so the request cannot be completed. WALLET_PENDING_OPERATION_FAILED = 7021, /// A payment was attempted, but the merchant had an internal server error (5xx). WALLET_PAY_MERCHANT_SERVER_ERROR = 7022, @@ -1253,13 +1319,13 @@ pub enum ErrorCode { WALLET_ORDER_ALREADY_PAID = 7031, /// An exchange that is required for some request is currently not available. WALLET_EXCHANGE_UNAVAILABLE = 7032, - /// An exchange entry is still used by the exchange, thus it can't be deleted without purging. + /// An exchange entry is still used by the exchange, so it cannot be deleted without purging. WALLET_EXCHANGE_ENTRY_USED = 7033, /// The wallet database is unavailable and the wallet thus is not operational. WALLET_DB_UNAVAILABLE = 7034, - /// A taler:// URI is malformed and can't be parsed. + /// A `taler://` URI is malformed and cannot be parsed. WALLET_TALER_URI_MALFORMED = 7035, - /// A wallet-core request was cancelled and thus can't provide a response. + /// A wallet-core request was cancelled and therefore cannot provide a response. WALLET_CORE_REQUEST_CANCELLED = 7036, /// A wallet-core request failed because the user needs to first accept the exchange's terms of service. WALLET_EXCHANGE_TOS_NOT_ACCEPTED = 7037, @@ -1289,11 +1355,79 @@ pub enum ErrorCode { WALLET_MERCHANT_ORDER_NOT_FOUND = 7049, /// The wallet's balance for paying a merchant is insufficient. WALLET_PAY_MERCHANT_INSUFFICIENT_BALANCE = 7050, - /// We encountered a timeout with our payment backend. + /// The wallet does not have a purchase for the requested order. + WALLET_PURCHASE_NOT_FOUND = 7051, + /// The wallet does not have a transaction with the requested transaction identifier. + WALLET_TRANSACTION_NOT_FOUND = 7052, + /// The requested action is not supported for this type of transaction. + WALLET_TRANSACTION_ACTION_UNSUPPORTED = 7053, + /// The operation would exceed a limit imposed by the exchange that the user cannot raise by completing a KYC process. + WALLET_KYC_LIMIT_EXCEEDED = 7054, + /// The wallet does not know an exchange that can be used for this operation. Check that an exchange for the requested currency has been added to the wallet. + WALLET_NO_SUITABLE_EXCHANGE = 7055, + /// The wallet does not have a known bank account with the requested identifier. + WALLET_BANK_ACCOUNT_NOT_FOUND = 7056, + /// The exchange does not know the contract of this peer-to-peer payment. It may have expired. + WALLET_PEER_CONTRACT_NOT_FOUND = 7057, + /// The purse of this peer-to-peer push payment is gone. The sender likely aborted the payment. + WALLET_PEER_PUSH_CREDIT_PURSE_GONE = 7058, + /// This invoice has already been paid, possibly by another wallet. + WALLET_PEER_PULL_DEBIT_ALREADY_PAID = 7059, + /// The tokens can not be deleted, as at least one of them is currently being used in a transaction. + WALLET_TOKENS_IN_USE = 7060, + /// The operation is not supported by the database backend that the wallet is currently running on. + WALLET_DB_BACKEND_UNSUPPORTED = 7061, + /// The wallet could not use the mailbox service. + WALLET_MAILBOX_UNAVAILABLE = 7062, + /// The wallet could not use the directory service. + WALLET_DIRECTORY_UNAVAILABLE = 7063, + /// The contract terms use a feature that this version of the wallet does not support. Updating the wallet may help. + WALLET_CONTRACT_TERMS_UNSUPPORTED = 7064, + /// The exchange served data that is not correctly signed by its master key. The wallet refuses to use this exchange. + WALLET_EXCHANGE_SIGNATURE_INVALID = 7065, + /// The exchange presents a master public key or currency that the user has not accepted yet. The operation was refused. + WALLET_EXCHANGE_KEYS_NOT_ACCEPTED = 7066, + /// The wallet was asked to accept or reject a change of the exchange's keys, but the exchange does not present a new key set. + WALLET_EXCHANGE_NO_KEY_CHANGE_PENDING = 7067, + /// The key set that was confirmed is not the one that the exchange currently presents. + WALLET_EXCHANGE_KEY_CHANGE_MISMATCH = 7068, + /// The values of a reviewed peer push payment changed before confirmation. The caller must prepare and show the payment again. + WALLET_PEER_PUSH_PAYMENT_QUOTE_CHANGED = 7069, + /// The operation was completed or taken over by another wallet. + WALLET_TRANSACTION_COMPLETED_BY_OTHER_WALLET = 7070, + /// Refreshing one or more coins failed permanently. + WALLET_REFRESH_GROUP_FAILED = 7071, + /// Recouping one or more revoked coins failed permanently. + WALLET_RECOUP_GROUP_FAILED = 7072, + /// One or more refunds were permanently rejected by the exchange. + WALLET_REFUND_GROUP_FAILED = 7073, + /// Recovery of the transaction inputs failed or the recovery operation is missing. + WALLET_TRANSACTION_RECOVERY_FAILED = 7074, + /// An operation required to complete the transaction failed or is missing. + WALLET_TRANSACTION_DEPENDENCY_FAILED = 7075, + /// The wallet could register the mailbox because the signature was invalid. + 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. + WALLET_MAILBOX_MESSAGE_SEND_DENIED = 7077, + /// The signature is invalid. + 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. + WALLET_MAILBOX_MESSAGE_DELETE_FAILED = 7079, + /// Alias type not supported. + WALLET_DIRECTORY_ALIAS_NOT_SUPPORTED = 7080, + /// Solution unknown (original registration attempt may have expired). + WALLET_DIRECTORY_ALIAS_SOLUTION_UNKNOWN = 7081, + /// Solution invalid. + WALLET_DIRECTORY_ALIAS_SOLUTION_INCORRECT = 7082, + /// Deprecated. This value is reserved for wallets that treated the timestamp in a Paivana payment link as a session deadline. + WALLET_PAIVANA_SESSION_EXPIRED = 7083, + /// The wallet has no matching exchange signing key that is valid at the time used to verify the response. + WALLET_EXCHANGE_SIGNING_KEY_UNUSABLE = 7084, + /// The service encountered a timeout with its payment backend. ANASTASIS_GENERIC_BACKEND_TIMEOUT = 8000, /// The backend requested payment, but the request is malformed. ANASTASIS_GENERIC_INVALID_PAYMENT_REQUEST = 8001, - /// The backend got an unexpected reply from the payment processor. + /// The backend received an unexpected response from the payment processor. ANASTASIS_GENERIC_BACKEND_ERROR = 8002, /// The "Content-length" field for the upload is missing. ANASTASIS_GENERIC_MISSING_CONTENT_LENGTH = 8003, @@ -1323,11 +1457,11 @@ pub enum ErrorCode { ANASTASIS_TRUTH_AUTHORIZATION_START_FAILED = 8114, /// The authorization succeeded, but the key share is no longer available. ANASTASIS_TRUTH_KEY_SHARE_GONE = 8115, - /// The backend forgot the order we asked the client to pay for + /// The backend no longer knows about the order that the client was asked to pay for. ANASTASIS_TRUTH_ORDER_DISAPPEARED = 8116, /// The backend itself reported a bad exchange interaction. ANASTASIS_TRUTH_BACKEND_EXCHANGE_BAD = 8117, - /// The backend reported a payment status we did not expect. + /// The backend reported an unexpected payment status. ANASTASIS_TRUTH_UNEXPECTED_PAYMENT_STATUS = 8118, /// The backend failed to setup the order for payment. ANASTASIS_TRUTH_PAYMENT_CREATE_BACKEND_ERROR = 8119, @@ -1349,9 +1483,9 @@ pub enum ErrorCode { ANASTASIS_SMS_HELPER_COMMAND_FAILED = 8202, /// The provided email address is not an acceptable address. ANASTASIS_EMAIL_INVALID = 8210, - /// Failed to run the E-mail transmission helper process. + /// Failed to run the email transmission helper process. ANASTASIS_EMAIL_HELPER_EXEC_FAILED = 8211, - /// Provider failed to send E-mail. Helper terminated with a non-successful result. + /// The provider failed to send email. The helper terminated with a non-successful result. ANASTASIS_EMAIL_HELPER_COMMAND_FAILED = 8212, /// The provided postal address is not an acceptable address. ANASTASIS_POST_INVALID = 8220, @@ -1367,6 +1501,10 @@ pub enum ErrorCode { ANASTASIS_TOTP_KEY_MISSING = 8240, /// The key provided does not satisfy the format restrictions for an Anastasis TOTP key. ANASTASIS_TOTP_KEY_INVALID = 8241, + /// The address is valid but the recipient could not be reached: the handset is switched off or out of coverage, or the message expired before delivery. Retrying later may succeed. Used by all authorization methods that transmit a challenge via an external helper. + ANASTASIS_ADDRESS_UNREACHABLE = 8250, + /// The transmission helper is misconfigured: a required credential is absent, the configured credentials were refused by the provider, or the provider account has insufficient balance. The provider operator should check the logs and the service configuration. Used by all authorization methods that transmit a challenge via an external helper. + ANASTASIS_HELPER_MISCONFIGURED = 8251, /// The given if-none-match header is malformed. ANASTASIS_POLICY_BAD_IF_NONE_MATCH = 8301, /// The server is out of memory to handle the upload. Trying again later may succeed. @@ -1389,9 +1527,9 @@ pub enum ErrorCode { ANASTASIS_REDUCER_AUTHENTICATION_METHOD_NOT_SUPPORTED = 8403, /// The given input and action do not work for the current state. ANASTASIS_REDUCER_INPUT_INVALID_FOR_STATE = 8404, - /// We experienced an unexpected failure interacting with the backend. + /// The service experienced an unexpected failure while interacting with the backend. ANASTASIS_REDUCER_BACKEND_FAILURE = 8405, - /// The contents of a resource file did not match our expectations. + /// The contents of a resource file did not match the expected format. ANASTASIS_REDUCER_RESOURCE_MALFORMED = 8406, /// A required resource file is missing. ANASTASIS_REDUCER_RESOURCE_MISSING = 8407, @@ -1399,15 +1537,15 @@ pub enum ErrorCode { ANASTASIS_REDUCER_INPUT_REGEX_FAILED = 8408, /// An input did not match the custom validation logic. ANASTASIS_REDUCER_INPUT_VALIDATION_FAILED = 8409, - /// Our attempts to download the recovery document failed with all providers. Most likely the personal information you entered differs from the information you provided during the backup process and you should go back to the previous step. Alternatively, if you used a backup provider that is unknown to this application, you should add that provider manually. + /// Attempts to download the recovery document failed with all providers. The personal information may differ from the information provided during the backup process. Alternatively, the backup may use a provider that is unknown to this application and must be added manually. ANASTASIS_REDUCER_POLICY_LOOKUP_FAILED = 8410, /// Anastasis provider reported a fatal failure. ANASTASIS_REDUCER_BACKUP_PROVIDER_FAILED = 8411, /// Anastasis provider failed to respond to the configuration request. ANASTASIS_REDUCER_PROVIDER_CONFIG_FAILED = 8412, - /// The policy we downloaded is malformed. Must have been a client error while creating the backup. + /// The downloaded policy is malformed. This was likely caused by a client error while creating the backup. ANASTASIS_REDUCER_POLICY_MALFORMED = 8413, - /// We failed to obtain the policy, likely due to a network issue. + /// The policy could not be obtained, likely due to a network issue. ANASTASIS_REDUCER_NETWORK_FAILED = 8414, /// The recovered secret did not match the required syntax. ANASTASIS_REDUCER_SECRET_MALFORMED = 8415, @@ -1415,7 +1553,7 @@ pub enum ErrorCode { ANASTASIS_REDUCER_CHALLENGE_DATA_TOO_BIG = 8416, /// The provided core secret is too large for some of the providers. ANASTASIS_REDUCER_SECRET_TOO_BIG = 8417, - /// The provider returned in invalid configuration. + /// The provider returned an invalid configuration. ANASTASIS_REDUCER_PROVIDER_INVALID_CONFIG = 8418, /// The reducer encountered an internal error, likely a bug that needs to be reported. ANASTASIS_REDUCER_INTERNAL_ERROR = 8419, @@ -1453,11 +1591,11 @@ pub enum ErrorCode { DONAU_GENERIC_DONATION_UNIT_TOO_EARLY = 8620, /// The donation unit is not valid for the year specified by the client. DONAU_GENERIC_DONATION_UNIT_WRONG_YEAR = 8621, - /// A generic error happened in the LibEuFin nexus. See the enclose details JSON for more information. + /// A generic error occurred in the LibEuFin nexus. See the enclosed details JSON for more information. LIBEUFIN_NEXUS_GENERIC_ERROR = 9000, /// An uncaught exception happened in the LibEuFin nexus service. LIBEUFIN_NEXUS_UNCAUGHT_EXCEPTION = 9001, - /// A generic error happened in the LibEuFin sandbox. See the enclose details JSON for more information. + /// A generic error occurred in the LibEuFin sandbox. See the enclosed details JSON for more information. LIBEUFIN_SANDBOX_GENERIC_ERROR = 9500, /// An uncaught exception happened in the LibEuFin sandbox service. LIBEUFIN_SANDBOX_UNCAUGHT_EXCEPTION = 9501, @@ -1465,31 +1603,55 @@ pub enum ErrorCode { TALDIR_METHOD_NOT_SUPPORTED = 9600, /// Number of allowed attempts for initiating a challenge exceeded. TALDIR_REGISTER_RATE_LIMITED = 9601, - /// The client is unknown or unauthorized. + /// The service does not know a client with the given client identifier, or the given client secret does not match it. Used where no client has been authenticated yet. CHALLENGER_GENERIC_CLIENT_UNKNOWN = 9750, /// The client is not authorized to use the given redirect URI. CHALLENGER_GENERIC_CLIENT_FORBIDDEN_BAD_REDIRECT_URI = 9751, /// The service failed to execute its helper process to send the challenge. CHALLENGER_HELPER_EXEC_FAILED = 9752, - /// The grant is unknown to the service (it could also have expired). + /// The authorization grant is unknown to the service (it could also have been redeemed already or have expired). CHALLENGER_GRANT_UNKNOWN = 9753, /// The code given is not even well-formed. CHALLENGER_CLIENT_FORBIDDEN_BAD_CODE = 9754, - /// The service is not aware of the referenced validation process. + /// The service is not aware of the referenced validation process, or it has expired. CHALLENGER_GENERIC_VALIDATION_UNKNOWN = 9755, - /// The code given is not valid. + /// Deprecated, no longer returned by any endpoint. The value stays reserved and must not be reused. Was: the code given is not valid. CHALLENGER_CLIENT_FORBIDDEN_INVALID_CODE = 9756, /// Too many attempts have been made, validation is temporarily disabled for this address. CHALLENGER_TOO_MANY_ATTEMPTS = 9757, - /// The PIN code provided is incorrect. + /// The TAN code provided is incorrect. CHALLENGER_INVALID_PIN = 9758, - /// The token cannot be valid as no address was ever provided by the client. + /// Deprecated since protocol v8, no longer returned by any endpoint; see CHALLENGER_NO_CHALLENGE_TRANSMITTED. The value stays reserved and must not be reused. Was: the token cannot be valid as no address was ever provided by the client. CHALLENGER_MISSING_ADDRESS = 9759, /// The client is not allowed to change the address being validated. CHALLENGER_CLIENT_FORBIDDEN_READ_ONLY = 9760, + /// No challenge was ever transmitted for this validation, so it cannot be solved yet. The user must provide their address first. + CHALLENGER_NO_CHALLENGE_TRANSMITTED = 9761, + /// An address field does not match the regular expression configured for it. The detail names the offending field. + CHALLENGER_ADDRESS_RESTRICTION_VIOLATED = 9762, + /// The address restriction configured for this field is missing its regular expression or the expression failed to compile. This is a server misconfiguration. + CHALLENGER_ADDRESS_RESTRICTION_MALFORMED = 9763, + /// The number of times the address may be changed for this validation has been exhausted. The user must request a fresh nonce from the client. + CHALLENGER_TOO_MANY_ADDRESS_CHANGES = 9764, + /// The number of times the challenge may be transmitted for this validation has been exhausted. The user may still try a different address if changes remain. + CHALLENGER_TOO_MANY_PIN_TRANSMISSIONS = 9765, + /// The number of attempts to enter the TAN has been exhausted. The user may still request a retransmission or change the address. + CHALLENGER_NO_PIN_ATTEMPTS_LEFT = 9766, + /// Authentication of the client failed: the presented client identifier and client secret do not match a registered client. This response is returned when the endpoint authenticates the client, so it challenges the client for credentials. + CHALLENGER_CLIENT_AUTHENTICATION_FAILED = 9767, + /// The access token presented is malformed, unknown or expired. Malformed and unknown tokens are deliberately not distinguished. + CHALLENGER_TOKEN_UNKNOWN = 9768, + /// The transmission helper rejected the address the user provided: it is malformed, of the wrong length, not a mobile subscription, unallocated, or blocked. The user should correct the address and try again. + CHALLENGER_ADDRESS_UNUSABLE = 9769, + /// The address is valid but the recipient could not be reached: the handset is switched off or out of coverage, or the message expired before delivery. Retrying later may succeed. + CHALLENGER_ADDRESS_UNREACHABLE = 9770, + /// The transmission helper is misconfigured: a required credential is absent, the configured credentials were refused by the provider, or the provider account has insufficient balance. The operator should check the logs and the service configuration. + CHALLENGER_HELPER_MISCONFIGURED = 9771, + /// The validation failed permanently: the user exhausted all address changes, TAN transmissions and TAN attempts. The validation cannot succeed anymore; the user must be sent back to the client, which has to start a new validation if it wants to try again. + CHALLENGER_VALIDATION_FAILED = 9772, /// The request is invalid as the specified order is unpaid. The client should only call this endpoint after paying the order. PAIVANA_PAYMENT_MISSING = 9800, - /// The merchant backend refused our request to check the payment status. The backend is either down or Paivana is configured badly. The system administrator should check the logs. + /// The merchant backend refused the request to check the payment status. The backend is either unavailable or Paivana is misconfigured. The system administrator should check the logs. PAIVANA_BACKEND_REFUSED = 9801, /// The order specified in the request is unknown to the backend. The client must instantiate the Paivana template first and pay the order before calling this endpoint. PAIVANA_ORDER_UNKNOWN = 9802, @@ -1499,12 +1661,14 @@ pub enum ErrorCode { PAIVANA_GET_ORDER_FAILED = 9804, /// The specified order does not match the specified Website or nonce and thus the order is invalid for the given request. Clients should pay for the correct order for access to the resource. PAIVANA_WRONG_ORDER = 9805, - /// The specified expiration time for the cookie is longer than what the purchase allows. The request may succeed with a shorter expiration time. Alternatively, the user may need to purchase access again. + /// The paid order's pickup deadline has passed or is earlier than the requested minimum access expiry. PAIVANA_TOO_LATE = 9806, /// The payment template specified in the request is unknown to the backend. PAIVANA_TEMPLATE_UNKNOWN = 9807, /// The paywall functionality is currently disabled. Thus, proofs of payment are unnecessary and also not supported. PAIVANA_PAYWALL_DISABLED = 9808, + /// The website specified in the request is not acceptable for this backend. Somehow the client must have specified an invalid website which is not configured for this Paivana reverse proxy and thus not eligible as a target for the redirect. A developer should check how the client computed the fulfillment_url of the order and fix it. + PAIVANA_INVALID_TARGET = 9809, /// End of error code range. END = 9999, } @@ -1636,6 +1800,7 @@ impl ErrorCode { EXCHANGE_AGE_WITHDRAW_AMOUNT_INCORRECT => 400, EXCHANGE_WITHDRAW_REVEAL_INVALID_HASH => 400, EXCHANGE_WITHDRAW_MAXIMUM_AGE_TOO_LARGE => 409, + EXCHANGE_WITHDRAW_AGE_MASK_MISMATCH => 400, EXCHANGE_WITHDRAW_IDEMPOTENT_PLANCHET => 400, EXCHANGE_DEPOSIT_COIN_SIGNATURE_INVALID => 403, EXCHANGE_DEPOSIT_CONFLICTING_CONTRACT => 409, @@ -1688,11 +1853,17 @@ impl ErrorCode { EXCHANGE_RECOUP_COIN_BALANCE_ZERO => 403, EXCHANGE_RECOUP_BLINDING_FAILED => 500, EXCHANGE_RECOUP_COIN_BALANCE_NEGATIVE => 500, - EXCHANGE_RECOUP_NOT_ELIGIBLE => 404, + EXCHANGE_RECOUP_NOT_ELIGIBLE => 410, + EXCHANGE_RECOUP_WITHDRAW_BATCH_SIZE_MISMATCH => 400, + EXCHANGE_RECOUP_WITHDRAW_COMMITMENT_MISMATCH => 409, + EXCHANGE_RECOUP_WITHDRAW_DENOMINATION_MISMATCH => 409, EXCHANGE_RECOUP_REFRESH_SIGNATURE_INVALID => 403, EXCHANGE_RECOUP_REFRESH_MELT_NOT_FOUND => 404, EXCHANGE_RECOUP_REFRESH_BLINDING_FAILED => 500, - EXCHANGE_RECOUP_REFRESH_NOT_ELIGIBLE => 404, + EXCHANGE_RECOUP_REFRESH_NOT_ELIGIBLE => 410, + EXCHANGE_RECOUP_REFRESH_BATCH_SIZE_MISMATCH => 400, + EXCHANGE_RECOUP_REFRESH_COMMITMENT_MISMATCH => 409, + EXCHANGE_RECOUP_REFRESH_DENOMINATION_MISMATCH => 409, EXCHANGE_KEYS_TIMETRAVEL_FORBIDDEN => 403, EXCHANGE_WIRE_SIGNATURE_INVALID => 0, EXCHANGE_WIRE_NO_ACCOUNTS_CONFIGURED => 500, @@ -1717,12 +1888,14 @@ impl ErrorCode { EXCHANGE_RESERVES_PURSE_EXPIRATION_IS_NEVER => 400, EXCHANGE_RESERVES_PURSE_MERGE_SIGNATURE_INVALID => 403, EXCHANGE_RESERVES_RESERVE_MERGE_SIGNATURE_INVALID => 403, + EXCHANGE_RESERVES_PURSE_EXPIRATION_TOO_LATE => 400, EXCHANGE_RESERVES_OPEN_BAD_SIGNATURE => 403, EXCHANGE_RESERVES_CLOSE_BAD_SIGNATURE => 403, EXCHANGE_RESERVES_ATTEST_BAD_SIGNATURE => 403, EXCHANGE_RESERVES_CLOSE_NO_TARGET_ACCOUNT => 409, EXCHANGE_RESERVES_OPEN_INSUFFICIENT_FUNDS => 409, EXCHANGE_RESERVES_OPEN_COIN_SIGNATURE_INVALID => 403, + EXCHANGE_RESERVES_OPEN_TIMESTAMP_REUSE => 409, EXCHANGE_MANAGEMENT_AUDITOR_NOT_FOUND => 404, EXCHANGE_MANAGEMENT_AUDITOR_MORE_RECENT_PRESENT => 409, EXCHANGE_MANAGEMENT_AUDITOR_ADD_SIGNATURE_INVALID => 403, @@ -1761,6 +1934,8 @@ impl ErrorCode { EXCHANGE_PURSE_DEPOSIT_CONFLICTING_META_DATA => 409, EXCHANGE_PURSE_ECONTRACT_CONFLICTING_META_DATA => 409, EXCHANGE_CREATE_PURSE_NEGATIVE_VALUE_AFTER_FEE => 400, + EXCHANGE_PURSE_CREATE_EXPIRATION_TOO_LATE => 400, + EXCHANGE_PURSE_DENOMINATION_LEGAL_EXPIRES_TOO_SOON => 400, EXCHANGE_PURSE_MERGE_INVALID_MERGE_SIGNATURE => 403, EXCHANGE_PURSE_MERGE_INVALID_RESERVE_SIGNATURE => 403, EXCHANGE_PURSE_NOT_FULL => 409, @@ -1856,6 +2031,7 @@ impl ErrorCode { MERCHANT_GENERIC_EXPECTED_TRANSFER_UNKNOWN => 404, MERCHANT_GENERIC_DONAU_UNKNOWN => 404, MERCHANT_GENERIC_ACCESS_TOKEN_UNKNOWN => 404, + MERCHANT_GENERIC_FOUNTAIN_UNKNOWN => 404, MERCHANT_GENERIC_NO_TYPST_OR_PDFTK => 501, MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE => 200, MERCHANT_GET_ORDERS_ID_EXCHANGE_REQUEST_FAILURE => 500, @@ -1870,6 +2046,9 @@ impl ErrorCode { MERCHANT_TAN_CHALLENGE_SOLVED => 410, MERCHANT_TAN_TOO_EARLY => 429, MERCHANT_MFA_FORBIDDEN => 403, + MERCHANT_TAN_ADDRESS_UNUSABLE => 400, + MERCHANT_TAN_ADDRESS_UNREACHABLE => 503, + MERCHANT_TAN_HELPER_MISCONFIGURED => 500, MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_FUNDS => 409, MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_NOT_FOUND => 400, MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_AUDITOR_FAILURE => 400, @@ -1906,6 +2085,11 @@ impl ErrorCode { MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_TRANSACTION_LIMIT_VIOLATION => 400, MERCHANT_POST_ORDERS_ID_PAY_DONATION_AMOUNT_MISMATCH => 409, MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LEGALLY_REFUSED => 451, + MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_MISMATCH => 409, + MERCHANT_POST_ORDERS_ID_PAY_DONAU_RECEIPTS_DELAYED => 502, + MERCHANT_POST_ORDERS_ID_PAY_DONAU_RECEIPTS_REFUSED => 502, + MERCHANT_POST_ORDERS_ID_PAY_REPLAY_AFTER_REFUND => 409, + MERCHANT_POST_ORDERS_ID_PAY_DONATION_YEAR_INVALID => 409, MERCHANT_POST_ORDERS_ID_PAID_CONTRACT_HASH_MISMATCH => 400, MERCHANT_POST_ORDERS_ID_PAID_COIN_SIGNATURE_INVALID => 403, MERCHANT_POST_TOKEN_FAMILY_CONFLICT => 409, @@ -1960,6 +2144,11 @@ impl ErrorCode { MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_NOT_ALLOWED_BY_CONTRACT => 403, MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_SLUG_UNKNOWN => 404, MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_NOT_VALID => 409, + MERCHANT_PRIVATE_POST_ORDERS_ID_COLLECT_NOT_FREE => 409, + MERCHANT_PRIVATE_POST_ORDERS_ID_COLLECT_ALREADY_CLAIMED => 409, + MERCHANT_PRIVATE_DELETE_ORDERS_EXTERNALLY_PAID => 409, + MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_EXTERNAL_INCONSISTENT_AMOUNT => 409, + MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_EXTERNAL_ALREADY_EXISTS => 409, MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_UNKNOWN => 502, MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR => 502, MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_TRANSFERS => 409, @@ -1976,6 +2165,7 @@ impl ErrorCode { MERCHANT_PRIVATE_POST_INSTANCES_BAD_AUTH => 400, MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_AUTH => 400, MERCHANT_PRIVATE_POST_INSTANCES_PURGE_REQUIRED => 409, + MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_OLD_PASSWORD => 401, MERCHANT_PRIVATE_PATCH_INSTANCES_PURGE_REQUIRED => 409, MERCHANT_PRIVATE_ACCOUNT_DELETE_UNKNOWN_ACCOUNT => 404, MERCHANT_PRIVATE_ACCOUNT_EXISTS => 409, @@ -2001,6 +2191,7 @@ impl ErrorCode { MERCHANT_PRIVATE_GET_ORDERS_ID_AMOUNT_ARITHMETIC_FAILURE => 200, MERCHANT_PRIVATE_POST_TEMPLATES_CONFLICT_TEMPLATE_EXISTS => 409, MERCHANT_PRIVATE_POST_OTP_DEVICES_CONFLICT_OTP_DEVICE_EXISTS => 409, + MERCHANT_PRIVATE_PATCH_OTP_DEVICES_CONFLICT => 409, MERCHANT_POST_USING_TEMPLATES_AMOUNT_CONFLICT_TEMPLATES_CONTRACT_AMOUNT => 409, MERCHANT_POST_USING_TEMPLATES_SUMMARY_CONFLICT_TEMPLATES_CONTRACT_SUBJECT => 409, MERCHANT_POST_USING_TEMPLATES_NO_AMOUNT => 409, @@ -2010,6 +2201,9 @@ impl ErrorCode { MERCHANT_POST_USING_TEMPLATES_NO_CURRENCY => 409, MERCHANT_PRIVATE_POST_WEBHOOKS_CONFLICT_WEBHOOK_EXISTS => 409, MERCHANT_PRIVATE_POST_PENDING_WEBHOOKS_CONFLICT_PENDING_WEBHOOK_EXISTS => 409, + MERCHANT_POST_FOUNTAIN_WITHDRAW_GRANT_UNKNOWN => 409, + MERCHANT_POST_FOUNTAIN_WITHDRAW_SLOT_OUTSIDE_WINDOW => 409, + MERCHANT_POST_FOUNTAIN_WITHDRAW_LIMIT_EXCEEDED => 429, AUDITOR_GENERIC_UNAUTHORIZED => 401, AUDITOR_GENERIC_METHOD_NOT_ALLOWED => 405, AUDITOR_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID => 403, @@ -2078,6 +2272,7 @@ impl ErrorCode { BANK_OLD_TIMESTAMP => 409, BANK_TRANSFER_MAPPING_REUSED => 409, BANK_TRANSFER_MAPPING_UNKNOWN => 409, + BANK_NON_ADMIN_SET_EXCHANGE => 409, SYNC_ACCOUNT_UNKNOWN => 404, SYNC_BAD_IF_NONE_MATCH => 400, SYNC_BAD_IF_MATCH => 400, @@ -2093,6 +2288,8 @@ impl ErrorCode { SYNC_MISSING_CONTENT_LENGTH => 400, SYNC_GENERIC_BACKEND_ERROR => 502, SYNC_GENERIC_BACKEND_TIMEOUT => 504, + SYNC_CONFLICTING_WRITE => 409, + SYNC_INCONSISTENT_BACKUP => 409, WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE => 501, WALLET_UNEXPECTED_EXCEPTION => 500, WALLET_RECEIVED_MALFORMED_RESPONSE => 0, @@ -2143,6 +2340,40 @@ impl ErrorCode { WALLET_CORE_API_BAD_REQUEST => 0, WALLET_MERCHANT_ORDER_NOT_FOUND => 0, WALLET_PAY_MERCHANT_INSUFFICIENT_BALANCE => 0, + WALLET_PURCHASE_NOT_FOUND => 0, + WALLET_TRANSACTION_NOT_FOUND => 0, + WALLET_TRANSACTION_ACTION_UNSUPPORTED => 0, + WALLET_KYC_LIMIT_EXCEEDED => 0, + WALLET_NO_SUITABLE_EXCHANGE => 0, + WALLET_BANK_ACCOUNT_NOT_FOUND => 0, + WALLET_PEER_CONTRACT_NOT_FOUND => 0, + WALLET_PEER_PUSH_CREDIT_PURSE_GONE => 0, + WALLET_PEER_PULL_DEBIT_ALREADY_PAID => 0, + WALLET_TOKENS_IN_USE => 0, + WALLET_DB_BACKEND_UNSUPPORTED => 0, + WALLET_MAILBOX_UNAVAILABLE => 0, + WALLET_DIRECTORY_UNAVAILABLE => 0, + WALLET_CONTRACT_TERMS_UNSUPPORTED => 0, + WALLET_EXCHANGE_SIGNATURE_INVALID => 0, + WALLET_EXCHANGE_KEYS_NOT_ACCEPTED => 0, + WALLET_EXCHANGE_NO_KEY_CHANGE_PENDING => 0, + WALLET_EXCHANGE_KEY_CHANGE_MISMATCH => 0, + WALLET_PEER_PUSH_PAYMENT_QUOTE_CHANGED => 0, + WALLET_TRANSACTION_COMPLETED_BY_OTHER_WALLET => 0, + WALLET_REFRESH_GROUP_FAILED => 0, + WALLET_RECOUP_GROUP_FAILED => 0, + WALLET_REFUND_GROUP_FAILED => 0, + WALLET_TRANSACTION_RECOVERY_FAILED => 0, + WALLET_TRANSACTION_DEPENDENCY_FAILED => 0, + WALLET_MAILBOX_REGISTER_INVALID_SIGNATURE => 403, + WALLET_MAILBOX_MESSAGE_SEND_DENIED => 403, + WALLET_MAILBOX_MESSAGE_DELETE_DENIED => 403, + WALLET_MAILBOX_MESSAGE_DELETE_FAILED => 404, + WALLET_DIRECTORY_ALIAS_NOT_SUPPORTED => 404, + WALLET_DIRECTORY_ALIAS_SOLUTION_UNKNOWN => 404, + WALLET_DIRECTORY_ALIAS_SOLUTION_INCORRECT => 403, + WALLET_PAIVANA_SESSION_EXPIRED => 0, + WALLET_EXCHANGE_SIGNING_KEY_UNUSABLE => 0, ANASTASIS_GENERIC_BACKEND_TIMEOUT => 504, ANASTASIS_GENERIC_INVALID_PAYMENT_REQUEST => 0, ANASTASIS_GENERIC_BACKEND_ERROR => 502, @@ -2182,6 +2413,8 @@ impl ErrorCode { ANASTASIS_IBAN_MISSING_TRANSFER => 403, ANASTASIS_TOTP_KEY_MISSING => 409, ANASTASIS_TOTP_KEY_INVALID => 409, + ANASTASIS_ADDRESS_UNREACHABLE => 503, + ANASTASIS_HELPER_MISCONFIGURED => 500, ANASTASIS_POLICY_BAD_IF_NONE_MATCH => 400, ANASTASIS_POLICY_OUT_OF_MEMORY_ON_CONTENT_LENGTH => 413, ANASTASIS_POLICY_BAD_SIGNATURE => 400, @@ -2213,7 +2446,7 @@ impl ErrorCode { DONAU_GENERIC_KEYS_MISSING => 503, DONAU_CHARITY_SIGNATURE_INVALID => 403, DONAU_CHARITY_NOT_FOUND => 404, - DONAU_EXCEEDING_DONATION_LIMIT => 400, + DONAU_EXCEEDING_DONATION_LIMIT => 409, DONAU_GENERIC_DONATION_UNIT_UNKNOWN => 404, DONAU_DONATION_UNIT_HELPER_UNAVAILABLE => 502, DONAU_SIGNKEY_HELPER_UNAVAILABLE => 502, @@ -2234,14 +2467,26 @@ impl ErrorCode { CHALLENGER_GENERIC_CLIENT_UNKNOWN => 404, CHALLENGER_GENERIC_CLIENT_FORBIDDEN_BAD_REDIRECT_URI => 401, CHALLENGER_HELPER_EXEC_FAILED => 502, - CHALLENGER_GRANT_UNKNOWN => 401, - CHALLENGER_CLIENT_FORBIDDEN_BAD_CODE => 401, - CHALLENGER_GENERIC_VALIDATION_UNKNOWN => 401, + CHALLENGER_GRANT_UNKNOWN => 400, + CHALLENGER_CLIENT_FORBIDDEN_BAD_CODE => 400, + CHALLENGER_GENERIC_VALIDATION_UNKNOWN => 404, CHALLENGER_CLIENT_FORBIDDEN_INVALID_CODE => 403, CHALLENGER_TOO_MANY_ATTEMPTS => 429, CHALLENGER_INVALID_PIN => 403, CHALLENGER_MISSING_ADDRESS => 409, CHALLENGER_CLIENT_FORBIDDEN_READ_ONLY => 403, + CHALLENGER_NO_CHALLENGE_TRANSMITTED => 409, + CHALLENGER_ADDRESS_RESTRICTION_VIOLATED => 400, + CHALLENGER_ADDRESS_RESTRICTION_MALFORMED => 500, + CHALLENGER_TOO_MANY_ADDRESS_CHANGES => 429, + CHALLENGER_TOO_MANY_PIN_TRANSMISSIONS => 429, + CHALLENGER_NO_PIN_ATTEMPTS_LEFT => 429, + CHALLENGER_CLIENT_AUTHENTICATION_FAILED => 401, + CHALLENGER_TOKEN_UNKNOWN => 401, + CHALLENGER_ADDRESS_UNUSABLE => 400, + CHALLENGER_ADDRESS_UNREACHABLE => 503, + CHALLENGER_HELPER_MISCONFIGURED => 500, + CHALLENGER_VALIDATION_FAILED => 410, PAIVANA_PAYMENT_MISSING => 409, PAIVANA_BACKEND_REFUSED => 502, PAIVANA_ORDER_UNKNOWN => 404, @@ -2251,6 +2496,7 @@ impl ErrorCode { PAIVANA_TOO_LATE => 410, PAIVANA_TEMPLATE_UNKNOWN => 404, PAIVANA_PAYWALL_DISABLED => 501, + PAIVANA_INVALID_TARGET => 409, END => 0, } }