Given a CII XML file from itplr-kosit/xrechnung-testsuite when extracting an Invoice with org.mustangproject.ZUGFeRD.ZUGFeRDInvoiceImporter#extractInvoice and accessing org.mustangproject.TradeParty#getBankDetails through org.mustangproject.Invoice#getSender then only one org.mustangproject.BankDetails object is returned.
Because the CII XML actually contains PayeePartyCreditorFinancialAccount twice (each within its own SpecifiedTradeSettlementPaymentMeans), I would have expected invoice.getSender().getBankDetails() to return a list with two org.mustangproject.BankDetails objects.
Given a CII XML file from itplr-kosit/xrechnung-testsuite when extracting an Invoice with
org.mustangproject.ZUGFeRD.ZUGFeRDInvoiceImporter#extractInvoice
and accessingorg.mustangproject.TradeParty#getBankDetails
throughorg.mustangproject.Invoice#getSender
then only oneorg.mustangproject.BankDetails
object is returned.Because the CII XML actually contains
PayeePartyCreditorFinancialAccount
twice (each within its ownSpecifiedTradeSettlementPaymentMeans
), I would have expectedinvoice.getSender().getBankDetails()
to return a list with twoorg.mustangproject.BankDetails
objects.