libeufin

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

commit 63b69ccc34e2edeaba5784891a086f4de912d2da
parent cc867f98a0f7034be6485d5b57dfda34ed5194e3
Author: Florian Dold <florian.dold@gmail.com>
Date:   Tue, 12 Nov 2019 18:52:26 +0100

fix JAXB problem

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/schema/ebics_h004/EbicsTypes.kt | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/schema/ebics_h004/EbicsTypes.kt b/sandbox/src/main/kotlin/tech/libeufin/schema/ebics_h004/EbicsTypes.kt @@ -21,6 +21,7 @@ package tech.libeufin.schema.ebics_h004 import org.apache.xml.security.binding.xmldsig.RSAKeyValueType import org.w3c.dom.Element +import java.util.* import javax.xml.bind.annotation.* import javax.xml.bind.annotation.adapters.CollapsedStringAdapter import javax.xml.bind.annotation.adapters.NormalizedStringAdapter @@ -212,11 +213,11 @@ object EbicsTypes { @get:XmlElement(name = "BankInfo", required = true) lateinit var bankInfo: BankInfo - @get:XmlElement(name = "AccountInfo", required = true) - var accountInfoList: List<AccountInfo>? = null + @get:XmlElement(name = "AccountInfo", type = AccountInfo::class) + var accountInfoList: List<AccountInfo>? = LinkedList<AccountInfo>() - @get:XmlElement(name = "OrderInfo") - lateinit var orderInfoList: List<AuthOrderInfoType> + @get:XmlElement(name = "OrderInfo", type = AuthOrderInfoType::class) + var orderInfoList: List<AuthOrderInfoType> = LinkedList<AuthOrderInfoType>() } @XmlAccessorType(XmlAccessType.NONE)