From f16d2e52d51b931d18abd9d87568be681339350f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 3 May 2022 17:53:32 +0200 Subject: wallet-core: implement batch withdrawal --- packages/taler-util/src/talerTypes.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'packages/taler-util/src') 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 => .property("ev_sig", codecForBlindedDenominationSignature()) .build("WithdrawResponse"); +export const codecForWithdrawBatchResponse = (): Codec => + buildCodecForObject() + .property("ev_sigs", codecForList(codecForWithdrawResponse())) + .build("WithdrawBatchResponse"); + export const codecForMerchantPayResponse = (): Codec => buildCodecForObject() .property("sig", codecForString()) -- cgit v1.2.3