public interface GetPriceCmdInput
GetContractUnitPriceCmd
, GetProductContractUnitPriceCmd
,
GetContractSpecialPriceCmd
, and GetCustomContractUnitPriceCmd
to make implementing those commands easier. There are several implementations
of this interface:
For all "get" methods that have a corresponding "set" method in these
commands, null may be returned to indicate that the value should be obtained
in another way. More specifically, null indicates that a default value may
need to be used. Note that null may also be a legitimate value for some of
these methods.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
MixList<CatEntryPrices> |
getCatEntries()
Returns the catalog entry information which is used in batch mode.
|
java.lang.Long |
getCatEntryID()
Returns the catalog entry for single mode calculations.
|
java.lang.String |
getCurrency()
Returns the currency to be used.
|
MixList<java.lang.Long> |
getCurrentTradingIDs()
Returns the trading agreements that are currently assigned to the user.
|
java.util.Map |
getCustomData()
Returns the custom data associated with the main catalog entry.
|
MixList<java.lang.Long> |
getEligibleTradingIDs()
Returns the trading agreements that the user is entitled to use.
|
java.lang.Long |
getMemberID()
Returns the member that will be used to determine entitlement for the
trading agreements.
|
java.lang.Long[] |
getOfferIDs()
Returns the offer identifiers that will take precedence among the valid
offers.
|
com.ibm.commerce.order.objects.OrderItemAccessBean |
getOrderItem()
Returns the order item that is given by the order component.
|
java.lang.Long |
getOrganizationID()
Returns the organization under which the member acts for determining
entitlement.
|
QuantityAmount |
getQuantity()
Returns the quantity to be used in single mode.
|
java.lang.Integer |
getStoreID()
Returns the store to be used to determine prices.
|
MixList<java.lang.Long> |
getTradingIDs()
Returns the trading agreements to use when determining prices.
|
boolean |
isBatchMode()
Returns whether the values in this indicate single mode or batch mode
will be used.
|
java.lang.Boolean |
isThrowPriceExceptions()
Returns whether the command will throw an exception if a price could not
be found.
|
boolean |
isValid()
Returns whether if this input can be processed by a command.
|
void |
setToCommand(GetContractSpecialPriceCmd cmd)
Sets all applicable values from this to the given command.
|
void |
setToCommand(GetContractUnitPriceCmd cmd)
Sets all applicable values from this to the given command.
|
void |
setToCommand(GetProductContractUnitPriceCmd cmd)
Sets all applicable values from this to the given command.
|
static final java.lang.String COPYRIGHT
MixList<CatEntryPrices> getCatEntries()
java.lang.Long getCatEntryID()
java.lang.String getCurrency()
MixList<java.lang.Long> getCurrentTradingIDs()
This method does not have a corresponding method in any of the price commands.
java.util.Map getCustomData()
GetCustomContractUnitPriceCmd#setCustomData(Map)
MixList<java.lang.Long> getEligibleTradingIDs()
This method does not have a corresponding method in any of the price commands.
java.lang.Long getMemberID()
java.lang.Long[] getOfferIDs()
com.ibm.commerce.order.objects.OrderItemAccessBean getOrderItem()
java.lang.Long getOrganizationID()
QuantityAmount getQuantity()
java.lang.Integer getStoreID()
MixList<java.lang.Long> getTradingIDs()
boolean isBatchMode()
getCatEntries()
is not
null or empty.java.lang.Boolean isThrowPriceExceptions()
boolean isValid()
void setToCommand(GetContractSpecialPriceCmd cmd)
cmd
- The command to set values on. Cannot be null.void setToCommand(GetContractUnitPriceCmd cmd)
cmd
- The command to set values on. Cannot be null.void setToCommand(GetProductContractUnitPriceCmd cmd)
cmd
- The command to set values on. Cannot be null.