Skip to content

Commit 822932a

Browse files
authored
[feat] Add TrackingCodes parameter (#594)
1 parent 246faf7 commit 822932a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Next Release
44

55
- Removes the deprecated `create_list` tracker endpoint function as it is no longer available via API
6+
- Adds `TrackingCodes` optional parameter to `Tracker.All` parameter set for listing trackers
67

78
## v6.7.3 (2024-09-17)
89

EasyPost/Parameters/Tracker/All.cs

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Collections.Generic;
23
using System.Diagnostics.CodeAnalysis;
34
using EasyPost.Utilities.Internal.Attributes;
@@ -51,10 +52,19 @@ public class All : BaseAllParameters<Models.API.Tracker>
5152

5253
/// <summary>
5354
/// Only return trackers with the given tracking code.
55+
/// Deprecated: Use <see cref="TrackingCodes"/> instead.
5456
/// </summary>
57+
// TODO: Remove in next major version.
58+
[Obsolete("This property will be removed in a future version and replaced with TrackingCodes.")]
5559
[TopLevelRequestParameter(Necessity.Optional, "tracking_code")]
5660
public string? TrackingCode { get; set; }
5761

62+
/// <summary>
63+
/// Only return trackers with the given tracking codes.
64+
/// </summary>
65+
[TopLevelRequestParameter(Necessity.Optional, "tracking_codes")]
66+
public List<string>? TrackingCodes { get; set; }
67+
5868
#endregion
5969

6070
/// <summary>

0 commit comments

Comments
 (0)