|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etill.framework.cassette.PurchaseCardData
The PurchaseCardData object represents all purchase card details for a particular order.
Constructor Summary | |
---|---|
PurchaseCardData(Map protocolData)
Constructor for PurchaseCardData creates an instance based on the protocol data passed in. |
Method Summary | |
---|---|
static boolean |
containsPurchaseCardData(Map protocolData)
Static utility method that returns true if the collection passed in contains purchase card protocol data. |
int |
getNumberOfLineItems()
Returns the maximum number of line items based on the internal pCardData HashMap. |
static int |
getNumberOfLineItems(Map protocolData)
Returns the number of line items specified in the protocol data collection. |
int |
getNumberOfLineItems(String protocolDataKey)
Returns the number of line items of the specified input type. |
Object |
getValue(String key)
Returns the value of the specified purchase card item. |
boolean |
isEmpty()
Returns true if there is no purchasing card data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PurchaseCardData(Map protocolData)
protocolData
- collection of protocol data keywordsMethod Detail |
public boolean isEmpty()
public static boolean containsPurchaseCardData(Map protocolData)
protocolData
- collection of protocol data keywordspublic static int getNumberOfLineItems(Map protocolData)
protocolData
- collection of protocol data keywordspublic int getNumberOfLineItems()
public int getNumberOfLineItems(String protocolDataKey)
protocolData
- collection of protocol data keywordspublic Object getValue(String key)
key
- the fully qualified name of the purchasing
card item. Note, that all purchase card
items are defined in PaymentAPIConstants.
If the target item is a repeating item like
line item data then make sure that .PREFIX
is part of the key e.g $ITEM.SKU.1PaymentAPIConstants
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |