public interface ConsignmentTrackingService
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,CarrierAdaptor> |
getAllCarrierAdaptors()
Get all carrier adaptors.
|
java.util.List<ConsignmentEventData> |
getConsignmentEvents(ConsignmentModel consignment)
used by controller to handle incremental routes from carrier
|
java.util.Optional<ConsignmentModel> |
getConsignmentForCode(java.lang.String orderCode,
java.lang.String consignmentCode)
Query a ConsignmentModel for code.
|
java.util.List<ConsignmentModel> |
getConsignmentsForOrder(java.lang.String orderCode)
Get all consignments under the order
|
int |
getDeliveryLeadTime(ConsignmentModel consignment)
provide the lead time of estimation from shipped to arrival
|
java.net.URL |
getTrackingUrlForConsignment(ConsignmentModel consignment)
tracking URL is given for display in frontend, if user wants to track package by jumping to carrier's website
|
boolean |
isTrackingIdValid(ConsignmentModel consignment)
check if the tracking ID is valid in a carrier provider
|
void |
updateConsignmentStatusForCode(java.lang.String orderCode,
java.lang.String consignmentCode,
ConsignmentStatus status)
update consignment status and set arrival date if complete
|
java.net.URL getTrackingUrlForConsignment(ConsignmentModel consignment)
consignment - the specific consignmentboolean isTrackingIdValid(ConsignmentModel consignment)
consignment - the specific consignmentjava.util.List<ConsignmentEventData> getConsignmentEvents(ConsignmentModel consignment)
consignment - the specific consignmentjava.util.Optional<ConsignmentModel> getConsignmentForCode(java.lang.String orderCode, java.lang.String consignmentCode)
orderCode - the code of this consignment's orderconsignmentCode - code of consignmentvoid updateConsignmentStatusForCode(java.lang.String orderCode,
java.lang.String consignmentCode,
ConsignmentStatus status)
orderCode - the code of this consignment's orderconsignmentCode - the specific consignmentCodestatus - the new status from carrierint getDeliveryLeadTime(ConsignmentModel consignment)
consignment - the specific consignmentjava.util.Map<java.lang.String,CarrierAdaptor> getAllCarrierAdaptors()
java.util.List<ConsignmentModel> getConsignmentsForOrder(java.lang.String orderCode)
orderCode - the order codeCopyright © 2018 SAP SE. All Rights Reserved.