[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: C53 returns camt.053 now.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: C53 returns camt.053 now. |
Date: |
Mon, 06 Apr 2020 20:06:54 +0200 |
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 7bf8e04 C53 returns camt.053 now.
7bf8e04 is described below
commit 7bf8e0489d68e0f70abe4cee11c3b9177566a908
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Apr 6 20:06:39 2020 +0200
C53 returns camt.053 now.
---
.../kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index fce26af..367e271 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -443,6 +443,16 @@ private fun handleEbicsC52(requestContext:
RequestContext): ByteArray {
return camt.toByteArray().zip()
}
+private fun handleEbicsC53(requestContext: RequestContext): ByteArray {
+ val subscriber = requestContext.subscriber
+ val camt = constructCamtResponse(
+ 53,
+ subscriber.bankCustomer.id.value,
+ requestContext.requestObject.header
+ )
+ return camt.toByteArray().zip()
+}
+
private suspend fun ApplicationCall.handleEbicsHia(header:
EbicsUnsecuredRequest.Header, orderData: ByteArray) {
val plainOrderData = InflaterInputStream(orderData.inputStream()).use {
it.readAllBytes()
@@ -805,7 +815,7 @@ private fun
handleEbicsDownloadTransactionInitialization(requestContext: Request
"HKD" -> handleEbicsHkd()
/* Temporarily handling C52/C53 with same logic */
"C52" -> handleEbicsC52(requestContext)
- "C53" -> handleEbicsC52(requestContext)
+ "C53" -> handleEbicsC53(requestContext)
"TSD" -> handleEbicsTSD(requestContext)
"PTK" -> handleEbicsPTK(requestContext)
else -> throw EbicsInvalidXmlError()
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: C53 returns camt.053 now.,
gnunet <=