diff options
author | Florian Dold <florian@dold.me> | 2023-07-06 20:17:59 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-07-06 20:17:59 +0200 |
commit | 8b06874f42715b0397a6735ff330e5f75eb0cb86 (patch) | |
tree | 608049f43d04fc375fe9e3f6599c18d4296fb479 /packages/taler-util | |
parent | d98f048fd65c46cd774eabdef8599efb75153ac3 (diff) | |
download | wallet-core-8b06874f42715b0397a6735ff330e5f75eb0cb86.tar.xz |
wallet-core: support passing transactionId to confirmPay
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 9 |
1 files changed, 7 insertions, 2 deletions
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<ConfirmPayRequest> => buildCodecForObject<ConfirmPayRequest>() - .property("proposalId", codecForString()) + .property("proposalId", codecOptional(codecForString())) + .property("transactionId", codecOptional(codecForString())) .property("sessionId", codecOptional(codecForString())) .property("forcedCoinSel", codecForAny()) .build("ConfirmPay"); |