commit bf7d97746fb4448bbff63a109c529dc22ac136df
parent cdee48b0fceed6256cd22eafbe03c581f49a9211
Author: MS <ms@taler.net>
Date: Sun, 16 Apr 2023 22:43:42 +0200
EBICS HTD server side.
Filling the account holder name with the
expected value taken from the customer profile.
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -1021,15 +1021,12 @@ fun receiveEbicsXmlInternal(xmlData: String): Document {
private fun makePartnerInfo(subscriber: EbicsSubscriberEntity): EbicsTypes.PartnerInfo {
val bankAccount = getBankAccountFromSubscriber(subscriber)
+ val customerProfile = getCustomer(bankAccount.label)
return EbicsTypes.PartnerInfo().apply {
this.accountInfoList = listOf(
EbicsTypes.AccountInfo().apply {
this.id = bankAccount.label
- /**
- * FIXME:
- * This value waits to be extracted from the DemobankCustomer type.
- */
- this.accountHolder = "Account Holder"
+ this.accountHolder = customerProfile.name ?: "Never Given"
this.accountNumberList = listOf(
EbicsTypes.GeneralAccountNumber().apply {
this.international = true