public interface GetDynamicKitUnitPriceCmd
extends com.ibm.commerce.command.TaskCommand
GetDynamicKitUnitPriceCmd
is used to get
the price of dynamic kit.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long[] |
getApplicableTradingIds()
Returns the identifiers of the trading agreements that were used to
determine the prices for a catalog entry.
|
MonetaryAmount[] |
getApplicableTradingUnitPrices()
Returns the prices that were determined for each of the applied trading
agreements for a catalog entry.
|
CatEntryPrices[] |
getDKComponentPrices()
Returns the components' price info.
|
boolean |
getLockedPriceFromConfigurationXML()
Parse the configuration xml to get the total price if the price is locked
|
QuantityAmount |
getQuantity()
Gets quantity of the dynamic kit.
|
java.lang.Long |
getTradingId()
Returns the identifier of the trading agreement which was used to
calculate the best price.
|
MonetaryAmount |
getUnitPrice()
Returns the best unit price of the dynamic kit in the requested currency.
|
void |
setCurrency(java.lang.String currency)
Sets the desired currency to be used for the output price.
|
void |
setDefaultConfiguration(java.lang.String defaultConfiguration)
Set the configuration BOM xml of the PDC
|
void |
setDKComponentPrices(CatEntryPrices[] componentPrices)
Sets components of the dynamic kit.
|
void |
setDynamicKitId(java.lang.Long dynamicKitId)
Sets the dynamic kit id.
|
void |
setQuantity(QuantityAmount newQuantity)
Sets quantity of the dynamic kit.
|
void |
setTradingIds(java.lang.Long[] tradingIds)
Sets the identifiers of the input trading agreements.
|
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
java.lang.Long[] getApplicableTradingIds()
MonetaryAmount[] getApplicableTradingUnitPrices()
getApplicableTradingIds()
.CatEntryPrices[] getDKComponentPrices()
boolean getLockedPriceFromConfigurationXML()
QuantityAmount getQuantity()
java.lang.Long getTradingId()
MonetaryAmount getUnitPrice()
setDKComponentPrices
is null or empty, the unit price will be null.void setCurrency(java.lang.String currency)
This input value is optional. The default value is obtained from another
source, such as
CurrencyManager#getCurrency(StoreAccessBean, String, Integer)
.
currency
- The currency to look up the price. If null, the default value
will be used. If the supplied currency is empty or not
supported for the store, a default store currency will be
used.void setDefaultConfiguration(java.lang.String defaultConfiguration)
defaultConfiguration
- the configuration xml of the PDCvoid setDKComponentPrices(CatEntryPrices[] componentPrices)
For CatEntryPrices
, you just need set catalog entry id and quantity.
componentPrices
- The components of the dynamic kit. If null or empty, the unit price returned is zero.void setDynamicKitId(java.lang.Long dynamicKitId)
dynamicKitId
- The dynamic kit id can not be null.void setQuantity(QuantityAmount newQuantity)
newQuantity
- the quantity of the dynamic kitvoid setTradingIds(java.lang.Long[] tradingIds)
Each member is entitled to a number of trading agreements (possibly zero). The trading agreements for each catalog entry are provided in one of two ways (from highest to lowest precedence):
ContractCmdUtil#getCurrentTradingAgreements(CommandContext)
.
This input value is optional. The default value is null.
tradingIds
- The identifiers of the trading agreements to be used to
determine the prices. If null or empty, the current or
entitled trading agreements will be used as described above.