@@ -139,23 +139,6 @@ public Shipment newRates(final String id, final Map<String, Object> params) thro
139139 return Requestor .request (RequestMethod .POST , endpoint , params , Shipment .class , client );
140140 }
141141
142- /**
143- * Get SmartRates for this Shipment.
144- *
145- * @param params The options for the query.
146- * @param id The ID of shipment.
147- * @return List of SmartRate objects
148- * @throws EasyPostException when the request fails.
149- * @deprecated Use {@link #smartrates(String, Map)} instead.
150- * Deprecated: v5.5.0 - v7.0.0
151- */
152- @ Deprecated
153- @ InlineMe (replacement = "this.smartrates(id, params)" )
154- public final List <SmartRate > getSmartrates (final String id , final Map <String , Object > params )
155- throws EasyPostException {
156- return this .smartrates (id , params );
157- }
158-
159142 /**
160143 * Get SmartRate for this Shipment.
161144 *
@@ -300,28 +283,6 @@ public Shipment insure(final String id, final Map<String, Object> params) throws
300283 return Requestor .request (RequestMethod .POST , endpoint , params , Shipment .class , client );
301284 }
302285
303- /**
304- * Get the lowest SmartRate for this Shipment.
305- *
306- * @param id The ID of shipment.
307- * @param deliveryDay Delivery days restriction to use when filtering.
308- * @param deliveryAccuracy Delivery days accuracy restriction to use when
309- * filtering.
310- * @return lowest SmartRate object
311- * @throws EasyPostException when the request fails.
312- * @deprecated use {@link #lowestSmartRate(String, int, SmartrateAccuracy)} instead.
313- * Deprecated: v5.5.0 - v7.0.0
314- */
315- @ Deprecated
316- @ InlineMe (
317- replacement = "this.lowestSmartRate(id, deliveryDay, SmartrateAccuracy.getByKeyName(deliveryAccuracy))" ,
318- imports = "com.easypost.model.SmartrateAccuracy"
319- )
320- public final SmartRate lowestSmartRate (final String id , int deliveryDay , String deliveryAccuracy )
321- throws EasyPostException {
322- return this .lowestSmartRate (id , deliveryDay , SmartrateAccuracy .getByKeyName (deliveryAccuracy ));
323- }
324-
325286 /**
326287 * Get the lowest SmartRate for this Shipment.
327288 *
@@ -341,43 +302,6 @@ public SmartRate lowestSmartRate(final String id, final int deliveryDay, Smartra
341302 return lowestSmartrate ;
342303 }
343304
344- /**
345- * Get SmartRates for this Shipment.
346- *
347- * @param id The ID of shipment.
348- * @return List of SmartRate objects
349- * @throws EasyPostException when the request fails.
350- * @deprecated Use {@link #smartrates(String, Map)} instead.
351- * Deprecated: v5.5.0 - v7.0.0
352- */
353- @ Deprecated
354- @ InlineMe (replacement = "this.smartrates(id, null)" )
355- public final List <SmartRate > getSmartrates (final String id ) throws EasyPostException {
356- return this .smartrates (id , null );
357- }
358-
359- /**
360- * Get the lowest SmartRate from a list of SmartRates.
361- *
362- * @param smartRates List of SmartRates to filter from.
363- * @param deliveryDay Delivery days restriction to use when filtering.
364- * @param deliveryAccuracy Delivery days accuracy restriction to use when
365- * filtering.
366- * @return lowest SmartRate object
367- * @throws EasyPostException when the request fails.
368- * @deprecated Use {@link #findLowestSmartrate(List, int, SmartrateAccuracy)} instead.
369- * Deprecated: v5.5.0 - v7.0.0
370- */
371- @ Deprecated
372- @ InlineMe (replacement =
373- "this.findLowestSmartrate(smartRates, deliveryDay, SmartrateAccuracy.getByKeyName(deliveryAccuracy))" ,
374- imports = "com.easypost.model.SmartrateAccuracy"
375- )
376- public final SmartRate getLowestSmartRate (final List <SmartRate > smartRates ,
377- int deliveryDay , String deliveryAccuracy ) throws EasyPostException {
378- return findLowestSmartrate (smartRates , deliveryDay , SmartrateAccuracy .getByKeyName (deliveryAccuracy ));
379- }
380-
381305 /**
382306 * Find the lowest SmartRate from a list of SmartRates.
383307 *
0 commit comments