OrderAdjustmentPresentation Class

com.beasys.commerce.ebusiness.order
OrderAdjustmentPresentation Class

public class OrderAdjustmentPresentation

    extends DiscountPresentation
    implements Serializable

This class is used to store presentation information related to an Order or an OrderLine adjustment computation. It is used by JSPs to show the consumer why they are receiving a adjustment and how the prices are computed.

A List of OrderAdjustmentPresentation's is associated with the overall Order and each of its OrderLine.

Related Topics

DiscountPresentation
OrderValue


Hierarchy
Object
  DiscountPresentation
    OrderAdjustmentPresentation
All Implemented Interfaces

Serializable

Constructor Summary

OrderAdjustmentPresentation(double quantity, Money unitPrice, Money discount, String computation, String reason, long discountId, String adjustmentType)

This constructor calls its super-class constructor and sets the discountId and adjustment type data members.
 

Method Summary

public Object
clone()
The clone method creates a new OrderAdjustmentPresentation object and call its contructor.
public String
getAdjustmentType()
public long
getDiscountId()
public void
setAdjustmentType(String adjustmentType)
Sets the presentation string associated with the adjustmentType of the discount, e.g. "10% off", "$5 off"
public void
setDiscountId(long discountId)
Sets the discountId over which the discount is applied for this line.
public String
toString()
A debug statement for now.
 
Methods from  com.bea.commerce.ebusiness.price.service.DiscountPresentation
getComputation, getDiscount, getQuantity, getReason, getShortText, getUnitPrice, set, setComputation, setDiscount, setQuantity, setReason, setUnitPrice,
 
Methods from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Constructor Detail

OrderAdjustmentPresentation

public OrderAdjustmentPresentation(double quantity, 
                                   Money unitPrice, 
                                   Money discount, 
                                   String computation, 
                                   String reason, 
                                   long discountId, 
                                   String adjustmentType)
This constructor calls its super-class constructor and sets the discountId and adjustment type data members.
 

Method Detail

clone() Method

public Object clone()
The clone method creates a new OrderAdjustmentPresentation object and call its contructor.

Overrides
Object.clone()

getAdjustmentType() Method

public String getAdjustmentType()

Returns

the String associated with the adjusment type

getDiscountId() Method

public long getDiscountId()

Returns

the discountId which refers to the applied discount

setAdjustmentType(String) Method

public void setAdjustmentType(String adjustmentType)
Sets the presentation string associated with the adjustmentType of the discount, e.g. "10% off", "$5 off"

Parameters

adjustmentType
adjustmentType String

setDiscountId(long) Method

public void setDiscountId(long discountId)
Sets the discountId over which the discount is applied for this line.

Parameters

discountId
a long

toString() Method

public String toString()
A debug statement for now.

Overrides
DiscountPresentation.toString()