Class AbstractToEbInterface42Converter

Direct Known Subclasses:
CreditNoteToEbInterface42Converter, InvoiceToEbInterface42Converter

@Immutable public abstract class AbstractToEbInterface42Converter extends AbstractToEbInterfaceConverter
Base class for Peppol UBL to ebInterface 4.2 converter
Author:
Philip Helger
  • Field Details

    • PAYMENT_REFERENCE_MAX_LENGTH

      public static final int PAYMENT_REFERENCE_MAX_LENGTH
      See Also:
  • Constructor Details

  • Method Details

    • setAddressData

      public static void setAddressData(@Nullable oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.AddressType aUBLAddress, @Nonnull com.helger.ebinterface.v42.Ebi42AddressType aEbiAddress, @Nonnull Locale aContentLocale)
    • validateAddressData

      public static void validateAddressData(@Nonnull com.helger.ebinterface.v42.Ebi42AddressType aEbiAddress, @Nonnull String sPartyType, @Nonnull com.helger.commons.error.list.ErrorList aTransformationErrorList, @Nonnull Locale aDisplayLocale)
    • convertParty

      @Nonnull public static com.helger.ebinterface.v42.Ebi42AddressType convertParty(@Nonnull oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.PartyType aUBLParty, @Nonnull String sPartyType, @Nonnull com.helger.commons.error.list.ErrorList aTransformationErrorList, @Nonnull Locale aContentLocale, @Nonnull Locale aDisplayLocale, boolean bValidate)
    • getAggregated

      @Nonnull protected static String getAggregated(@Nonnull Iterable<oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_21.DescriptionType> aList)
    • isAddressIncomplete

      protected static boolean isAddressIncomplete(@Nonnull com.helger.ebinterface.v42.Ebi42AddressType aEbiAddress)
    • convertDelivery

      @Nonnull public static com.helger.ebinterface.v42.Ebi42DeliveryType convertDelivery(@Nonnull oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.DeliveryType aUBLDelivery, @Nonnull String sDeliveryType, @Nullable oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.CustomerPartyType aCustomerParty, @Nonnull com.helger.commons.error.list.ErrorList aTransformationErrorList, @Nonnull Locale aContentLocale, @Nonnull Locale aDisplayLocale)
    • getAsDocumentTypeType

      @Nullable protected static final com.helger.ebinterface.v42.Ebi42DocumentTypeType getAsDocumentTypeType(@Nullable String... aValues)
    • convertRelatedDocuments

      protected static void convertRelatedDocuments(@Nonnull List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.BillingReferenceType> aUBLBillingReferences, @Nonnull com.helger.ebinterface.v42.Ebi42InvoiceType aEbiDoc)
    • convertReferencedDocuments

      protected static void convertReferencedDocuments(@Nonnull List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.DocumentReferenceType> aUBLDocumentReferences, @Nonnull com.helger.ebinterface.v42.Ebi42InvoiceType aEbiDoc)
    • convertPayment

      protected void convertPayment(@Nonnull Supplier<com.helger.commons.datetime.XMLOffsetDate> aUBLTopLevelDueDate, @Nonnull Supplier<List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.PaymentMeansType>> aUBLDocPaymentMeans, @Nonnull Supplier<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.PartyType> aUBLDocPayeeParty, @Nonnull Supplier<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.SupplierPartyType> aUBLDocAccountingSupplierParty, @Nonnull Supplier<List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.PaymentTermsType>> aUBLDocPaymentTerms, @Nonnull Supplier<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.MonetaryTotalType> aUBLDocLegalMonetaryTotal, @Nonnull com.helger.commons.error.list.ErrorList aTransformationErrorList, @Nonnull com.helger.ebinterface.v42.Ebi42InvoiceType aEbiDoc, boolean bIsCreditNote)