Class AbstractToEbInterfaceConverter

    • Constructor Detail

      • AbstractToEbInterfaceConverter

        protected AbstractToEbInterfaceConverter​(@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

      • getAllowanceChargeComment

        @Nonnull
        protected static String getAllowanceChargeComment​(@Nonnull
                                                          oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.AllowanceChargeType aUBLAllowanceCharge)
      • checkInvoiceConsistency

        protected final void checkInvoiceConsistency​(@Nonnull
                                                     oasis.names.specification.ubl.schema.xsd.invoice_21.InvoiceType aUBLInvoice,
                                                     @Nonnull
                                                     com.helger.commons.error.list.ErrorList aTransformationErrorList)
        Check if the passed UBL invoice is transformable
        Parameters:
        aUBLInvoice - The UBL invoice to check. May not be null.
        aTransformationErrorList - The error list to be filled. May not be null.
      • checkCreditNoteConsistency

        protected final void checkCreditNoteConsistency​(@Nonnull
                                                        oasis.names.specification.ubl.schema.xsd.creditnote_21.CreditNoteType aUBLCreditNote,
                                                        @Nonnull
                                                        com.helger.commons.error.list.ErrorList aTransformationErrorList)
        Check if the passed UBL invoice is transformable
        Parameters:
        aUBLCreditNote - The UBL invoice to check. May not be null.
        aTransformationErrorList - The error list to be filled. May not be null.
      • isTaxExemptionCategoryID

        protected static final boolean isTaxExemptionCategoryID​(@Nullable
                                                                String sUBLTaxCategoryID)
      • isVATSchemeID

        protected static boolean isVATSchemeID​(String sScheme)
      • findTaxCategory

        @Nullable
        protected static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.TaxCategoryType findTaxCategory​(@Nonnull
                                                                                                                               List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.TaxTotalType> aUBLTaxTotals)
      • getOrString

        @Nonnull
        protected final String getOrString​(@Nonnull
                                           String sSep,
                                           @Nullable
                                           String... aValues)
        Get a string in the form [string][sep][string][sep][string][or][last-string]. So the last and the second last entries are separated by " or " whereas the other entries are separated by the provided separator.
        Parameters:
        sSep - Separator to use. May not be null.
        aValues - Values to be combined.
        Returns:
        The combined string. Never null.
      • isUniversalBankTransaction

        protected static boolean isUniversalBankTransaction​(@Nullable
                                                            String sPaymentMeansCode)
      • isDirectDebit

        protected static boolean isDirectDebit​(@Nullable
                                               String sPaymentMeansCode)
      • isSEPADirectDebit

        protected static boolean isSEPADirectDebit​(@Nullable
                                                   String sPaymentMeansCode)
      • isIBAN

        protected static boolean isIBAN​(@Nullable
                                        String sPaymentChannelCode)