diff options
author | Sebastian <sebasjm@gmail.com> | 2024-06-14 15:11:05 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-06-14 15:11:05 -0300 |
commit | 999a18a25381083b64aad448875d59139573c978 (patch) | |
tree | 1b8028450e6e31df8ff96d0deabf1530d1269a7e | |
parent | 242ca99cf90a0f39874b7394a769313bfe245340 (diff) |
support new bank api with amount undefined
-rw-r--r-- | packages/taler-util/src/http-client/types.ts | 4 |
1 files 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 index 3e6d857cb..a5659954d 100644 --- 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; |