commit d73fc52c65ea37f5ca85a95e59265bef1d958b06
parent f8049a76ea5b468d13f1aab575366a81e3d12e4e
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Fri, 10 Jan 2020 15:29:19 +0100
debug
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -139,11 +139,12 @@ fun sampleData() {
signaturePrivateKey = SerialBlob(pairC.private.encoded)
}
-
val customerEntity = BankCustomerEntity.new {
name = "Mina"
}
+ LOGGER.debug("Creating customer number: ${customerEntity.id}")
+
EbicsSubscriberEntity.new {
partnerId = "PARTNER1"
userId = "USER1"
@@ -165,6 +166,13 @@ fun sampleData() {
}
}
+/**
+ * Finds the history for a customer.
+ *
+ * @param id the customer whose history must be returned. This
+ * id is local to the bank and is not reused/encoded into other
+ * EBICS id values.
+ */
fun extractHistoryForEach(id: Int, start: String?, end: String?, builder: (BankTransactionEntity) -> Any) {
val s = if (start != null) DateTime.parse(start) else DateTime(0)
val e = if (end != null) DateTime.parse(end) else DateTime.now()