[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 02/04: longer currency names in outgoing payments
From: |
gnunet |
Subject: |
[libeufin] 02/04: longer currency names in outgoing payments |
Date: |
Thu, 16 Jun 2022 12:05:14 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit e7731fe8dadbafd5fbb80d1d258454f9bad8f52e
Author: MS <ms@taler.net>
AuthorDate: Thu Jun 16 12:01:09 2022 +0200
longer currency names in outgoing payments
---
nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt | 2 +-
nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
index 3469cc98..d2a18041 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
@@ -202,7 +202,7 @@ object PaymentInitiationsTable : LongIdTable() {
val preparationDate = long("preparationDate")
val submissionDate = long("submissionDate").nullable()
val sum = amount("sum")
- val currency = varchar("currency", length = 3).default("EUR")
+ val currency = text("currency")
val endToEndId = text("endToEndId")
val paymentInformationId = text("paymentInformationId")
val instructionId = text("instructionId")
diff --git
a/nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt
index 85281613..127f2c30 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt
@@ -328,6 +328,7 @@ fun addPaymentInitiation(paymentData: Pain001Data,
debtorAccount: NexusBankAccou
val painHex = painCounter.toString(16)
val acctHex = debtorAccount.id.value.toString(16)
PaymentInitiationEntity.new {
+ currency = paymentData.currency
bankAccount = debtorAccount
subject = paymentData.subject
sum = paymentData.sum
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.