aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-02-16 22:29:53 +0100
committerFlorian Dold <florian@dold.me>2023-02-16 22:29:53 +0100
commit99f27aaecd78f3f513f1cc203c37ccab4f2db89a (patch)
tree8594058e845229a0e32df15f7ce470d338455d86
parent88e5634c974edc68d0870b1da65e8b0fca7a9de2 (diff)
downloadwallet-core-99f27aaecd78f3f513f1cc203c37ccab4f2db89a.tar.xz
-comments
-rw-r--r--packages/taler-util/src/wallet-types.ts9
-rw-r--r--packages/taler-wallet-core/src/operations/pay-peer.ts1
-rw-r--r--packages/taler-wallet-core/src/wallet-api-types.ts4
3 files changed, 12 insertions, 2 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index 96251540e..06d76a6d4 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -2031,7 +2031,16 @@ export interface PayCoinSelection {
}
export interface PreparePeerPushPaymentRequest {
+ /**
+ * Preferred exchange to use for the p2p payment.
+ */
exchangeBaseUrl?: string;
+
+ /**
+ * Instructed amount.
+ *
+ * FIXME: Allow specifying the instructed amount type.
+ */
amount: AmountString;
}
diff --git a/packages/taler-wallet-core/src/operations/pay-peer.ts b/packages/taler-wallet-core/src/operations/pay-peer.ts
index 022a824de..dd5ea13c9 100644
--- a/packages/taler-wallet-core/src/operations/pay-peer.ts
+++ b/packages/taler-wallet-core/src/operations/pay-peer.ts
@@ -77,7 +77,6 @@ import {
PeerPushPaymentIncomingRecord,
PeerPushPaymentInitiationStatus,
ReserveRecord,
- WalletStoresV1,
WithdrawalGroupStatus,
WithdrawalRecordType,
} from "../db.js";
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts
index da57253a0..fab7632f2 100644
--- a/packages/taler-wallet-core/src/wallet-api-types.ts
+++ b/packages/taler-wallet-core/src/wallet-api-types.ts
@@ -591,7 +591,9 @@ export type ExportBackupPlainOp = {
// group: Peer Payments
/**
- * Initiate an outgoing peer push payment.
+ * Check if initiating a peer push payment is possible.
+ *
+ * FIXME: Rename to CheckPeerPushPaymentInitiation
*/
export type PreparePeerPushPaymentOp = {
op: WalletApiOperation.PreparePeerPushPayment;