|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--java.util.HashMap | +--com.ibm.retail.saf.provider.POSInfoImpl | +--com.ibm.retail.saf.provider.POSRequestImpl | +--com.ibm.retail.saf.provider.DefaultTransactionRequest
Provides item information to a point-of-sale transaction.
The request contains a collection of lineitems identifying the items and quantities to be purchased.
Field Summary | |
---|---|
protected java.lang.String |
alternateLoyaltyID
|
protected java.lang.String |
correlatorID
|
protected java.lang.String |
customerLoyaltyID
|
protected java.util.List |
lineItems
|
Fields inherited from class com.ibm.retail.saf.provider.POSRequestImpl |
---|
clientID, requestID |
Fields inherited from class java.util.HashMap |
---|
|
Fields inherited from class java.util.AbstractMap |
---|
|
Constructor Summary | |
---|---|
DefaultTransactionRequest()
Default constructor |
Method Summary | |
---|---|
void |
addLineItem(com.ibm.retail.saf.provider.LineItem lineItem)
Adds a LineItem to the request.
|
java.lang.String |
getAlternateLoyaltyID()
Gets the alternate loyalty or customer number defined for this transaction. |
java.lang.String |
getCustomerLoyaltyID()
Gets the customer's loyalty identifier defined for this transaction. |
java.util.List |
getLineItemList()
Gets the list of LineItem s contained in the request.
|
void |
removeLineItem(com.ibm.retail.saf.provider.LineItem lineItem)
Removes a LineItem from the request.
|
void |
setAlternateLoyaltyID(java.lang.String altID)
Sets the alternate loyalty or customer number for this transaction. |
void |
setCustomerLoyaltyID(java.lang.String customerID)
Sets a customer's loyalty identifier for this transaction. |
Methods inherited from class com.ibm.retail.saf.provider.POSRequestImpl |
---|
getClientID, getRequestIdentifier, setRequestIdentifier |
Methods inherited from class com.ibm.retail.saf.provider.POSInfoImpl |
---|
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.retail.saf.provider.POSRequest |
---|
getClientID, getRequestIdentifier |
Methods inherited from interface com.ibm.retail.saf.provider.POSInfo |
---|
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
protected java.util.List lineItems
protected java.lang.String customerLoyaltyID
protected java.lang.String alternateLoyaltyID
protected java.lang.String correlatorID
Constructor Detail |
public DefaultTransactionRequest()
Method Detail |
public java.lang.String getCustomerLoyaltyID()
TransactionRequest
If no loyalty identifier is specified, the alternate loyalty identifier is used. If neither is specified, the transaction is processed without loyalty pricing.
getCustomerLoyaltyID
in interface TransactionRequest
public java.lang.String getAlternateLoyaltyID()
TransactionRequest
getAlternateLoyaltyID
in interface TransactionRequest
public void setCustomerLoyaltyID(java.lang.String customerID)
TransactionRequest
If no loyalty identifier is specified, the alternate loyalty identifier is used. If neither is specified, the transaction is processed without loyalty pricing.
setCustomerLoyaltyID
in interface TransactionRequest
public void setAlternateLoyaltyID(java.lang.String altID)
TransactionRequest
setAlternateLoyaltyID
in interface TransactionRequest
altID
- alternate loyalty IDpublic void addLineItem(com.ibm.retail.saf.provider.LineItem lineItem)
TransactionRequest
LineItem
to the request.
Duplicate lineitems in a list are allowed.
addLineItem
in interface TransactionRequest
public void removeLineItem(com.ibm.retail.saf.provider.LineItem lineItem)
TransactionRequest
LineItem
from the request.
removeLineItem
in interface TransactionRequest
public java.util.List getLineItemList()
TransactionRequest
LineItem
s contained in the request.
If no list exists, a null
is returned.
Objects in the list are of type LineItem
.
A lineitem identifies the item and the quantity of the item
to be sold by the point-of-sale system.
getLineItemList
in interface TransactionRequest
List
of LineItem
s
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |