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