@MappedSuperclass public class BaseOrderItem extends DomainObject implements Auditable
Modifier and Type | Field and Description |
---|---|
protected Amount |
amount
Amount spent on ordering quantity items.If a product is purchased with N units ; then amount is for all N units. |
protected Double |
finalWeight
Final Weight (may include weight of product, Packaging etc)
|
protected String |
lastStatusReason
What was the reason for the last status Update.
|
protected Amount |
packagingAmount
Amount spent on packaging quantity items.If a product is purchased with N units ; then amount is for all N units. |
protected PaymentContext |
paymentContext |
protected ArrayList<String> |
promotionNames
List of any Promotion unique Names applicable
Maintaining the promotion names, since Promotions maybe removed from the DB and we want the relation to be weak and not require a referential integrity constraint in the data model. |
protected Double |
quantity |
protected Amount |
shippingAmount
Amount spent on shipping for ordering quantity items.If a product is purchased with N units ; then amount is for all N units. |
protected OrderStatus |
status |
protected Date |
updated |
Constructor and Description |
---|
BaseOrderItem() |
BaseOrderItem(BaseOrderItem item) |
BaseOrderItem(String json) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Amount |
getAmount()
Amount spent on ordering quantity items.If a product is purchased with N units ; then amount is for all N units. |
String |
getComments() |
Double |
getFinalWeight()
Final Weight (may include weight of product, Packaging etc)
|
String |
getLastStatusReason()
What was the reason for the last status Update.
|
Amount |
getPackagingAmount()
Amount spent on packaging for ordering quantity items.If a product is purchased with N units ; then amount is for all N units. |
PaymentContext |
getPaymentContext() |
List<String> |
getPromotionNames()
List of any Promotion unique Names applicable
Maintaining the promotion names, since Promotions maybe removed from the DB and we want the relation to be weak and not require a referential integrity constraint in the data model. |
Double |
getQuantity() |
Amount |
getShippingAmount()
Amount spent on shipping for ordering quantity items.If a product is purchased with N units ; then amount is for all N units. |
OrderStatus |
getStatus() |
Date |
getUpdated() |
int |
hashCode() |
void |
setAmount(Amount amount)
Amount spent on ordering quantity items.If a product is purchased with N units ; then amount is for all N units. |
void |
setComments(String comments) |
void |
setFinalWeight(Double finalWeight)
Final Weight (may include weight of product, Packaging etc)
|
void |
setLastStatusReason(String lastStatusReason)
What was the reason for the last status Update.
|
void |
setPackagingAmount(Amount packagingAmount)
Amount spent on packaging for ordering quantity items.If a product is purchased with N units ; then amount is for all N units. |
void |
setPaymentContext(PaymentContext paymentContext) |
void |
setPromotionNames(ArrayList<String> promotionNames)
List of any Promotion unique Names applicable
Maintaining the promotion names, since Promotions maybe removed from the DB and we want the relation to be weak and not require a referential integrity constraint in the data model. |
void |
setQuantity(Double quantity) |
void |
setShippingAmount(Amount shippingAmount)
Amount spent on shipping for ordering quantity items.If a product is purchased with N units ; then amount is for all N units. |
void |
setStatus(OrderStatus status) |
void |
setUpdated(Date updated) |
String |
toString() |
protected Date updated
protected Double quantity
protected Amount amount
Amount
spent on ordering quantity items.protected Amount shippingAmount
Amount
spent on shipping for ordering quantity items.protected Amount packagingAmount
Amount
spent on packaging quantity items.protected OrderStatus status
protected String lastStatusReason
protected ArrayList<String> promotionNames
protected Double finalWeight
protected PaymentContext paymentContext
public BaseOrderItem()
public BaseOrderItem(String json)
public BaseOrderItem(BaseOrderItem item)
public Date getUpdated()
public void setUpdated(Date updated)
public Double getQuantity()
public void setQuantity(Double quantity)
public Amount getAmount()
Amount
spent on ordering quantity items.public void setAmount(Amount amount)
Amount
spent on ordering quantity items.public Amount getShippingAmount()
Amount
spent on shipping for ordering quantity items.public void setShippingAmount(Amount shippingAmount)
Amount
spent on shipping for ordering quantity items.public Amount getPackagingAmount()
Amount
spent on packaging for ordering quantity items.public void setPackagingAmount(Amount packagingAmount)
Amount
spent on packaging for ordering quantity items.public OrderStatus getStatus()
public void setStatus(OrderStatus status)
public PaymentContext getPaymentContext()
public void setPaymentContext(PaymentContext paymentContext)
public List<String> getPromotionNames()
public void setPromotionNames(ArrayList<String> promotionNames)
public Double getFinalWeight()
public void setFinalWeight(Double finalWeight)
public String getLastStatusReason()
public void setLastStatusReason(String lastStatusReason)
public String getComments()
public void setComments(String comments)
Copyright © 2018. All rights reserved.