Package org.openwms.wms.shipping.api
Class ShippingOrderVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<ShippingOrderVO>
org.ameba.http.AbstractBase<ShippingOrderVO>
org.openwms.wms.shipping.api.ShippingOrderVO
- All Implemented Interfaces:
Serializable
public class ShippingOrderVO
extends org.ameba.http.AbstractBase<ShippingOrderVO>
implements Serializable
A ShippingOrderVO is the envelope that represents a customer order and stores some general information along the order positions.
- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
A customer number.Arbitrary detail information stored along an order.private ZonedDateTime
Timestamp until when the order needs to be processed (time of shipping can be different).private @NotEmpty(message="{owms.wms.shp.orderId}",groups=Create.class) String
The unique order ID.private String
private String
The persistent identifier.private @Size(min=1,message="{owms.wms.shp.positions}",groups=Create.class) List
<@Valid ShippingOrderPositionVO> A list of positions.private Integer
A priority for processing order.private String
Some arbitrary shipping type, like DHL, FedEx etc.private String
An intermediate or final target destination for the ShippingOrder that is used in the allocation strategy.private ZonedDateTime
Timestamp when the Order should be started earliest.private String
How the ShippingOrder should be processed: MANUAL: Manual processing means just creation no further processing AUTOMATIC: Orders are created and processed directly -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getpKey()
int
hashCode()
boolean
boolean
boolean
boolean
hasPKey()
boolean
boolean
boolean
void
setCustomerNo
(String customerNo) void
setDetails
(Map<String, String> details) void
setLatestDueDate
(ZonedDateTime latestDueDate) void
setOrderId
(String orderId) void
setOrderState
(String orderState) void
void
setPositions
(List<ShippingOrderPositionVO> positions) void
setPriority
(Integer priority) void
setShippingType
(String shippingType) void
void
setStartDate
(ZonedDateTime startDate) void
setStartMode
(String startMode) toString()
Methods inherited from class org.ameba.http.AbstractBase
getOl, setOl
Methods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks
-
Field Details
-
pKey
The persistent identifier. -
orderId
@NotEmpty(message="{owms.wms.shp.orderId}", groups=Create.class) private @NotEmpty(message="{owms.wms.shp.orderId}",groups=Create.class) String orderIdThe unique order ID. -
customerNo
A customer number. -
orderState
-
startMode
How the ShippingOrder should be processed:- MANUAL: Manual processing means just creation no further processing
- AUTOMATIC: Orders are created and processed directly
-
shippingType
Some arbitrary shipping type, like DHL, FedEx etc. -
shipTo
An intermediate or final target destination for the ShippingOrder that is used in the allocation strategy. -
priority
A priority for processing order. -
latestDueDate
Timestamp until when the order needs to be processed (time of shipping can be different). -
startDate
Timestamp when the Order should be started earliest. -
positions
@Size(min=1, message="{owms.wms.shp.positions}", groups=Create.class) private @Size(min=1,message="{owms.wms.shp.positions}",groups=Create.class) List<@Valid ShippingOrderPositionVO> positionsA list of positions. -
details
Arbitrary detail information stored along an order.
-
-
Constructor Details
-
ShippingOrderVO
private ShippingOrderVO() -
ShippingOrderVO
-
-
Method Details
-
getpKey
-
hasPKey
public boolean hasPKey() -
setpKey
-
getOrderId
-
hasOrderId
public boolean hasOrderId() -
getCustomerNo
-
setCustomerNo
-
getOrderState
-
hasOrderState
public boolean hasOrderState() -
setOrderState
-
getStartMode
-
getShippingType
-
setShippingType
-
getPriority
-
hasPriority
public boolean hasPriority() -
getLatestDueDate
-
setStartMode
-
setPriority
-
setLatestDueDate
-
setStartDate
-
setOrderId
-
getShipTo
-
setShipTo
-
getStartDate
-
getPositions
-
setPositions
-
getDetails
-
setDetails
-
hasStartMode
public boolean hasStartMode() -
hasLatestDueDate
public boolean hasLatestDueDate() -
hasStartDate
public boolean hasStartDate() -
equals
- Overrides:
equals
in classorg.springframework.hateoas.RepresentationModel<ShippingOrderVO>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.springframework.hateoas.RepresentationModel<ShippingOrderVO>
-
toString
- Overrides:
toString
in classorg.springframework.hateoas.RepresentationModel<ShippingOrderVO>
-