addresszen 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +8 -0
  3. data/LICENSE +1 -0
  4. data/README.md +34 -0
  5. data/lib/addresszen/base_client.rb +88 -0
  6. data/lib/addresszen/client.rb +12 -0
  7. data/lib/addresszen/errors.rb +59 -0
  8. data/lib/addresszen/generated.rb +78 -0
  9. data/lib/addresszen/model.rb +73 -0
  10. data/lib/addresszen/operations.rb +668 -0
  11. data/lib/addresszen/responses/api_key_details_response.rb +21 -0
  12. data/lib/addresszen/responses/api_key_response.rb +21 -0
  13. data/lib/addresszen/responses/api_key_usage_response.rb +21 -0
  14. data/lib/addresszen/responses/autocomplete_response.rb +19 -0
  15. data/lib/addresszen/responses/config_response.rb +21 -0
  16. data/lib/addresszen/responses/configs_response.rb +21 -0
  17. data/lib/addresszen/responses/delete_config_response.rb +19 -0
  18. data/lib/addresszen/responses/delete_licensee_response.rb +19 -0
  19. data/lib/addresszen/responses/email_response.rb +31 -0
  20. data/lib/addresszen/responses/licensee_response.rb +21 -0
  21. data/lib/addresszen/responses/licensees_response.rb +21 -0
  22. data/lib/addresszen/responses/phone_number_response.rb +31 -0
  23. data/lib/addresszen/responses/place_response.rb +19 -0
  24. data/lib/addresszen/responses/resolve_place_response.rb +24 -0
  25. data/lib/addresszen/responses/usa_resolve_address_response.rb +21 -0
  26. data/lib/addresszen/responses/verify_response.rb +31 -0
  27. data/lib/addresszen/transport.rb +61 -0
  28. data/lib/addresszen/types/ab_address.rb +283 -0
  29. data/lib/addresszen/types/abp_address.rb +674 -0
  30. data/lib/addresszen/types/address.rb +265 -0
  31. data/lib/addresszen/types/address_suggestion.rb +27 -0
  32. data/lib/addresszen/types/api_key.rb +27 -0
  33. data/lib/addresszen/types/api_key_automated_topup.rb +17 -0
  34. data/lib/addresszen/types/api_key_current_purchase.rb +27 -0
  35. data/lib/addresszen/types/api_key_daily_limit.rb +21 -0
  36. data/lib/addresszen/types/api_key_datasets.rb +202 -0
  37. data/lib/addresszen/types/api_key_details.rb +90 -0
  38. data/lib/addresszen/types/api_key_individual_limit.rb +16 -0
  39. data/lib/addresszen/types/api_key_monthly_limit.rb +21 -0
  40. data/lib/addresszen/types/api_key_notifications.rb +35 -0
  41. data/lib/addresszen/types/autocomplete_result.rb +13 -0
  42. data/lib/addresszen/types/available_context.rb +35 -0
  43. data/lib/addresszen/types/ban_address.rb +179 -0
  44. data/lib/addresszen/types/bev_address.rb +288 -0
  45. data/lib/addresszen/types/cannar_address.rb +297 -0
  46. data/lib/addresszen/types/carrier.rb +31 -0
  47. data/lib/addresszen/types/config.rb +34 -0
  48. data/lib/addresszen/types/configs_result.rb +15 -0
  49. data/lib/addresszen/types/deleted_config.rb +13 -0
  50. data/lib/addresszen/types/deleted_licensee.rb +13 -0
  51. data/lib/addresszen/types/ecad_address.rb +393 -0
  52. data/lib/addresszen/types/ecaf_address.rb +204 -0
  53. data/lib/addresszen/types/email.rb +45 -0
  54. data/lib/addresszen/types/fodbosa_address.rb +201 -0
  55. data/lib/addresszen/types/geonames_place.rb +153 -0
  56. data/lib/addresszen/types/gnaf_address.rb +463 -0
  57. data/lib/addresszen/types/here_address.rb +174 -0
  58. data/lib/addresszen/types/invalid_phone_number.rb +50 -0
  59. data/lib/addresszen/types/kadaster_address.rb +480 -0
  60. data/lib/addresszen/types/kartverket_address.rb +342 -0
  61. data/lib/addresszen/types/key_usage_day.rb +16 -0
  62. data/lib/addresszen/types/key_usage_result.rb +36 -0
  63. data/lib/addresszen/types/licensee.rb +50 -0
  64. data/lib/addresszen/types/licensee_daily_usage.rb +29 -0
  65. data/lib/addresszen/types/licensees_result.rb +23 -0
  66. data/lib/addresszen/types/mois_address.rb +440 -0
  67. data/lib/addresszen/types/mr_address.rb +99 -0
  68. data/lib/addresszen/types/native_record.rb +368 -0
  69. data/lib/addresszen/types/nyb_address.rb +99 -0
  70. data/lib/addresszen/types/paf_address.rb +96 -0
  71. data/lib/addresszen/types/pafa_address.rb +104 -0
  72. data/lib/addresszen/types/pafw_address.rb +99 -0
  73. data/lib/addresszen/types/phone_number.rb +50 -0
  74. data/lib/addresszen/types/place.rb +79 -0
  75. data/lib/addresszen/types/place_result.rb +21 -0
  76. data/lib/addresszen/types/place_suggestion.rb +32 -0
  77. data/lib/addresszen/types/sdfi_address.rb +520 -0
  78. data/lib/addresszen/types/swt_address.rb +247 -0
  79. data/lib/addresszen/types/unknown_email.rb +43 -0
  80. data/lib/addresszen/types/upujp_address.rb +763 -0
  81. data/lib/addresszen/types/usa_cass_verified_address.rb +254 -0
  82. data/lib/addresszen/types/usa_verify_match.rb +116 -0
  83. data/lib/addresszen/types/usa_verify_no_match.rb +81 -0
  84. data/lib/addresszen/types/usps_address.rb +294 -0
  85. data/lib/addresszen/version.rb +5 -0
  86. data/lib/addresszen.rb +14 -0
  87. data/sig/addresszen/base_client.rbs +40 -0
  88. data/sig/addresszen/client.rbs +5 -0
  89. data/sig/addresszen/errors.rbs +27 -0
  90. data/sig/addresszen/model.rbs +37 -0
  91. data/sig/addresszen/operations.rbs +153 -0
  92. data/sig/addresszen/responses/api_key_details_response.rbs +13 -0
  93. data/sig/addresszen/responses/api_key_response.rbs +13 -0
  94. data/sig/addresszen/responses/api_key_usage_response.rbs +13 -0
  95. data/sig/addresszen/responses/autocomplete_response.rbs +13 -0
  96. data/sig/addresszen/responses/config_response.rbs +13 -0
  97. data/sig/addresszen/responses/configs_response.rbs +13 -0
  98. data/sig/addresszen/responses/delete_config_response.rbs +13 -0
  99. data/sig/addresszen/responses/delete_licensee_response.rbs +13 -0
  100. data/sig/addresszen/responses/email_response.rbs +19 -0
  101. data/sig/addresszen/responses/licensee_response.rbs +13 -0
  102. data/sig/addresszen/responses/licensees_response.rbs +13 -0
  103. data/sig/addresszen/responses/phone_number_response.rbs +19 -0
  104. data/sig/addresszen/responses/place_response.rbs +13 -0
  105. data/sig/addresszen/responses/resolve_place_response.rbs +13 -0
  106. data/sig/addresszen/responses/usa_resolve_address_response.rbs +13 -0
  107. data/sig/addresszen/responses/verify_response.rbs +19 -0
  108. data/sig/addresszen/transport.rbs +39 -0
  109. data/sig/addresszen/types/ab_address.rbs +57 -0
  110. data/sig/addresszen/types/abp_address.rbs +126 -0
  111. data/sig/addresszen/types/address.rbs +142 -0
  112. data/sig/addresszen/types/address_suggestion.rbs +11 -0
  113. data/sig/addresszen/types/api_key.rbs +11 -0
  114. data/sig/addresszen/types/api_key_automated_topup.rbs +9 -0
  115. data/sig/addresszen/types/api_key_current_purchase.rbs +11 -0
  116. data/sig/addresszen/types/api_key_daily_limit.rbs +10 -0
  117. data/sig/addresszen/types/api_key_datasets.rbs +46 -0
  118. data/sig/addresszen/types/api_key_details.rbs +22 -0
  119. data/sig/addresszen/types/api_key_individual_limit.rbs +9 -0
  120. data/sig/addresszen/types/api_key_monthly_limit.rbs +10 -0
  121. data/sig/addresszen/types/api_key_notifications.rbs +13 -0
  122. data/sig/addresszen/types/autocomplete_result.rbs +9 -0
  123. data/sig/addresszen/types/available_context.rbs +13 -0
  124. data/sig/addresszen/types/ban_address.rbs +46 -0
  125. data/sig/addresszen/types/bev_address.rbs +67 -0
  126. data/sig/addresszen/types/cannar_address.rbs +62 -0
  127. data/sig/addresszen/types/carrier.rbs +14 -0
  128. data/sig/addresszen/types/config.rbs +14 -0
  129. data/sig/addresszen/types/configs_result.rbs +9 -0
  130. data/sig/addresszen/types/deleted_config.rbs +9 -0
  131. data/sig/addresszen/types/deleted_licensee.rbs +9 -0
  132. data/sig/addresszen/types/ecad_address.rbs +84 -0
  133. data/sig/addresszen/types/ecaf_address.rbs +45 -0
  134. data/sig/addresszen/types/email.rbs +16 -0
  135. data/sig/addresszen/types/fodbosa_address.rbs +43 -0
  136. data/sig/addresszen/types/geonames_place.rbs +42 -0
  137. data/sig/addresszen/types/gnaf_address.rbs +104 -0
  138. data/sig/addresszen/types/here_address.rbs +37 -0
  139. data/sig/addresszen/types/invalid_phone_number.rbs +17 -0
  140. data/sig/addresszen/types/kadaster_address.rbs +98 -0
  141. data/sig/addresszen/types/kartverket_address.rbs +78 -0
  142. data/sig/addresszen/types/key_usage_day.rbs +10 -0
  143. data/sig/addresszen/types/key_usage_result.rbs +13 -0
  144. data/sig/addresszen/types/licensee.rbs +17 -0
  145. data/sig/addresszen/types/licensee_daily_usage.rbs +12 -0
  146. data/sig/addresszen/types/licensees_result.rbs +11 -0
  147. data/sig/addresszen/types/mois_address.rbs +97 -0
  148. data/sig/addresszen/types/mr_address.rbs +27 -0
  149. data/sig/addresszen/types/native_record.rbs +34 -0
  150. data/sig/addresszen/types/nyb_address.rbs +27 -0
  151. data/sig/addresszen/types/paf_address.rbs +27 -0
  152. data/sig/addresszen/types/pafa_address.rbs +27 -0
  153. data/sig/addresszen/types/pafw_address.rbs +27 -0
  154. data/sig/addresszen/types/phone_number.rbs +17 -0
  155. data/sig/addresszen/types/place.rbs +29 -0
  156. data/sig/addresszen/types/place_result.rbs +15 -0
  157. data/sig/addresszen/types/place_suggestion.rbs +12 -0
  158. data/sig/addresszen/types/sdfi_address.rbs +108 -0
  159. data/sig/addresszen/types/swt_address.rbs +57 -0
  160. data/sig/addresszen/types/unknown_email.rbs +16 -0
  161. data/sig/addresszen/types/upujp_address.rbs +156 -0
  162. data/sig/addresszen/types/usa_cass_verified_address.rbs +62 -0
  163. data/sig/addresszen/types/usa_verify_match.rbs +29 -0
  164. data/sig/addresszen/types/usa_verify_no_match.rbs +32 -0
  165. data/sig/addresszen/types/usps_address.rbs +63 -0
  166. metadata +209 -0
