summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2021-04-29 17:03:05 +0200
committerMS <ms@taler.net>2021-04-29 17:03:05 +0200
commit98014f4b64c302a6e4e03e0d2ccaf579ed1fbf47 (patch)
tree8005e8f5f82f129ebf5fb5e8b97a2d98749ecf19
parentcf0260fa7f6c9a6eafd8075c2fb2fb4441bec2b1 (diff)
downloadwallet-core-98014f4b64c302a6e4e03e0d2ccaf579ed1fbf47.tar.gz
wallet-core-98014f4b64c302a6e4e03e0d2ccaf579ed1fbf47.tar.bz2
wallet-core-98014f4b64c302a6e4e03e0d2ccaf579ed1fbf47.zip
testing harness gets more Nexus API
-rw-r--r--packages/taler-wallet-cli/src/integrationtests/libeufin.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
index 9d446b310..a60127191 100644
--- a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
@@ -849,6 +849,31 @@ export namespace LibeufinNexusApi {
);
}
+
+ export async function getPaymentInitiations(
+ libeufinNexusService: LibeufinNexusService,
+ accountName: string,
+ username: string = "admin",
+ password: string = "test",
+ ): Promise<void> {
+ const baseUrl = libeufinNexusService.baseUrl;
+ let url = new URL(
+ `/bank-accounts/${accountName}/payment-initiations`,
+ baseUrl,
+ );
+ let response = await axios.get(
+ url.href,
+ {
+ auth: {
+ username: username,
+ password: password,
+ },
+ },
+ );
+ console.log(`Payment initiations of: ${accountName}`,
+ JSON.stringify(response.data, null, 2));
+ }
+
export async function getAccountTransactions(
libeufinNexusService: LibeufinNexusService,
accountName: string,