Skip to content

Commit 9a3ab85

Browse files
committed
chore: remove create_list tracker endpoint function
1 parent c0b3e19 commit 9a3ab85

File tree

4 files changed

+4
-136
lines changed

4 files changed

+4
-136
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 deprecated `create_list` tracker endpoint function as it is no longer available via API
6+
37
## v7.4.3 (2024-09-16)
48

59
- Remove the custom DateDeserializer that contained a parsing issue. This change closes the related GitHub issue [#333](https://github.com/EasyPost/easypost-java/issues/333)

src/main/java/com/easypost/service/TrackerService.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,4 @@ public TrackerCollection apply(Map<String, Object> parameters) {
100100
}
101101
}, collection.getTrackers(), pageSize);
102102
}
103-
104-
/**
105-
* Create a list of Trackers.
106-
*
107-
* @param params Map of parameters used to create the Trackers.
108-
* @throws EasyPostException when the request fails.
109-
* @deprecated Use the create function instead. createList will be removed in a future release.
110-
*/
111-
@Deprecated public void createList(final Map<String, Object> params) throws EasyPostException {
112-
Map<String, Object> newParams = new HashMap<String, Object>();
113-
newParams.put("trackers", params);
114-
115-
String endpoint = "trackers/create_list";
116-
117-
Requestor.request(RequestMethod.POST, endpoint, newParams, Object.class, client);
118-
}
119103
}

src/test/cassettes/tracker/create_list.json

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

src/test/java/com/easypost/TrackerTest.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -208,30 +208,4 @@ public Map<String, Object> getNextPageParams() throws EndOfPaginationError {
208208
assertEquals(trackingCode, nextPageParams.get("tracking_code"));
209209
assertEquals(carrier, nextPageParams.get("carrier"));
210210
}
211-
212-
/**
213-
* Test creating a list of trackers.
214-
*
215-
* @throws EasyPostException when the request fails.
216-
*/
217-
@Test
218-
public void testCreateList() throws EasyPostException {
219-
vcr.setUpTest("create_list");
220-
221-
Map<String, Object> params = new HashMap<>();
222-
String[] trackingCodes = new String[] {
223-
"EZ1000000001",
224-
"EZ1000000002",
225-
"EZ1000000003"
226-
};
227-
228-
for (int i = 0; i < trackingCodes.length; i++) {
229-
Map<String, Object> tracker = new HashMap<>();
230-
231-
tracker.put("tracking_code", trackingCodes[i]);
232-
params.put(String.valueOf(i), tracker);
233-
}
234-
235-
assertDoesNotThrow(() -> vcr.client.tracker.createList(params));
236-
}
237211
}

0 commit comments

Comments
 (0)