Class ToEbinterfaceSettings
- java.lang.Object
-
- at.austriapro.ebinterface.ubl.from.ToEbinterfaceSettings
-
- All Implemented Interfaces:
IToEbinterfaceSettings,Serializable
public class ToEbinterfaceSettings extends Object implements IToEbinterfaceSettings
Default implementation ofIToEbinterfaceSettings.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ENFORCED_SUPPLIER_EMAIL_ADDRESS
-
Constructor Summary
Constructors Constructor Description ToEbinterfaceSettings()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface at.austriapro.ebinterface.ubl.from.IToEbinterfaceSettings
hasOrderReferenceMaxLength
-
-
-
-
Field Detail
-
DEFAULT_ENFORCED_SUPPLIER_EMAIL_ADDRESS
public static final String DEFAULT_ENFORCED_SUPPLIER_EMAIL_ADDRESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
isUBLVersionIDMandatory
public boolean isUBLVersionIDMandatory()
- Specified by:
isUBLVersionIDMandatoryin interfaceIToEbinterfaceSettings- Returns:
trueif the element "UBLVersionID" is mandatory,falseif not.
-
setUBLVersionIDMandatory
@Nonnull public ToEbinterfaceSettings setUBLVersionIDMandatory(boolean bUBLVersionIDMandatory)
-
isUBLProfileIDMandatory
public boolean isUBLProfileIDMandatory()
- Specified by:
isUBLProfileIDMandatoryin interfaceIToEbinterfaceSettings- Returns:
trueif the element "ProfileID" is mandatory,falseif not.
-
setUBLProfileIDMandatory
@Nonnull public ToEbinterfaceSettings setUBLProfileIDMandatory(boolean bUBLProfileIDMandatory)
-
getProfileIDResolver
@Nonnull public IProfileIDResolver 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
@Nonnull public ToEbinterfaceSettings setOrderReferenceIDMandatory(boolean b)
-
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:
IToEbinterfaceSettings.hasOrderReferenceMaxLength()
-
setOrderReferenceIDMaxLength
@Nonnull public ToEbinterfaceSettings setOrderReferenceIDMaxLength(int n)
-
isDeliveryDateMandatory
public boolean isDeliveryDateMandatory()
- Specified by:
isDeliveryDateMandatoryin interfaceIToEbinterfaceSettings- Returns:
trueif the delivery date is mandatory,falseif not.
-
setDeliveryDateMandatory
@Nonnull public ToEbinterfaceSettings setDeliveryDateMandatory(boolean b)
-
isEnforceSupplierEmailAddress
public boolean isEnforceSupplierEmailAddress()
- Specified by:
isEnforceSupplierEmailAddressin interfaceIToEbinterfaceSettings- Returns:
trueif the supplier email address should be enforced, if it is missing.- See Also:
IToEbinterfaceSettings.getEnforcedSupplierEmailAddress()
-
setEnforceSupplierEmailAddress
@Nonnull public ToEbinterfaceSettings setEnforceSupplierEmailAddress(boolean b)
-
getEnforcedSupplierEmailAddress
@Nonnull @Nonempty public String 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
@Nonnull public ToEbinterfaceSettings setEnforcedSupplierEmailAddress(@Nonnull @Nonempty String s)
-
getFallbackBillersInvoiceRecipientID
@Nullable public String 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
@Nonnull public ToEbinterfaceSettings setErrorOnPositionNumber(boolean bErrorOnPositionNumber)
-
isInvoicePaymentMethodMandatory
public boolean isInvoicePaymentMethodMandatory()
- Specified by:
isInvoicePaymentMethodMandatoryin interfaceIToEbinterfaceSettings- Returns:
trueif the payment method is mandatory,falseif not.
-
setInvoicePaymentMethodMandatory
@Nonnull public ToEbinterfaceSettings setInvoicePaymentMethodMandatory(boolean b)
-
getERechnungGvAtSettings
@Nonnull public static ToEbinterfaceSettings getERechnungGvAtSettings()
- Returns:
- Settings similar to what eRechnung.gv.at uses - mainly for testing purposes.
-
-