Class InvoiceToEbInterface40Converter
- java.lang.Object
-
- at.austriapro.ebinterface.ubl.AbstractConverter
-
- at.austriapro.ebinterface.ubl.from.AbstractToEbInterfaceConverter
-
- at.austriapro.ebinterface.ubl.from.AbstractToEbInterface40Converter
-
- at.austriapro.ebinterface.ubl.from.invoice.InvoiceToEbInterface40Converter
-
@Immutable public final class InvoiceToEbInterface40Converter extends AbstractToEbInterface40Converter
Main converter between UBL 2.1 invoice and ebInterface 4.0 invoice.- Author:
- Philip Helger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class at.austriapro.ebinterface.ubl.from.AbstractToEbInterfaceConverter
AbstractToEbInterfaceConverter.EText
-
-
Field Summary
-
Fields inherited from class at.austriapro.ebinterface.ubl.from.AbstractToEbInterface40Converter
PAYMENT_REFERENCE_MAX_LENGTH
-
Fields inherited from class at.austriapro.ebinterface.ubl.from.AbstractToEbInterfaceConverter
m_aSettings
-
Fields inherited from class at.austriapro.ebinterface.ubl.AbstractConverter
CREDIT_NOTE_TYPE_CODES, CUSTOMIZATION_SCHEMEID, EBI_GENERATING_SYSTEM_40, EBI_GENERATING_SYSTEM_41, EBI_GENERATING_SYSTEM_42, EBI_GENERATING_SYSTEM_43, EBI_GENERATING_SYSTEM_50, EBI_GENERATING_SYSTEM_60, IBAN_MAX_LENGTH, INVOICE_TYPE_CODE_INVOICE, INVOICE_TYPE_CODE_PARTIAL, INVOICE_TYPE_CODE_SELF_BILLING, INVOICE_TYPE_CODES, m_aContentLocale, m_aDisplayLocale, PAYMENT_CHANNEL_CODE_IBAN, REGEX_BIC, ROUNDING_MODE, SCALE_PERC, SCALE_PRICE2, SCALE_PRICE4, SCHEME_BIC, SCHEME_IBAN, SUPPORTED_TAX_SCHEME_ID, SUPPORTED_TAX_SCHEME_SCHEME_ID, UBL_VERSION_20, UBL_VERSION_21, UBL_VERSION_22, UBL_VERSION_23, UOM_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description InvoiceToEbInterface40Converter(Locale aDisplayLocale, Locale aContentLocale, IToEbinterfaceSettings aSettings)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.helger.ebinterface.v40.Ebi40InvoiceTypeconvertToEbInterface(oasis.names.specification.ubl.schema.xsd.invoice_21.InvoiceType aUBLDoc, com.helger.commons.error.list.ErrorList aTransformationErrorList)Main conversion method to convert from UBL to ebInterfaceInvoiceToEbInterface40ConvertersetCustomizer(ICustomInvoiceToEbInterface40Converter aCustomizer)-
Methods inherited from class at.austriapro.ebinterface.ubl.from.AbstractToEbInterface40Converter
convertDelivery, convertParty, convertPayment, getAggregated, getAsDocumentTypeType, getCountryCode, getCurrencyCode, isAddressIncomplete, setAddressData, validateAddressData
-
Methods inherited from class at.austriapro.ebinterface.ubl.from.AbstractToEbInterfaceConverter
checkCreditNoteConsistency, checkInvoiceConsistency, findTaxCategory, getAllowanceChargeComment, getOrString, isBIC, isDirectDebit, isIBAN, isSEPADirectDebit, isTaxExemptionCategoryID, isUniversalBankTransaction, isVATSchemeID
-
-
-
-
Constructor Detail
-
InvoiceToEbInterface40Converter
public InvoiceToEbInterface40Converter(@Nonnull Locale aDisplayLocale, @Nonnull Locale aContentLocale, @Nonnull IToEbinterfaceSettings aSettings)
Constructor- Parameters:
aDisplayLocale- The locale for error messages. May not benull.aContentLocale- The locale for the created ebInterface files. May not benull.aSettings- Conversion settings to be used. May not benull.
-
-
Method Detail
-
setCustomizer
@Nonnull public InvoiceToEbInterface40Converter setCustomizer(@Nullable ICustomInvoiceToEbInterface40Converter aCustomizer)
-
convertToEbInterface
@Nullable public com.helger.ebinterface.v40.Ebi40InvoiceType convertToEbInterface(@Nonnull oasis.names.specification.ubl.schema.xsd.invoice_21.InvoiceType 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 convertedaTransformationErrorList- Error list. Must be empty!- Returns:
- The created ebInterface document or
nullin case of a severe error.
-
-