Skip to content

Commit

Permalink
- Include "verify" and "verify_strict" parameters for Address when cr…
Browse files Browse the repository at this point in the history
…eating as part of Shipment et. al creation request (#582)
  • Loading branch information
nwithan8 authored Aug 13, 2024
1 parent fb98ab6 commit 4717de3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## Next Release

- Fix inclusion of `Verify` and `VerifyStrict` parameters when creating an Address as part of a larger object creation (e.g. Shipment, Order, etc.)

## v6.7.1 (2024-08-09)

- Fix pagination parameters for `GetNextPageOfChildren` function for User service
Expand Down
12 changes: 10 additions & 2 deletions EasyPost/Parameters/Address/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,22 @@ public class Create : BaseParameters<Models.API.Address>, IAddressParameter
/// Whether to enforce strict verification for the new <see cref="Models.API.Address"/>.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "verify_strict")]
// "verify_strict" is not included when address creation parameters are used in a non-address creation request.
[NestedRequestParameter(typeof(Shipment.Create), Necessity.Optional, "verify_strict")]
[NestedRequestParameter(typeof(Insurance.Create), Necessity.Optional, "verify_strict")]
[NestedRequestParameter(typeof(Order.Create), Necessity.Optional, "verify_strict")]
[NestedRequestParameter(typeof(Pickup.Create), Necessity.Optional, "verify_strict")]
[NestedRequestParameter(typeof(Beta.Rate.Retrieve), Necessity.Optional, "verify_strict")]
public bool? VerifyStrict { get; set; }

/// <summary>
/// Whether to enforce verification for the new <see cref="Models.API.Address"/>.
/// </summary>
[TopLevelRequestParameter(Necessity.Optional, "verify")]
// "verify" is not included when address creation parameters are used in a non-address creation request.
[NestedRequestParameter(typeof(Shipment.Create), Necessity.Optional, "verify")]
[NestedRequestParameter(typeof(Insurance.Create), Necessity.Optional, "verify")]
[NestedRequestParameter(typeof(Order.Create), Necessity.Optional, "verify")]
[NestedRequestParameter(typeof(Pickup.Create), Necessity.Optional, "verify")]
[NestedRequestParameter(typeof(Beta.Rate.Retrieve), Necessity.Optional, "verify")]
public bool? Verify { get; set; }

/// <summary>
Expand Down

0 comments on commit 4717de3

Please sign in to comment.