OrderLine Interface
- public interface OrderLine
extends Belonging
OrderLine represents one line in an Order. It contains a reference to an Item, a Quantity, a unitPrice and a list of Adjustments to the total line price.
Attribute: quantity
- Containment: By Value
- Multiplicity: 1:1
Attribute: tax
- Containment: By Value
- Multiplicity: 1:1
Attribute: unitPrice
- Containment: By Value
- Multiplicity: 1:1
Attribute: totalLineAmount
- Containment: By Value
- Multiplicity: 1:1
Attribute: shipping
- Containment: By Value
- Multiplicity: 1:1
Attribute: productIdentifier
- Containment: By Value
- Multiplicity: 1:1
Related Topics
OrderLineHome
OrderLineImpl
-
All Known Implementing Classes
-
OrderLineImpl
-
All Superinterfaces
-
Belonging
, BusinessSmartComponent
, Cloneable
, Comparable
, Serializable
getAdjustmentPresentations() Method
public ArrayList
getAdjustmentPresentations()
Get the list of OrderAdjustmentPresentation objects
Returns
- an array list
getDescription() Method
public String
getDescription()
Get the value of description
Returns
- description.
getId() Method
public long getId()
Get order line id
Returns
- an array list
getLineTotal(int) Method
public Money
getLineTotal(int totalType)
throws InvalidArgumentException
Gets the line total for the given total type
Parameters
-
totalType
- type
Exceptions
-
InvalidArgumentException
getMsrp() Method
public Money
getMsrp()
Get the value of msrp
Returns
- msrp.
getProductIdentifier() Method
public String
getProductIdentifier()
Get the value of productIdentifier
Returns
- productIdentifier.
getQuantity() Method
public double getQuantity()
Get the value of quantity
Returns
- quantity.
getShipping() Method
public Money
getShipping()
Get the value of shipping
Returns
- shipping.
getTax() Method
public Money
getTax()
Get the value of tax
Returns
- tax.
getTotalLineAmount() Method
public double getTotalLineAmount()
Get the value of quantity
Returns
- totalLineAmount.
getUnitPrice() Method
public Money
getUnitPrice()
Get the value of unitPrice
Returns
- unitPrice.
setAdjustmentPresentations(ArrayList) Method
public void setAdjustmentPresentations(ArrayList
adjustmentPresentations)
Set the list of OrderAdjustmentPresentation object
Parameters
-
adjustmentPresentations
- the list of OrderDiscountPresentations
setDescription(String) Method
public void setDescription(String
description)
Set the value of description
Parameters
-
description
- description to be added
setId(long) Method
public void setId(long id)
Set the order line id
Parameters
-
id
- the long order line id.
setMsrp(Money) Method
public void setMsrp(Money
msrp)
Set the value of msrp
Parameters
-
msrp
- msrp to be added
setProductIdentifier(String) Method
public void setProductIdentifier(String
productIdentifier)
Set the value of productIdentifier
Parameters
-
productIdentifier
- productIdentifier to be added
setQuantity(double) Method
public void setQuantity(double quantity)
Set the value of quantity
Parameters
-
quantity
- quantity to be added
setShipping(Money) Method
public void setShipping(Money
shipping)
Set the value of shipping
Parameters
-
shipping
- shipping to be added
setTax(Money) Method
public void setTax(Money
tax)
Set the value of tax
Parameters
-
tax
- tax to be added
setTotalLineAmount(double) Method
public void setTotalLineAmount(double totalLineAmount)
Set the value of quantity
Parameters
-
totalLineAmount
- quantity to be added
setUnitPrice(Money) Method
public void setUnitPrice(Money
unitPrice)
Set the value of unitPrice
Parameters
-
unitPrice
- unitPrice to be added