diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e62039a6..b5ad3bb65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/EasyPost/Parameters/Address/Create.cs b/EasyPost/Parameters/Address/Create.cs index 63bf7adf3..e09b7947e 100644 --- a/EasyPost/Parameters/Address/Create.cs +++ b/EasyPost/Parameters/Address/Create.cs @@ -170,14 +170,22 @@ public class Create : BaseParameters, IAddressParameter /// Whether to enforce strict verification for the new . /// [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; } /// /// Whether to enforce verification for the new . /// [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; } ///