Class TimeInTransit
java.lang.Object
com.easypost.model.TimeInTransit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getBySmartrateAccuracy
(SmartrateAccuracy accuracy) Get the delivery accuracy of a specific percentile of this TimeInTransit.int
getSmartRateAccuracy
(String percentile) Deprecated.
-
Constructor Details
-
TimeInTransit
public TimeInTransit()
-
-
Method Details
-
getSmartRateAccuracy
Deprecated.UsegetBySmartrateAccuracy(SmartrateAccuracy)
instead. Deprecated: v5.5.0 - v7.0.0Get the delivery accuracy of a specific percentile of this TimeInTransit.- Parameters:
percentile
- the percentile to find the corresponding accuracy for- Returns:
- the delivery accuracy of the specified percentile
- Throws:
EasyPostException
- when the percentile is not valid
-
getBySmartrateAccuracy
Get the delivery accuracy of a specific percentile of this TimeInTransit.- Parameters:
accuracy
- the SmartrateAccuracy to find the corresponding accuracy for- Returns:
- the delivery accuracy of the specified percentile
- Throws:
EasyPostException
- when the percentile is not valid
-
getBySmartrateAccuracy(SmartrateAccuracy)
instead.