Class TimeInTransit

java.lang.Object
com.easypost.model.TimeInTransit

public final class TimeInTransit extends Object
  • Constructor Details

    • TimeInTransit

      public TimeInTransit()
  • Method Details

    • getSmartRateAccuracy

      @Deprecated public int getSmartRateAccuracy(String percentile) throws EasyPostException
      Deprecated.
      Use getBySmartrateAccuracy(SmartrateAccuracy) instead. Deprecated: v5.5.0 - v7.0.0
      Get 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

      public int getBySmartrateAccuracy(SmartrateAccuracy accuracy) throws EasyPostException
      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