Interface ConsignmentTrackingFacade
- All Known Implementing Classes:
DefaultConsignmentTrackingFacade
public interface ConsignmentTrackingFacade
The facade interface of ConsignmentTracking
-
Method Summary
Modifier and TypeMethodDescriptiongetConsignmentByCode(String orderCode, String consignmentCode) find consignment by its code, if events is null, send a request to carrier to retrievegetConsignmentsByOrder(String orderCode) get all consignments under the ordergetTrackingUrlForConsignmentCode(String orderCode, String consignmentCode) get tracking provider service url
-
Method Details
-
getConsignmentByCode
find consignment by its code, if events is null, send a request to carrier to retrieve- Parameters:
orderCode- the code of this consignment's orderconsignmentCode- the consignment's code- Returns:
- Option of the consignment if it exists and empty optional otherwise
-
getTrackingUrlForConsignmentCode
get tracking provider service url- Parameters:
orderCode- the code of this consignment's orderconsignmentCode- the code of specific consignment- Returns:
- the url of tracking provider service for retrieving tracking events
-
getConsignmentsByOrder
get all consignments under the order- Parameters:
orderCode- the order code- Returns:
- the all consignment for the order
-