Also synchronizeCustomerSystemId() and doBankTransfer() returning now FinTsClientResponse
This commit is contained in:
parent
637cbe8b07
commit
19256c8819
|
@ -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 dialogData = DialogData()
|
||||||
val requestBody = messageBuilder.createSynchronizeCustomerSystemIdMessage(bank, customer, product, dialogData)
|
val requestBody = messageBuilder.createSynchronizeCustomerSystemIdMessage(bank, customer, product, dialogData)
|
||||||
|
@ -81,7 +82,7 @@ open class FinTsClient(
|
||||||
closeDialog(bank, customer, dialogData)
|
closeDialog(bank, customer, dialogData)
|
||||||
}
|
}
|
||||||
|
|
||||||
return response
|
return FinTsClientResponse(response)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -140,14 +141,14 @@ open class FinTsClient(
|
||||||
|
|
||||||
|
|
||||||
open fun doBankTransfer(bankTransferData: BankTransferData, bank: BankData,
|
open fun doBankTransfer(bankTransferData: BankTransferData, bank: BankData,
|
||||||
customer: CustomerData): Response {
|
customer: CustomerData): FinTsClientResponse {
|
||||||
|
|
||||||
val dialogData = DialogData()
|
val dialogData = DialogData()
|
||||||
|
|
||||||
val initDialogResponse = initDialog(bank, customer, dialogData)
|
val initDialogResponse = initDialog(bank, customer, dialogData)
|
||||||
|
|
||||||
if (initDialogResponse.successful == false) {
|
if (initDialogResponse.successful == false) {
|
||||||
return initDialogResponse
|
return FinTsClientResponse(initDialogResponse)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -159,7 +160,7 @@ open class FinTsClient(
|
||||||
|
|
||||||
closeDialog(bank, customer, dialogData)
|
closeDialog(bank, customer, dialogData)
|
||||||
|
|
||||||
return response
|
return FinTsClientResponse(response)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue