gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: consistent renaming


From: gnunet
Subject: [libeufin] branch master updated: consistent renaming
Date: Fri, 26 Jun 2020 15:48:56 +0200

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

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 60119d3  consistent renaming
60119d3 is described below

commit 60119d3e5945a3ec2aea70e810d3e69f2bece4dc
Author: MS <ms@taler.net>
AuthorDate: Fri Jun 26 15:48:22 2020 +0200

    consistent renaming
---
 integration-tests/test-loopback-highlevel.py                    | 4 ++--
 nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt        | 4 ++--
 nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 8 ++++----
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/integration-tests/test-loopback-highlevel.py 
b/integration-tests/test-loopback-highlevel.py
index dcda643..13264f4 100755
--- a/integration-tests/test-loopback-highlevel.py
+++ b/integration-tests/test-loopback-highlevel.py
@@ -71,8 +71,8 @@ assertResponse(
             data=dict(
                 iban="myIBAN",
                 bic="myBIC",
-                holder="Account Holder Name",
-                account="my-bank-account"
+                ownerName="Account Holder Name",
+                nexusBankAccountId="my-bank-account"
             )
         ),
         headers=dict(Authorization=USER_AUTHORIZATION_HEADER),
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt
index 6f0215d..cf9f819 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/JSON.kt
@@ -264,10 +264,10 @@ data class UsersResponse(
 
 /** Response (list's element) type of "GET /bank-accounts" */
 data class BankAccount(
-    var holder: String,
+    var ownerName: String,
     var iban: String,
     var bic: String,
-    var account: String
+    var nexusBankAccountId: String
 )
 
 data class OfferedBankAccount(
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index 2f218e8..4aa072f 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -166,10 +166,10 @@ fun createLoopbackBankConnection(bankConnectionName: 
String, user: NexusUserEnti
         type = "loopback"
     }
     val bankAccount = jacksonObjectMapper().treeToValue(data, 
BankAccount::class.java)
-    NexusBankAccountEntity.new(bankAccount.account) {
+    NexusBankAccountEntity.new(bankAccount.nexusBankAccountId) {
         iban = bankAccount.iban
         bankCode = bankAccount.bic
-        accountHolder = bankAccount.holder
+        accountHolder = bankAccount.ownerName
         defaultBankConnection = bankConn
         highestSeenBankMessageId = 0
     }
@@ -332,10 +332,10 @@ fun serverMain(dbName: String, host: String) {
                     NexusBankAccountEntity.all().forEach {
                         bankAccounts.accounts.add(
                             BankAccount(
-                                holder = it.accountHolder,
+                                ownerName = it.accountHolder,
                                 iban = it.iban,
                                 bic = it.bankCode,
-                                account = it.id.value
+                                nexusBankAccountId = it.id.value
                             )
                         )
                     }

-- 
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]