Class AbstractToEbInterface41Converter
java.lang.Object
at.austriapro.ebinterface.ubl.AbstractConverter
at.austriapro.ebinterface.ubl.from.AbstractToEbInterfaceConverter
at.austriapro.ebinterface.ubl.from.AbstractToEbInterface41Converter
- Direct Known Subclasses:
CreditNoteToEbInterface41Converter,InvoiceToEbInterface41Converter
@Immutable
public abstract class AbstractToEbInterface41Converter
extends AbstractToEbInterfaceConverter
Base class for Peppol UBL to ebInterface 4.1 converter
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class at.austriapro.ebinterface.ubl.from.AbstractToEbInterfaceConverter
AbstractToEbInterfaceConverter.EText -
Field Summary
FieldsFields inherited from class at.austriapro.ebinterface.ubl.from.AbstractToEbInterfaceConverter
EBI_GENERATING_SYSTEM_40, EBI_GENERATING_SYSTEM_41, EBI_GENERATING_SYSTEM_42, EBI_GENERATING_SYSTEM_43, EBI_GENERATING_SYSTEM_50, EBI_GENERATING_SYSTEM_60, EBI_GENERATING_SYSTEM_61, m_aSettingsFields inherited from class at.austriapro.ebinterface.ubl.AbstractConverter
AT_UNDEFINED_VATIN, CREDIT_NOTE_TYPE_CODES, CUSTOMIZATION_SCHEMEID, IBAN_MAX_LENGTH, INVOICE_TYPE_CODE_CREDIT_NOTE, INVOICE_TYPE_CODE_INVOICE, INVOICE_TYPE_CODE_PARTIAL, INVOICE_TYPE_CODE_PREPAYMENT_INVOICE, INVOICE_TYPE_CODE_SELF_BILLING, INVOICE_TYPE_CODES, m_aContentLocale, m_aDisplayLocale, OTHER_TAX_SCHEME_ID, PAYMENT_CHANNEL_CODE_IBAN, PAYMENT_MEANS_CREDIT_CARD, PAYMENT_MEANS_CREDIT_TRANSFER, PAYMENT_MEANS_DEBIT_CARD, PAYMENT_MEANS_DEBIT_TRANSFER, PAYMENT_MEANS_DIRECT_DEBIT, PAYMENT_MEANS_PAYMENT_TO_BANK_ACCOUNT, PAYMENT_MEANS_SEPA_CREDIT_TRANSFER, PAYMENT_MEANS_SEPA_DIRECT_DEBIT, 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
ConstructorsModifierConstructorDescriptionprotectedAbstractToEbInterface41Converter(Locale aDisplayLocale, Locale aContentLocale, IToEbinterfaceSettings aSettings) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.helger.ebinterface.v41.Ebi41DeliveryTypeconvertDelivery(oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.DeliveryType aUBLDelivery, String sDeliveryType, oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.CustomerPartyType aCustomerParty, com.helger.commons.error.list.ErrorList aTransformationErrorList, Locale aContentLocale, Locale aDisplayLocale) static com.helger.ebinterface.v41.Ebi41AddressTypeconvertParty(oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.PartyType aUBLParty, String sPartyType, com.helger.commons.error.list.ErrorList aTransformationErrorList, Locale aContentLocale, Locale aDisplayLocale, boolean bValidate) protected voidconvertPayment(Supplier<com.helger.commons.datetime.XMLOffsetDate> aUBLTopLevelDueDate, Supplier<List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.PaymentMeansType>> aUBLDocPaymentMeans, Supplier<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.PartyType> aUBLDocPayeeParty, Supplier<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.SupplierPartyType> aUBLDocAccountingSupplierParty, Supplier<List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.PaymentTermsType>> aUBLDocPaymentTerms, Supplier<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.MonetaryTotalType> aUBLDocLegalMonetaryTotal, com.helger.commons.error.list.ErrorList aTransformationErrorList, com.helger.ebinterface.v41.Ebi41InvoiceType aEbiDoc, boolean bIsCreditNote) protected static voidconvertReferencedDocuments(List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.DocumentReferenceType> aUBLDocumentReferences, com.helger.ebinterface.v41.Ebi41InvoiceType aEbiDoc) protected static voidconvertRelatedDocuments(List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.BillingReferenceType> aUBLBillingReferences, com.helger.ebinterface.v41.Ebi41InvoiceType aEbiDoc) protected static StringgetAggregated(Iterable<oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_21.DescriptionType> aList) protected static final com.helger.ebinterface.v41.Ebi41DocumentTypeTypegetAsDocumentTypeType(String... aValues) static com.helger.ebinterface.v41.Ebi41CountryCodeTypegetCountryCode(String sCountry) static com.helger.ebinterface.v41.Ebi41CurrencyTypegetCurrencyCode(String sCurrency) protected static booleanisAddressIncomplete(com.helger.ebinterface.v41.Ebi41AddressType aEbiAddress) static voidsetAddressData(oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.AddressType aUBLAddress, com.helger.ebinterface.v41.Ebi41AddressType aEbiAddress, Locale aContentLocale) static voidvalidateAddressData(com.helger.ebinterface.v41.Ebi41AddressType aEbiAddress, String sPartyType, com.helger.commons.error.list.ErrorList aTransformationErrorList, Locale aDisplayLocale) Methods inherited from class at.austriapro.ebinterface.ubl.from.AbstractToEbInterfaceConverter
checkCreditNoteConsistency, checkInvoiceConsistency, findTaxCategory, getAllowanceChargeComment, getOrString, isBIC, isDirectDebit, isIBAN, isSEPADirectDebit, isTaxExemptionCategoryID, isUniversalBankTransaction, isVATSchemeID
-
Field Details
-
PAYMENT_REFERENCE_MAX_LENGTH
public static final int PAYMENT_REFERENCE_MAX_LENGTH- See Also:
-
-
Constructor Details
-
AbstractToEbInterface41Converter
-
-
Method Details
-
getCountryCode
-
getCurrencyCode
-
setAddressData
-
validateAddressData
-
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
-
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
-
convertRelatedDocuments
-
convertReferencedDocuments
-
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)
-