diff options
author | ms <ms@taler.net> | 2021-09-01 17:38:54 +0200 |
---|---|---|
committer | ms <ms@taler.net> | 2021-09-01 17:38:54 +0200 |
commit | 79c14e77ecdb0fcf11c109cd53ce8d065d47c611 (patch) | |
tree | ef16c825509e88c375af5c5432a921e85df4daf1 /packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts | |
parent | 2cecdccb49dc91f75eb81fcb9d7a213ee96b8b5a (diff) | |
download | wallet-core-79c14e77ecdb0fcf11c109cd53ce8d065d47c611.tar.xz |
Avoid Sandbox (deprecated) POST /admin/payments/ API.
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts index 2fbc952e7..d51694026 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts @@ -88,20 +88,17 @@ export async function runLibeufinApiBankaccountTest(t: GlobalTestState) { "mock", "local-mock", ); - - await LibeufinSandboxApi.bookPayment2(sandbox, { - creditorIban: "DE71500105179674997361", - creditorBic: "BELADEBEXXX", - creditorName: "mock", - debtorIban: "DE84500105176881385584", - debtorBic: "BELADEBEXXX", - debtorName: "mock2", - subject: "mock subject", - currency: "EUR", - amount: "1", - uid: "mock", - direction: "CRDT", - }); + await LibeufinSandboxApi.simulateIncomingTransaction( + sandbox, + "mock", // creditor bankaccount label + { + debtorIban: "DE84500105176881385584", + debtorBic: "BELADEBEXXX", + debtorName: "mock2", + amount: "1", + subject: "mock subject", + } + ); await LibeufinNexusApi.fetchAllTransactions(nexus, "local-mock"); let transactions = await LibeufinNexusApi.getAccountTransactions( nexus, |