diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
| -rw-r--r-- | packages/taler-wallet-core/src/operations/pay-peer.ts | 10 | ||||
| -rw-r--r-- | packages/taler-wallet-core/src/operations/testing.ts | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-peer.ts b/packages/taler-wallet-core/src/operations/pay-peer.ts index 31e395cab..3b4572900 100644 --- a/packages/taler-wallet-core/src/operations/pay-peer.ts +++ b/packages/taler-wallet-core/src/operations/pay-peer.ts @@ -50,8 +50,8 @@ import { getRandomBytes, InitiatePeerPullCreditRequest, InitiatePeerPullCreditResponse, - InitiatePeerPushPaymentRequest, - InitiatePeerPushPaymentResponse, + InitiatePeerPushDebitRequest, + InitiatePeerPushDebitResponse, j2s, Logger, parsePayPullUri, @@ -653,10 +653,10 @@ export async function processPeerPushDebit( /** * Initiate sending a peer-to-peer push payment. */ -export async function initiatePeerPushPayment( +export async function initiatePeerPushDebit( ws: InternalWalletState, - req: InitiatePeerPushPaymentRequest, -): Promise<InitiatePeerPushPaymentResponse> { + req: InitiatePeerPushDebitRequest, +): Promise<InitiatePeerPushDebitResponse> { const instructedAmount = Amounts.parseOrThrow( req.partialContractTerms.amount, ); diff --git a/packages/taler-wallet-core/src/operations/testing.ts b/packages/taler-wallet-core/src/operations/testing.ts index 8341d2f26..e5794ad93 100644 --- a/packages/taler-wallet-core/src/operations/testing.ts +++ b/packages/taler-wallet-core/src/operations/testing.ts @@ -54,7 +54,7 @@ import { confirmPeerPullDebit, confirmPeerPushCredit, initiatePeerPullPayment, - initiatePeerPushPayment, + initiatePeerPushDebit, preparePeerPullDebit, preparePeerPushCredit, } from "./pay-peer.js"; @@ -532,7 +532,7 @@ export async function runIntegrationTest2( await ws.runUntilDone(); - const peerPushInit = await initiatePeerPushPayment(ws, { + const peerPushInit = await initiatePeerPushDebit(ws, { partialContractTerms: { amount: `${currency}:1`, summary: "Payment Peer Push Test", |
