summaryrefslogtreecommitdiff
path: root/packages/taler-util/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-03-07 11:46:31 +0100
committerFlorian Dold <florian@dold.me>2024-03-07 11:46:31 +0100
commit53120dfc3ec05d49fc6f94bb498c66238225dd6b (patch)
tree374a582f38bf1eb0cb3d8d0c221ffc20af886804 /packages/taler-util/src
parent26a2a1c094194fed84c3227bc0b91540d31637cc (diff)
downloadwallet-core-53120dfc3ec05d49fc6f94bb498c66238225dd6b.tar.gz
wallet-core-53120dfc3ec05d49fc6f94bb498c66238225dd6b.tar.bz2
wallet-core-53120dfc3ec05d49fc6f94bb498c66238225dd6b.zip
rename insufficient balance fields to work for both merchant and p2p payments
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r--packages/taler-util/src/wallet-types.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index cfbed04dc..69811969c 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -862,12 +862,12 @@ export interface PaymentInsufficientBalanceDetails {
/**
* Balance of type "merchant-acceptable" (see balance.ts for definition).
*/
- balanceMerchantAcceptable: AmountString;
+ balanceReceiverAcceptable: AmountString;
/**
* Balance of type "merchant-depositable" (see balance.ts for definition).
*/
- balanceMerchantDepositable: AmountString;
+ balanceReceiverDepositable: AmountString;
balanceExchangeDepositable: AmountString;
@@ -883,8 +883,8 @@ export interface PaymentInsufficientBalanceDetails {
balanceMaterial: AmountString;
balanceExchangeDepositable: AmountString;
balanceAgeAcceptable: AmountString;
- balanceMerchantAcceptable: AmountString;
- balanceMerchantDepositable: AmountString;
+ balanceReceiverAcceptable: AmountString;
+ balanceReceiverDepositable: AmountString;
maxEffectiveSpendAmount: AmountString;
};
};
@@ -897,8 +897,8 @@ export const codecForPayMerchantInsufficientBalanceDetails =
.property("balanceAgeAcceptable", codecForAmountString())
.property("balanceAvailable", codecForAmountString())
.property("balanceMaterial", codecForAmountString())
- .property("balanceMerchantAcceptable", codecForAmountString())
- .property("balanceMerchantDepositable", codecForAmountString())
+ .property("balanceReceiverAcceptable", codecForAmountString())
+ .property("balanceReceiverDepositable", codecForAmountString())
.property("balanceExchangeDepositable", codecForAmountString())
.property("perExchange", codecForAny())
.property("maxEffectiveSpendAmount", codecForAmountString())