Class AbstractToEbInterface61Converter

    • Field Detail

      • PAYMENT_REFERENCE_MAX_LENGTH

        public static final int PAYMENT_REFERENCE_MAX_LENGTH
        See Also:
        Constant Field Values
    • Method Detail

      • setAddressData

        public static void setAddressData​(@Nullable
                                          oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.AddressType aUBLAddress,
                                          @Nonnull
                                          com.helger.ebinterface.v61.Ebi61AddressType aEbiAddress,
                                          @Nonnull
                                          Locale aContentLocale)
      • validateContactData

        public static void validateContactData​(@Nonnull
                                               com.helger.ebinterface.v61.Ebi61ContactType aEbiContact,
                                               @Nonnull
                                               String sPartyType,
                                               @Nonnull
                                               com.helger.commons.error.list.ErrorList aTransformationErrorList,
                                               @Nonnull
                                               Locale aDisplayLocale)
      • convertContact

        @Nullable
        public static com.helger.ebinterface.v61.Ebi61ContactType convertContact​(@Nonnull
                                                                                 oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.PartyType aUBLParty,
                                                                                 @Nonnull
                                                                                 String sPartyType,
                                                                                 @Nullable
                                                                                 String sAddressNameFallback,
                                                                                 @Nonnull
                                                                                 com.helger.commons.error.list.ErrorList aTransformationErrorList,
                                                                                 @Nonnull
                                                                                 Locale aDisplayLocale,
                                                                                 boolean bValidate)
      • validateAddressData

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

        @Nonnull
        public static com.helger.ebinterface.v61.Ebi61AddressType 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.v61.Ebi61AddressType aEbiAddress)
      • convertDelivery

        @Nonnull
        public static com.helger.ebinterface.v61.Ebi61DeliveryType 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.v61.Ebi61DocumentTypeType 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.v61.Ebi61InvoiceType aEbiDoc)
      • convertReferencedDocuments

        protected static void convertReferencedDocuments​(@Nonnull
                                                         List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.DocumentReferenceType> aUBLDocumentReferences,
                                                         @Nonnull
                                                         com.helger.ebinterface.v61.Ebi61InvoiceType 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.v61.Ebi61InvoiceType aEbiDoc,
                                      boolean bIsCreditNote)