Class EbInterface61ToXRechnungUBLConverter

    • Constructor Detail

      • EbInterface61ToXRechnungUBLConverter

        public EbInterface61ToXRechnungUBLConverter​(@Nonnull
                                                    Locale aDisplayLocale,
                                                    @Nonnull
                                                    Locale aContentLocale,
                                                    @Nonnull
                                                    EXRechnungVersion eXRechnungVersion)
        Constructor.
        Parameters:
        aDisplayLocale - The display locale, e.g. used for the error message. May not be null.
        aContentLocale - The content locale of the invoice. May not be null.
        eXRechnungVersion - The target XRechnung version. May not be null.
    • Method Detail

      • convert

        @Nullable
        public oasis.names.specification.ubl.schema.xsd.invoice_21.InvoiceType convert​(@Nonnull
                                                                                       com.helger.ebinterface.v61.Ebi61InvoiceType aEbiInvoice,
                                                                                       @Nonnull
                                                                                       com.helger.commons.error.list.ErrorList aTransformErrorList)
        Convert the passed ebInterface invoice to an XRechnung. This converts the ebInterface first to generic UBL, than adds some XRechnung specific elements and finally validates the XRechnung according to the official Schematrons.
        Parameters:
        aEbiInvoice - The ebInterface invoice to be converted. May not be null.
        aTransformErrorList - The error list that will contain the errors afterwards. May not be null.
        Returns:
        null only if the basic conversion to UBL fails.