aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-02-14 11:16:58 +0100
committerFlorian Dold <florian@dold.me>2023-02-14 11:17:19 +0100
commit6a4da88719bc7a1506433c1117b2402d2bd48f36 (patch)
tree7094aed1a6a8e1fe85854225c8744c955d7d973c /packages/taler-util
parent6106caeba9e017242dfd334c34c8473aefb6ffb0 (diff)
downloadwallet-core-6a4da88719bc7a1506433c1117b2402d2bd48f36.tar.xz
wallet-core: expose more info about refund query
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/notifications.ts9
-rw-r--r--packages/taler-util/src/transactions-types.ts5
2 files changed, 14 insertions, 0 deletions
diff --git a/packages/taler-util/src/notifications.ts b/packages/taler-util/src/notifications.ts
index 823c4130d..55d838007 100644
--- a/packages/taler-util/src/notifications.ts
+++ b/packages/taler-util/src/notifications.ts
@@ -96,6 +96,10 @@ export interface RefundStartedNotification {
export interface RefundQueriedNotification {
type: NotificationType.RefundQueried;
+ /**
+ * Transaction ID of the purchase (NOT the refund transaction).
+ */
+ transactionId: string;
}
export interface ProposalDownloadedNotification {
@@ -171,6 +175,11 @@ export interface WaitingForRetryNotification {
export interface RefundFinishedNotification {
type: NotificationType.RefundFinished;
+
+ /**
+ * Transaction ID of the purchase (NOT the refund transaction).
+ */
+ transactionId: string;
}
export interface ExchangeAddedNotification {
diff --git a/packages/taler-util/src/transactions-types.ts b/packages/taler-util/src/transactions-types.ts
index d108d1a77..946f9dda9 100644
--- a/packages/taler-util/src/transactions-types.ts
+++ b/packages/taler-util/src/transactions-types.ts
@@ -395,6 +395,11 @@ export interface TransactionPayment extends TransactionCommon {
* Reference to applied refunds
*/
refunds: RefundInfoShort[];
+
+ /**
+ * Is the wallet currently checking for a refund?
+ */
+ refundQueryActive: boolean;
}
export interface OrderShortInfo {