From 19256c8819af783e27bfcb95dfdec2415d2f4295 Mon Sep 17 00:00:00 2001 From: dankl Date: Sun, 13 Oct 2019 18:29:53 +0200 Subject: [PATCH] Also synchronizeCustomerSystemId() and doBankTransfer() returning now FinTsClientResponse --- .../src/main/kotlin/net/dankito/fints/FinTsClient.kt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt index 6c292f66..0351148f 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt @@ -65,7 +65,8 @@ open class FinTsClient( } - open fun synchronizeCustomerSystemId(bank: BankData, customer: CustomerData): Response { + // TODO: i don't think this method is publicly needed + open fun synchronizeCustomerSystemId(bank: BankData, customer: CustomerData): FinTsClientResponse { val dialogData = DialogData() val requestBody = messageBuilder.createSynchronizeCustomerSystemIdMessage(bank, customer, product, dialogData) @@ -81,7 +82,7 @@ open class FinTsClient( closeDialog(bank, customer, dialogData) } - return response + return FinTsClientResponse(response) } @@ -140,14 +141,14 @@ open class FinTsClient( open fun doBankTransfer(bankTransferData: BankTransferData, bank: BankData, - customer: CustomerData): Response { + customer: CustomerData): FinTsClientResponse { val dialogData = DialogData() val initDialogResponse = initDialog(bank, customer, dialogData) if (initDialogResponse.successful == false) { - return initDialogResponse + return FinTsClientResponse(initDialogResponse) } @@ -159,7 +160,7 @@ open class FinTsClient( closeDialog(bank, customer, dialogData) - return response + return FinTsClientResponse(response) }