Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Include "verify" and "verify_strict" parameters for Address creation #582

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading