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,393 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated from the OpenAPI spec. Do not edit.
4
+
5
+ module AddressZen
6
+ module Types
7
+ # Ireland ECAD Address
8
+ #
9
+ # ECAD is the Eircode Address Database. It carries every ECAF postal address element plus
10
+ # GeoDirectory identifiers, building and organisation attributes, administrative area references
11
+ # and An Post sorting information. English and Irish language versions of each address are
12
+ # indexed separately and distinguished by `language`.
13
+ #
14
+ # Unavailable elements are returned as an empty string, never `null`.
15
+ class EcadAddress < Model
16
+ # Globally unique internally generated identifier for an address
17
+ #
18
+ # @return [String]
19
+ def id = @hash["id"]
20
+
21
+ # @return [String]
22
+ def dataset = @hash["dataset"]
23
+
24
+ # 3 letter country code (ISO 3166-1)
25
+ #
26
+ # @return [String]
27
+ def country_iso = @hash["country_iso"]
28
+
29
+ # 2 letter country code (ISO 3166-1)
30
+ #
31
+ # @return [String]
32
+ def country_iso_2 = @hash["country_iso_2"]
33
+
34
+ # Full country names (ISO 3166)
35
+ #
36
+ # @return [String]
37
+ def country = @hash["country"]
38
+
39
+ # Language represented by 2 letter ISO Code (639-1)
40
+ #
41
+ # @return [String]
42
+ def language = @hash["language"]
43
+
44
+ # Address Line 1
45
+ #
46
+ # @return [String]
47
+ def line_1 = @hash["line_1"]
48
+
49
+ # Address Line 2
50
+ #
51
+ # @return [String]
52
+ def line_2 = @hash["line_2"]
53
+
54
+ # Address Line 3
55
+ #
56
+ # @return [String]
57
+ def line_3 = @hash["line_3"]
58
+
59
+ # Address Line 4
60
+ #
61
+ # @return [String]
62
+ def line_4 = @hash["line_4"]
63
+
64
+ # Address Line 5
65
+ #
66
+ # @return [String]
67
+ def line_5 = @hash["line_5"]
68
+
69
+ # Address Line 6
70
+ #
71
+ # @return [String]
72
+ def line_6 = @hash["line_6"]
73
+
74
+ # Address Line 7
75
+ #
76
+ # @return [String]
77
+ def line_7 = @hash["line_7"]
78
+
79
+ # Address Line 8
80
+ #
81
+ # @return [String]
82
+ def line_8 = @hash["line_8"]
83
+
84
+ # Address Line 9
85
+ #
86
+ # @return [String]
87
+ def line_9 = @hash["line_9"]
88
+
89
+ # The department or division within an organisation, e.g. `Accounts Department`. If the
90
+ # department element exists, then the organisation must also exist.
91
+ #
92
+ # @return [String]
93
+ def department = @hash["department"]
94
+
95
+ # Organisation name, e.g. `Oak Tree Limited`.
96
+ #
97
+ # @return [String]
98
+ def organisation = @hash["organisation"]
99
+
100
+ # The sub-building refers to an apartment, flat or unit within a building, e.g. `Flat 1`.
101
+ #
102
+ # @return [String]
103
+ def sub_building_name = @hash["sub_building_name"]
104
+
105
+ # The name given to the building, e.g. `Rose Cottage`. Prepended by sub building, if any, when
106
+ # the sub building does not appear on a line to itself. The building name is omitted if it is
107
+ # the same as either the Organisation or Building Group.
108
+ #
109
+ # @return [String]
110
+ def building_name = @hash["building_name"]
111
+
112
+ # A number associated with the whole building. The building number may have a numeric and an
113
+ # alphanumeric component, which are concatenated e.g. 2A, or alternatively will have a simple
114
+ # building number or a complex building number. The building number always relates to the
115
+ # whole building and not a sub-unit within it. A complex building number may be one of the
116
+ # following: - Dual. Two numbers separated by '/' e.g. 63/64 = 63, 64 - Sequence. An odd or
117
+ # even sequence of numbers with lower and upper bound separated by an underscore '_' e.g.
118
+ # `1_5` = 1,3,5 and `2_6` = 2,4,6 - Range. A range of consecutive numbers with lower and upper
119
+ # bound separated by a dash '-' e.g. `63-66` = 63, 64, 65, 66 The building number never
120
+ # appears on a line by itself and can prepend Building Group, Primary Thoroughfare or Primary
121
+ # Locality.
122
+ #
123
+ # @return [String]
124
+ def building_number = @hash["building_number"]
125
+
126
+ # A building group is a collection of buildings with a collective name, located on or near the
127
+ # same thoroughfare, e.g. `Marrian Terrace`.
128
+ #
129
+ # @return [String]
130
+ def building_group = @hash["building_group"]
131
+
132
+ # The name of the thoroughfare on which premises are located, e.g. `Griffith Road`. It may
133
+ # appear on a line by itself or be appended to either a sub building or building number.
134
+ #
135
+ # @return [String]
136
+ def primary_thoroughfare = @hash["primary_thoroughfare"]
137
+
138
+ # It is never present without a primary thoroughfare. The primary thoroughfare is dependent on
139
+ # the secondary thoroughfare and appears before the secondary thoroughfare in any address.
140
+ #
141
+ # @return [String]
142
+ def secondary_thoroughfare = @hash["secondary_thoroughfare"]
143
+
144
+ # First locality elements which can refer to areas, districts, industrial estates, towns, etc.
145
+ #
146
+ # @return [String]
147
+ def primary_locality = @hash["primary_locality"]
148
+
149
+ # Never present without a primary locality. The secondary locality has a wider geographic
150
+ # scope than the primary locality.
151
+ #
152
+ # @return [String]
153
+ def secondary_locality = @hash["secondary_locality"]
154
+
155
+ # Also known as the Post Town.
156
+ #
157
+ # @return [String]
158
+ def tertiary_locality = @hash["tertiary_locality"]
159
+
160
+ # One of the 26 Counties in the Republic of Ireland. These counties are sub-national divisions
161
+ # used for the purposes of administrative, geographical and political demarcation. Post County
162
+ # is the County associated with the Post Town, not the geographic county in which the building
163
+ # is located. The Post County is normally used as part of the Postal Address with some
164
+ # exceptions e.g. Dublin Postal Districts where the Post County is not used and some Post
165
+ # Towns (e.g. Tipperary, Kildare, etc.) that have the same name as the Post County.
166
+ #
167
+ # @return [String]
168
+ def post_county = @hash["post_county"]
169
+
170
+ # The seven character Eircode has an A65 F4E2 format. The Eircode is a mandatory address
171
+ # element. The last line of a Postal Address will contain the Eircode, displayed with a space.
172
+ # e.g. `A65 F4E2`.
173
+ #
174
+ # @return [String]
175
+ def eircode = @hash["eircode"]
176
+
177
+ # The address reference is the An Post GeoDirectory address reference identifier used by the
178
+ # Universal Service Provider.
179
+ #
180
+ # @return [String]
181
+ def address_reference = @hash["address_reference"]
182
+
183
+ # The longitude of the address or postcode (WGS84).
184
+ #
185
+ # @return [String, Float]
186
+ def longitude = @hash["longitude"]
187
+
188
+ # The latitude of the address or postcode (WGS84).
189
+ #
190
+ # @return [String, Float]
191
+ def latitude = @hash["latitude"]
192
+
193
+ # Unique ECAD identifier for the postal address. Up to 10 digits.
194
+ #
195
+ # @return [String, nil]
196
+ def ecad_id = @hash["ecad_id"]
197
+
198
+ # GeoDirectory identifier for the organisation. Empty string if the address has no
199
+ # organisation.
200
+ #
201
+ # @return [String, nil]
202
+ def organisation_id = @hash["organisation_id"]
203
+
204
+ # GeoDirectory identifier for the address point.
205
+ #
206
+ # @return [String, nil]
207
+ def address_point_id = @hash["address_point_id"]
208
+
209
+ # GeoDirectory identifier for the building.
210
+ #
211
+ # @return [String, nil]
212
+ def building_id = @hash["building_id"]
213
+
214
+ # GeoDirectory identifier for the building group. Empty string if the address has no building
215
+ # group.
216
+ #
217
+ # @return [String, nil]
218
+ def building_group_id = @hash["building_group_id"]
219
+
220
+ # GeoDirectory identifier for the primary thoroughfare.
221
+ #
222
+ # @return [String, nil]
223
+ def primary_thoroughfare_id = @hash["primary_thoroughfare_id"]
224
+
225
+ # GeoDirectory identifier for the secondary thoroughfare. Empty string if the address has no
226
+ # secondary thoroughfare.
227
+ #
228
+ # @return [String, nil]
229
+ def secondary_thoroughfare_id = @hash["secondary_thoroughfare_id"]
230
+
231
+ # GeoDirectory identifier for the primary locality. Empty string if the address has no primary
232
+ # locality.
233
+ #
234
+ # @return [String, nil]
235
+ def primary_locality_id = @hash["primary_locality_id"]
236
+
237
+ # GeoDirectory identifier for the secondary locality. Empty string if the address has no
238
+ # secondary locality.
239
+ #
240
+ # @return [String, nil]
241
+ def secondary_locality_id = @hash["secondary_locality_id"]
242
+
243
+ # The name of the post town associated with the premises for postal delivery purposes.
244
+ # Returned in the language given by `language`, and mirrors `tertiary_locality` for this
245
+ # dataset.
246
+ #
247
+ # @return [String, nil]
248
+ def post_town = @hash["post_town"]
249
+
250
+ # GeoDirectory identifier for the post town.
251
+ #
252
+ # @return [String, nil]
253
+ def post_town_id = @hash["post_town_id"]
254
+
255
+ # GeoDirectory identifier for the post county. Empty string if the address has no post county.
256
+ #
257
+ # @return [String, nil]
258
+ def post_county_id = @hash["post_county_id"]
259
+
260
+ # NUA means "non-unique address".
261
+ #
262
+ # @return [Boolean, nil]
263
+ def nua = @hash["nua"]
264
+
265
+ # Gaeltacht refers to a district where the Irish government recognises that the Irish language
266
+ # is the predominant language.
267
+ #
268
+ # @return [Boolean, nil]
269
+ def gaeltacht = @hash["gaeltacht"]
270
+
271
+ # Addresses points can assume one of the following values:
272
+ #
273
+ # @return [String, nil]
274
+ def address_type = @hash["address_type"]
275
+
276
+ # The building type can assume one of the following values:
277
+ #
278
+ # @return [String, nil]
279
+ def building_address_type = @hash["building_address_type"]
280
+
281
+ # The building group type can be:
282
+ #
283
+ # @return [String, nil]
284
+ def building_group_address_type = @hash["building_group_address_type"]
285
+
286
+ # The locality type can be: - Rural Locality. This is generally a townland. - Industrial
287
+ # Estate. Industrial Estate, Industrial Park, Business Campus, etc. - Shopping District.
288
+ # Shopping Centre. - Housing Estate. Residential Housing Estate. - Village. Based on Census
289
+ # 2011 population < 1,500. - Town. Based on Census 2011 population > 1,500. - Urban Area.
290
+ # Wholly within a village/town/city e.g. Rathmines. - Suburban Locality. This is an area that
291
+ # is both rural and urban, as it is both a townland, and also an area name applied to houses
292
+ # in a town, as the town has extended partially into the townland.
293
+ #
294
+ # @return [String, nil]
295
+ def primary_locality_address_type = @hash["primary_locality_address_type"]
296
+
297
+ # The locality type can be: - Rural Locality. This is generally a townland. - Industrial
298
+ # Estate. Industrial Estate, Industrial Park, Business Campus, etc. - Shopping District.
299
+ # Shopping Centre. - Housing Estate. Residential Housing Estate. - Village. Based on Census
300
+ # 2011 population < 1,500. - Town. Based on Census 2011 population > 1,500. - Urban Area.
301
+ # Wholly within a village/town/city e.g. Rathmines. - Suburban Locality. This is an area that
302
+ # is both rural and urban, as it is both a townland, and also an area name applied to houses
303
+ # in a town, as the town has extended partially into the townland.
304
+ #
305
+ # @return [String, nil]
306
+ def secondary_locality_address_type = @hash["secondary_locality_address_type"]
307
+
308
+ # Describes the type of building, e.g. detached, semi-detached, bungalow.
309
+ #
310
+ # @return [String, nil]
311
+ def building_type = @hash["building_type"]
312
+
313
+ # A Yes/No field, indicating whether or not the building is a holiday home. Empty string if
314
+ # unknown.
315
+ #
316
+ # @return [String, nil]
317
+ def holiday_home = @hash["holiday_home"]
318
+
319
+ # A Yes/No field, indicating whether or not the building is under construction. Empty string
320
+ # if unknown.
321
+ #
322
+ # @return [String, nil]
323
+ def under_construction = @hash["under_construction"]
324
+
325
+ # Can be one of:
326
+ #
327
+ # @return [String, nil]
328
+ def building_use = @hash["building_use"]
329
+
330
+ # A Yes/No field, indicating whether the building is vacant. Empty string if unknown.
331
+ #
332
+ # @return [String, nil]
333
+ def vacant = @hash["vacant"]
334
+
335
+ # A Yes/No field, indicating whether the organisation is vacant. Empty string if unknown or
336
+ # the address has no organisation.
337
+ #
338
+ # @return [String, nil]
339
+ def org_vacant = @hash["org_vacant"]
340
+
341
+ # The NACE Code for the Category.
342
+ #
343
+ # @return [String, nil]
344
+ def nace_code = @hash["nace_code"]
345
+
346
+ # Name of the NACE Category
347
+ #
348
+ # @return [String, nil]
349
+ def nace_category = @hash["nace_category"]
350
+
351
+ # Name of local authority
352
+ #
353
+ # @return [String, nil]
354
+ def local_authority = @hash["local_authority"]
355
+
356
+ # Unique Identifier for the Electoral Division, from the 2017 data.
357
+ #
358
+ # @return [String, nil]
359
+ def ded_id = @hash["ded_id"]
360
+
361
+ # Unique Identifier for the Small Area, from the 2017 data.
362
+ #
363
+ # @return [String, nil]
364
+ def small_area_id = @hash["small_area_id"]
365
+
366
+ # Unique Identifier for the townland, from the 2017 data.
367
+ #
368
+ # @return [String, nil]
369
+ def townland_id = @hash["townland_id"]
370
+
371
+ # Unique Identifier for the Gaeltacht area, from the 2017 data. There are 7 Gaeltacht areas.
372
+ # Empty string if the address is not in a Gaeltacht.
373
+ #
374
+ # @return [String, nil]
375
+ def gaeltacht_id = @hash["gaeltacht_id"]
376
+
377
+ # An Post sorting information.
378
+ #
379
+ # @return [String, nil]
380
+ def postaim_presort_61 = @hash["postaim_presort_61"]
381
+
382
+ # An Post sorting information.
383
+ #
384
+ # @return [String, nil]
385
+ def postaim_presort_152 = @hash["postaim_presort_152"]
386
+
387
+ # An Post publicity post zone information.
388
+ #
389
+ # @return [String, nil]
390
+ def publicity_post_zone = @hash["publicity_post_zone"]
391
+ end
392
+ end
393
+ end
@@ -0,0 +1,204 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated from the OpenAPI spec. Do not edit.
4
+
5
+ module AddressZen
6
+ module Types
7
+ # Ireland ECAF Address
8
+ #
9
+ # ECAF is the Eircode Address File, which holds one record per Irish postal address. English and
10
+ # Irish language versions of each address are indexed separately and distinguished by
11
+ # `language`.
12
+ #
13
+ # Unavailable elements are returned as an empty string, never `null`. ECAF carries no
14
+ # coordinates, so `longitude` and `latitude` are always empty strings - use `EcadAddress` for
15
+ # geolocated Irish addresses.
16
+ class EcafAddress < Model
17
+ # Globally unique internally generated identifier for an address
18
+ #
19
+ # @return [String]
20
+ def id = @hash["id"]
21
+
22
+ # @return [String]
23
+ def dataset = @hash["dataset"]
24
+
25
+ # 3 letter country code (ISO 3166-1)
26
+ #
27
+ # @return [String]
28
+ def country_iso = @hash["country_iso"]
29
+
30
+ # 2 letter country code (ISO 3166-1)
31
+ #
32
+ # @return [String]
33
+ def country_iso_2 = @hash["country_iso_2"]
34
+
35
+ # Full country names (ISO 3166)
36
+ #
37
+ # @return [String]
38
+ def country = @hash["country"]
39
+
40
+ # Language represented by 2 letter ISO Code (639-1)
41
+ #
42
+ # @return [String]
43
+ def language = @hash["language"]
44
+
45
+ # Address Line 1
46
+ #
47
+ # @return [String]
48
+ def line_1 = @hash["line_1"]
49
+
50
+ # Address Line 2
51
+ #
52
+ # @return [String]
53
+ def line_2 = @hash["line_2"]
54
+
55
+ # Address Line 3
56
+ #
57
+ # @return [String]
58
+ def line_3 = @hash["line_3"]
59
+
60
+ # Address Line 4
61
+ #
62
+ # @return [String]
63
+ def line_4 = @hash["line_4"]
64
+
65
+ # Address Line 5
66
+ #
67
+ # @return [String]
68
+ def line_5 = @hash["line_5"]
69
+
70
+ # Address Line 6
71
+ #
72
+ # @return [String]
73
+ def line_6 = @hash["line_6"]
74
+
75
+ # Address Line 7
76
+ #
77
+ # @return [String]
78
+ def line_7 = @hash["line_7"]
79
+
80
+ # Address Line 8
81
+ #
82
+ # @return [String]
83
+ def line_8 = @hash["line_8"]
84
+
85
+ # Address Line 9
86
+ #
87
+ # @return [String]
88
+ def line_9 = @hash["line_9"]
89
+
90
+ # The department or division within an organisation, e.g. `Accounts Department`. If the
91
+ # department element exists, then the organisation must also exist.
92
+ #
93
+ # @return [String]
94
+ def department = @hash["department"]
95
+
96
+ # Organisation name, e.g. `Oak Tree Limited`.
97
+ #
98
+ # @return [String]
99
+ def organisation = @hash["organisation"]
100
+
101
+ # The sub-building refers to an apartment, flat or unit within a building, e.g. `Flat 1`.
102
+ #
103
+ # @return [String]
104
+ def sub_building_name = @hash["sub_building_name"]
105
+
106
+ # The name given to the building, e.g. `Rose Cottage`. Prepended by sub building, if any, when
107
+ # the sub building does not appear on a line to itself. The building name is omitted if it is
108
+ # the same as either the Organisation or Building Group.
109
+ #
110
+ # @return [String]
111
+ def building_name = @hash["building_name"]
112
+
113
+ # A number associated with the whole building. The building number may have a numeric and an
114
+ # alphanumeric component, which are concatenated e.g. 2A, or alternatively will have a simple
115
+ # building number or a complex building number. The building number always relates to the
116
+ # whole building and not a sub-unit within it. A complex building number may be one of the
117
+ # following: - Dual. Two numbers separated by '/' e.g. 63/64 = 63, 64 - Sequence. An odd or
118
+ # even sequence of numbers with lower and upper bound separated by an underscore '_' e.g.
119
+ # `1_5` = 1,3,5 and `2_6` = 2,4,6 - Range. A range of consecutive numbers with lower and upper
120
+ # bound separated by a dash '-' e.g. `63-66` = 63, 64, 65, 66 The building number never
121
+ # appears on a line by itself and can prepend Building Group, Primary Thoroughfare or Primary
122
+ # Locality.
123
+ #
124
+ # @return [String]
125
+ def building_number = @hash["building_number"]
126
+
127
+ # A building group is a collection of buildings with a collective name, located on or near the
128
+ # same thoroughfare, e.g. `Marrian Terrace`.
129
+ #
130
+ # @return [String]
131
+ def building_group = @hash["building_group"]
132
+
133
+ # The name of the thoroughfare on which premises are located, e.g. `Griffith Road`. It may
134
+ # appear on a line by itself or be appended to either a sub building or building number.
135
+ #
136
+ # @return [String]
137
+ def primary_thoroughfare = @hash["primary_thoroughfare"]
138
+
139
+ # It is never present without a primary thoroughfare. The primary thoroughfare is dependent on
140
+ # the secondary thoroughfare and appears before the secondary thoroughfare in any address.
141
+ #
142
+ # @return [String]
143
+ def secondary_thoroughfare = @hash["secondary_thoroughfare"]
144
+
145
+ # First locality elements which can refer to areas, districts, industrial estates, towns, etc.
146
+ #
147
+ # @return [String]
148
+ def primary_locality = @hash["primary_locality"]
149
+
150
+ # Never present without a primary locality. The secondary locality has a wider geographic
151
+ # scope than the primary locality.
152
+ #
153
+ # @return [String]
154
+ def secondary_locality = @hash["secondary_locality"]
155
+
156
+ # Also known as the Post Town.
157
+ #
158
+ # @return [String]
159
+ def tertiary_locality = @hash["tertiary_locality"]
160
+
161
+ # One of the 26 Counties in the Republic of Ireland. These counties are sub-national divisions
162
+ # used for the purposes of administrative, geographical and political demarcation. Post County
163
+ # is the County associated with the Post Town, not the geographic county in which the building
164
+ # is located. The Post County is normally used as part of the Postal Address with some
165
+ # exceptions e.g. Dublin Postal Districts where the Post County is not used and some Post
166
+ # Towns (e.g. Tipperary, Kildare, etc.) that have the same name as the Post County.
167
+ #
168
+ # @return [String]
169
+ def post_county = @hash["post_county"]
170
+
171
+ # The seven character Eircode has an A65 F4E2 format. The Eircode is a mandatory address
172
+ # element. The last line of a Postal Address will contain the Eircode, displayed with a space.
173
+ # e.g. `A65 F4E2`.
174
+ #
175
+ # @return [String]
176
+ def eircode = @hash["eircode"]
177
+
178
+ # The address reference is the An Post GeoDirectory address reference identifier used by the
179
+ # Universal Service Provider.
180
+ #
181
+ # @return [String]
182
+ def address_reference = @hash["address_reference"]
183
+
184
+ # The longitude of the address or postcode (WGS84).
185
+ #
186
+ # @return [String, Float]
187
+ def longitude = @hash["longitude"]
188
+
189
+ # The latitude of the address or postcode (WGS84).
190
+ #
191
+ # @return [String, Float]
192
+ def latitude = @hash["latitude"]
193
+
194
+ # The unique identifier in the ECAF is the `ecaf_id`. This unique identifier allows each
195
+ # address in the ECAF to be uniquely identified. It can also be used as index once the data
196
+ # has been imported into a relational database. This is a numeric field that can store values
197
+ # from 0 to 2,147,483,647. It is represented as a number up to 10 digits long. All other
198
+ # fields in ECAF are alphanumeric.
199
+ #
200
+ # @return [String, nil]
201
+ def ecaf_id = @hash["ecaf_id"]
202
+ end
203
+ end
204
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated from the OpenAPI spec. Do not edit.
4
+
5
+ module AddressZen
6
+ module Types
7
+ # Email Object
8
+ class Email < Model
9
+ # @return [String]
10
+ def result = @hash["result"]
11
+
12
+ # Returns `true` if the email can be delivered
13
+ #
14
+ # @return [Boolean]
15
+ def deliverable = @hash["deliverable"]
16
+
17
+ # Returns `true` if email comes from a disposable email service like temp-mail
18
+ #
19
+ # @return [Boolean]
20
+ def disposable = @hash["disposable"]
21
+
22
+ # Returns `true` if the email originates from a free service like Outlook or Gmail.
23
+ #
24
+ # @return [Boolean]
25
+ def free = @hash["free"]
26
+
27
+ # Returns `true` if email address represents an organisational role like `admin`, `support`,
28
+ # `postmaster` etc
29
+ #
30
+ # @return [Boolean]
31
+ def role = @hash["role"]
32
+
33
+ # Returns `true` if this domain accepts all emails regardless of username
34
+ #
35
+ # @return [Boolean]
36
+ def catchall = @hash["catchall"]
37
+
38
+ # Returns an array of suggested email addresses if the email address is not deliverable. The
39
+ # suggested emails are not validated.
40
+ #
41
+ # @return [Array<String>]
42
+ def suggestions = @hash["suggestions"]
43
+ end
44
+ end
45
+ end