Skip to content

Commit

Permalink
Merge pull request #45 from smartystreets/landon/new-intl-fields
Browse files Browse the repository at this point in the history
Add new International components
  • Loading branch information
RyanLCox1 authored Oct 18, 2024
2 parents c495ede + 84b4b63 commit d056f7b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
21 changes: 21 additions & 0 deletions src/sdk/InternationalStreetApi/Components.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,27 @@ public class Components
[DataMember(Name = "post_box_number")]
public string PostBoxNumber { get; set; }

[DataMember(Name = "additional_content")]
public string AdditionalContent { get; set; }

[DataMember(Name = "delivery_installation")]
public string DeliveryInstallation { get; set; }

[DataMember(Name = "delivery_installation_type")]
public string DeliveryInstallationType { get; set; }

[DataMember(Name = "delivery_installation_qualifier_name")]
public string DeliveryInstallationQualifierName { get; set; }

[DataMember(Name = "route")]
public string Route { get; set; }

[DataMember(Name = "route_number")]
public string RouteNumber { get; set; }

[DataMember(Name = "route_type")]
public string RouteType { get; set; }

#endregion
}
}
11 changes: 10 additions & 1 deletion src/tests/InternationalStreet/CandidateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public void TestAllFieldsFilledCorrectly()
"\"building_trailing_type\":\"44\",\"sub_building_type\":\"45\",\"sub_building_number\":\"46\"," +
"\"sub_building_name\":\"47\",\"sub_building\":\"48\",\"level_type\":\"48.1\",\"level_number\":\"48.2\"," +
"\"post_box\":\"49\",\"post_box_type\":\"50\"," +
"\"post_box_number\":\"51\"},\"metadata\":{\"latitude\":52.0,\"longitude\":53.0," +
"\"post_box_number\":\"51\",\"additional_content\":\"112\",\"delivery_installation\":\"113\"," +
"\"delivery_installation_type\":\"114\",\"delivery_installation_qualifier_name\":\"115\",\"route\":\"116\"," +
"\"route_number\":\"117\",\"route_type\":\"118\"},\"metadata\":{\"latitude\":52.0,\"longitude\":53.0," +
"\"geocode_precision\":\"54\",\"max_geocode_precision\":\"55\",\"address_format\":\"56\"}," +
"\"analysis\":{\"verification_status\":\"57\",\"address_precision\":\"58\",\"max_address_precision\":\"59\"," +
"\"changes\":{\"organization\":\"60\",\"address1\":\"61\",\"address2\":\"62\",\"address3\":\"63\"," +
Expand Down Expand Up @@ -126,6 +128,13 @@ public void TestAllFieldsFilledCorrectly()
Assert.AreEqual("49", components.PostBox);
Assert.AreEqual("50", components.PostBoxType);
Assert.AreEqual("51", components.PostBoxNumber);
Assert.AreEqual("112", components.AdditionalContent);
Assert.AreEqual("113", components.DeliveryInstallation);
Assert.AreEqual("114", components.DeliveryInstallationType);
Assert.AreEqual("115", components.DeliveryInstallationQualifierName);
Assert.AreEqual("116", components.Route);
Assert.AreEqual("117", components.RouteNumber);
Assert.AreEqual("118", components.RouteType);

#endregion

Expand Down

0 comments on commit d056f7b

Please sign in to comment.