Class TimeInTransit

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

public final class TimeInTransit extends Object
  • Constructor Details

    • TimeInTransit

      public TimeInTransit()
  • Method Details

    • 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