From e0c21a8694ba1f18b5940fc9ce776cd233610418 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 19 Feb 2024 23:46:12 +0100 Subject: wallet-core: fix long-polling request parameter --- packages/taler-util/src/taler-types.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'packages/taler-util') diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts index 4a0c53a79..fe8f47e30 100644 --- a/packages/taler-util/src/taler-types.ts +++ b/packages/taler-util/src/taler-types.ts @@ -977,6 +977,8 @@ export class CheckPaymentResponse { * Response from the bank. */ export class WithdrawOperationStatusResponse { + status: "selected" | "aborted" | "confirmed" | "pending"; + selection_done: boolean; transfer_done: boolean; @@ -1573,6 +1575,15 @@ export const codecForCheckPaymentResponse = (): Codec => export const codecForWithdrawOperationStatusResponse = (): Codec => buildCodecForObject() + .property( + "status", + codecForEither( + codecForConstString("selected"), + codecForConstString("confirmed"), + codecForConstString("aborted"), + codecForConstString("pending"), + ), + ) .property("selection_done", codecForBoolean()) .property("transfer_done", codecForBoolean()) .property("aborted", codecForBoolean()) -- cgit v1.2.3