gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 03/07: update to gana 34f20d8be618409730e02f0078896e


From: gnunet
Subject: [taler-wallet-core] 03/07: update to gana 34f20d8be618409730e02f0078896ec129d8a404
Date: Fri, 03 Nov 2023 23:13:53 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

commit 368a87a361e845dd748036f10a66b7f202f84df8
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Nov 2 23:43:25 2023 -0300

    update to gana 34f20d8be618409730e02f0078896ec129d8a404
---
 packages/taler-util/src/errors.ts            |   2 +-
 packages/taler-util/src/taler-error-codes.ts | 268 ++++++++++++++++++++++-----
 2 files changed, 227 insertions(+), 43 deletions(-)

diff --git a/packages/taler-util/src/errors.ts 
b/packages/taler-util/src/errors.ts
index f17f7db6a..cb61a5994 100644
--- a/packages/taler-util/src/errors.ts
+++ b/packages/taler-util/src/errors.ts
@@ -47,7 +47,7 @@ export interface DetailsMap {
     walletProtocolVersion: string;
   };
   [TalerErrorCode.WALLET_WITHDRAWAL_OPERATION_ABORTED_BY_BANK]: empty;
-  [TalerErrorCode.WALLET_TIPPING_COIN_SIGNATURE_INVALID]: empty;
+  [TalerErrorCode.WALLET_REWARD_COIN_SIGNATURE_INVALID]: empty;
   [TalerErrorCode.WALLET_ORDER_ALREADY_CLAIMED]: {
     orderId: string;
     claimUrl: string;
diff --git a/packages/taler-util/src/taler-error-codes.ts 
b/packages/taler-util/src/taler-error-codes.ts
index fa1f4a86a..979fb332e 100644
--- a/packages/taler-util/src/taler-error-codes.ts
+++ b/packages/taler-util/src/taler-error-codes.ts
@@ -96,6 +96,14 @@ export enum TalerErrorCode {
   GENERIC_UNEXPECTED_REQUEST_ERROR = 15,
 
 
+  /**
+   * The token used by the client to authorize the request does not grant the 
required permissions for the request.
+   * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  GENERIC_TOKEN_PERMISSION_INSUFFICIENT = 16,
+
+
   /**
    * The HTTP method used is invalid for this endpoint.
    * Returned with an HTTP status code of #MHD_HTTP_METHOD_NOT_ALLOWED (405).
@@ -161,7 +169,15 @@ export enum TalerErrorCode {
 
 
   /**
-   * The currencies involved in the operation do not match.
+   * The body in the request could not be decompressed by the server.
+   * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  GENERIC_COMPRESSION_INVALID = 28,
+
+
+  /**
+   * The currency involved in the operation is not acceptable for this backend.
    * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400).
    * (A value of 0 indicates that the error is generated client-side).
    */
@@ -184,6 +200,46 @@ export enum TalerErrorCode {
   GENERIC_UPLOAD_EXCEEDS_LIMIT = 32,
 
 
+  /**
+   * The service refused the request due to lack of proper authorization.
+   * Returned with an HTTP status code of #MHD_HTTP_UNAUTHORIZED (401).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  GENERIC_UNAUTHORIZED = 40,
+
+
+  /**
+   * The service refused the request as the given authorization token is 
unknown.
+   * Returned with an HTTP status code of #MHD_HTTP_UNAUTHORIZED (401).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  GENERIC_TOKEN_UNKNOWN = 41,
+
+
+  /**
+   * The service refused the request as the given authorization token expired.
+   * Returned with an HTTP status code of #MHD_HTTP_UNAUTHORIZED (401).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  GENERIC_TOKEN_EXPIRED = 42,
+
+
+  /**
+   * The service refused the request as the given authorization token is 
malformed.
+   * Returned with an HTTP status code of #MHD_HTTP_UNAUTHORIZED (401).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  GENERIC_TOKEN_MALFORMED = 43,
+
+
+  /**
+   * The service refused the request due to lack of proper rights on the 
resource.
+   * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  GENERIC_FORBIDDEN = 44,
+
+
   /**
    * The service failed initialize its connection to the database.
    * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR 
(500).
@@ -464,6 +520,14 @@ export enum TalerErrorCode {
   EXCHANGE_GENERIC_NEW_DENOMS_ARRAY_SIZE_EXCESSIVE = 1018,
 
 
+  /**
+   * The coin is not known to the exchange (yet).
+   * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  EXCHANGE_GENERIC_COIN_UNKNOWN = 1019,
+
+
   /**
    * The time at the server is too far off from the time specified in the 
request. Most likely the client system time is wrong.
    * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400).
@@ -778,7 +842,7 @@ export enum TalerErrorCode {
 
   /**
    * The maximum age in the commitment is too large for the reserve
-   * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400).
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
    * (A value of 0 indicates that the error is generated client-side).
    */
   EXCHANGE_AGE_WITHDRAW_MAXIMUM_AGE_TOO_LARGE = 1165,
@@ -873,19 +937,11 @@ export enum TalerErrorCode {
 
 
   /**
-   * The reserve balance, status or history was requested for a reserve which 
is not known to the exchange.
-   * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
-   * (A value of 0 indicates that the error is generated client-side).
-   */
-  EXCHANGE_RESERVES_STATUS_UNKNOWN = 1250,
-
-
-  /**
-   * The reserve status was requested with a bad signature.
+   * The coin history was requested with a bad signature.
    * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  EXCHANGE_RESERVES_STATUS_BAD_SIGNATURE = 1251,
+  EXCHANGE_COIN_HISTORY_BAD_SIGNATURE = 1251,
 
 
   /**
@@ -893,7 +949,7 @@ export enum TalerErrorCode {
    * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  EXCHANGE_RESERVES_HISTORY_BAD_SIGNATURE = 1252,
+  EXCHANGE_RESERVE_HISTORY_BAD_SIGNATURE = 1252,
 
 
   /**
@@ -2057,11 +2113,11 @@ export enum TalerErrorCode {
 
 
   /**
-   * The tip ID is unknown.  This could happen if the tip has expired.
+   * The reward ID is unknown.  This could happen if the reward has expired.
    * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_GENERIC_TIP_ID_UNKNOWN = 2007,
+  MERCHANT_GENERIC_REWARD_ID_UNKNOWN = 2007,
 
 
   /**
@@ -2168,6 +2224,38 @@ export enum TalerErrorCode {
   MERCHANT_GENERIC_PENDING_WEBHOOK_UNKNOWN = 2020,
 
 
+  /**
+   * The backend could not find the OTP device(id) because it is not exist.
+   * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  MERCHANT_GENERIC_OTP_DEVICE_UNKNOWN = 2021,
+
+
+  /**
+   * The account is not known to the backend.
+   * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  MERCHANT_GENERIC_ACCOUNT_UNKNOWN = 2022,
+
+
+  /**
+   * The wire hash was malformed.
+   * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  MERCHANT_GENERIC_H_WIRE_MALFORMED = 2023,
+
+
+  /**
+   * The currency specified in the operation does not work with the current 
state of the given resource.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  MERCHANT_GENERIC_CURRENCY_MISMATCH = 2024,
+
+
   /**
    * The exchange failed to provide a valid answer to the tracking request, 
thus those details are not in the response.
    * Returned with an HTTP status code of #MHD_HTTP_OK (200).
@@ -2509,7 +2597,7 @@ export enum TalerErrorCode {
    * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_TIP_PICKUP_UNBLIND_FAILURE = 2400,
+  MERCHANT_REWARD_PICKUP_UNBLIND_FAILURE = 2400,
 
 
   /**
@@ -2517,7 +2605,7 @@ export enum TalerErrorCode {
    * Returned with an HTTP status code of #MHD_HTTP_BAD_GATEWAY (502).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_TIP_PICKUP_EXCHANGE_ERROR = 2403,
+  MERCHANT_REWARD_PICKUP_EXCHANGE_ERROR = 2403,
 
 
   /**
@@ -2525,15 +2613,15 @@ export enum TalerErrorCode {
    * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR 
(500).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_TIP_PICKUP_SUMMATION_FAILED = 2404,
+  MERCHANT_REWARD_PICKUP_SUMMATION_FAILED = 2404,
 
 
   /**
-   * The tip expired.
+   * The reward expired.
    * Returned with an HTTP status code of #MHD_HTTP_GONE (410).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_TIP_PICKUP_HAS_EXPIRED = 2405,
+  MERCHANT_REWARD_PICKUP_HAS_EXPIRED = 2405,
 
 
   /**
@@ -2541,7 +2629,7 @@ export enum TalerErrorCode {
    * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_TIP_PICKUP_AMOUNT_EXCEEDS_TIP_REMAINING = 2406,
+  MERCHANT_REWARD_PICKUP_AMOUNT_EXCEEDS_REWARD_REMAINING = 2406,
 
 
   /**
@@ -2549,7 +2637,7 @@ export enum TalerErrorCode {
    * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_TIP_PICKUP_DENOMINATION_UNKNOWN = 2407,
+  MERCHANT_REWARD_PICKUP_DENOMINATION_UNKNOWN = 2407,
 
 
   /**
@@ -2937,11 +3025,11 @@ export enum TalerErrorCode {
 
 
   /**
-   * The requested exchange does not allow tipping.
+   * The requested exchange does not allow rewards.
    * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_PRIVATE_POST_RESERVES_TIPPING_NOT_ALLOWED = 2701,
+  MERCHANT_PRIVATE_POST_RESERVES_REWARDS_NOT_ALLOWED = 2701,
 
 
   /**
@@ -2953,35 +3041,35 @@ export enum TalerErrorCode {
 
 
   /**
-   * The reserve that was used to fund the tips has expired.
+   * The reserve that was used to fund the rewards has expired.
    * Returned with an HTTP status code of #MHD_HTTP_GONE (410).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_PRIVATE_POST_TIP_AUTHORIZE_RESERVE_EXPIRED = 2750,
+  MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_EXPIRED = 2750,
 
 
   /**
-   * The reserve that was used to fund the tips was not found in the DB.
+   * The reserve that was used to fund the rewards was not found in the DB.
    * Returned with an HTTP status code of #MHD_HTTP_SERVICE_UNAVAILABLE (503).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_PRIVATE_POST_TIP_AUTHORIZE_RESERVE_UNKNOWN = 2751,
+  MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_UNKNOWN = 2751,
 
 
   /**
-   * The backend knows the instance that was supposed to support the tip, and 
it was configured for tipping. However, the funds remaining are insufficient to 
cover the tip, and the merchant should top up the reserve.
+   * The backend knows the instance that was supposed to support the reward, 
and it was configured for rewardping. However, the funds remaining are 
insufficient to cover the reward, and the merchant should top up the reserve.
    * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_PRIVATE_POST_TIP_AUTHORIZE_INSUFFICIENT_FUNDS = 2752,
+  MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_INSUFFICIENT_FUNDS = 2752,
 
 
   /**
-   * The backend failed to find a reserve needed to authorize the tip.
+   * The backend failed to find a reserve needed to authorize the reward.
    * Returned with an HTTP status code of #MHD_HTTP_SERVICE_UNAVAILABLE (503).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  MERCHANT_PRIVATE_POST_TIP_AUTHORIZE_RESERVE_NOT_FOUND = 2753,
+  MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_NOT_FOUND = 2753,
 
 
   /**
@@ -3000,6 +3088,14 @@ export enum TalerErrorCode {
   MERCHANT_PRIVATE_POST_TEMPLATES_CONFLICT_TEMPLATE_EXISTS = 2850,
 
 
+  /**
+   * The OTP device ID already exists.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  MERCHANT_PRIVATE_POST_OTP_DEVICES_CONFLICT_OTP_DEVICE_EXISTS = 2851,
+
+
   /**
    * Amount given in the using template and in the template contract. There is 
a conflict.
    * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
@@ -3096,14 +3192,6 @@ export enum TalerErrorCode {
   BANK_NUMBER_TOO_BIG = 5104,
 
 
-  /**
-   * Could not login for the requested operation.
-   * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403).
-   * (A value of 0 indicates that the error is generated client-side).
-   */
-  BANK_LOGIN_FAILED = 5105,
-
-
   /**
    * The bank account referenced in the requested operation was not found.
    * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
@@ -3216,6 +3304,94 @@ export enum TalerErrorCode {
   BANK_POST_WITHDRAWAL_OPERATION_REQUIRED = 5119,
 
 
+  /**
+   * The client tried to register a new account under a reserved username 
(like 'admin' for example).
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_RESERVED_USERNAME_CONFLICT = 5120,
+
+
+  /**
+   * The client tried to register a new account with an username already in 
use.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_REGISTER_USERNAME_REUSE = 5121,
+
+
+  /**
+   * The client tried to register a new account with a payto:// URI already in 
use.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_REGISTER_PAYTO_URI_REUSE = 5122,
+
+
+  /**
+   * The client tried to delete an account with a non null balance.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_ACCOUNT_BALANCE_NOT_ZERO = 5123,
+
+
+  /**
+   * The client tried to create a transaction or an operation that credit an 
unknown account.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_UNKNOWN_CREDITOR = 5124,
+
+
+  /**
+   * The client tried to create a transaction or an operation that debit an 
unknown account.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_UNKNOWN_DEBTOR = 5125,
+
+
+  /**
+   * The client tried to perform an action prohibited for exchange accounts.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_ACCOUNT_IS_EXCHANGE = 5126,
+
+
+  /**
+   * The client tried to perform an action reserved for exchange accounts.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_ACCOUNT_IS_NOT_EXCHANGE = 5127,
+
+
+  /**
+   * Received currency conversion is wrong.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_BAD_CONVERSION = 5128,
+
+
+  /**
+   * The account referenced in this operation is missing tan info for the 
chosen channel.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_MISSING_TAN_INFO = 5129,
+
+
+  /**
+   * The client attempted to confirm a transaction with incomplete info.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  BANK_CONFIRM_INCOMPLETE = 5130,
+
+
   /**
    * The sync service failed find the account in its database.
    * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404).
@@ -3465,11 +3641,11 @@ export enum TalerErrorCode {
 
 
   /**
-   * The signature on a coin by the exchange's denomination key (obtained 
through the merchant via tipping) is invalid after unblinding it.
+   * The signature on a coin by the exchange's denomination key (obtained 
through the merchant via a reward) is invalid after unblinding it.
    * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).
    * (A value of 0 indicates that the error is generated client-side).
    */
-  WALLET_TIPPING_COIN_SIGNATURE_INVALID = 7016,
+  WALLET_REWARD_COIN_SIGNATURE_INVALID = 7016,
 
 
   /**
@@ -4240,6 +4416,14 @@ export enum TalerErrorCode {
   CHALLENGER_INVALID_PIN = 9758,
 
 
+  /**
+   * The token cannot be valid as no address was ever provided by the client.
+   * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+   * (A value of 0 indicates that the error is generated client-side).
+   */
+  CHALLENGER_MISSING_ADDRESS = 9759,
+
+
   /**
    * End of error code range.
    * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0).

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]