diff options
author | MS <ms@taler.net> | 2021-05-12 11:52:38 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2021-05-12 11:52:38 +0200 |
commit | 83b02069c931306c72c470e0285693719f65d0ca (patch) | |
tree | d2a2656b767af4bba2de181f5d5c728522451370 /packages/taler-wallet-cli/src/integrationtests/libeufin.ts | |
parent | 41b65e90b9eb1a0a4a999bce75df29a0ea3aedcc (diff) | |
download | wallet-core-83b02069c931306c72c470e0285693719f65d0ca.tar.xz |
libeufin, testing bank connection removal
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/libeufin.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/libeufin.ts | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts index eb9d63f12..709148817 100644 --- a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts +++ b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts @@ -54,6 +54,10 @@ export interface LibeufinNexusConfig { databaseJdbcUri: string; } +export interface DeleteBankConnectionRequest { + bankConnectionId: string; +} + interface LibeufinNexusMoneyMovement { amount: string; creditDebitIndicator: string; @@ -837,6 +841,40 @@ export interface PostNexusPermissionRequest { export namespace LibeufinNexusApi { + export async function getAllConnections( + nexus: LibeufinNexusServiceInterface, + ): Promise<any> { + let url = new URL("bank-connections", nexus.baseUrl); + const res = await axios.get( + url.href, + { + auth: { + username: "admin", + password: "test", + }, + }, + ); + return res; + } + + export async function deleteBankConnection( + libeufinNexusService: LibeufinNexusServiceInterface, + req: DeleteBankConnectionRequest, + ): Promise<any> { + const baseUrl = libeufinNexusService.baseUrl; + let url = new URL("bank-connections/delete-connection", baseUrl); + return await axios.post( + url.href, + req, + { + auth: { + username: "admin", + password: "test", + } + } + ); + } + export async function createEbicsBankConnection( libeufinNexusService: LibeufinNexusServiceInterface, req: CreateEbicsBankConnectionRequest, @@ -953,7 +991,6 @@ export namespace LibeufinNexusApi { ); } - export async function getPaymentInitiations( libeufinNexusService: LibeufinNexusService, accountName: string, |