From 8037ddca4ff185345a2efd093c24dca5b5da2eae Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 21 Apr 2026 09:27:14 -0600 Subject: [PATCH] fix: mapping of Zip and Country on RegisterAddress (closes #656) --- CHANGELOG.md | 4 ++++ EasyPost.nuspec | 2 +- EasyPost/Parameters/FedExRegistration/RegisterAddress.cs | 4 ++-- EasyPost/Properties/VersionInfo.cs | 6 +++--- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ee98888..ed5f7130 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## v7.7.2 (2026-04-21) + +- Corrects mapping of `Zip` and `Country` params for `RegisterAddress` parameter set to `postal_code` and `country_code` on the request + ## v7.7.1 (2026-04-03) - Fixes the type of the Shipment option `Machinable` from `string` to `bool` (closes #653) diff --git a/EasyPost.nuspec b/EasyPost.nuspec index 475ac54c..7fc02d2b 100644 --- a/EasyPost.nuspec +++ b/EasyPost.nuspec @@ -3,7 +3,7 @@ EasyPost-Official EasyPost (Official) - 7.7.1 + 7.7.2 EasyPost EasyPost https://www.easypost.com diff --git a/EasyPost/Parameters/FedExRegistration/RegisterAddress.cs b/EasyPost/Parameters/FedExRegistration/RegisterAddress.cs index 465a3cc4..c3ca7cd1 100644 --- a/EasyPost/Parameters/FedExRegistration/RegisterAddress.cs +++ b/EasyPost/Parameters/FedExRegistration/RegisterAddress.cs @@ -52,13 +52,13 @@ public class RegisterAddress : BaseParameters /// ZIP code for the FedEx registration. /// - [TopLevelRequestParameter(Necessity.Optional, "address_validation", "zip")] + [TopLevelRequestParameter(Necessity.Optional, "address_validation", "postal_code")] public string? Zip { get; set; } /// /// Country code for the FedEx registration. /// - [TopLevelRequestParameter(Necessity.Optional, "address_validation", "country")] + [TopLevelRequestParameter(Necessity.Optional, "address_validation", "country_code")] public string? Country { get; set; } /// diff --git a/EasyPost/Properties/VersionInfo.cs b/EasyPost/Properties/VersionInfo.cs index 10d18ca0..5f6386be 100644 --- a/EasyPost/Properties/VersionInfo.cs +++ b/EasyPost/Properties/VersionInfo.cs @@ -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("7.7.1")] -[assembly: AssemblyFileVersion("7.7.1")] -[assembly: AssemblyInformationalVersion("7.7.1")] +[assembly: AssemblyVersion("7.7.2")] +[assembly: AssemblyFileVersion("7.7.2")] +[assembly: AssemblyInformationalVersion("7.7.2")]