summaryrefslogtreecommitdiff
path: root/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt
diff options
context:
space:
mode:
Diffstat (limited to 'nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt')
-rw-r--r--nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt12
1 files changed, 8 insertions, 4 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt
index 53cfdf80..fb9c03ce 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022.kt
@@ -129,15 +129,19 @@ data class CustomerAck(
val code: ExternalStatusReasonCode?,
val timestamp: Instant
) {
- override fun toString(): String {
- var str = "${timestamp.fmtDateTime()}"
- if (orderId != null) str += " ${orderId}"
- str += " ${actionType}"
+ fun msg(): String {
+ var str = "${actionType}"
if (code != null) str += " ${code.isoCode}"
str += " - '${actionType.description}'"
if (code != null) str += " '${code.description}'"
return str
}
+
+ override fun toString(): String {
+ var str = "${timestamp.fmtDateTime()}"
+ if (orderId != null) str += " ${orderId}"
+ return str + " ${msg()}"
+ }
}
/**