Class SmartRateCollection

java.lang.Object
com.easypost.model.SmartRateCollection

public final class SmartRateCollection extends Object
  • Constructor Details

    • SmartRateCollection

      public SmartRateCollection()
      Constructor.
    • SmartRateCollection

      public SmartRateCollection(List<SmartRate> smartRates)
      Create a SmartRateCollection from a list of rates.
      Parameters:
      smartRates - List of Smartrate objects
  • Method Details

    • getSmartRates

      public List<SmartRate> getSmartRates()
      Get this SmartRateCollection's Smartrate objects.
      Returns:
      List of Smartrate objects.
    • setSmartRates

      public void setSmartRates(List<SmartRate> smartRates)
      Set this SmartRateCollection's Smartrate objects.
      Parameters:
      smartRates - List of Smartrate objects.
    • addRate

      public void addRate(SmartRate rate)
      Add a SmartRate object to this SmartRateCollection.
      Parameters:
      rate - Rate object