From 4717de37b9305e45a6562cbf7ded845c7c47f214 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Tue, 13 Aug 2024 09:58:20 -0600 Subject: [PATCH] - Include "verify" and "verify_strict" parameters for Address when creating as part of Shipment et. al creation request (#582) --- CHANGELOG.md | 4 ++++ EasyPost/Parameters/Address/Create.cs | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) 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; } ///