Skip to content

Commit 2036b73

Browse files
authored
fix: mapping of Zip and Country on RegisterAddress (closes #656) (#657)
# Description The mapping was incorrect for these params. Leaving the invokable names the same to avoid breaking changes, correcting the name of the param in the request to match expectation of the API. Closes #656 <!-- Please provide a general summary of your PR changes and link any related issues or other pull requests. --> # Testing <!-- Please provide details on how you tested this code. See below. - All pull requests must be tested (unit tests where possible with accompanying cassettes, or provide a screenshot of end-to-end testing when unit tests are not possible) - New features must get a new unit test - Bug fixes/refactors must re-record existing cassettes --> # Pull Request Type Please select the option(s) that are relevant to this PR. - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Improvement (fixing a typo, updating readme, renaming a variable name, etc)
1 parent f334de6 commit 2036b73

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## v7.7.2 (2026-04-21)
4+
5+
- Corrects mapping of `Zip` and `Country` params for `RegisterAddress` parameter set to `postal_code` and `country_code` on the request
6+
37
## v7.7.1 (2026-04-03)
48

59
- Fixes the type of the Shipment option `Machinable` from `string` to `bool` (closes #653)

EasyPost.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>EasyPost-Official</id>
55
<title>EasyPost (Official)</title>
6-
<version>7.7.1</version>
6+
<version>7.7.2</version>
77
<authors>EasyPost</authors>
88
<owners>EasyPost</owners>
99
<projectUrl>https://www.easypost.com</projectUrl>

EasyPost/Parameters/FedExRegistration/RegisterAddress.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ public class RegisterAddress : BaseParameters<Models.API.FedExAccountValidationR
5252
/// <summary>
5353
/// ZIP code for the FedEx registration.
5454
/// </summary>
55-
[TopLevelRequestParameter(Necessity.Optional, "address_validation", "zip")]
55+
[TopLevelRequestParameter(Necessity.Optional, "address_validation", "postal_code")]
5656
public string? Zip { get; set; }
5757

5858
/// <summary>
5959
/// Country code for the FedEx registration.
6060
/// </summary>
61-
[TopLevelRequestParameter(Necessity.Optional, "address_validation", "country")]
61+
[TopLevelRequestParameter(Necessity.Optional, "address_validation", "country_code")]
6262
public string? Country { get; set; }
6363

6464
/// <summary>

EasyPost/Properties/VersionInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
// Version information for an assembly must follow semantic versioning
44
// When releasing a release candidate, append a 4th digit being the number of the release candidate
5-
[assembly: AssemblyVersion("7.7.1")]
6-
[assembly: AssemblyFileVersion("7.7.1")]
7-
[assembly: AssemblyInformationalVersion("7.7.1")]
5+
[assembly: AssemblyVersion("7.7.2")]
6+
[assembly: AssemblyFileVersion("7.7.2")]
7+
[assembly: AssemblyInformationalVersion("7.7.2")]

0 commit comments

Comments
 (0)