|
1 |
| -using System; |
2 | 1 | using System.Collections.Generic;
|
3 | 2 | using System.Threading;
|
4 | 3 | using System.Threading.Tasks;
|
@@ -62,34 +61,6 @@ public async Task<Tracker> Create(Parameters.Tracker.Create parameters, Cancella
|
62 | 61 | return await RequestAsync<Tracker>(Method.Post, "trackers", cancellationToken, parameters.ToDictionary());
|
63 | 62 | }
|
64 | 63 |
|
65 |
| - /// <summary> |
66 |
| - /// Create a list of <see cref="Tracker"/>s. |
67 |
| - /// </summary> |
68 |
| - /// <param name="parameters">A dictionary of tracking codes and carriers.</param> |
69 |
| - /// <param name="cancellationToken"><see cref="CancellationToken"/> to use for the HTTP request.</param> |
70 |
| - /// <returns><c>true</c> if successful, <c>false</c> otherwise.</returns> |
71 |
| - [CrudOperations.Create] |
72 |
| - [Obsolete("This method is deprecated. Please use TrackerService.Create() instead. This method will be removed in a future version.", false)] |
73 |
| - public async Task CreateList(Dictionary<string, object> parameters, CancellationToken cancellationToken = default) |
74 |
| - { |
75 |
| - parameters = parameters.Wrap("trackers"); |
76 |
| - // This endpoint does not return a response, so we simply send the request and only throw an exception if the API returns an error. |
77 |
| - await RequestAsync(Method.Post, "trackers/create_list", cancellationToken, parameters); |
78 |
| - } |
79 |
| - |
80 |
| - /// <summary> |
81 |
| - /// Create a list of <see cref="Tracker"/>s. |
82 |
| - /// </summary> |
83 |
| - /// <param name="parameters">Parameters to use to create the <see cref="Tracker"/>s.</param> |
84 |
| - /// <param name="cancellationToken"><see cref="CancellationToken"/> to use for the HTTP request.</param> |
85 |
| - /// <returns><c>true</c> if successful, <c>false</c> otherwise.</returns> |
86 |
| - [CrudOperations.Create] |
87 |
| - [Obsolete("This method is deprecated. Please use TrackerService.Create() instead. This method will be removed in a future version.", false)] |
88 |
| - public async Task CreateList(Parameters.Tracker.CreateList parameters, CancellationToken cancellationToken = default) |
89 |
| - { |
90 |
| - await RequestAsync(Method.Post, "trackers/create_list", cancellationToken, parameters.ToDictionary()); |
91 |
| - } |
92 |
| - |
93 | 64 | /// <summary>
|
94 | 65 | /// List all <see cref="Tracker"/>s.
|
95 | 66 | /// <a href="https://docs.easypost.com/docs/trackers#retrieve-all-trackers">Related API documentation</a>.
|
|
0 commit comments