Skip to content

Commit

Permalink
chore: remove tracker create_list endpoint function
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Sep 23, 2024
1 parent 0f33c5d commit f00f337
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 192 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## Next Release

- Removes the deprecated `create_list` tracker endpoint function as it is no longer available via API

## v7.5.2 (2024-08-16)

- Fixes webhook validation when the `weight` field contains a float by converting it back into a float after conversion from a string (closes #467)
Expand Down
12 changes: 0 additions & 12 deletions src/services/tracker_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@ export default (easypostClient) =>
return this._create(url, wrappedParams);
}

/**
* Create multiple {@link Tracker trackers} in a single request.
* See {@link https://www.easypost.com/docs/api/node#trackers EasyPost API Documentation} for more information.
* @param {Object} [params] - The parameters to create trackers with.
* @deprecated Use the create function instead. createList will be removed in a future version.
*/
static async createList(params = {}) {
const newParams = { trackers: params };
const url = 'trackers/create_list';
await easypostClient._post(url, newParams);
}

/**
* Retrieve all {@link Tracker trackers} associated with the current authenticated user.
* See {@link https://www.easypost.com/docs/api/node#retrieve-a-list-of-trackers EasyPost API Documentation} for more information.
Expand Down

This file was deleted.

13 changes: 0 additions & 13 deletions test/services/tracker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,4 @@ describe('Tracker Service', function () {
}
}
});

it('creates trackers in bulk from a list of tracking codes', async function () {
await this.client.Tracker.createList({
0: { tracking_code: 'EZ1000000001' },
1: { tracking_code: 'EZ1000000002' },
2: { tracking_code: 'EZ1000000003' },
3: { tracking_code: 'EZ1000000004' },
}).then(
expect(function (result) {
result.not.to.throw();
}),
);
});
});

0 comments on commit f00f337

Please sign in to comment.