summaryrefslogtreecommitdiff
path: root/sandbox/src/main/kotlin/tech/libeufin
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-04-16 22:43:42 +0200
committerMS <ms@taler.net>2023-04-16 22:43:42 +0200
commitbf7d97746fb4448bbff63a109c529dc22ac136df (patch)
tree0da611ac43221005fc63c0caa7185dbb82913da8 /sandbox/src/main/kotlin/tech/libeufin
parentcdee48b0fceed6256cd22eafbe03c581f49a9211 (diff)
downloadlibeufin-bf7d97746fb4448bbff63a109c529dc22ac136df.tar.gz
libeufin-bf7d97746fb4448bbff63a109c529dc22ac136df.tar.bz2
libeufin-bf7d97746fb4448bbff63a109c529dc22ac136df.zip
EBICS HTD server side.
Filling the account holder name with the expected value taken from the customer profile.
Diffstat (limited to 'sandbox/src/main/kotlin/tech/libeufin')
-rw-r--r--sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt7
1 files 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
index d02ff7c3..e2c9abf5 100644
--- 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