Class CreditNoteToEbInterface43Converter


  • @Immutable
    public final class CreditNoteToEbInterface43Converter
    extends AbstractToEbInterface43Converter
    Main converter between UBL 2.1 credit note and ebInterface 4.3 credit note.
    Author:
    Philip Helger
    • Constructor Detail

      • CreditNoteToEbInterface43Converter

        public CreditNoteToEbInterface43Converter​(@Nonnull
                                                  Locale aDisplayLocale,
                                                  @Nonnull
                                                  Locale aContentLocale,
                                                  @Nonnull
                                                  IToEbinterfaceSettings aSettings)
        Constructor
        Parameters:
        aDisplayLocale - The locale for error messages. May not be null.
        aContentLocale - The locale for the created ebInterface files. May not be null.
        aSettings - Conversion settings to be used. May not be null.
    • Method Detail

      • convertToEbInterface

        @Nullable
        public com.helger.ebinterface.v43.Ebi43InvoiceType convertToEbInterface​(@Nonnull
                                                                                oasis.names.specification.ubl.schema.xsd.creditnote_21.CreditNoteType aUBLDoc,
                                                                                @Nonnull
                                                                                com.helger.commons.error.list.ErrorList aTransformationErrorList)
        Main conversion method to convert from UBL to ebInterface
        Parameters:
        aUBLDoc - The UBL invoice to be converted
        aTransformationErrorList - Error list. Must be empty!
        Returns:
        The created ebInterface document or null in case of a severe error.