public class CatEntryPrices
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright.
|
Constructor and Description |
---|
CatEntryPrices(java.lang.Long anCatalogEntryId,
QuantityAmount aQuantity)
Constructor.
|
CatEntryPrices(java.lang.Long anCatalogEntryId,
QuantityAmount aQuantity,
java.lang.Long[] aTradingIds,
java.lang.Long[] aOfferIds)
Constructor.
|
CatEntryPrices(com.ibm.commerce.order.objects.OrderItemAccessBean aOrderItemAB)
Constructor.
|
CatEntryPrices(com.ibm.commerce.order.objects.OrderItemAccessBean aOrderItemAB,
java.lang.Long[] aTradingIds,
java.lang.Long[] aOfferIds)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long[] |
getAllTradingIds()
Returns the trading IDs used to lookup the price of the catalog entry.
|
MonetaryAmount |
getBasePrice()
Returns the base price of the catalog entry.
|
java.lang.Long |
getCatalogEntryId()
Returns the catalog entry ID that is priced.
|
java.util.Map |
getCustomData()
get the customData for the catalog entry
|
com.ibm.commerce.order.objects.OfferAccessBean |
getOffer()
Returns the offer access bean that represents the offer used to price the catalog entry.
|
java.lang.Long |
getOfferId()
Returns the offer ID of the offer used to price this catalog entry.
|
java.lang.Long[] |
getOfferIds()
Get the offer IDs used to price the catalog entry under each trading agreement.
|
com.ibm.commerce.order.objects.OrderItemAccessBean |
getOrderItem()
Returns the order item access bean that represents the priced order item.
|
java.lang.Long |
getOrderItemId()
Returns the order item ID used to price the catalog entry.
|
QuantityAmount |
getQuantity()
Get Quantity for this catalog entry
|
java.lang.Long |
getTcId()
Get TermCondition ID
|
MonetaryAmount |
getTradingBasePrice(int aIndex)
Returns the price of this catalog entry under a trading agreement.
|
MonetaryAmount[] |
getTradingBasePrices()
Returns an array representing the price of the catalog entry from each of the trading agreements passed
through setTradingIds().
|
java.lang.Long |
getTradingId()
Returns the ID of the trading agreement used to price the catalog entry.
|
java.lang.Long[] |
getTradingIds()
Returns an array of the trading agreement IDs used to price the catalog entry.
|
com.ibm.commerce.order.objects.OfferAccessBean |
getTradingOffer(int aIndex)
Returns the offer access bean representing the offer used to price the catalog entry under a trading agreement.
|
java.lang.Long |
getTradingOfferId(int aIndex)
Returns the ID of the offer used to price the catalog entry under a trading agreement.
|
java.lang.Long[] |
getTradingOfferIds()
Returns the IDs of the offers used to price the catalog entry under each trading agreement.
|
com.ibm.commerce.order.objects.OfferAccessBean[] |
getTradingOffers()
Returns the offer access beans used to price the catalog entry under each trading agreement.
|
java.lang.Long |
getTradingTcId(int aIndex)
Returns the term condition ID under which the winning offer was found under a trading agreement.
|
java.lang.Long[] |
getTradingTcIds()
Returns the term condition IDs under which the winning offer for each trading agreement was found.
|
MonetaryAmount |
getTradingUnitPrice(int aIndex)
Returns the price of the catalog entry under a trading agreement as a MonetaryAmount object.
|
MonetaryAmount[] |
getTradingUnitPrices()
Returns an array of MonetaryAmount prices of the catalog entry under the trading agreements.
|
MonetaryAmount |
getUnitPrice()
Returns the price of the catalog entry as a MonetaryAmount object.
|
void |
initOutput(int aSize)
Initialize the variables for output
|
void |
refresh()
Refreshes the values returned by the getter methods.
|
void |
setAllTradingIds(java.lang.Long[] aTradingIds)
Sets the trading IDs to use for pricing the catalog entry.
|
void |
setBasePrice(MonetaryAmount aPrice)
Sets the base price for the catalog entry.
|
void |
setCatalogEntryId(java.lang.Long anCatalogEntryId)
Sets the catalog entry ID to price.
|
void |
setCustomData(java.util.Map aCustomData)
set the customData for the catalog entry
|
void |
setOffer(com.ibm.commerce.order.objects.OfferAccessBean aOffer)
Set the offer used to price the catalog entry.
|
void |
setOfferId(java.lang.Long aOfferId)
Set the offer used to price the catalog entry.
|
void |
setOfferIds(java.lang.Long[] aOfferIds)
Set a set of offers
|
void |
setOrderItem(com.ibm.commerce.order.objects.OrderItemAccessBean aOrderItemAB)
Sets the order item of the catalog entry ID to price.
|
void |
setOrderItemId(java.lang.Long anOrderItemId)
Set order item ID
|
void |
setQuantity(QuantityAmount aQuantity)
Sets the quantity of the catalog entry ID to price.
|
void |
setTcId(java.lang.Long aTcId)
Sets the ID of the term condition used to price the catalog entry.
|
void |
setTradingBasePrices(MonetaryAmount[] aPrices)
Set the prices of the catalog entry for the trading agreements.
|
void |
setTradingId(java.lang.Long anTradingId)
Sets the trading ID used to price the catalog entry.
|
void |
setTradingIds(java.lang.Long[] aTradingIds)
Sets trading IDs used to price the catalog entry.
|
void |
setTradingOfferIds(java.lang.Long[] aOfferIds)
Set offer IDs to use to price the catalog entry.
|
void |
setTradingOffers(com.ibm.commerce.order.objects.OfferAccessBean[] aOffers)
Sets the offer access beans used to price the catalog entry under each trading agreement.
|
void |
setTradingTcIds(java.lang.Long[] aTcIds)
Sets the term condition IDs used to price the catalog entry under the trading agreements.
|
void |
setTradingUnitPrices(MonetaryAmount[] aPrices,
com.ibm.commerce.common.objects.StoreAccessBean aStoreAB)
Sets the prices for the catalog entry in each trading agreement.
|
void |
setUnitPrice(MonetaryAmount aPrice)
Sets the price for the catalog entry.
|
public static final java.lang.String COPYRIGHT
public CatEntryPrices(java.lang.Long anCatalogEntryId, QuantityAmount aQuantity) throws com.ibm.commerce.exception.ECException
aCatalogEntryId
- a Catalog entry IDaQuantity
- a QuantityAmountcom.ibm.commerce.exception.ECException
- when initialization fails.public CatEntryPrices(java.lang.Long anCatalogEntryId, QuantityAmount aQuantity, java.lang.Long[] aTradingIds, java.lang.Long[] aOfferIds) throws com.ibm.commerce.exception.ECException
aCatalogEntryId
- a Catalog entry IDaQuantity
- a QuantityAmountaTradingIds
- Trading IDsaOfferIds
- Offer IDscom.ibm.commerce.exception.ECException
- thrown when initialization fails.public CatEntryPrices(com.ibm.commerce.order.objects.OrderItemAccessBean aOrderItemAB) throws com.ibm.commerce.exception.ECException
aOrderItemAB
- an OrderItem accessbeancom.ibm.commerce.exception.ECException
- thrown when the bean cannot be used to retrieve the order item ID.public CatEntryPrices(com.ibm.commerce.order.objects.OrderItemAccessBean aOrderItemAB, java.lang.Long[] aTradingIds, java.lang.Long[] aOfferIds) throws com.ibm.commerce.exception.ECException
aOrderItemAB
- an OrderItem accessbeanaTradingIds[]
- an array of Trading IDsaOfferIds[]
- an array of Offer IDscom.ibm.commerce.exception.ECException
- thrown when the bean cannot be used to retrieve the order item ID.public java.lang.Long[] getAllTradingIds()
public MonetaryAmount getBasePrice()
public java.lang.Long getCatalogEntryId()
public java.util.Map getCustomData()
public com.ibm.commerce.order.objects.OfferAccessBean getOffer()
public java.lang.Long getOfferId()
public java.lang.Long[] getOfferIds()
public com.ibm.commerce.order.objects.OrderItemAccessBean getOrderItem()
public java.lang.Long getOrderItemId()
public QuantityAmount getQuantity()
public java.lang.Long getTcId()
public MonetaryAmount getTradingBasePrice(int aIndex)
aIndex
- the index of the trading agreement from which the price should be returned.
This index corresponds to the index of the array passed using setTradingIds();public MonetaryAmount[] getTradingBasePrices()
public java.lang.Long getTradingId()
public java.lang.Long[] getTradingIds()
public com.ibm.commerce.order.objects.OfferAccessBean getTradingOffer(int aIndex)
aIndex
- the index of the trading agreement for which the offer access bean should be returned.public java.lang.Long getTradingOfferId(int aIndex)
aIndex
- the index of the trading agreement for which the offer access bean should be returned.public java.lang.Long[] getTradingOfferIds()
public com.ibm.commerce.order.objects.OfferAccessBean[] getTradingOffers()
public java.lang.Long getTradingTcId(int aIndex)
aIndex
- the index of the trading agreement for which the term and condition should be returned.public java.lang.Long[] getTradingTcIds()
aIndex
- the index of the trading agreement for which the term and condition should be returned.public MonetaryAmount getTradingUnitPrice(int aIndex)
aIndex
- the index of the trading agreement for which the price should be returned.public MonetaryAmount[] getTradingUnitPrices()
aIndex
- the index of the trading agreement for which the price should be returned.public MonetaryAmount getUnitPrice()
public void initOutput(int aSize)
aSize
- the number of trading agreements used to price the catalog entry.public void refresh() throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECException
- when the refresh could not retrieve the data required to refresh.public void setAllTradingIds(java.lang.Long[] aTradingIds)
aTradingIds
- an array of the trading IDs used to price.public void setBasePrice(MonetaryAmount aPrice)
aPrice
- the base pricepublic void setCatalogEntryId(java.lang.Long anCatalogEntryId)
anCatalogEntryId
- the ID of the catalog entry to price.public void setCustomData(java.util.Map aCustomData)
aCustomData
- the custom data of the catalog entrypublic void setOffer(com.ibm.commerce.order.objects.OfferAccessBean aOffer)
aOffer
- the OfferAccessBean of the offer used to price the catalog entry.public void setOfferId(java.lang.Long aOfferId)
aOfferId
- the ID of the offer used to price the catalog entry.public void setOfferIds(java.lang.Long[] aOfferIds)
aOfferIds
- a set of offer IDspublic void setOrderItem(com.ibm.commerce.order.objects.OrderItemAccessBean aOrderItemAB)
aOrderItemAB
- the OrderItemAccessBean of the catalog entry ID.public void setOrderItemId(java.lang.Long anOrderItemId)
aOrderItemAB
- a ID of an order itmepublic void setQuantity(QuantityAmount aQuantity)
aQuantity
- a QuantityAmount representing the quantity of the catalog entry.public void setTcId(java.lang.Long aTcId)
aTcId
- the ID of the term condition.public void setTradingBasePrices(MonetaryAmount[] aPrices)
aPrices
- an array of the prices from the trading agreements.public void setTradingId(java.lang.Long anTradingId)
anTradingId
- the trading ID used to price the catalog entry.public void setTradingIds(java.lang.Long[] aTradingIds)
aTradingIds
- an array of the trading IDs used to price the catalog entry.public void setTradingOfferIds(java.lang.Long[] aOfferIds)
aOfferIds
- an array of offer IDs to use to price the catalog entry.public void setTradingOffers(com.ibm.commerce.order.objects.OfferAccessBean[] aOffers)
aOffers
- the array of offer access beans.public void setTradingTcIds(java.lang.Long[] aTcIds)
aTcIds
- an array of term condition IDs from the trading agreements.public void setTradingUnitPrices(MonetaryAmount[] aPrices, com.ibm.commerce.common.objects.StoreAccessBean aStoreAB) throws com.ibm.commerce.exception.ECException
aPrices
- an array of MonetaryAmountaStoreAB
- a store accessbeancom.ibm.commerce.exception.ECException
public void setUnitPrice(MonetaryAmount aPrice)
aPrice
- the price of the catalog entry