From 8b06874f42715b0397a6735ff330e5f75eb0cb86 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 6 Jul 2023 20:17:59 +0200 Subject: wallet-core: support passing transactionId to confirmPay --- packages/taler-util/src/wallet-types.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'packages/taler-util') diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 7926cdd4f..f2384ad8e 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -1751,14 +1751,19 @@ export const codecForPreparePayTemplateRequest = .build("PreparePayTemplate"); export interface ConfirmPayRequest { - proposalId: string; + /** + * @deprecated use transactionId instead + */ + proposalId?: string; + transactionId?: string; sessionId?: string; forcedCoinSel?: ForcedCoinSel; } export const codecForConfirmPayRequest = (): Codec => buildCodecForObject() - .property("proposalId", codecForString()) + .property("proposalId", codecOptional(codecForString())) + .property("transactionId", codecOptional(codecForString())) .property("sessionId", codecOptional(codecForString())) .property("forcedCoinSel", codecForAny()) .build("ConfirmPay"); -- cgit v1.2.3