Class SmartRateService
java.lang.Object
com.easypost.service.SmartRateService
-
Method Summary
Modifier and TypeMethodDescriptionestimateDeliveryDate
(Map<String, Object> params) Retrieve the estimated delivery date of each carrier-service level combination via the Smart Deliver By API, based on a specific ship date and origin-destination postal code pair.recommendShipDate
(Map<String, Object> params) Retrieve a recommended ship date for an existing Shipment via the Precision Shipping API, based on a specific desired delivery date.
-
Method Details
-
recommendShipDate
public RecommendShipDateForZipPairResult recommendShipDate(Map<String, Object> params) throws EasyPostExceptionRetrieve a recommended ship date for an existing Shipment via the Precision Shipping API, based on a specific desired delivery date.- Parameters:
params
- Parameters to include on the API call.- Returns:
- EstimatedDeliveryDate object.
- Throws:
EasyPostException
- When the request fails.
-
estimateDeliveryDate
public EstimateDeliveryDateForZipPairResult estimateDeliveryDate(Map<String, Object> params) throws EasyPostExceptionRetrieve the estimated delivery date of each carrier-service level combination via the Smart Deliver By API, based on a specific ship date and origin-destination postal code pair.- Parameters:
params
- Parameters to include on the API call.- Returns:
- EstimatedDeliveryDate object.
- Throws:
EasyPostException
- When the request fails.
-