diff options
author | Florian Dold <florian@dold.me> | 2023-02-14 11:16:58 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-14 11:17:19 +0100 |
commit | 6a4da88719bc7a1506433c1117b2402d2bd48f36 (patch) | |
tree | 7094aed1a6a8e1fe85854225c8744c955d7d973c /packages/taler-util | |
parent | 6106caeba9e017242dfd334c34c8473aefb6ffb0 (diff) |
wallet-core: expose more info about refund query
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/notifications.ts | 9 | ||||
-rw-r--r-- | packages/taler-util/src/transactions-types.ts | 5 |
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 { |