|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A stateless session EJB used to price Line objects based on discounts represented by QualificationDiscountDef objects. The Price service uses the DiscountMgmt and DiscountAssociation services to determine what discounts are available for a given customer and the definitions for those discounts. The Price service works on a model where each discount may only applied once and each quantity one (1) of a Line item may only be used as a trigger or have its price adjusted once. Likewise, the order or shipping cost may only be used as a trigger or have its price adjusted once. See the product documentation for more details.
QualificationDiscountDef
,
DiscountMgmt
,
DiscountAssociation
,
Line
Method Summary | |
PricingReply |
computeSubtotal(PricingRequest request)
This method applies a set of discounts to the collection of Line items provided in the PricingRequest. |
PricingReply |
computeTotal(PricingRequest request)
This method applies a set of discounts to the collection of Line items provided in the PricingRequest. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
public PricingReply computeSubtotal(PricingRequest request) throws PricingException, RemoteException
request
- request parameters for the pricing operation.
RuntimeException
- if the base shipping of the
PricingRequest is null or the Line items are invalid.
PricingException
RemoteException
PricingRequest
,
PricingRequestImpl
,
PricingReply
,
Quote
,
Line
,
DiscountPresentation
,
CustomerPk
public PricingReply computeTotal(PricingRequest request) throws PricingException, RemoteException
request
- request parameters for the pricing operation.
com.bea.commerce.ebusiness.price.PricingException
- if the CustomerPk in the PricingRequest is null.
RuntimeException
- if the base shipping of the
PricingRequest is null or the Line items are invalid.
PricingException
RemoteException
PricingRequest
,
PricingRequestImpl
,
PricingReply
,
Quote
,
Line
,
DiscountPresentation
,
CustomerPk
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |