Skip to content

Commit 30ab3ab

Browse files
authored
Merge pull request #177 from EasyPost/removes_all_parcels
chore: remove unusable ParcelCollection and all function for Parcel
2 parents 569ff59 + 1156a2b commit 30ab3ab

File tree

3 files changed

+4
-69
lines changed

3 files changed

+4
-69
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## NEXT RELEASE
4+
5+
- Removes the unusable `ParcelCollection` and `all` function of the Parcel object
6+
37
## v5.8.1 (2022-08-03)
48

59
- Fixes a bug where an erroneous API call to retrieve smartrates would be made behind the scenes whenever a shipment object was updated locally from the API (such as when regenerating rates) due to the deprecated function name being called `getSmartrates` and the library assuming this was a getter and attempting to use it to update the shipment data

src/main/java/com/easypost/model/Parcel.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -170,27 +170,4 @@ public static Parcel retrieve(final String id) throws EasyPostException {
170170
public static Parcel retrieve(final String id, final String apiKey) throws EasyPostException {
171171
return request(RequestMethod.GET, instanceURL(Parcel.class, id), null, Parcel.class, apiKey);
172172
}
173-
174-
/**
175-
* Get a list of Parcels.
176-
*
177-
* @param params the parameters to filter the list with.
178-
* @return ParcelCollection object.
179-
* @throws EasyPostException when the request fails.
180-
*/
181-
public static ParcelCollection all(final Map<String, Object> params) throws EasyPostException {
182-
return all(params, null);
183-
}
184-
185-
/**
186-
* Get a list of Parcels.
187-
*
188-
* @param params the parameters to filter the list with.
189-
* @param apiKey API key to use in request (overrides default API key).
190-
* @return ParcelCollection object.
191-
* @throws EasyPostException when the request fails.
192-
*/
193-
public static ParcelCollection all(final Map<String, Object> params, final String apiKey) throws EasyPostException {
194-
return request(RequestMethod.GET, classURL(Parcel.class), params, ParcelCollection.class, apiKey);
195-
}
196173
}

src/main/java/com/easypost/model/ParcelCollection.java

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)