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-sandbox-transactions.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-sandbox-transactions.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-sandbox-transactions.ts | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-sandbox-transactions.ts b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-sandbox-transactions.ts index fc558af14..f9676c58c 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-sandbox-transactions.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-sandbox-transactions.ts @@ -42,32 +42,30 @@ export async function runLibeufinApiSandboxTransactionsTest(t: GlobalTestState) label: "mock-account", currency: "EUR" }); - 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.bookPayment2(sandbox, { - creditorIban: "DE71500105179674997361", - creditorBic: "BELADEBEXXX", - creditorName: "mock", - debtorIban: "DE84500105176881385584", - debtorBic: "BELADEBEXXX", - debtorName: "mock2", - subject: "mock subject 2", - currency: "EUR", - amount: "1.1", - uid: "mock2", - direction: "CRDT", - }); + await LibeufinSandboxApi.simulateIncomingTransaction( + sandbox, + "mock-account", + { + + debtorIban: "DE84500105176881385584", + debtorBic: "BELADEBEXXX", + debtorName: "mock2", + subject: "mock subject", + amount: "1" // EUR is default. + } + ) + await LibeufinSandboxApi.simulateIncomingTransaction( + sandbox, + "mock-account", + { + + debtorIban: "DE84500105176881385584", + debtorBic: "BELADEBEXXX", + debtorName: "mock2", + subject: "mock subject 2", + amount: "1.1" // EUR is default. + } + ) let ret = await LibeufinSandboxApi.getAccountInfoWithBalance(sandbox, "mock-account"); t.assertAmountEquals(ret.data.balance, "EUR:2.1"); } |