gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: Equip PAIN.001 with namespaces.


From: gnunet
Subject: [libeufin] branch master updated: Equip PAIN.001 with namespaces.
Date: Wed, 11 Mar 2020 16:34:11 +0100

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

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 0619c86  Equip PAIN.001 with namespaces.
0619c86 is described below

commit 0619c86df4c6721d7c5aabf620c6bc1586cf7c87
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Mar 11 16:33:32 2020 +0100

    Equip PAIN.001 with namespaces.
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 26705d7..d4e3b11 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -55,6 +55,7 @@ import java.lang.StringBuilder
 import java.security.interfaces.RSAPublicKey
 import java.text.DateFormat
 import java.text.SimpleDateFormat
+import java.time.LocalDate
 import java.util.*
 import javax.crypto.EncryptedPrivateKeyInfo
 import javax.sql.rowset.serial.SerialBlob
@@ -165,6 +166,9 @@ fun createPain001document(pain001Entity: Pain001Entity): 
String {
 
     val s = constructXml(indent = true) {
         root("Document") {
+            attribute("xmlns", 
"urn:iso:std:iso:20022:tech:xsd:pain.001.001.03")
+            attribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance";)
+            attribute("xsi:schemaLocation", 
"urn:iso:std:iso:20022:tech:xsd:pain.001.001.03 pain.001.001.03.xsd")
             element("CstmrCdtTrfInitn") {
                 element("GrpHdr") {
                     element("MsgId") {
@@ -471,7 +475,7 @@ fun main() {
              * should be done AFTER the PAIN.002 data corresponding to a 
payment witnesses it.
              */
             post("/ebics/admin/execute-payments") {
-                val (painDoc, debtorAccount) = transaction {
+                val (painDoc: String, debtorAccount) = transaction {
                     val entity = Pain001Entity.find {
                         Pain001Table.submitted eq false
                     }.firstOrNull() ?: throw 
NexusError(HttpStatusCode.Accepted, reason = "No ready payments found")
@@ -502,7 +506,7 @@ fun main() {
                     client,
                     subscriberData,
                     "CRZ",
-                    EbicsStandardOrderParams()
+                    EbicsStandardOrderParams(EbicsDateRange(start = 
LocalDate.parse("2020-03-02"), end = LocalDate.now()))
                 )
                 when (response) {
                     is EbicsDownloadSuccessResult ->

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]