Skip to content

Commit

Permalink
- Remove "required" validation for Shipment parameter of `Pickup.Cr…
Browse files Browse the repository at this point in the history
…eate` (#572)

- Prep for v6.5.2 release
  • Loading branch information
nwithan8 committed Jun 12, 2024
1 parent 0798d36 commit e5b2f3a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v6.5.2 (2024-06-12)

- Fix `Shipment` parameter requirement for `Pickup.Create` parameter set

## v6.5.1 (2024-06-10)

- Fix `Batch` object not allowed to be used in parameter sets due to missing `IBatchParameter` inheritance
Expand Down
2 changes: 1 addition & 1 deletion EasyPost.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>EasyPost-Official</id>
<title>EasyPost (Official)</title>
<version>6.5.1</version>
<version>6.5.2</version>
<authors>EasyPost</authors>
<owners>EasyPost</owners>
<projectUrl>https://www.easypost.com</projectUrl>
Expand Down
6 changes: 3 additions & 3 deletions EasyPost/Parameters/Pickup/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Create : BaseParameters<Models.API.Pickup>, IPickupParameter
public IAddressParameter? Address { get; set; }

/// <summary>
/// <see cref="Models.API.Batch"/> being set for pickup (if <see cref="Shipment"/> not provided).
/// <see cref="Models.API.Batch"/> being set for pickup (required if <see cref="Shipment"/> not provided).
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "pickup", "batch")]
public IBatchParameter? Batch { get; set; }
Expand Down Expand Up @@ -62,9 +62,9 @@ public class Create : BaseParameters<Models.API.Pickup>, IPickupParameter
public string? Reference { get; set; }

/// <summary>
/// <see cref="Models.API.Shipment"/> being set for pickup (if <see cref="Batch"/> not provided).
/// <see cref="Models.API.Shipment"/> being set for pickup (required if <see cref="Batch"/> not provided).
/// </summary>
[TopLevelRequestParameter(Necessity.Required, "pickup", "shipment")]
[TopLevelRequestParameter(Necessity.Optional, "pickup", "shipment")]
public IShipmentParameter? Shipment { get; set; }

#endregion
Expand Down
6 changes: 3 additions & 3 deletions EasyPost/Properties/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

// Version information for an assembly must follow semantic versioning
// When releasing a release candidate, append a 4th digit being the number of the release candidate
[assembly: AssemblyVersion("6.5.1")]
[assembly: AssemblyFileVersion("6.5.1")]
[assembly: AssemblyInformationalVersion("6.5.1")]
[assembly: AssemblyVersion("6.5.2")]
[assembly: AssemblyFileVersion("6.5.2")]
[assembly: AssemblyInformationalVersion("6.5.2")]

0 comments on commit e5b2f3a

Please sign in to comment.