diff options
Diffstat (limited to 'packages/taler-util')
-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()) |