gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated (58ef1e13 -> 2bfb7853)


From: gnunet
Subject: [taler-wallet-core] branch master updated (58ef1e13 -> 2bfb7853)
Date: Fri, 12 Feb 2021 19:29:07 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a change to branch master
in repository wallet-core.

    from 58ef1e13 fix build error from rename
     new 3197c862 abstracting Libeufin users creation
     new 2bfb7853 formatting

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/integrationtests/libeufin.ts               | 62 ++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts 
b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
index 021e0663..04e67713 100644
--- a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
@@ -247,6 +247,68 @@ export interface SimulateIncomingTransactionRequest {
   currency: string;
 }
 
+/**
+ * The bundle aims at minimizing the amount of input
+ * data that is required to initialize a new user + Ebics
+ * connection thereof.
+ */
+class NexusUserBundle {
+  userReq: CreateNexusUserRequest;
+  connReq: CreateEbicsBankConnectionRequest;
+  twg: CreateTalerWireGatewayFacadeRequest;
+  localAccountName: string;
+  remoteAccountName: string;
+
+  constructor(ebicsURL: string, salt: string) {
+    this.userReq = {
+      username: `username-${salt}`,
+      password: `password-${salt}`,
+    };
+
+    this.connReq = {
+      name: `connection-${salt}`,
+      ebicsURL: ebicsURL,
+      hostID: `ebicshost-${salt}`,
+      partnerID: `ebicspartner-${salt}`,
+      userID: `ebicsuser-${salt}`,
+    };
+
+    this.twg = {
+      currency: "EUR",
+      name: `twg-${salt}`,
+      reserveTransferLevel: "report",
+      accountName: `local-account-${salt}`,
+      connectionName: `connection-${salt}`,
+    };
+    this.remoteAccountName = `remote-account-${salt}`;
+    this.localAccountName = `local-account-${salt}`;
+  }
+}
+
+/**
+ * The bundle aims at minimizing the amount of input
+ * data that is required to initialize a new Sandbox
+ * customer, associating their bank account with a Ebics
+ * subscriber.
+ */
+class SandboxUserBundle {
+  ebicsBankAccount: CreateEbicsBankAccountRequest;
+  constructor(salt: string) {
+    this.ebicsBankAccount = {
+      currency: "EUR",
+      bic: "DEUTDEBB101", // <= FIXME: properly randomize
+      iban: "IBAN", // <= FIXME: properly randomize
+      label: `remote-account-${salt}`,
+      name: `Taler Exchange: ${salt}`,
+      subscriber: {
+        hostID: `ebicshost-${salt}`,
+        partnerID: `ebicspartner-${salt}`,
+        userID: `ebicsuser-${salt}`,
+      },
+    };
+  }
+}
+
 export class LibeufinCli {
   cliDetails: LibeufinCliDetails;
   globalTestState: GlobalTestState;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]