commit 999a18a25381083b64aad448875d59139573c978
parent 242ca99cf90a0f39874b7394a769313bfe245340
Author: Sebastian <sebasjm@gmail.com>
Date: Fri, 14 Jun 2024 15:11:05 -0300
support new bank api with amount undefined
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/taler-util/src/http-client/types.ts b/packages/taler-util/src/http-client/types.ts
@@ -1139,7 +1139,7 @@ export const codecForWithdrawalPublicInfo =
codecForConstString("confirmed"),
),
)
- .property("amount", codecForAmountString())
+ .property("amount", codecOptional(codecForAmountString()))
.property("username", codecForString())
.property("selected_reserve_pub", codecOptional(codecForString()))
.property(
@@ -2234,7 +2234,7 @@ export namespace TalerCorebankApi {
// Amount that will be withdrawn with this operation
// (raw amount without fee considerations).
- amount: AmountString;
+ amount?: AmountString;
// Account username
username: string;