diff options
author | Florian Dold <florian@dold.me> | 2022-05-03 17:53:32 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-05-03 17:53:37 +0200 |
commit | f16d2e52d51b931d18abd9d87568be681339350f (patch) | |
tree | 2536efba55fa1a937d9be27f009b1e0bca5139dd /packages/taler-util/src | |
parent | b4e219f7ff99f62d563b106c1add4c5744680b1c (diff) | |
download | wallet-core-f16d2e52d51b931d18abd9d87568be681339350f.tar.xz |
wallet-core: implement batch withdrawal
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/talerTypes.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/taler-util/src/talerTypes.ts b/packages/taler-util/src/talerTypes.ts index abac1cd12..ffc1f5160 100644 --- a/packages/taler-util/src/talerTypes.ts +++ b/packages/taler-util/src/talerTypes.ts @@ -904,6 +904,10 @@ export class WithdrawResponse { ev_sig: BlindedDenominationSignature; } +export class WithdrawBatchResponse { + ev_sigs: WithdrawResponse[]; +} + /** * Easy to process format for the public data of coins * managed by the wallet. @@ -1452,6 +1456,11 @@ export const codecForWithdrawResponse = (): Codec<WithdrawResponse> => .property("ev_sig", codecForBlindedDenominationSignature()) .build("WithdrawResponse"); +export const codecForWithdrawBatchResponse = (): Codec<WithdrawBatchResponse> => + buildCodecForObject<WithdrawBatchResponse>() + .property("ev_sigs", codecForList(codecForWithdrawResponse())) + .build("WithdrawBatchResponse"); + export const codecForMerchantPayResponse = (): Codec<MerchantPayResponse> => buildCodecForObject<MerchantPayResponse>() .property("sig", codecForString()) |