diff options
author | Florian Dold <florian@dold.me> | 2023-01-06 13:55:08 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-01-06 13:55:08 +0100 |
commit | 417c07f3f4866918e1aaa6d42b7d5ec0ca59dd51 (patch) | |
tree | 9966f647bb0779cf2de248b805f0ea13a24ddba6 /packages/taler-wallet-core/src/errors.ts | |
parent | c2c35925bb953bf07e32c005dbe312d220b45749 (diff) |
wallet-core: insufficient balance details for p2p payments
Diffstat (limited to 'packages/taler-wallet-core/src/errors.ts')
-rw-r--r-- | packages/taler-wallet-core/src/errors.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/errors.ts b/packages/taler-wallet-core/src/errors.ts index 68cd39b54..37a31a8aa 100644 --- a/packages/taler-wallet-core/src/errors.ts +++ b/packages/taler-wallet-core/src/errors.ts @@ -25,6 +25,7 @@ */ import { PayMerchantInsufficientBalanceDetails, + PayPeerInsufficientBalanceDetails, TalerErrorCode, TalerErrorDetail, TransactionType, @@ -87,6 +88,9 @@ export interface DetailsMap { [TalerErrorCode.WALLET_DEPOSIT_GROUP_INSUFFICIENT_BALANCE]: { insufficientBalanceDetails: PayMerchantInsufficientBalanceDetails; }; + [TalerErrorCode.WALLET_PEER_PUSH_PAYMENT_INSUFFICIENT_BALANCE]: { + insufficientBalanceDetails: PayPeerInsufficientBalanceDetails; + }; } type ErrBody<Y> = Y extends keyof DetailsMap ? DetailsMap[Y] : never; |