Class AbstractToEbInterface61Converter
- java.lang.Object
-
- at.austriapro.ebinterface.ubl.AbstractConverter
-
- at.austriapro.ebinterface.ubl.from.AbstractToEbInterfaceConverter
-
- at.austriapro.ebinterface.ubl.from.AbstractToEbInterface61Converter
-
- Direct Known Subclasses:
CreditNoteToEbInterface61Converter,InvoiceToEbInterface61Converter
@Immutable public abstract class AbstractToEbInterface61Converter extends AbstractToEbInterfaceConverter
Base class for Peppol UBL to ebInterface 6.1 converter- Author:
- Philip Helger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class at.austriapro.ebinterface.ubl.from.AbstractToEbInterfaceConverter
AbstractToEbInterfaceConverter.EText
-
-
Field Summary
Fields Modifier and Type Field Description static intPAYMENT_REFERENCE_MAX_LENGTH-
Fields 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_aSettings
-
Fields 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
Constructors Modifier Constructor Description protectedAbstractToEbInterface61Converter(Locale aDisplayLocale, Locale aContentLocale, IToEbinterfaceSettings aSettings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.helger.ebinterface.v61.Ebi61ContactTypeconvertContact(oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.PartyType aUBLParty, String sPartyType, String sAddressNameFallback, com.helger.commons.error.list.ErrorList aTransformationErrorList, Locale aDisplayLocale, boolean bValidate)static com.helger.ebinterface.v61.Ebi61DeliveryTypeconvertDelivery(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.v61.Ebi61AddressTypeconvertParty(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.v61.Ebi61InvoiceType aEbiDoc, boolean bIsCreditNote)protected static voidconvertReferencedDocuments(List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.DocumentReferenceType> aUBLDocumentReferences, com.helger.ebinterface.v61.Ebi61InvoiceType aEbiDoc)protected static voidconvertRelatedDocuments(List<oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.BillingReferenceType> aUBLBillingReferences, com.helger.ebinterface.v61.Ebi61InvoiceType aEbiDoc)protected static StringgetAggregated(Iterable<oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_21.DescriptionType> aList)protected static com.helger.ebinterface.v61.Ebi61DocumentTypeTypegetAsDocumentTypeType(String... aValues)protected static booleanisAddressIncomplete(com.helger.ebinterface.v61.Ebi61AddressType aEbiAddress)static voidsetAddressData(oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_21.AddressType aUBLAddress, com.helger.ebinterface.v61.Ebi61AddressType aEbiAddress, Locale aContentLocale)static voidvalidateAddressData(com.helger.ebinterface.v61.Ebi61AddressType aEbiAddress, String sPartyType, com.helger.commons.error.list.ErrorList aTransformationErrorList, Locale aDisplayLocale)static voidvalidateContactData(com.helger.ebinterface.v61.Ebi61ContactType aEbiContact, 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 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)
-
-