diff options
author | Florian Dold <florian@dold.me> | 2022-08-23 11:29:45 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-08-23 20:35:11 +0200 |
commit | f3ff5a72257dda27cab555f8b8d921d45bfc3e4b (patch) | |
tree | 708494a3aa2346fead51931fe4bfc41cc0249659 /packages/taler-wallet-core/src/wallet-api-types.ts | |
parent | 4ca38113abee2c0ca17b26aa55cf6a0ecafe49c9 (diff) | |
download | wallet-core-f3ff5a72257dda27cab555f8b8d921d45bfc3e4b.tar.xz |
peer-to-peer pull payments MVP
p2p pull wip
Diffstat (limited to 'packages/taler-wallet-core/src/wallet-api-types.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet-api-types.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts index cc9e98f8c..14c40a8db 100644 --- a/packages/taler-wallet-core/src/wallet-api-types.ts +++ b/packages/taler-wallet-core/src/wallet-api-types.ts @@ -27,6 +27,7 @@ import { AcceptExchangeTosRequest, AcceptManualWithdrawalRequest, AcceptManualWithdrawalResult, + AcceptPeerPullPaymentRequest, AcceptPeerPushPaymentRequest, AcceptTipRequest, AcceptWithdrawalResponse, @@ -35,6 +36,8 @@ import { ApplyRefundResponse, BackupRecovery, BalancesResponse, + CheckPeerPullPaymentRequest, + CheckPeerPullPaymentResponse, CheckPeerPushPaymentRequest, CheckPeerPushPaymentResponse, CoinDumpJson, @@ -49,6 +52,8 @@ import { GetExchangeTosResult, GetWithdrawalDetailsForAmountRequest, GetWithdrawalDetailsForUriRequest, + InitiatePeerPullPaymentRequest, + InitiatePeerPullPaymentResponse, InitiatePeerPushPaymentRequest, InitiatePeerPushPaymentResponse, IntegrationTestArgs, @@ -126,6 +131,9 @@ export enum WalletApiOperation { InitiatePeerPushPayment = "initiatePeerPushPayment", CheckPeerPushPayment = "checkPeerPushPayment", AcceptPeerPushPayment = "acceptPeerPushPayment", + InitiatePeerPullPayment = "initiatePeerPullPayment", + CheckPeerPullPayment = "checkPeerPullPayment", + AcceptPeerPullPayment = "acceptPeerPullPayment", } export type WalletOperations = { @@ -297,6 +305,18 @@ export type WalletOperations = { request: AcceptPeerPushPaymentRequest; response: {}; }; + [WalletApiOperation.InitiatePeerPullPayment]: { + request: InitiatePeerPullPaymentRequest; + response: InitiatePeerPullPaymentResponse; + }; + [WalletApiOperation.CheckPeerPullPayment]: { + request: CheckPeerPullPaymentRequest; + response: CheckPeerPullPaymentResponse; + }; + [WalletApiOperation.AcceptPeerPullPayment]: { + request: AcceptPeerPullPaymentRequest; + response: {}; + }; }; export type RequestType< |