@Entity public class RelatedOrder<O extends Order<I>,I extends OrderItem> extends Order<I>
Order
s. All related orders share the same root.Modifier and Type | Field and Description |
---|---|
protected O |
root
|
created, id, paymentMethod, purchaseDate, realized, statusDate, type, user
amount, finalWeight, lastStatusReason, packagingAmount, paymentContext, promotionNames, quantity, shippingAmount, status, updated
Constructor and Description |
---|
RelatedOrder() |
RelatedOrder(GenericEcomUser user,
PaymentContext paymentContext,
PaymentMethod paymentMethod,
Amount amount,
Date purchaseDate) |
RelatedOrder(GenericEcomUser user,
PaymentMethod paymentMethod) |
RelatedOrder(GenericEcomUser user,
PaymentMethod paymentMethod,
Amount amount) |
RelatedOrder(GenericEcomUser user,
PaymentMethod paymentMethod,
Amount amount,
Date purchaseDate) |
RelatedOrder(O root) |
RelatedOrder(RelatedOrder order) |
RelatedOrder(String json) |
Modifier and Type | Method and Description |
---|---|
O |
deriveRoot()
Will derive the root id for this Order
|
O |
getRoot()
|
Boolean |
getSucceded()
If another
RelatedOrder is created for this one that succeeds it. |
protected void |
set(O root)
Inherit some properties from root; if root is null then leave state unchanged
|
void |
setRoot(O root)
|
void |
setSucceded(Boolean succeded)
If another
RelatedOrder is created for this one that succeeds it. |
String |
toString() |
addItem, addTransaction, equals, getActors, getBitmask, getCreated, getDeliveryDetails, getFlowStatus, getId, getInvoiceId, getItems, getLastInvoiceDate, getParams, getPaymentMethod, getPurchaseDate, getRealized, getStatusDate, getSteps, getStrategiesVersion, getTransaction, getTransactionIds, getType, getUser, getUserContactDetails, hashCode, setActors, setBitmask, setCreated, setDeliveryDetails, setId, setInvoiceId, setItems, setLastInvoiceDate, setParams, setPaymentMethod, setPurchaseDate, setRealized, setStatus, setStatusDate, setSteps, setStrategiesVersion, setTransaction, setTransactionIds, setType, setUser, setUserContactDetails, synchStatusWithItems
getAmount, getComments, getFinalWeight, getLastStatusReason, getPackagingAmount, getPaymentContext, getPromotionNames, getQuantity, getShippingAmount, getStatus, getUpdated, setAmount, setComments, setFinalWeight, setLastStatusReason, setPackagingAmount, setPaymentContext, setPromotionNames, setQuantity, setShippingAmount, setUpdated
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUpdated
public RelatedOrder()
public RelatedOrder(String json)
public RelatedOrder(RelatedOrder order)
public RelatedOrder(GenericEcomUser user, PaymentMethod paymentMethod)
public RelatedOrder(GenericEcomUser user, PaymentMethod paymentMethod, Amount amount)
public RelatedOrder(GenericEcomUser user, PaymentMethod paymentMethod, Amount amount, Date purchaseDate)
public RelatedOrder(GenericEcomUser user, PaymentContext paymentContext, PaymentMethod paymentMethod, Amount amount, Date purchaseDate)
public RelatedOrder(O root)
protected void set(O root)
root
- as public O getRoot()
SubOrder
SubOrder
type, then the parent of it will be null.public void setRoot(O root)
SubOrder
SubOrder
type, then the parent of it will be null.public O deriveRoot()
public Boolean getSucceded()
RelatedOrder
is created for this one that succeeds it.public void setSucceded(Boolean succeded)
RelatedOrder
is created for this one that succeeds it.Copyright © 2018. All rights reserved.