Interface ConsignmentService
- All Known Implementing Classes:
DefaultConsignmentService,DefaultPickupConsignmentService
public interface ConsignmentService
The ConsignmentService provides methods for creating consignments for orders.
-
Method Summary
Modifier and TypeMethodDescriptioncreateConsignment(AbstractOrderModel order, String code, List<AbstractOrderEntryModel> orderEntries) Creates the consignment.getWarehouse(List<AbstractOrderEntryModel> orderEntries) Gets the warehouse.
-
Method Details
-
createConsignment
ConsignmentModel createConsignment(AbstractOrderModel order, String code, List<AbstractOrderEntryModel> orderEntries) throws ConsignmentCreationException Creates the consignment.- Parameters:
order- the order. If Order is instance of OrderModel type then it is taken to relation to created consignmentorderEntries- the order entriescode- the code- Returns:
- the consignment model
- Throws:
ConsignmentCreationException- in the case of any inconsistency (e.g. warehouses not found)
-
getWarehouse
Gets the warehouse. Simple random one from possible- Parameters:
orderEntries- the order entries- Returns:
- the warehouse
-