summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/errors.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-07-03 12:40:35 -0300
committerSebastian <sebasjm@gmail.com>2023-07-03 12:40:35 -0300
commitf47b5bd783def7481233f94275e333365d50b08b (patch)
tree26fda24f36c02cce2c2aed6a937ec315e1a47615 /packages/taler-util/src/errors.ts
parent15a15942d2160e7742ccb415554c87057da7afc2 (diff)
downloadwallet-core-f47b5bd783def7481233f94275e333365d50b08b.tar.gz
wallet-core-f47b5bd783def7481233f94275e333365d50b08b.tar.bz2
wallet-core-f47b5bd783def7481233f94275e333365d50b08b.zip
#7741 share payment
add shared flag in db new state purchase dialogShared new error WALLET_ORDER_ALREADY_PAID removing nonce from normal operation new operation: sharePayment which returns payUri with nonce
Diffstat (limited to 'packages/taler-util/src/errors.ts')
-rw-r--r--packages/taler-util/src/errors.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/taler-util/src/errors.ts b/packages/taler-util/src/errors.ts
index 8476b63fc..06e338a25 100644
--- a/packages/taler-util/src/errors.ts
+++ b/packages/taler-util/src/errors.ts
@@ -52,6 +52,9 @@ export interface DetailsMap {
orderId: string;
claimUrl: string;
};
+ [TalerErrorCode.WALLET_ORDER_ALREADY_PAID]: {
+ orderId: string;
+ };
[TalerErrorCode.WALLET_CONTRACT_TERMS_MALFORMED]: empty;
[TalerErrorCode.WALLET_CONTRACT_TERMS_SIGNATURE_INVALID]: {
merchantPub: string;
@@ -98,7 +101,7 @@ export interface DetailsMap {
};
[TalerErrorCode.WALLET_EXCHANGE_COIN_SIGNATURE_INVALID]: empty;
[TalerErrorCode.WALLET_WITHDRAWAL_GROUP_INCOMPLETE]: {
- numErrors: number,
+ numErrors: number;
errorsPerCoin: Record<number, TalerErrorDetail>;
};
[TalerErrorCode.WALLET_CORE_NOT_AVAILABLE]: empty;
@@ -133,7 +136,7 @@ export interface DetailsMap {
[TalerErrorCode.WALLET_EXCHANGE_BASE_URL_MISMATCH]: {
urlWallet: string;
urlExchange: string;
- }
+ };
}
type ErrBody<Y> = Y extends keyof DetailsMap ? DetailsMap[Y] : empty;