Class ToEbinterfaceSettings
java.lang.Object
at.austriapro.ebinterface.ubl.from.ToEbinterfaceSettings
- All Implemented Interfaces:
IToEbinterfaceSettings,Serializable
Default implementation of
IToEbinterfaceSettings.- Author:
- Philip Helger
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ToEbinterfaceSettingsintbooleanbooleanbooleanbooleanbooleanbooleanbooleansetDeliveryDateMandatory(boolean b) setEnforceSupplierEmailAddress(boolean b) setErrorOnPositionNumber(boolean bErrorOnPositionNumber) setFallbackBillersInvoiceRecipientID(String sFallbackBillersInvoiceRecipientID) setInvoicePaymentMethodMandatory(boolean b) setOrderReferenceIDMandatory(boolean b) setOrderReferenceIDMaxLength(int n) setProfileIDResolver(IProfileIDResolver aProfileIDResolver) setUBLProfileIDMandatory(boolean bUBLProfileIDMandatory) setUBLVersionIDMandatory(boolean bUBLVersionIDMandatory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface at.austriapro.ebinterface.ubl.from.IToEbinterfaceSettings
hasOrderReferenceMaxLength
-
Field Details
-
DEFAULT_ENFORCED_SUPPLIER_EMAIL_ADDRESS
- See Also:
-
-
Constructor Details
-
ToEbinterfaceSettings
public ToEbinterfaceSettings()
-
-
Method Details
-
isUBLVersionIDMandatory
public boolean isUBLVersionIDMandatory()- Specified by:
isUBLVersionIDMandatoryin interfaceIToEbinterfaceSettings- Returns:
trueif the element "UBLVersionID" is mandatory,falseif not.
-
setUBLVersionIDMandatory
-
isUBLProfileIDMandatory
public boolean isUBLProfileIDMandatory()- Specified by:
isUBLProfileIDMandatoryin interfaceIToEbinterfaceSettings- Returns:
trueif the element "ProfileID" is mandatory,falseif not.
-
setUBLProfileIDMandatory
-
getProfileIDResolver
- Specified by:
getProfileIDResolverin interfaceIToEbinterfaceSettings- Returns:
- The custom process ID resolver to be used. Never
null.
-
setProfileIDResolver
@Nonnull public ToEbinterfaceSettings setProfileIDResolver(@Nonnull IProfileIDResolver aProfileIDResolver) -
isOrderReferenceIDMandatory
public boolean isOrderReferenceIDMandatory()- Specified by:
isOrderReferenceIDMandatoryin interfaceIToEbinterfaceSettings- Returns:
trueif the order reference ID is mandatory,falseif not.
-
setOrderReferenceIDMandatory
-
getOrderReferenceMaxLength
public int getOrderReferenceMaxLength()- Specified by:
getOrderReferenceMaxLengthin interfaceIToEbinterfaceSettings- Returns:
- The maximum length of the order reference or a value ≤ 0 if no length restrictions are defined.
- See Also:
-
setOrderReferenceIDMaxLength
-
isDeliveryDateMandatory
public boolean isDeliveryDateMandatory()- Specified by:
isDeliveryDateMandatoryin interfaceIToEbinterfaceSettings- Returns:
trueif the delivery date is mandatory,falseif not.
-
setDeliveryDateMandatory
-
isEnforceSupplierEmailAddress
public boolean isEnforceSupplierEmailAddress()- Specified by:
isEnforceSupplierEmailAddressin interfaceIToEbinterfaceSettings- Returns:
trueif the supplier email address should be enforced, if it is missing.- See Also:
-
setEnforceSupplierEmailAddress
-
getEnforcedSupplierEmailAddress
- Specified by:
getEnforcedSupplierEmailAddressin interfaceIToEbinterfaceSettings- Returns:
- The email address to be used when
IToEbinterfaceSettings.isEnforceSupplierEmailAddress()istrueand an email address is missing in the invoice.
-
setEnforcedSupplierEmailAddress
-
getFallbackBillersInvoiceRecipientID
- Specified by:
getFallbackBillersInvoiceRecipientIDin interfaceIToEbinterfaceSettings- Returns:
- The fallback "BillersInvoiceRecipientID" for ebInterface 4.0 only.
-
setFallbackBillersInvoiceRecipientID
@Nonnull public ToEbinterfaceSettings setFallbackBillersInvoiceRecipientID(@Nullable String sFallbackBillersInvoiceRecipientID) -
isErrorOnPositionNumber
public boolean isErrorOnPositionNumber()- Specified by:
isErrorOnPositionNumberin interfaceIToEbinterfaceSettings- Returns:
trueif invalid line numbers (row index < 1) leads to an error,falseif not.
-
setErrorOnPositionNumber
-
isInvoicePaymentMethodMandatory
public boolean isInvoicePaymentMethodMandatory()- Specified by:
isInvoicePaymentMethodMandatoryin interfaceIToEbinterfaceSettings- Returns:
trueif the payment method is mandatory,falseif not.
-
setInvoicePaymentMethodMandatory
-
getERechnungGvAtSettings
- Returns:
- Settings similar to what eRechnung.gv.at uses - mainly for testing purposes.
-