public class OrderPlacement extends ERPInterfaceBogus implements IOrderPlacement
| Modifier and Type | Field and Description |
|---|---|
protected Cart |
ivCart
The supplied shopping cart object.
|
protected int |
ivEmailAddrDfltIdx
A WIP value for default email address index.
|
protected java.util.ArrayList<java.lang.String> |
ivEmailAddrs
A WIP collection of email addresses.
|
protected java.util.ArrayList<java.lang.String> |
ivEmailNames
A WIP collection of email names.
|
protected java.util.ArrayList<java.lang.Object[]> |
ivErrorCodes
A WIP collection of error codes.
|
protected char |
ivMode
The current mode being processed.
|
private static long |
serialVersionUID
The class' serialization version id.
|
ivConfigivHashCode, ivHashFlds, ivObjAttrsERROR_ORDERERROR_CONNECT, ERROR_NONE, ERROR_PROGRAM, WARN_DUPLICATE, WARN_NONE| Constructor and Description |
|---|
OrderPlacement()
Constructs a new ERP order placement interface.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
createOrder(Cart cart)
Creates a new order on the ERP system.
|
boolean |
createQuote(Cart cart)
Creates a new quote on the ERP system.
|
int |
getEmailAddressDefaultIndex()
Returns the index in the retrieved collections of email addresses and
names for the default over limits email.
|
java.util.ArrayList<java.lang.String> |
getEmailAddresses()
Returns the retrieved collection of email addresses.
|
java.util.ArrayList<java.lang.String> |
getEmailNames()
Returns the retrieved collection of email names.
|
java.util.ArrayList<java.lang.Object[]> |
getErrorCodes()
Returns the retrieved collection of error codes.
|
User |
getOrderUser()
Returns the ordering user for the order based on the properties value for
erp.OrderPlacement.Sfi.OrderingUser. |
protected boolean |
process()
Controls the processing of an ERP interface request.
|
boolean |
requestQuotation(Cart cart)
Sets order totals, taxes, freight, etc.
|
protected void |
resetVariables()
Resets the class' instance variables for the start of a new request.
|
equals, getContext, getErrorType, getQueueKey, getWarningType, setContext, setErrorType, setQueueKey, setWarningTypecloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArrayclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetContext, getErrorType, getWarningType, setContext, setErrorType, setWarningTypeprivate static final long serialVersionUID
protected Cart ivCart
protected java.util.ArrayList<java.lang.Object[]> ivErrorCodes
protected java.util.ArrayList<java.lang.String> ivEmailNames
protected java.util.ArrayList<java.lang.String> ivEmailAddrs
protected int ivEmailAddrDfltIdx
protected char ivMode
public OrderPlacement()
public boolean createOrder(Cart cart)
createOrder in IOrderPlacement.createOrder in interface IOrderPlacementcart - (Cart) The shopping cart on which the order is based.true if creating the order was successful,
otherwise false.public boolean createQuote(Cart cart)
createQuote in IOrderPlacement.createQuote in interface IOrderPlacementcart - (Cart) The shopping cart on which the quote is based.true if creating the quote was successful,
otherwise false.public boolean requestQuotation(Cart cart)
requestQuotation in IOrderPlacement.requestQuotation in interface IOrderPlacementcart - (Cart) The shoppping cart for quotation.true if the quotation was successful,
otherwise false.public java.util.ArrayList<java.lang.Object[]> getErrorCodes()
getErrorCodes in IOrderPlacement.getErrorCodes in interface IOrderPlacementpublic int getEmailAddressDefaultIndex()
getEmailAddressDefaultIndex in IOrderPlacement.getEmailAddressDefaultIndex in interface IOrderPlacementpublic java.util.ArrayList<java.lang.String> getEmailAddresses()
getEmailAddresses in IOrderPlacement.getEmailAddresses in interface IOrderPlacementpublic java.util.ArrayList<java.lang.String> getEmailNames()
getEmailNames in IOrderPlacement.getEmailNames in interface IOrderPlacementpublic User getOrderUser()
erp.OrderPlacement.Sfi.OrderingUser.
Implements getOrderUser in IOrderPlacement.getOrderUser in interface IOrderPlacementprotected boolean process()
true if processing the request is successful,
otherwise false.protected void resetVariables()