Added list of known names of XML invoice attachment files
This commit is contained in:
parent
0f97b8dae9
commit
3418ab9b0f
|
@ -10,6 +10,13 @@ open class EInvoiceReader(
|
|||
protected open val mapper: MustangMapper = MustangMapper()
|
||||
) {
|
||||
|
||||
companion object {
|
||||
val KnownEInvoiceXmlAttachmentNames = listOf(
|
||||
"factur-x.xml", "zugferd-invoice.xml", "xrechnung.xml" // also "ZUGFeRD-invoice.xml" is found but we make compare case insensitive anyway
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
open fun extractFromXml(xmlFile: File) = extractFromXml(xmlFile.inputStream())
|
||||
|
||||
open fun extractFromXml(stream: InputStream) = extractFromXml(stream.reader().readText())
|
||||
|
|
Loading…
Reference in New Issue