public interface GetPriceCmdOutput
GetContractUnitPriceCmd
, GetProductContractUnitPriceCmd
, and
GetContractSpecialPriceCmd
to make implementing those commands
easier. There are several implementations of this interface:
SimpleGetPriceCmdOutput
PriceCaseGetPriceCmdOutput
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
MixList<java.lang.Long> |
getApplicableTradingIDs()
Returns the identifiers of the trading agreements that were used to
determine the prices for a catalog entry.
|
MixList<MonetaryAmount> |
getApplicableUnitPrices()
Returns the prices that were determined for each of the applied trading
agreements for a catalog entry.
|
MonetaryAmount |
getBasePrice()
Returns the best price of the input catalog entry before any currency
conversions.
|
MixList<CatEntryPrices> |
getCatEntries()
Returns the price related information for the input catalog entries.
|
com.ibm.commerce.order.objects.OfferAccessBean |
getOffer()
Returns the offer access bean that was used to determine the price.
|
java.lang.Long |
getOfferID()
Returns the identifier of the offer that was used to determine the price.
|
MonetaryAmount |
getPrice()
Returns the best price of the catalog entry in the requested currency.
|
java.lang.Long |
getTcID()
Returns the identifier of the term condition which was used to calculate
the best price.
|
java.lang.Long |
getTradingID()
Returns the identifier of the trading agreement which was used to
calculate the best price.
|
static final java.lang.String COPYRIGHT
MixList<java.lang.Long> getApplicableTradingIDs()
If the command is used in single mode, these identifiers will reflect the trading agreements that were specified for that catalog entry. If the command is used in batch mode, then these identifiers will reflect the trading agreements that were used for the first catalog entry in the input array.
getPrice()
returns null.MixList<MonetaryAmount> getApplicableUnitPrices()
#getApplicableTradingIds()
.
If the command is used in single mode, these prices will reflect the prices that were found for the input catalog entry. If the command is used in batch mode, then these prices will reflect the prices that were used for the first catalog entry in the input array.
getPrice()
returns null.MonetaryAmount getBasePrice()
If the command is used in single mode, this price will be for the input catalog entry. If the command is used in batch mode, then this price will be for the first catalog entry in the input array.
MixList<CatEntryPrices> getCatEntries()
The following values reflect information about the best price for the catalog entry:
CatEntryPrices.getTradingId()
CatEntryPrices.getTcId()
CatEntryPrices.getOfferId()
CatEntryPrices.getOffer()
CatEntryPrices.getBasePrice()
CatEntryPrices.getUnitPrice()
The following values reflect information about all prices for the catalog entry:
CatEntryPrices.getAllTradingIds()
CatEntryPrices.getTradingTcIds()
CatEntryPrices.getTradingOfferIds()
CatEntryPrices.getTradingOffers()
CatEntryPrices.getTradingBasePrices()
CatEntryPrices.getTradingUnitPrices()
If this command is used in single mode, this array will contain one element corresponding to the input catalog entry. If this command is used in batch mode, then this array will contain the same catalog entry information, in the same order, as the input array.
In the latter case, the array itself is not guaranteed to be the same as the input array, and the elements are not guaranteed to be the same as those in the input array. However, for optimization purposes, they may be the same array and elements. In other words, users of this command should make no assumptions that the input array and elements are the same or different from the returned array.
#setCatEntryPrices
for information on the input array.com.ibm.commerce.order.objects.OfferAccessBean getOffer()
If the command is used in single mode, this offer will be for the input catalog entry. If the command is used in batch mode, then this offer will be for the first catalog entry in the input array.
getPrice()
returns null.java.lang.Long getOfferID()
If the command is used in single mode, this offer will be for the input catalog entry. If the command is used in batch mode, then this offer will be for the first catalog entry in the input array.
getPrice()
returns null.MonetaryAmount getPrice()
If the command is used in single mode, this price will be for the input catalog entry. If the command is used in batch mode, then this price will be for the first catalog entry in the input array.
error mode
is
set to true and no price was found.java.lang.Long getTcID()
If the command is used in single mode, this term condition will be for the input catalog entry. If the command is used in batch mode, then this term condition will be for the first catalog entry in the input array.
getPrice()
returns null.java.lang.Long getTradingID()
If the command is used in single mode, this trading agreement will be for the input catalog entry. If the command is used in batch mode, then this trading agreement will be for the first catalog entry in the input array.
getPrice()
returns null.