From f3231ccdf9a2ce944bdc039fa8351117d18c3fe3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 Aug 2022 22:42:30 +0200 Subject: wallet-core: put taler:// URIs in transactions list --- packages/taler-util/src/transactionsTypes.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'packages/taler-util/src') diff --git a/packages/taler-util/src/transactionsTypes.ts b/packages/taler-util/src/transactionsTypes.ts index c4bd3d464..79c62cbc8 100644 --- a/packages/taler-util/src/transactionsTypes.ts +++ b/packages/taler-util/src/transactionsTypes.ts @@ -187,6 +187,9 @@ export interface TransactionWithdrawal extends TransactionCommon { withdrawalDetails: WithdrawalDetails; } +/** + * Credit because we were paid for a P2P invoice we created. + */ export interface TransactionPeerPullCredit extends TransactionCommon { type: TransactionType.PeerPullCredit; @@ -204,8 +207,16 @@ export interface TransactionPeerPullCredit extends TransactionCommon { * Amount that actually was (or will be) added to the wallet's balance. */ amountEffective: AmountString; + + /** + * URI to send to the other party. + */ + talerUri: string; } +/** + * Debit because we paid someone's invoice. + */ export interface TransactionPeerPullDebit extends TransactionCommon { type: TransactionType.PeerPullDebit; @@ -219,6 +230,9 @@ export interface TransactionPeerPullDebit extends TransactionCommon { amountEffective: AmountString; } +/** + * We sent money via a P2P payment. + */ export interface TransactionPeerPushDebit extends TransactionCommon { type: TransactionType.PeerPushDebit; @@ -236,8 +250,16 @@ export interface TransactionPeerPushDebit extends TransactionCommon { * Amount that actually was (or will be) added to the wallet's balance. */ amountEffective: AmountString; + + /** + * URI to accept the payment. + */ + talerUri: string; } +/** + * We received money via a P2P payment. + */ export interface TransactionPeerPushCredit extends TransactionCommon { type: TransactionType.PeerPushCredit; -- cgit v1.2.3