gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: More state for payments.


From: gnunet
Subject: [libeufin] branch master updated: More state for payments.
Date: Mon, 16 Mar 2020 19:42:20 +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 a9e9e30  More state for payments.
a9e9e30 is described below

commit a9e9e30adcede04a0d409a5fc9bd032762ff9e66
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Mar 16 19:37:33 2020 +0100

    More state for payments.
    
    The Nexus needs to flag a payment as "invalid" when
    - for some reason - the bank refuses to perform it.
    
    Note that CRZ does not always help with this: for example,
    if a payment is a invalid PAIN.001, it does not show up in
    a CRZ response; therefore the only way to detect it it is
    to certify its ABSENCE in a C52/C53 response.
---
 nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt | 11 ++++++++++-
 1 file changed, 10 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 3e4735b..f57d167 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
@@ -69,7 +69,15 @@ object Pain001Table : IntIdTableWithAmount() {
     val creditorIban = text("creditorIban")
     val creditorBic = text("creditorBic")
     val creditorName = text("creditorName")
-    val submitted = bool("submitted").default(false) // indicates whether the 
PAIN message was sent to the bank.
+
+    /* Indicates whether the PAIN message was sent to the bank. */
+    val submitted = bool("submitted").default(false)
+
+    /* Indicates whether the bank didn't perform the payment: note that
+    * this state can be reached when the payment gets listed in a CRZ
+    * response OR when the payment doesn's show up in a C52/C53 response
+    */
+    val invalid = bool("invalid").default(false)
 }
 
 class Pain001Entity(id: EntityID<Int>) : IntEntity(id) {
@@ -85,6 +93,7 @@ class Pain001Entity(id: EntityID<Int>) : IntEntity(id) {
     var creditorBic by Pain001Table.creditorBic
     var creditorName by Pain001Table.creditorName
     var submitted by Pain001Table.submitted
+    var invalid by Pain001Table.invalid
 }
 
 object EbicsAccountsInfoTable : IdTable<String>() {

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



reply via email to

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