From 0b4d900088d3a319c23ce228bfd5cf286dbb44e8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 25 May 2023 11:59:55 +0200 Subject: wallet-core: return transactionId whenever a transaction is created --- packages/taler-util/src/wallet-types.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'packages/taler-util/src') diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index d20eb5173..1ede15919 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -396,9 +396,16 @@ export interface PrepareTipResult { /** * Unique ID for the tip assigned by the wallet. * Typically different from the merchant-generated tip ID. + * + * @deprecated use transactionId instead */ walletTipId: string; + /** + * Tip transaction ID. + */ + transactionId: string; + /** * Has the tip already been accepted? */ @@ -447,6 +454,7 @@ export const codecForPrepareTipResult = (): Codec => .property("merchantBaseUrl", codecForString()) .property("expirationTimestamp", codecForTimestamp) .property("walletTipId", codecForString()) + .property("transactionId", codecForString()) .build("PrepareTipResult"); export interface BenchmarkResult { @@ -2150,6 +2158,8 @@ export interface PreparePeerPushCreditResponse { amountRaw: AmountString; amountEffective: AmountString; peerPushPaymentIncomingId: string; + + transactionId: string; } export interface PreparePeerPullDebitResponse { @@ -2163,6 +2173,8 @@ export interface PreparePeerPullDebitResponse { amountEffective: AmountString; peerPullPaymentIncomingId: string; + + transactionId: string; } export const codecForPreparePeerPushCreditRequest = -- cgit v1.2.3