[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Get payments' integration tests to pas
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Get payments' integration tests to pass. |
Date: |
Fri, 04 Dec 2020 17:07:21 +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 8a49818 Get payments' integration tests to pass.
8a49818 is described below
commit 8a49818dafb74a89e535c353d68e0424fc037d13
Author: MS <ms@taler.net>
AuthorDate: Fri Dec 4 17:07:02 2020 +0100
Get payments' integration tests to pass.
---
nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/Iso20022.kt | 10 ++++++----
.../main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 8 ++++----
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/Iso20022.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/Iso20022.kt
index c616d34..0b5a39d 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/Iso20022.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/Iso20022.kt
@@ -338,7 +338,7 @@ class CamtParsingError(msg: String) : Exception(msg)
*/
data class NexusPaymentInitiationData(
val debtorIban: String,
- val debtorBic: String?,
+ val debtorBic: String,
val debtorName: String,
val messageId: String,
val paymentInformationId: String,
@@ -429,9 +429,8 @@ fun createPain001document(paymentData:
NexusPaymentInitiationData): String {
element("DbtrAcct/Id/IBAN") {
text(paymentData.debtorIban)
}
- when (val b = paymentData.debtorBic) {
- null -> element("DbtrAgt/FinInstnId/Othr/Id") {
text("NOTPROVIDED") }
- else -> element("DbtrAgt/FinInstnId/BIC") { text(b) }
+ element("DbtrAgt/FinInstnId/BIC") {
+ text(paymentData.debtorBic)
}
element("ChrgBr") {
text("SLEV")
@@ -450,6 +449,9 @@ fun createPain001document(paymentData:
NexusPaymentInitiationData): String {
attribute("Ccy", paymentData.currency)
text(paymentData.amount)
}
+ element("CdtrAgt/FinInstnId/BIC") {
+ text(paymentData.creditorBic)
+ }
element("Cdtr/Nm") {
text(paymentData.creditorName)
}
diff --git
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index 7f2cedb..fc369a1 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -490,7 +490,7 @@ private fun parsePain001(paymentRequest: String,
initiatorName: String): PainPar
}
}
val debtorIban = requireUniqueChildNamed("DbtrAcct"){
- requireUniqueChildNamed("Type") {
+ requireUniqueChildNamed("Id") {
requireUniqueChildNamed("IBAN") {
focusElement.textContent
}
@@ -498,7 +498,7 @@ private fun parsePain001(paymentRequest: String,
initiatorName: String): PainPar
}
val debtorBic = requireUniqueChildNamed("DbtrAgt"){
requireUniqueChildNamed("FinInstnId") {
- requireUniqueChildNamed("BICFI") {
+ requireUniqueChildNamed("BIC") {
focusElement.textContent
}
}
@@ -517,8 +517,8 @@ private fun parsePain001(paymentRequest: String,
initiatorName: String): PainPar
}
}
val creditorBic =
requireUniqueChildNamed("CdtrAgt") {
- requireUniqueChildNamed("InstnId") {
- requireUniqueChildNamed("BICFI") {
+ requireUniqueChildNamed("FinInstnId") {
+ requireUniqueChildNamed("BIC") {
focusElement.textContent
}
}
--
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: Get payments' integration tests to pass.,
gnunet <=