com.elasticpath.domain.order.impl
Class OrderShipmentImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractValueObjectImpl
              extended by com.elasticpath.domain.order.impl.OrderShipmentImpl
All Implemented Interfaces:
EpDomain, OrderShipment, Persistence, ValueObject, java.io.Serializable

public class OrderShipmentImpl
extends AbstractValueObjectImpl
implements OrderShipment

OrderShipment represents a customer's order shipment.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
OrderShipmentImpl()
           
 
Method Summary
 void addOrderSku(OrderSku orderSku)
          Add an order SKU.
 java.math.BigDecimal getBeforeTaxShippingCost()
          Get the before-tax shipping cost in BigDecimal.
 java.lang.String getCarrier()
           
 java.util.Date getCreatedDate()
          Get the date that this order was created on.
 java.util.Date getLastModifiedDate()
          Get the date that the order was last modified on.
 java.util.Set getOrderSkus()
          Get the SKUs in this order.
 java.lang.String getServiceLevel()
           
 OrderAddress getShipmentAddress()
          Get the shipment address corresponding to this shipment.
 java.util.Date getShipmentDate()
          Get the date that the order was shipped on.
 java.math.BigDecimal getShippingCost()
          Get the shipping cost in BigDecimal.
 OrderShipmentStatus getStatus()
          Get the status of the shipment.
 java.lang.String getTrackingCode()
           
 void setBeforeTaxShippingCost(java.math.BigDecimal beforeTaxShippingCost)
          Set the before-tax shipping cost in BigDecimal.
 void setCarrier(java.lang.String carrier)
           
 void setCreatedDate(java.util.Date createdDate)
          Set the date that the order is created.
 void setLastModifiedDate(java.util.Date lastModifiedDate)
          Set the date that the order was last modified on.
 void setOrderSkus(java.util.Set orderSkus)
          Set the SKUs in this order.
 void setServiceLevel(java.lang.String serviceLevel)
           
 void setShipmentAddress(OrderAddress shipmentAddress)
          Set the shipping address corresponding to this shipment.
 void setShipmentDate(java.util.Date shipmentDate)
          Set the date that the order was shipped on.
 void setShippingCost(java.math.BigDecimal shippingCost)
          Set the shipping cost in BigDecimal.
 void setStatus(OrderShipmentStatus status)
          Set the status of the shipment.
 void setTrackingCode(java.lang.String trackingCode)
           
 
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

OrderShipmentImpl

public OrderShipmentImpl()
Method Detail

addOrderSku

public void addOrderSku(OrderSku orderSku)
Add an order SKU.

Specified by:
addOrderSku in interface OrderShipment
Parameters:
orderSku - the order SKU to add

getBeforeTaxShippingCost

public java.math.BigDecimal getBeforeTaxShippingCost()
Get the before-tax shipping cost in BigDecimal.

Specified by:
getBeforeTaxShippingCost in interface OrderShipment
Returns:
the before-tax shipping cost in BigDecimal.

getCarrier

public java.lang.String getCarrier()
Specified by:
getCarrier in interface OrderShipment
Returns:
Returns the carrier.

getCreatedDate

public java.util.Date getCreatedDate()
Get the date that this order was created on.

Specified by:
getCreatedDate in interface OrderShipment
Returns:
the created date

getLastModifiedDate

public java.util.Date getLastModifiedDate()
Get the date that the order was last modified on.

Specified by:
getLastModifiedDate in interface OrderShipment
Returns:
the last modified date

getOrderSkus

public java.util.Set getOrderSkus()
Get the SKUs in this order.

Specified by:
getOrderSkus in interface OrderShipment
Returns:
the orders's OrderSkuss

getServiceLevel

public java.lang.String getServiceLevel()
Specified by:
getServiceLevel in interface OrderShipment
Returns:
Returns the serviceLevel.

getShipmentAddress

public OrderAddress getShipmentAddress()
Get the shipment address corresponding to this shipment.

Specified by:
getShipmentAddress in interface OrderShipment
Returns:
the shipment address Uid

getShipmentDate

public java.util.Date getShipmentDate()
Get the date that the order was shipped on.

Specified by:
getShipmentDate in interface OrderShipment
Returns:
the shipped date

getShippingCost

public java.math.BigDecimal getShippingCost()
Get the shipping cost in BigDecimal.

Specified by:
getShippingCost in interface OrderShipment
Returns:
the shipping cost in BigDecimal.

getStatus

public OrderShipmentStatus getStatus()
Get the status of the shipment.

Specified by:
getStatus in interface OrderShipment
Returns:
the shipment status

getTrackingCode

public java.lang.String getTrackingCode()
Specified by:
getTrackingCode in interface OrderShipment
Returns:
Returns the trackingCode.

setBeforeTaxShippingCost

public void setBeforeTaxShippingCost(java.math.BigDecimal beforeTaxShippingCost)
Set the before-tax shipping cost in BigDecimal.

Specified by:
setBeforeTaxShippingCost in interface OrderShipment
Parameters:
beforeTaxShippingCost - the before-tax shipping cost

setCarrier

public void setCarrier(java.lang.String carrier)
Specified by:
setCarrier in interface OrderShipment
Parameters:
carrier - The carrier to set.

setCreatedDate

public void setCreatedDate(java.util.Date createdDate)
Set the date that the order is created.

Specified by:
setCreatedDate in interface OrderShipment
Parameters:
createdDate - the start date

setLastModifiedDate

public void setLastModifiedDate(java.util.Date lastModifiedDate)
Set the date that the order was last modified on.

Specified by:
setLastModifiedDate in interface OrderShipment
Parameters:
lastModifiedDate - the date that the order was last modified

setOrderSkus

public void setOrderSkus(java.util.Set orderSkus)
Set the SKUs in this order.

Specified by:
setOrderSkus in interface OrderShipment
Parameters:
orderSkus - the set of OrderSkus

setServiceLevel

public void setServiceLevel(java.lang.String serviceLevel)
Specified by:
setServiceLevel in interface OrderShipment
Parameters:
serviceLevel - The serviceLevel to set.

setShipmentAddress

public void setShipmentAddress(OrderAddress shipmentAddress)
Set the shipping address corresponding to this shipment.

Specified by:
setShipmentAddress in interface OrderShipment
Parameters:
shipmentAddress - the Uid of the corresponding shipment address.

setShipmentDate

public void setShipmentDate(java.util.Date shipmentDate)
Set the date that the order was shipped on.

Specified by:
setShipmentDate in interface OrderShipment
Parameters:
shipmentDate - the date that the order was shipped on

setShippingCost

public void setShippingCost(java.math.BigDecimal shippingCost)
Set the shipping cost in BigDecimal.

Specified by:
setShippingCost in interface OrderShipment
Parameters:
shippingCost - the shipping cost

setStatus

public void setStatus(OrderShipmentStatus status)
Set the status of the shipment.

Specified by:
setStatus in interface OrderShipment
Parameters:
status - the status of the shipment

setTrackingCode

public void setTrackingCode(java.lang.String trackingCode)
Specified by:
setTrackingCode in interface OrderShipment
Parameters:
trackingCode - The trackingCode to set.