|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.commerce.ebusiness.price.service.DiscountPresentation
@Deprecated public class DiscountPresentation
This class is used to hold information corresponding to pricing adjustments to a Line item. A List of DiscountPresentation objects will be attached to a Line item to show adjustments to the price of that Line item.
PricingReply
,
Line
,
Serialized FormConstructor Summary | |
---|---|
DiscountPresentation(double quantity,
Money unitPrice,
Money discount,
String computation,
String reason)
Deprecated See BEA Commerce product offering |
Method Summary | |
---|---|
String |
getComputation()
Deprecated See BEA Commerce product offering |
Money |
getDiscount()
Deprecated See BEA Commerce product offering |
double |
getQuantity()
Deprecated See BEA Commerce product offering |
String |
getReason()
Deprecated See BEA Commerce product offering |
String |
getShortText()
Deprecated See BEA Commerce product offering |
Money |
getUnitPrice()
Deprecated See BEA Commerce product offering |
void |
set(double quantity,
Money unitPrice,
Money discount,
String computation,
String reason)
Deprecated See BEA Commerce product offering |
void |
setComputation(String computation)
Deprecated See BEA Commerce product offering |
void |
setDiscount(Money discount)
Deprecated See BEA Commerce product offering |
void |
setQuantity(double quantity)
Deprecated See BEA Commerce product offering |
void |
setReason(String reason)
Deprecated See BEA Commerce product offering |
void |
setUnitPrice(Money unitPrice)
Deprecated See BEA Commerce product offering |
String |
toString()
Deprecated See BEA Commerce product offering |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DiscountPresentation(double quantity, Money unitPrice, Money discount, String computation, String reason)
quantity
- a double value specifying the quantity of the
Line item corresponding to this presentation object.unitPrice
- the discounted unit price for this quantity
of the Line.discount
- the amount of money discounted for this quantity
of the Line.computation
- a string describing the computation that
produced the actual unit price from the original unit price.reason
- a string describing the reason this quantity of
the Line was adjusted.Line
,
Money
Method Detail |
---|
public void set(double quantity, Money unitPrice, Money discount, String computation, String reason)
quantity
- a double value specifying the quantity of the
Line item corresponding to this presentation object.unitPrice
- the discounted unit price for this quantity
of the Line.discount
- the amount of money discounted for this quantity
of the Line.computation
- a string describing the computation that
produced the actual unit price from the original unit price.reason
- a string describing the reason this quantity of
the Line was adjusted.Line
,
Money
public double getQuantity()
public void setQuantity(double quantity)
quantity
- a double value corresponding to the quantity
for this adjustment.public Money getUnitPrice()
public void setUnitPrice(Money unitPrice)
unitPrice
- the new unit price for this quantity of the Line.public Money getDiscount()
public void setDiscount(Money discount)
discount
- the amount discounted.
More specifically, (<base unit price> * <quantity>) -
(<actual unit price> * <quantity>)public String getComputation()
public void setComputation(String computation)
computation
- a String corresponding to how the
actual unit price was derived from the base unit price.public String getReason()
public void setReason(String reason)
public String getShortText()
public String toString()
toString
in class Object
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |