com.elasticpath.domain.order.impl
Class OrderReturnSkuImpl

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.OrderReturnSkuImpl
All Implemented Interfaces:
EpDomain, OrderReturnSku, Persistence, ValueObject, java.io.Serializable

public class OrderReturnSkuImpl
extends AbstractValueObjectImpl
implements OrderReturnSku

The default implementation of OrderReturnSku.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
OrderReturnSkuImpl()
           
 
Method Summary
 OrderSku getOrderSku()
          Get the orderSku for this return.
 int getQuantity()
          Get the quantity of this sku returned.
 java.math.BigDecimal getReturnAmount()
          Get the return amount for this item.
 Money getReturnAmountMoney(java.util.Currency currency)
          Get the return amount as a Money object.
 void setOrderSku(OrderSku orderSku)
          Set the orderSku for this return.
 void setQuantity(int quantity)
          Set the quantity of this sku returned.
 void setReturnAmount(java.math.BigDecimal returnAmount)
          Set the return amount for this item.
 
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

OrderReturnSkuImpl

public OrderReturnSkuImpl()
Method Detail

getOrderSku

public OrderSku getOrderSku()
Get the orderSku for this return.

Specified by:
getOrderSku in interface OrderReturnSku
Returns:
the orderSku for this return.

getQuantity

public int getQuantity()
Get the quantity of this sku returned.

Specified by:
getQuantity in interface OrderReturnSku
Returns:
the quantity

getReturnAmount

public java.math.BigDecimal getReturnAmount()
Get the return amount for this item.

Specified by:
getReturnAmount in interface OrderReturnSku
Returns:
the return amount

getReturnAmountMoney

public Money getReturnAmountMoney(java.util.Currency currency)
Get the return amount as a Money object.

Specified by:
getReturnAmountMoney in interface OrderReturnSku
Parameters:
currency - The currency of the order.
Returns:
a Money object representing the return amount

setOrderSku

public void setOrderSku(OrderSku orderSku)
Set the orderSku for this return.

Specified by:
setOrderSku in interface OrderReturnSku
Parameters:
orderSku - the orderSku for this return.

setQuantity

public void setQuantity(int quantity)
Set the quantity of this sku returned.

Specified by:
setQuantity in interface OrderReturnSku
Parameters:
quantity - the quantity

setReturnAmount

public void setReturnAmount(java.math.BigDecimal returnAmount)
Set the return amount for this item.

Specified by:
setReturnAmount in interface OrderReturnSku
Parameters:
returnAmount - the return amount