Skip to content

Commit

Permalink
Added new fields to international street.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Amundson committed Oct 2, 2024
1 parent 4ce1eb9 commit f9ee104
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions international-street-api/candidate.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ type (
PostBox string `json:"post_box,omitempty"`
PostBoxType string `json:"post_box_type,omitempty"`
PostBoxNumber string `json:"post_box_number,omitempty"`
AdditionalContent string `json:"additional_content,omitempty"`
DeliveryInstallationType string `json:"delivery_installation_type,omitempty"`
DeliveryInstallationQualifierName string `json:"delivery_installation_qualifier_name,omitempty"`
RouteNumber string `json:"route_number,omitempty"`
RouteType string `json:"route_type,omitempty"`
}

// Metadata contains all output fields defined here:
Expand Down
12 changes: 11 additions & 1 deletion international-street-api/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,12 @@ func (f *ClientFixture) TestFullJSONResponseDeserialization() {
"level_number": "blank",
"post_box": "blank",
"post_box_type": "blank",
"post_box_number": "blank"
"post_box_number": "blank",
"additional_content":"blank",
"delivery_installation_type":"blank",
"delivery_installation_qualifier_name":"blank",
"route_number":"blank",
"route_type":"blank"
}
}
}
Expand Down Expand Up @@ -358,6 +363,11 @@ func (f *ClientFixture) TestFullJSONResponseDeserialization() {
f.So(ccomponents.PostBox, should.Equal, "blank")
f.So(ccomponents.PostBoxType, should.Equal, "blank")
f.So(ccomponents.PostBoxNumber, should.Equal, "blank")
f.So(ccomponents.AdditionalContent, should.Equal, "blank")
f.So(ccomponents.DeliveryInstallationType, should.Equal, "blank")
f.So(ccomponents.DeliveryInstallationQualifierName, should.Equal, "blank")
f.So(ccomponents.RouteType, should.Equal, "blank")
f.So(ccomponents.RouteNumber, should.Equal, "blank")
}

/*////////////////////////////////////////////////////////////////////////*/
Expand Down

0 comments on commit f9ee104

Please sign in to comment.