# com.beasys.commerce.ebusiness.order
OrderValue Class

public class OrderValue
extends `SmartValue`

This class represents the state of Order entity.

Related Topics

``Order``
``OrderHome``
``Order.getOrderByValue()``
``Order.setOrderByValue(OrderValue)``

Hierarchy
  `Object`
  `SmartValue`
  `OrderValue`

All Implemented Interfaces
  `Serializable`

## Field Summary

`public `List`` | `adjustmentPresentations` Order Adjustments, mostly discounts, used by the JSP, as a list of OrderDiscountPresentation objects.
`public `Date`` | `createdDate` Date of creation of the order
`public transient `Customer`` | `customer` A transient reference to the Customer entity
`public `Handle`` | `customerHandle` Handle
`public `String`` | `identifier` Primary key attribue.
`public `Collection`` | `orderLines` Collection of OrderLine objects associated with this order
`public `String`` | `orderStatus` Status of the order
`public transient `PaymentTransaction`` | `paymentTransaction` A transient reference to the PaymentTransaction entity
`public `Handle`` | `paymentTransactionHandle` Handle
`public `Money`` | `price` Total value of the order
`public `Money`` | `shipping` Shipping cost
`public `Address`` | `shippingAddress` Shipping address
`public `String`` | `shippingMethod` Shipping method
`public `String`` | `specialInstructions` Special instructions for shipping
`public `String`` | `splittingPreference` Order splitting preference
`public double` | `subtotal` Subtotal of the order
`public `Money`` | `tax` Total tax on the order

## Constructor Summary

OrderValue() Constructs an OrderValue object

## Method Summary

`public `Money`` | `getBaseShipping`() The base shipping is not kept in the database currently.
`public `Money`` | `getTotal`(int totalType) Gets the order total for the given total type

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Field Detail

### adjustmentPresentations

    public List adjustmentPresentations

  Order Adjustments, mostly discounts, used by the JSP, as a list of OrderDiscountPresentation objects. This is retrieved only when using the OrderAdjustmentPersistence select method.

### createdDate

    public Date createdDate

  Date of creation of the order

### customer

    public transient Customer customer

  A transient reference to the Customer entity

### customerHandle

    public Handle customerHandle

### identifier

    public String identifier

  Primary key attribue. Represents the state of the associated OrderPk object.

### orderLines

    public Collection orderLines

  Collection of OrderLine objects associated with this order

### orderStatus

    public String orderStatus

  Status of the order

### paymentTransaction

    public transient PaymentTransaction paymentTransaction

  A transient reference to the PaymentTransaction entity

### paymentTransactionHandle

    public Handle paymentTransactionHandle

### price

    public Money price

  Total value of the order

### shipping

    public Money shipping

  Shipping cost

### shippingAddress

    public Address shippingAddress

  Shipping address

### shippingMethod

    public String shippingMethod

  Shipping method

### specialInstructions

    public String specialInstructions

  Special instructions for shipping

### splittingPreference

    public String splittingPreference

  Order splitting preference

### subtotal

    public double subtotal

  Subtotal of the order

### tax

    public Money tax

  Total tax on the order

## Constructor Detail

### OrderValue

    public OrderValue()

  Constructs an OrderValue object

## Method Detail

### getBaseShipping() Method

    public Money getBaseShipping()

The base shipping is not kept in the database currently. It must hence be re-calculated from the order adjustment (the discount that was applied) and the discounted shipping value.

#### Returns

the shipping before discount as a Money object

### getTotal(int) Method

    public Money getTotal(int totalType)
         throws InvalidArgumentException

Gets the order total for the given total type

#### Parameters

totalType
  type

#### Returns

Money object containing the specified total

#### Exceptions

``InvalidArgumentException``
  if an invalid total type parameter is passed

Related Topics

``OrderConstants``