|
Copyright © 2008 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.quote.Quote
@Deprecated public class Quote
The Quote class provides a framework for building a price quote for a collection of LineItems. The LineItems may be adjusted within the framework such that any sub-quantity of a LineItem maybe assigned a new unit price. Each LineAdjustment represents a subquantity of a LineItem and include a new unit price. Each LineAdjustment must have exactly one AdjustmentDetail object describing the adjustment. The quantities of a set of LineAdjustments for a LineItem may not exceed the quantity of the LineItem. The subtotal of the quote is the sum of the values of the LineItems. OrderAdjustments may also be added to the Quote. The OrderAdjustments change the total for the Quote. The total is computed by adding any OrderAdjustments to the subtotal for the object.
LineItem
,
LineAdjustment
,
OrderAdjustment
,
AdjustmentDetail
,
AdjustmentType
,
QuoteFactory
,
Money
,
Serialized FormField Summary | |
---|---|
static String |
INPUT
Deprecated See BEA Commerce product offering |
static double |
MIN_PRICE
Deprecated See BEA Commerce product offering |
static double |
ONE_HUNDRED
Deprecated See BEA Commerce product offering |
static String |
STATE
Deprecated See BEA Commerce product offering |
static int |
STATE_I_DISC
Deprecated See BEA Commerce product offering |
static int |
STATE_I_END
Deprecated See BEA Commerce product offering |
static int |
STATE_I_ERROR
Deprecated See BEA Commerce product offering |
static int |
STATE_I_NO_ADJ
Deprecated See BEA Commerce product offering |
static int |
STATE_I_SHIPPING
Deprecated See BEA Commerce product offering |
static int |
STATE_I_TAX
Deprecated See BEA Commerce product offering |
static String |
STATE_S_DISC
Deprecated See BEA Commerce product offering |
static String |
STATE_S_END
Deprecated See BEA Commerce product offering |
static String |
STATE_S_ERROR
Deprecated See BEA Commerce product offering |
static String |
STATE_S_NO_ADJ
Deprecated See BEA Commerce product offering |
static String |
STATE_S_SHIPPING
Deprecated See BEA Commerce product offering |
static String |
STATE_S_TAX
Deprecated See BEA Commerce product offering |
Constructor Summary | |
---|---|
Quote()
Deprecated See BEA Commerce product offering |
|
Quote(QuoteFactory factory,
List lineItems)
Deprecated See BEA Commerce product offering |
Method Summary | |
---|---|
void |
addLineAdjustment(int itemNumber,
int qty,
AdjustmentDetail aDetail)
Deprecated See BEA Commerce product offering |
void |
addLineAdjustment(LineItem item,
int qty,
AdjustmentDetail aDetail)
Deprecated See BEA Commerce product offering |
void |
addOrderDetail(AdjustmentDetail aDetail)
Deprecated See BEA Commerce product offering |
static boolean |
checkMinPrice(Money value)
Deprecated See BEA Commerce product offering |
Money |
getBaseShipping()
Deprecated See BEA Commerce product offering |
String |
getCurrency()
Deprecated See BEA Commerce product offering |
QuoteFactory |
getFactory()
Deprecated See BEA Commerce product offering |
int |
getLineCnt()
Deprecated See BEA Commerce product offering |
LineItem |
getLineItem(int itemNumber)
Deprecated See BEA Commerce product offering |
List |
getLineItems()
Deprecated See BEA Commerce product offering |
List |
getOrderAdjustments()
Deprecated See BEA Commerce product offering |
List |
getOrderDiscountAdjustments()
Deprecated See BEA Commerce product offering |
List |
getShippingOrderAdjustments()
Deprecated See BEA Commerce product offering |
Money |
getSubtotal()
Deprecated See BEA Commerce product offering |
Money |
getTotal()
Deprecated See BEA Commerce product offering |
String |
getUID()
Deprecated See BEA Commerce product offering |
int |
incrementSeqNumber()
Deprecated See BEA Commerce product offering |
static double |
round(double value)
Deprecated See BEA Commerce product offering |
static double |
round(Money value)
Deprecated See BEA Commerce product offering |
static MutableMoney |
round(MutableMoney value)
Deprecated See BEA Commerce product offering |
void |
set(QuoteFactory factory,
List lineItems)
Deprecated See BEA Commerce product offering |
void |
setBaseShipping(Money shippingBase)
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 |
Field Detail |
---|
public static final double MIN_PRICE
public static final double ONE_HUNDRED
public static final int STATE_I_NO_ADJ
public static final int STATE_I_DISC
public static final int STATE_I_SHIPPING
public static final int STATE_I_TAX
public static final int STATE_I_END
public static final int STATE_I_ERROR
public static final String STATE_S_NO_ADJ
public static final String STATE_S_DISC
public static final String STATE_S_SHIPPING
public static final String STATE_S_TAX
public static final String STATE_S_END
public static final String STATE_S_ERROR
public static final String STATE
public static final String INPUT
Constructor Detail |
---|
public Quote()
public Quote(QuoteFactory factory, List lineItems) throws QuoteException, CurrencyMismatchException
factory
- the QuoteFactory to use when generating
other objects from the Quote package.lineItems
- a List of LineItem objects
QuoteException
CurrencyMismatchException
QuoteFactory
,
LineItem
Method Detail |
---|
public void set(QuoteFactory factory, List lineItems) throws QuoteException, CurrencyMismatchException
factory
- the QuoteFactory to use when generating
other objects from the Quote package.lineItems
- a List of LineItem objects
QuoteException
CurrencyMismatchException
QuoteFactory
,
LineItem
public void addOrderDetail(AdjustmentDetail aDetail) throws QuoteException
aDetail
- an AdjustmentDetail object.
QuoteException
AdjustmentDetail
,
OrderAdjustment
,
LineAdjustment
public List getOrderAdjustments()
OrderAdjustment
,
AdjustmentType
public List getOrderDiscountAdjustments()
OrderAdjustment
,
AdjustmentType
public List getShippingOrderAdjustments()
OrderAdjustment
,
AdjustmentType
public void addLineAdjustment(LineItem item, int qty, AdjustmentDetail aDetail) throws QuoteException
item
- the LineItem to associate the adjustment with.qty
- the quantity of objects of the specified LineItem
to adjust.aDetail
- the AdjustmentDetail to associate with the new
LineAdjustment.
QuoteException
LineAdjustment
,
LineItem
,
AdjustmentDetail
public void addLineAdjustment(int itemNumber, int qty, AdjustmentDetail aDetail) throws QuoteException
itemNumber
- the number of the LineItem to associate the
adjustment with.qty
- the quantity of objects of the specified LineItem
to adjust.aDetail
- the AdjustmentDetail to associate with the new
LineAdjustment.
QuoteException
LineAdjustment
,
LineItem
,
AdjustmentDetail
public List getLineItems()
LineItem
,
Collections
public LineItem getLineItem(int itemNumber)
LineItem
public final int getLineCnt()
public final Money getSubtotal()
LineItem
public final Money getTotal()
OrderAdjustment
public final Money getBaseShipping()
Money
public final void setBaseShipping(Money shippingBase) throws QuoteException, CurrencyMismatchException
QuoteException
- if the value passed in is null.
CurrencyMismatchException
- if the currency of the
Money object specified does not match the Quotes currency.OrderAdjustment
public final String getCurrency()
Money
public static final boolean checkMinPrice(Money value)
value
- the Money object to compare against the minimum pricepublic static final MutableMoney round(MutableMoney value)
value
- a MutableMoney value to round.
public static final double round(Money value)
value
- a Money value to roundpublic static final double round(double value)
value
- a double value to roundpublic final QuoteFactory getFactory()
QuoteFactory
public String getUID()
public final String toString()
toString
in class Object
public final int incrementSeqNumber()
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |