summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/transactionsTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-08-24 22:42:30 +0200
committerFlorian Dold <florian@dold.me>2022-08-24 22:42:30 +0200
commitf3231ccdf9a2ce944bdc039fa8351117d18c3fe3 (patch)
tree09526df32c6c234eb9cfcc85ee6221c3f36a12f2 /packages/taler-util/src/transactionsTypes.ts
parenta11ac57535b0375f152ce115ee541cb8aca98e84 (diff)
downloadwallet-core-f3231ccdf9a2ce944bdc039fa8351117d18c3fe3.tar.gz
wallet-core-f3231ccdf9a2ce944bdc039fa8351117d18c3fe3.tar.bz2
wallet-core-f3231ccdf9a2ce944bdc039fa8351117d18c3fe3.zip
wallet-core: put taler:// URIs in transactions list
Diffstat (limited to 'packages/taler-util/src/transactionsTypes.ts')
-rw-r--r--packages/taler-util/src/transactionsTypes.ts22
1 files changed, 22 insertions, 0 deletions
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;