Skip to content

Commit

Permalink
[feat] Add TrackingCodes parameter (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 authored Oct 9, 2024
1 parent 246faf7 commit 822932a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
10 changes: 10 additions & 0 deletions EasyPost/Parameters/Tracker/All.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using EasyPost.Utilities.Internal.Attributes;
Expand Down Expand Up @@ -51,10 +52,19 @@ public class All : BaseAllParameters<Models.API.Tracker>

/// <summary>
/// Only return trackers with the given tracking code.
/// Deprecated: Use <see cref="TrackingCodes"/> instead.
/// </summary>
// 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; }

/// <summary>
/// Only return trackers with the given tracking codes.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "tracking_codes")]
public List<string>? TrackingCodes { get; set; }

#endregion

/// <summary>
Expand Down

0 comments on commit 822932a

Please sign in to comment.