Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.beasys.commerce.ebusiness.shoppingcart
Interface ShoppingCartLine

All Superinterfaces
  Belonging, BusinessSmartComponent, Cloneable, Comparable, Serializable

All Known Implementing Classes:
  ShoppingCartLineImpl

Deprecated

    @Deprecated
    public interface ShoppingCartLine

extends Belonging

This class combines a ProductItem, a Quantity and a Money object. The total price for the line is calculated using the getTotal() method, specifying the required total type.

See Also
  `ShoppingCartLineHome`, `ShoppingCart`

Method Summary
`Money` | `getBaseSavings()` Deprecated Get the savings from the MSRP to the base unit price, exluding non-catalog discounts, i.e.
`Money` | `getBaseTotal()` Deprecated Get the total excluing non-catalog discounts, i.e.
`Money` | `getDiscountedPrice()` Deprecated get the Discounted Price for the line
`ArrayList` | `getDiscountPresentations()` Deprecated get the Discount Description Array list of the discounts that apply to a particular shopping cart line
`Money` | `getLineTotal(int totalType)` Deprecated Gets the line total for the given total type.
`ProductItem` | `getProductItem()` Deprecated Get the value of productItem
`double` | `getQuantity()` Deprecated Get the quantity of the item
`Money` | `getSavings()` Deprecated Get the savings on this line (savings is the quantity times (msrp - unit price))
`Money` | `getShipping()` Deprecated Get the value of shipping
`Money` | `getTax()` Deprecated Get the value of tax
`Money` | `getUnitPrice()` Deprecated Get the value of unitPrice
`void` | `setDiscountedPrice(Money discountedPrice)` Deprecated Set the discount price for this line
`void` | `setDiscountPresentations(ArrayList discountPresentations)` Deprecated Set the value of discount descriptions of the discounts that apply to a particular shopping cart line
`void` | `setProductItem(ProductItem productItem)` Deprecated Set the value of productItem
`void` | `setQuantity(double quantity)` Deprecated Set the value of quantity
`void` | `setShipping(Money shipping)` Deprecated Set the value of shipping
`void` | `setTax(Money tax)` Deprecated Set the value of tax
`void` | `setUnitPrice(Money unitPrice)` Deprecated Set the value of unitPrice

Methods inherited from interface com.beasys.commerce.foundation.Belonging
`clone, equals, interfaceName, setByValue, value`

Methods inherited from interface java.lang.Comparable
`compareTo`

Method Detail

### getUnitPrice

    Money getUnitPrice()

  Deprecated
  Get the value of unitPrice

  Returns
    unitPrice.

### setUnitPrice

    void setUnitPrice(Money unitPrice)

  Deprecated
  Set the value of unitPrice

  Parameters
    `unitPrice` - unitPrice to be set

### getTax

    Money getTax()

  Deprecated
  Get the value of tax

  Returns
    tax.

### setTax

    void setTax(Money tax)

  Deprecated
  Set the value of tax

  Parameters
    `tax` - tax to be set

### getShipping

    Money getShipping()

  Deprecated
  Get the value of shipping

  Returns
    shipping.

### setShipping

    void setShipping(Money shipping)

  Deprecated
  Set the value of shipping

  Parameters
    `shipping` - shipping to be set

### getQuantity

    double getQuantity()

  Deprecated
  Get the quantity of the item

  Returns
    quantity.

### setQuantity

    void setQuantity(double quantity)

  Deprecated
  Set the value of quantity

  Parameters
    `quantity` - quantity to be added

### getProductItem

    ProductItem getProductItem()

  Deprecated
  Get the value of productItem

  Returns
    productItem.

### setProductItem

    void setProductItem(ProductItem productItem)

  Deprecated
  Set the value of productItem

  Parameters
    `productItem` - productItem to be added

### getLineTotal

    Money getLineTotal(int totalType)
                       throws InvalidArgumentException

  Deprecated
  Gets the line total for the given total type. Valid values are one or more of :
  - LINE_UNIT_PRICE_TIMES_QUANTITY
  - LINE_SHIPPING
  - LINE_TAX
  These can be combined together using the OR operator '|' to get compound total types

  Parameters
    `total` - type
  Throws
    `InvalidArgumentException`

### getSavings

    Money getSavings()

  Deprecated
  Get the savings on this line (savings is the quantity times (msrp - unit price))

  Returns
    savings.

### getBaseSavings

    Money getBaseSavings()

  Deprecated
  Get the savings from the MSRP to the base unit price, exluding non-catalog discounts, i.e. quantity * (MSRP - Unit Price)

  Returns
    base savings

### getBaseTotal

    Money getBaseTotal()

  Deprecated
  Get the total excluing non-catalog discounts, i.e. the quantity * unit price for this line

  Returns
    baseTotal

### getDiscountedPrice

    Money getDiscountedPrice()

  Deprecated
  get the Discounted Price for the line

  Returns
    the price as discounted

### setDiscountedPrice

    void setDiscountedPrice(Money discountedPrice)

  Deprecated
  Set the discount price for this line

  Parameters
    `discountedPrice,` - the price as discounted

### getDiscountPresentations

    ArrayList getDiscountPresentations()

  Deprecated
  get the Discount Description Array list of the discounts that apply to a particular shopping cart line

  Returns
    an ArrayList of DiscountDescription objects

### setDiscountPresentations

    void setDiscountPresentations(ArrayList discountPresentations)

  Deprecated
  Set the value of discount descriptions of the discounts that apply to a particular shopping cart line

  Parameters
    `discountPresentations,` - an ArrayList of Presentation objects

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.