commit 9e925fe446dc67fe7cf874451bb7d8e3e4814655
parent 2a19c466c5a9ac7a9e9c0bc196e0b2afceb4db5e
Author: Florian Dold <florian@dold.me>
Date: Wed, 8 Jan 2025 15:42:55 +0100
-new field
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/packages/taler-util/src/types-taler-corebank.ts b/packages/taler-util/src/types-taler-corebank.ts
@@ -168,6 +168,7 @@ export interface BankAccountCreateWithdrawalResponse {
// URI that can be passed to the wallet to initiate the withdrawal.
taler_withdraw_uri: TalerUriString;
}
+
export interface WithdrawalPublicInfo {
// Current status of the operation
// pending: the operation is pending parameters selection (exchange and reserve public key)
@@ -196,6 +197,14 @@ export interface WithdrawalPublicInfo {
// Exchange account selected by the wallet
// only non-null if status is selected or confirmed.
selected_exchange_account?: PaytoString;
+
+ // If true, the wallet must not allow the user to
+ // specify an amount to withdraw and to not provide
+ // any amount when registering with the withdrawal
+ // operation. The amount to withdraw will be set
+ // by the final /withdrawals/$WITHDRAWAL_ID/confirm step.
+ // @since **v8**
+ no_amount_to_wallet?: boolean;
}
export interface BankAccountTransactionsResponse {
@@ -811,6 +820,7 @@ export const codecForWithdrawalPublicInfo = (): Codec<WithdrawalPublicInfo> =>
.property("username", codecForString())
.property("selected_reserve_pub", codecOptional(codecForString()))
.property("selected_exchange_account", codecOptional(codecForPaytoString()))
+ .property("no_amount_to_wallet", codecOptional(codecForBoolean()))
.build("TalerCorebankApi.WithdrawalPublicInfo");
export const codecForBankAccountTransactionsResponse =