diff options
author | MS <ms@taler.net> | 2021-02-05 14:28:21 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2021-02-05 14:28:21 +0100 |
commit | 79755efe112a33db5d5076cbac6e1e7694d02f70 (patch) | |
tree | 5f3dab65b6e68a41b635538c88ef886b32d39c94 /sandbox/src/main/kotlin/tech/libeufin | |
parent | 391f7a62c1423be53d3779352e5e25bc17774278 (diff) | |
download | libeufin-79755efe112a33db5d5076cbac6e1e7694d02f70.tar.gz libeufin-79755efe112a33db5d5076cbac6e1e7694d02f70.tar.bz2 libeufin-79755efe112a33db5d5076cbac6e1e7694d02f70.zip |
remove avoidable nullable affecting AcctSvcrRef
Diffstat (limited to 'sandbox/src/main/kotlin/tech/libeufin')
-rw-r--r-- | sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 8 | ||||
-rw-r--r-- | sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt index 77475368..932d63f5 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 c93db81c..a0c0d16b 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] ) |