diff options
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/libeufin.ts | 25 |
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, |