libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 186df706e297c75c7813e25c4eed39d2f8cf27e4
parent 3d00f034121bb7094a60f36198481a2287616948
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Fri, 10 Jan 2020 14:52:52 +0100

fix return value and type

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt @@ -111,7 +111,7 @@ private suspend fun ApplicationCall.respondEbicsKeyManagement( respondText(text, ContentType.Application.Xml, HttpStatusCode.OK) } -private fun ApplicationCall.handleEbicsC52(header: EbicsRequest.Header) { +private fun ApplicationCall.handleEbicsC52(header: EbicsRequest.Header): ByteArray { val userId = header.static.userID!! val od = header.static.orderDetails ?: throw Exception("Need 'OrderDetails'") @@ -151,15 +151,12 @@ private fun ApplicationCall.handleEbicsC52(header: EbicsRequest.Header) { element("Acct") { text("account identifier") } - } - - } } - // val str = XMLUtil.convertJaxbToString(ret) - // return str.toByteArray() + val str = XMLUtil.convertJaxbToString(ret) + return str.toByteArray() } private suspend fun ApplicationCall.handleEbicsHia(header: EbicsUnsecuredRequest.Header, orderData: ByteArray) {