commit 25c38a8498917d52865e40145a8c11cbfa84c1b2
parent 8876292c3fcf2b5493b5398ea0f10cd73b386ff2
Author: Florian Dold <florian@dold.me>
Date: Mon, 17 Feb 2025 22:09:16 +0100
-typing, one more hint
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/packages/taler-util/src/types-taler-wallet.ts b/packages/taler-util/src/types-taler-wallet.ts
@@ -768,6 +768,13 @@ export enum InsufficientBalanceHint {
MerchantAgeRestricted = "merchant-age-restricted",
/**
+ * While in principle the balance is sufficient,
+ * the age restriction on coins causes the spendable
+ * balance to be insufficient.
+ */
+ PeerAgeRestricted = "peer-age-restricted",
+
+ /**
* Wallet has enough available funds,
* but the material funds are insufficient. Usually because there is a
* pending refresh operation.
@@ -845,7 +852,7 @@ export interface PaymentInsufficientBalanceDetails {
* Hint that UIs should show to explain the insufficient
* balance.
*/
- causeHint?: string | undefined;
+ causeHint?: InsufficientBalanceHint | undefined;
};
};
}