aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-05-25 11:59:55 +0200
committerFlorian Dold <florian@dold.me>2023-05-25 11:59:55 +0200
commit0b4d900088d3a319c23ce228bfd5cf286dbb44e8 (patch)
tree6f1e522fdb84864a08925b9c23852cec37ebbf16 /packages/taler-util/src
parentc3ef842df0ca80c5fe8deb5dabea44d5c817d7ed (diff)
downloadwallet-core-0b4d900088d3a319c23ce228bfd5cf286dbb44e8.tar.xz
wallet-core: return transactionId whenever a transaction is created
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r--packages/taler-util/src/wallet-types.ts12
1 files changed, 12 insertions, 0 deletions
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,10 +396,17 @@ 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?
*/
accepted: boolean;
@@ -447,6 +454,7 @@ export const codecForPrepareTipResult = (): Codec<PrepareTipResult> =>
.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 =