aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-02-01 13:00:12 -0300
committerSebastian <sebasjm@gmail.com>2023-02-01 13:00:12 -0300
commitab9a5e1e8ac60bbf55104e84490e581dfad5de02 (patch)
treeac00b38838ee0ca3b600dc505957632b019bf1bb /packages/taler-util
parentb45dd3ed4d5a43e3622b381e3a2acb16497e9864 (diff)
fix #7552, add next_url from the tip information when accepting tips
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/backup-types.ts5
-rw-r--r--packages/taler-util/src/taler-types.ts3
-rw-r--r--packages/taler-util/src/wallet-types.ts1
3 files changed, 9 insertions, 0 deletions
diff --git a/packages/taler-util/src/backup-types.ts b/packages/taler-util/src/backup-types.ts
index b3c6b5515..0a355b65f 100644
--- a/packages/taler-util/src/backup-types.ts
+++ b/packages/taler-util/src/backup-types.ts
@@ -669,6 +669,11 @@ export interface BackupTip {
selected_denoms: BackupDenomSel;
/**
+ * The url to be redirected after the tip is accepted.
+ */
+ next_url: string | undefined;
+
+ /**
* UID for the denomination selection.
* Used to disambiguate when merging.
*/
diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts
index 8b680bdd9..a9303ed9c 100644
--- a/packages/taler-util/src/taler-types.ts
+++ b/packages/taler-util/src/taler-types.ts
@@ -905,6 +905,8 @@ export class TipPickupGetResponse {
exchange_url: string;
+ next_url?: string;
+
expiration: TalerProtocolTimestamp;
}
@@ -1464,6 +1466,7 @@ export const codecForTipPickupGetResponse = (): Codec<TipPickupGetResponse> =>
buildCodecForObject<TipPickupGetResponse>()
.property("tip_amount", codecForString())
.property("exchange_url", codecForString())
+ .property("next_url", codecOptional(codecForString()))
.property("expiration", codecForTimestamp)
.build("TipPickupGetResponse");
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index b7a51de9e..d57a221f3 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -379,6 +379,7 @@ export interface PrepareTipResult {
export interface AcceptTipResponse {
transactionId: string;
+ next_url?: string;
}
export const codecForPrepareTipResult = (): Codec<PrepareTipResult> =>