public class DefaultConsignmentService extends java.lang.Object implements ConsignmentService
ConsignmentService| Constructor and Description |
|---|
DefaultConsignmentService() |
| Modifier and Type | Method and Description |
|---|---|
ConsignmentModel |
createConsignment(AbstractOrderModel order,
java.lang.String code,
java.util.List<AbstractOrderEntryModel> orderEntries)
Creates the consignment.
|
WarehouseModel |
getWarehouse(java.util.List<AbstractOrderEntryModel> orderEntries)
Gets the warehouse.
|
void |
setModelService(ModelService modelService) |
void |
setWarehouseService(WarehouseService warehouseService) |
public ConsignmentModel createConsignment(AbstractOrderModel order, java.lang.String code, java.util.List<AbstractOrderEntryModel> orderEntries) throws ConsignmentCreationException
ConsignmentServicecreateConsignment in interface ConsignmentServiceorder - the order. If Order is instance of OrderModel type then it is taken to relation to created consignmentcode - the codeorderEntries - the order entriesConsignmentCreationException - in the case of any inconsistency (e.g. warehouses not found)public WarehouseModel getWarehouse(java.util.List<AbstractOrderEntryModel> orderEntries)
ConsignmentServicegetWarehouse in interface ConsignmentServiceorderEntries - the order entriespublic void setModelService(ModelService modelService)
public void setWarehouseService(WarehouseService warehouseService)
Copyright © 2018 SAP SE. All Rights Reserved.