[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: remove avoidable nullable affecting Ac
From: |
gnunet |
Subject: |
[libeufin] branch master updated: remove avoidable nullable affecting AcctSvcrRef |
Date: |
Fri, 05 Feb 2021 14:28:30 +0100 |
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 79755ef remove avoidable nullable affecting AcctSvcrRef
79755ef is described below
commit 79755efe112a33db5d5076cbac6e1e7694d02f70
Author: MS <ms@taler.net>
AuthorDate: Fri Feb 5 14:28:21 2021 +0100
remove avoidable nullable affecting AcctSvcrRef
---
.../src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 8 +-------
sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt | 2 +-
util/src/main/kotlin/JSON.kt | 2 +-
3 files changed, 3 insertions(+), 9 deletions(-)
diff --git
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index 7747536..932d63f 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -342,13 +342,7 @@ fun buildCamtString(type: Int, subscriberIban: String,
history: List<RawPayment>
text(dashedDate)
} // date of assets' actual (un)availability
element("AcctSvcrRef") {
- val uid = if (it.uid != null)
it.uid.toString() else {
- throw EbicsRequestError(
- errorCode = "091116",
- errorText = "EBICS_PROCESSING_ERROR"
- )
- }
- text(uid)
+ text(it.uid)
}
element("BkTxCd") {
/* "Set of elements used to fully identify
the type of underlying
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
index c93db81..a0c0d16 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
@@ -43,7 +43,7 @@ fun historyForAccount(iban: String): List<RawPayment> {
// The line below produces a value too long (>35 chars),
// and it makes the document invalid!
// uid = "${it[pmtInfId]}-${it[msgId]}"
- uid = "${it[BankAccountTransactionsTable.pmtInfId]}",
+ uid =
it[BankAccountTransactionsTable.accountServicerReference],
direction = it[BankAccountTransactionsTable.direction],
pmtInfId = it[BankAccountTransactionsTable.pmtInfId]
)
diff --git a/util/src/main/kotlin/JSON.kt b/util/src/main/kotlin/JSON.kt
index f8cc240..de959f0 100644
--- a/util/src/main/kotlin/JSON.kt
+++ b/util/src/main/kotlin/JSON.kt
@@ -35,7 +35,7 @@ data class RawPayment(
val currency: String,
val subject: String,
val date: String? = null,
- val uid: String? = null, // FIXME: explain this value.
+ val uid: String, // FIXME: explain this value.
val direction: String, // FIXME: this following value should be restricted
to only DBIT/CRDT.
// The following two values are rather CAMT/PAIN
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: remove avoidable nullable affecting AcctSvcrRef,
gnunet <=