@@ -0,0 +1,254 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated from the OpenAPI spec. Do not edit.
4
+
5
+ module AddressZen
6
+ module Types
7
+ # United States CASS Verified Address
8
+ #
9
+ # Address retrieved using CASS compliant address verification process
10
+ class UsaCassVerifiedAddress < Model
11
+ # Primary delivery address
12
+ #
13
+ # @return [String]
14
+ def address1 = @hash["address1"]
15
+
16
+ # Secondary address information
17
+ #
18
+ # @return [String]
19
+ def address2 = @hash["address2"]
20
+
21
+ # Additional secondary address information
22
+ #
23
+ # @return [String]
24
+ def address3 = @hash["address3"]
25
+
26
+ # Area code. Also known as Numbering Plan Area (NPA)
27
+ # https://en.wikipedia.org/wiki/List_of_North_American_Numbering_Plan_area_codes
28
+ #
29
+ # @return [String]
30
+ def area_code = @hash["area_code"]
31
+
32
+ # Data required to perform a Carrier Route sort
33
+ #
34
+ # @return [String]
35
+ def carrier_route = @hash["carrier_route"]
36
+
37
+ # Character following the 5-digit or 9-digit ZIP Code. Part of the 11-digit barcode
38
+ #
39
+ # @return [String]
40
+ def check_digit = @hash["check_digit"]
41
+
42
+ # City name
43
+ #
44
+ # @return [String]
45
+ def city = @hash["city"]
46
+
47
+ # City Abbreviation. Empty string if not present
48
+ #
49
+ # @return [String]
50
+ def city_abbreviation = @hash["city_abbreviation"]
51
+
52
+ # Identifies the Congressional District. Empty string if not present
53
+ #
54
+ # @return [String]
55
+ def congressional_district = @hash["congressional_district"]
56
+
57
+ # ISO 3166 country code. Empty string if not present
58
+ #
59
+ # @return [String]
60
+ def country_code = @hash["country_code"]
61
+
62
+ # Name of the county
63
+ #
64
+ # @return [String]
65
+ def county = @hash["county"]
66
+
67
+ # Daylight saving time indicator
68
+ #
69
+ # @return [Boolean]
70
+ def day_light_savings = @hash["day_light_savings"]
71
+
72
+ # Last 2 digits of the primary street address number or Post Office box
73
+ #
74
+ # @return [String]
75
+ def delivery_point = @hash["delivery_point"]
76
+
77
+ # Delivery Point Validation (DPV) Confirmation code.
78
+ #
79
+ # @return [String]
80
+ def dpv = @hash["dpv"]
81
+
82
+ # Delivery Point Validation (DPV) CMRA code.
83
+ #
84
+ # @return [String]
85
+ def dpv_cmra = @hash["dpv_cmra"]
86
+
87
+ # Delivery Point Validation (DPV) Footnotes. Empty string if not present
88
+ #
89
+ # @return [String]
90
+ def dpv_footnotes = @hash["dpv_footnotes"]
91
+
92
+ # Delivery Point Validation (DPV) NoStat code.
93
+ #
94
+ # @return [String]
95
+ def dpv_no_stat = @hash["dpv_no_stat"]
96
+
97
+ # Delivery Point Validation (DPV) Vacant code.
98
+ #
99
+ # @return [String]
100
+ def dpv_vacant = @hash["dpv_vacant"]
101
+
102
+ # Enhanced Line of Travel. For arranging records in the order that a route is served by a
103
+ # carrier. eLOT sequencing, when combined with Carrier Route codes, may allow Enhanced Carrier
104
+ # Route (ECR) discounts to be claimed.
105
+ #
106
+ # @return [String]
107
+ def elot = @hash["elot"]
108
+
109
+ # Internal accounting number used by the USPS® when Post Offices or ZIP Codes are discontinued
110
+ # and reassigned. The finance number reflects the geographic grouping of ZIP + 4 areas in
111
+ # which these changes can be made.
112
+ #
113
+ # @return [String]
114
+ def finance_number = @hash["finance_number"]
115
+
116
+ # Federal Information Processing Standard code for a county. Empty string if not present
117
+ #
118
+ # @return [String]
119
+ def fips_county_code = @hash["fips_county_code"]
120
+
121
+ # Company name in a business address
122
+ #
123
+ # @return [String]
124
+ def firm = @hash["firm"]
125
+
126
+ # Letter codes returned by ZIP+4 encoding. Empty string if not present
127
+ #
128
+ # @return [String]
129
+ def footnotes = @hash["footnotes"]
130
+
131
+ # Indicates whether the address was geo-coded
132
+ #
133
+ # @return [Boolean]
134
+ def geo_coded = @hash["geo_coded"]
135
+
136
+ # Indicates whether a record may benefit from LACS processing.
137
+ #
138
+ # @return [String]
139
+ def lacs_indicator = @hash["lacs_indicator"]
140
+
141
+ # LACSLink Footnote. Return Code returned by the LACSLink process when an accurate address
142
+ # match could not be made. These codes help identify the type of move and the type of
143
+ # deficiency in the record which prevents a match. Possible values: - 'A' Address matched -
144
+ # '00' No match - '09' The input record matched to a record in the master file, but the old
145
+ # address is a highrise default - '14' The input record matched to a record in the master
146
+ # file. The new address could not be converted to a deliverable address - '92' LACSLink
147
+ # Record: Secondary Number Dropped from Input Address - The input record matched to a master
148
+ # file record, but the input address had a secondary number and the master file record did
149
+ # not. The record is a ZIP + 4 street level or high-rise match - '' Address not submitted to
150
+ # LACSLink lookup
151
+ #
152
+ # @return [String]
153
+ def lacs_link_footnote = @hash["lacs_link_footnote"]
154
+
155
+ # LACSLink Indicator. Indicates whether the input address matched a record in the LACSLink
156
+ # database.
157
+ #
158
+ # @return [String]
159
+ def lacs_link_indicator = @hash["lacs_link_indicator"]
160
+
161
+ # Latitude of the encoded address. Empty string if not present
162
+ #
163
+ # @return [String]
164
+ def latitude = @hash["latitude"]
165
+
166
+ # Longitude of the encoded address. Empty string if not present
167
+ #
168
+ # @return [String]
169
+ def longitude = @hash["longitude"]
170
+
171
+ # Information if a Private Mail Box (PMB) is found in an address. Empty string if not present
172
+ #
173
+ # @return [String]
174
+ def parsed_pmb_designator = @hash["parsed_pmb_designator"]
175
+
176
+ # Private Mail Box (PMB) number, if one is found in an address. Empty string if not present
177
+ #
178
+ # @return [String]
179
+ def parsed_pmb_number = @hash["parsed_pmb_number"]
180
+
181
+ # Notation following the street name indicating street direction. Empty string if not present
182
+ #
183
+ # @return [String]
184
+ def parsed_post_directional = @hash["parsed_post_directional"]
185
+
186
+ # Notation preceding the street name indicating street direction. Empty string if not present
187
+ #
188
+ # @return [String]
189
+ def parsed_pre_directional = @hash["parsed_pre_directional"]
190
+
191
+ # Number preceding the street name. Empty string if not present
192
+ #
193
+ # @return [String]
194
+ def parsed_primary_number = @hash["parsed_primary_number"]
195
+
196
+ # Street name. Empty string if not present
197
+ #
198
+ # @return [String]
199
+ def parsed_street_name = @hash["parsed_street_name"]
200
+
201
+ # Part of the delivery address line following the street name. Empty string if not present
202
+ #
203
+ # @return [String]
204
+ def parsed_suffix = @hash["parsed_suffix"]
205
+
206
+ # Identification of the secondary address unit. Empty string if not present
207
+ #
208
+ # @return [String]
209
+ def parsed_unit_designator = @hash["parsed_unit_designator"]
210
+
211
+ # Apartment or suite number. Empty string if not present
212
+ #
213
+ # @return [String]
214
+ def parsed_unit_number = @hash["parsed_unit_number"]
215
+
216
+ # Residential Delivery Indicator (RDI). Indicates whether USPS classifies the delivery point
217
+ # as residential. Empty string if not present
218
+ #
219
+ # @return [String]
220
+ def rdi = @hash["rdi"]
221
+
222
+ # Type of address record.
223
+ #
224
+ # @return [String]
225
+ def record_type = @hash["record_type"]
226
+
227
+ # Standard two-letter state abbreviation
228
+ #
229
+ # @return [String]
230
+ def state = @hash["state"]
231
+
232
+ # Results of the SuiteLink lookup.
233
+ #
234
+ # @return [String]
235
+ def suite_link_footnote = @hash["suite_link_footnote"]
236
+
237
+ # Time zone. Empty string if not present
238
+ #
239
+ # @return [String]
240
+ def time_zone = @hash["time_zone"]
241
+
242
+ # Urban name required in the address of all mail being delivered to Puerto Rico. Empty string
243
+ # if not present
244
+ #
245
+ # @return [String]
246
+ def urbanization = @hash["urbanization"]
247
+
248
+ # 5-digit ZIP Code and the four additional digits
249
+ #
250
+ # @return [String]
251
+ def zip_code = @hash["zip_code"]
252
+ end
253
+ end
254
+ end
@@ -0,0 +1,116 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated from the OpenAPI spec. Do not edit.
4
+
5
+ module AddressZen
6
+ module Types
7
+ # Address Match
8
+ class UsaVerifyMatch < Model
9
+ # Submitted query
10
+ #
11
+ # @return [String]
12
+ def query = @hash["query"]
13
+
14
+ # Submitted city
15
+ #
16
+ # @return [String]
17
+ def query_city = @hash["query_city"]
18
+
19
+ # Submitted state
20
+ #
21
+ # @return [String]
22
+ def query_state = @hash["query_state"]
23
+
24
+ # Submitted zip_code
25
+ #
26
+ # @return [String]
27
+ def query_zip_code = @hash["query_zip_code"]
28
+
29
+ # Nearest matching address. A CASS verified address in the United States. Elsewhere, the
30
+ # address in the same format Retrieve Address returns, with the raw dataset record in `native`
31
+ #
32
+ # @return [Types::UsaCassVerifiedAddress, Types::Address]
33
+ def match = read("match") { |v| hydrate_match(v) }
34
+
35
+ # The number of addresses we matched to the input. We return the closest match by default.
36
+ #
37
+ # @return [Integer]
38
+ def count = @hash["count"]
39
+
40
+ # A score represented as a number between 1 and 0. Fit compares the address elements present
41
+ # in your query against the matching address elements. It does not incorporate elements you
42
+ # have not presented in the score. A partial address (e.g. 123 Main St) will have a fit of 1
43
+ # even though it is missing city and zip code. Its confidence score will be less than 1
44
+ # however because it is missing some crucial elements.
45
+ #
46
+ # @return [Float]
47
+ def fit = @hash["fit"]
48
+
49
+ # A confidence score represented as a number between 1 and 0. 1 indicates a full match. 0
50
+ # indicates no complete matching elements.
51
+ #
52
+ # @return [Float]
53
+ def confidence = @hash["confidence"]
54
+
55
+ # Additional information about the match.
56
+ #
57
+ # @return [String]
58
+ def match_information = @hash["match_information"]
59
+
60
+ # Primary delivery address
61
+ #
62
+ # @return [String]
63
+ def address_line_one = @hash["address_line_one"]
64
+
65
+ # Secondary address information
66
+ #
67
+ # @return [String]
68
+ def address_line_two = @hash["address_line_two"]
69
+
70
+ # City name
71
+ #
72
+ # @return [String]
73
+ def city = @hash["city"]
74
+
75
+ # State name
76
+ #
77
+ # @return [String]
78
+ def state = @hash["state"]
79
+
80
+ # ZIP code
81
+ #
82
+ # @return [String]
83
+ def zip_code = @hash["zip_code"]
84
+
85
+ # 2-letter ISO country code
86
+ #
87
+ # @return [String]
88
+ def country_iso_2 = @hash["country_iso_2"]
89
+
90
+ private
91
+
92
+ def hydrate_match(value)
93
+ Union.hydrate(
94
+ value,
95
+ [
96
+ [
97
+ Types::UsaCassVerifiedAddress,
98
+ {},
99
+ %w[
100
+ address1 address2 address3 area_code carrier_route check_digit city
101
+ city_abbreviation congressional_district country_code county day_light_savings
102
+ delivery_point dpv dpv_cmra dpv_footnotes dpv_no_stat dpv_vacant elot finance_number
103
+ fips_county_code firm footnotes geo_coded lacs_indicator lacs_link_footnote
104
+ lacs_link_indicator latitude longitude parsed_pmb_designator parsed_pmb_number
105
+ parsed_post_directional parsed_pre_directional parsed_primary_number
106
+ parsed_street_name parsed_suffix parsed_unit_designator parsed_unit_number rdi
107
+ record_type state suite_link_footnote time_zone urbanization zip_code
108
+ ]
109
+ ]
110
+ ],
111
+ Types::Address
112
+ )
113
+ end
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated from the OpenAPI spec. Do not edit.
4
+
5
+ module AddressZen
6
+ module Types
7
+ # No Address Match
8
+ class UsaVerifyNoMatch < Model
9
+ # Originally submitted query
10
+ #
11
+ # @return [String]
12
+ def query = @hash["query"]
13
+
14
+ # Originally submitted city
15
+ #
16
+ # @return [String]
17
+ def query_city = @hash["query_city"]
18
+
19
+ # Originally submitted state
20
+ #
21
+ # @return [String]
22
+ def query_state = @hash["query_state"]
23
+
24
+ # Originally submitted zip_code
25
+ #
26
+ # @return [String]
27
+ def query_zip_code = @hash["query_zip_code"]
28
+
29
+ # Nearest matching address
30
+ #
31
+ # @return [Hash{String => Object}, nil]
32
+ def match = @hash["match"]
33
+
34
+ # @return [Integer]
35
+ def count = @hash["count"]
36
+
37
+ # @return [Integer]
38
+ def fit = @hash["fit"]
39
+
40
+ # @return [Integer]
41
+ def confidence = @hash["confidence"]
42
+
43
+ # Why the address could not be verified, for people to read. For example `Address not found`,
44
+ # `House number not valid for this street`, `Invalid city, state or ZIP code` or `Address
45
+ # could not be parsed`.
46
+ #
47
+ # @return [String]
48
+ def match_information = @hash["match_information"]
49
+
50
+ # Empty if no match
51
+ #
52
+ # @return [String]
53
+ def address_line_one = @hash["address_line_one"]
54
+
55
+ # Empty if no match
56
+ #
57
+ # @return [String]
58
+ def address_line_two = @hash["address_line_two"]
59
+
60
+ # Empty if no match
61
+ #
62
+ # @return [String]
63
+ def city = @hash["city"]
64
+
65
+ # Empty if no match
66
+ #
67
+ # @return [String]
68
+ def state = @hash["state"]
69
+
70
+ # Empty if no match
71
+ #
72
+ # @return [String]
73
+ def zip_code = @hash["zip_code"]
74
+
75
+ # Empty if no match
76
+ #
77
+ # @return [String]
78
+ def country_iso_2 = @hash["country_iso_2"]
79
+ end
80
+ end
81
+ end