-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from easykeys/bug/fedex/api/addressvalidation
Updated versioning and enhanced JSON serialization
- Loading branch information
Showing
9 changed files
with
131 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mode: Mainline | ||
next-version: 4.0.0 | ||
next-version: 4.0.1 | ||
branches: | ||
feature: | ||
tag: preview | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
src/EasyKeys.Shipping.FedEx.AddressValidation/Client/V1/Models/Response/Alert.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
|
||
public class Alert | ||
{ | ||
[JsonPropertyName("code")] | ||
public string Code { get; set; } = string.Empty; | ||
|
||
[JsonPropertyName("message")] | ||
public string Message { get; set; } = string.Empty; | ||
|
||
[JsonPropertyName("alertType")] | ||
public string AlertType { get; set; } = string.Empty; | ||
} |
81 changes: 81 additions & 0 deletions
81
src/EasyKeys.Shipping.FedEx.AddressValidation/Client/V1/Models/Response/Attributes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
|
||
public class Attributes | ||
{ | ||
[JsonPropertyName("POBox")] | ||
public bool? POBox { get; set; } | ||
|
||
[JsonPropertyName("POBoxOnlyZIP")] | ||
public bool? POBoxOnlyZIP { get; set; } | ||
|
||
[JsonPropertyName("SplitZip")] | ||
public bool? SplitZip { get; set; } | ||
|
||
[JsonPropertyName("SuiteRequiredButMissing")] | ||
public bool? SuiteRequiredButMissing { get; set; } | ||
|
||
[JsonPropertyName("InvalidSuiteNumber")] | ||
public bool? InvalidSuiteNumber { get; set; } | ||
|
||
[JsonPropertyName("ResolutionInput")] | ||
public string? ResolutionInput { get; set; } | ||
|
||
[JsonPropertyName("DPV")] | ||
public bool? DPV { get; set; } | ||
|
||
[JsonPropertyName("ResolutionMethod")] | ||
public string? ResolutionMethod { get; set; } | ||
|
||
[JsonPropertyName("DataVintage")] | ||
public string? DataVintage { get; set; } | ||
|
||
[JsonPropertyName("MatchSource")] | ||
public string? MatchSource { get; set; } | ||
|
||
[JsonPropertyName("CountrySupported")] | ||
public bool? CountrySupported { get; set; } | ||
|
||
[JsonPropertyName("ValidlyFormed")] | ||
public bool? ValidlyFormed { get; set; } | ||
|
||
[JsonPropertyName("Matched")] | ||
public bool? Matched { get; set; } | ||
|
||
[JsonPropertyName("Resolved")] | ||
public bool? Resolved { get; set; } | ||
|
||
[JsonPropertyName("Inserted")] | ||
public bool? Inserted { get; set; } | ||
|
||
[JsonPropertyName("MultiUnitBase")] | ||
public bool? MultiUnitBase { get; set; } | ||
|
||
[JsonPropertyName("ZIP11Match")] | ||
public bool? ZIP11Match { get; set; } | ||
|
||
[JsonPropertyName("ZIP4Match")] | ||
public bool? ZIP4Match { get; set; } | ||
|
||
[JsonPropertyName("UniqueZIP")] | ||
public bool? UniqueZIP { get; set; } | ||
|
||
[JsonPropertyName("StreetAddress")] | ||
public bool? StreetAddress { get; set; } | ||
|
||
[JsonPropertyName("RRConversion")] | ||
public bool? RRConversion { get; set; } | ||
|
||
[JsonPropertyName("ValidMultiUnit")] | ||
public bool? ValidMultiUnit { get; set; } | ||
|
||
[JsonPropertyName("AddressType")] | ||
public string? AddressType { get; set; } | ||
|
||
[JsonPropertyName("AddressPrecision")] | ||
public string? AddressPrecision { get; set; } | ||
|
||
[JsonPropertyName("MultipleMatches")] | ||
public bool? MultipleMatches { get; set; } | ||
} |
8 changes: 0 additions & 8 deletions
8
src/EasyKeys.Shipping.FedEx.AddressValidation/Client/V1/Models/Response/CustomerMessage.cs
This file was deleted.
Oops, something went wrong.
8 changes: 6 additions & 2 deletions
8
src/EasyKeys.Shipping.FedEx.AddressValidation/Client/V1/Models/Response/Output.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
|
||
public class Output | ||
{ | ||
[JsonPropertyName("resolvedAddresses")] | ||
public List<ResolvedAddress>? ResolvedAddresses { get; set; } | ||
|
||
public List<Alert>? Alerts { get; set; } | ||
[JsonPropertyName("alerts")] | ||
public List<Alert> Alerts { get; set; } = new (); | ||
} |
7 changes: 6 additions & 1 deletion
7
src/EasyKeys.Shipping.FedEx.AddressValidation/Client/V1/Models/Response/ParsedPostalCode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
|
||
public class ParsedPostalCode | ||
{ | ||
[JsonPropertyName("base")] | ||
public string? Base { get; set; } | ||
|
||
[JsonPropertyName("addOn")] | ||
public string? AddOn { get; set; } | ||
|
||
[JsonPropertyName("deliveryPoint")] | ||
public string? DeliveryPoint { get; set; } | ||
} |
8 changes: 6 additions & 2 deletions
8
src/EasyKeys.Shipping.FedEx.AddressValidation/Client/V1/Models/Response/ResolutionToken.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
|
||
public class ResolutionToken | ||
{ | ||
public bool Changed { get; set; } | ||
[JsonPropertyName("changed")] | ||
public bool? Changed { get; set; } | ||
|
||
[JsonPropertyName("value")] | ||
public string? Value { get; set; } | ||
} |
30 changes: 24 additions & 6 deletions
30
src/EasyKeys.Shipping.FedEx.AddressValidation/Client/V1/Models/Response/ResolvedAddress.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,54 @@ | ||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace EasyKeys.Shipping.FedEx.AddressValidation.Client.V1.Models.Response; | ||
|
||
public class ResolvedAddress | ||
{ | ||
[JsonPropertyName("streetLinesToken")] | ||
public string[]? StreetLinesToken { get; set; } | ||
|
||
[JsonPropertyName("city")] | ||
public string? City { get; set; } | ||
|
||
[JsonPropertyName("stateOrProvinceCode")] | ||
public string? StateOrProvinceCode { get; set; } | ||
|
||
[JsonPropertyName("countryCode")] | ||
public string? CountryCode { get; set; } | ||
|
||
public List<CustomerMessage>? CustomerMessage { get; set; } | ||
[JsonPropertyName("customerMessage")] | ||
public List<ResolutionToken>? CustomerMessage { get; set; } | ||
|
||
[JsonPropertyName("cityToken")] | ||
public List<ResolutionToken>? CityToken { get; set; } | ||
|
||
[JsonPropertyName("postalCodeToken")] | ||
public ResolutionToken? PostalCodeToken { get; set; } | ||
|
||
[JsonPropertyName("parsedPostalCode")] | ||
public ParsedPostalCode? ParsedPostalCode { get; set; } | ||
|
||
[JsonPropertyName("classification")] | ||
public string? Classification { get; set; } | ||
|
||
public bool PostOfficeBox { get; set; } | ||
[JsonPropertyName("postOfficeBox")] | ||
public bool? PostOfficeBox { get; set; } | ||
|
||
public bool NormalizedStatusNameDPV { get; set; } | ||
[JsonPropertyName("normalizedStatusNameDPV")] | ||
public bool? NormalizedStatusNameDPV { get; set; } | ||
|
||
[JsonPropertyName("standardizedStatusNameMatchSource")] | ||
public string? StandardizedStatusNameMatchSource { get; set; } | ||
|
||
[JsonPropertyName("resolutionMethodName")] | ||
public string? ResolutionMethodName { get; set; } | ||
|
||
public bool RuralRouteHighwayContract { get; set; } | ||
[JsonPropertyName("ruralRouteHighwayContract")] | ||
public bool? RuralRouteHighwayContract { get; set; } | ||
|
||
public bool GeneralDelivery { get; set; } | ||
[JsonPropertyName("generalDelivery")] | ||
public bool? GeneralDelivery { get; set; } | ||
|
||
[JsonPropertyName("attributes")] | ||
public Dictionary<string, object> Attributes { get; set; } = new (); | ||
} |