From 822932a8f4179cd154ffd0d5e164b90a9bfebc27 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Wed, 9 Oct 2024 10:47:27 -0600 Subject: [PATCH] [feat] Add TrackingCodes parameter (#594) --- CHANGELOG.md | 1 + EasyPost/Parameters/Tracker/All.cs | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31a767e6..c6ee949c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Next Release - Removes the deprecated `create_list` tracker endpoint function as it is no longer available via API +- Adds `TrackingCodes` optional parameter to `Tracker.All` parameter set for listing trackers ## v6.7.3 (2024-09-17) diff --git a/EasyPost/Parameters/Tracker/All.cs b/EasyPost/Parameters/Tracker/All.cs index 8e7ba57e..97368a80 100644 --- a/EasyPost/Parameters/Tracker/All.cs +++ b/EasyPost/Parameters/Tracker/All.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using EasyPost.Utilities.Internal.Attributes; @@ -51,10 +52,19 @@ public class All : BaseAllParameters /// /// Only return trackers with the given tracking code. + /// Deprecated: Use instead. /// + // TODO: Remove in next major version. + [Obsolete("This property will be removed in a future version and replaced with TrackingCodes.")] [TopLevelRequestParameter(Necessity.Optional, "tracking_code")] public string? TrackingCode { get; set; } + /// + /// Only return trackers with the given tracking codes. + /// + [TopLevelRequestParameter(Necessity.Optional, "tracking_codes")] + public List? TrackingCodes { get; set; } + #endregion ///