Class AbstractToEbInterface41Converter

    • Field Detail

      • PAYMENT_REFERENCE_MAX_LENGTH

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

      • getCountryCode

        @Nullable
        public static com.helger.ebinterface.v41.Ebi41CountryCodeType getCountryCode​(@Nullable
                                                                                     String sCountry)
      • getCurrencyCode

        @Nullable
        public static com.helger.ebinterface.v41.Ebi41CurrencyType getCurrencyCode​(@Nullable
                                                                                   String sCurrency)
      • setAddressData

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

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

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

        @Nonnull
        public static com.helger.ebinterface.v41.Ebi41DeliveryType 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.v41.Ebi41DocumentTypeType 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.v41.Ebi41InvoiceType aEbiDoc)
      • convertReferencedDocuments

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