public interface GetEntitledPriceCmd
extends com.ibm.commerce.command.TaskCommand
There are two ways to use the command:
getPrice.
- Give command Catalog entry prices array of type
CatEntryPrices
and get price using getCatEntryPrices
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The default implementation of this command.
|
static java.lang.String |
NAME
The name of this command.
|
Modifier and Type | Method and Description |
---|---|
CatEntryPrices[] |
getCatEntryPrices()
Returns the price related information of the input catalog entries set by
setCatEntryPrices . |
java.lang.String |
getCurrency()
Returns the currency of a catalog entry.
|
MonetaryAmount |
getPrice()
Returns the actual price of the catalog entry if
setCatEntryId was invoked to set input parameter. |
QuantityAmount |
getQuantity()
Returns a quantity of a catalog entry.
|
void |
setCatEntryId(java.lang.Long anCatEntryId)
Sets the id of the input catalog entry.
|
void |
setCatEntryPrices(CatEntryPrices[] aCatEntryPrices)
Sets the information of one or more catalog entries.
|
void |
setCurrency(java.lang.String astrCurrency)
Sets the currency to be used for finding the price (Optional).
|
void |
setQuantity(QuantityAmount aQuantityAmount)
Sets the quantity amount of the input catalog entry that is to be priced (Optional).
|
void |
setStoreId(java.lang.Integer aStoreId)
Sets the id of the input store to be used for calculating the price (Optional).
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String defaultCommandClassName
static final java.lang.String NAME
CatEntryPrices[] getCatEntryPrices()
setCatEntryPrices
.java.lang.String getCurrency() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
MonetaryAmount getPrice()
setCatEntryId
was invoked to set input parameter.QuantityAmount getQuantity() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
void setCatEntryId(java.lang.Long anCatEntryId)
anCatEntryId
- The reference number of a catalog entry whose price is to be retrieved and calculated.void setCatEntryPrices(CatEntryPrices[] aCatEntryPrices)
getCatEntryPrices
will be used to get price based on input.aCatEntryPrices
- The information of one or more catalog entries whose prices are To be retrieved.void setCurrency(java.lang.String astrCurrency)
astrCurrency
- The currency to look up the price. If the currency is not specified then the "negotiated" currency is
used for the store Id and shopper's preferred currency. (The negotiated currency is the currency
returned from the getCurrency() method of the currency manager).void setQuantity(QuantityAmount aQuantityAmount)
aQuantityAmount
- The quantity amount of the catalog entry. The quantity amount helps determine which offers are valid.
If the quantity amount is not specified; then the nominal quantity (rounded up to the nearest multiple
as specified in the quantityMultiple attribute) of the Catalog entry is assumed to be
the requested quantity.void setStoreId(java.lang.Integer aStoreId)
aStoreId
- The reference number of a store to be used for calculating the price. If the store id is not specified
then the store id of the command context will be used.