public interface FloorPriceLookupCmd
extends com.ibm.commerce.command.TaskCommand
FloorPriceLookupCmd Task Command to lookup
the floor price for a catalog entry. The floor price is the nominal cost of
the catalog entry with optional percentage adjustment. The quantity is assumed to be 1.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The default name of this command.
|
static java.lang.String |
NAME
The name of this command.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCurrency()
Returns the currency.
|
MonetaryAmount |
getFloorPrice()
Gets the floor price for the given catalog entry with the requested currency.
|
void |
setCatEntryId(java.lang.Long catEntryId)
Sets the catalog entry ID whose floor price is to be retrieved.
|
void |
setConfigurationID(java.lang.String aConfigID)
Sets the configuration ID, if this catalog entry is a DynamicKit.
|
void |
setCurrency(java.lang.String currency)
Set the currency to be used for finding the floor price.
|
void |
setCustomPartnumber(java.lang.String customPartnumber)
Sets the custom partnumber whose floor price is to be retrieved.
|
void |
setErrorMode(boolean aErrorMode)
Sets the flag to indicate if exception will be thrown when the price cannot be found
for the input catentry (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 storeId)
Set the store ID
|
void |
setTSRId(java.lang.Long tsrId)
Set the TSR ID.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersstatic final java.lang.String COPYRIGHT
static final java.lang.String defaultCommandClassName
static final java.lang.String NAME
java.lang.String getCurrency()
MonetaryAmount getFloorPrice()
void setCatEntryId(java.lang.Long catEntryId)
catEntryId - A reference number of catalog entry.void setConfigurationID(java.lang.String aConfigID)
aConfigID - A String of pre-configuration ID for a DynamicKitvoid setCurrency(java.lang.String currency)
aCurrency - the currency.void setCustomPartnumber(java.lang.String customPartnumber)
customPartnumber - The custom partnumber.void setErrorMode(boolean aErrorMode)
aErrorMode - The indicator to decide if an exception will be thrown when the
price cannot be found.
A true value (default) means throw exception.
A false value means do not throw exception and returns a null value pricevoid 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 storeId)
storeId - A store ID, if not provided, get from the CommandContext.void setTSRId(java.lang.Long tsrId)
tsrId - Long A TSR ID