ideal_postcodes 2.0.1 → 3.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -16
- data/LICENSE +1 -21
- data/README.md +13 -332
- data/lib/ideal_postcodes/base_client.rb +88 -0
- data/lib/ideal_postcodes/client.rb +42 -0
- data/lib/ideal_postcodes/errors.rb +59 -0
- data/lib/ideal_postcodes/generated.rb +83 -0
- data/lib/ideal_postcodes/model.rb +73 -0
- data/lib/ideal_postcodes/operations.rb +866 -0
- data/lib/ideal_postcodes/responses/address_response.rb +19 -0
- data/lib/ideal_postcodes/responses/api_key_details_response.rb +21 -0
- data/lib/ideal_postcodes/responses/api_key_response.rb +21 -0
- data/lib/ideal_postcodes/responses/api_key_usage_response.rb +21 -0
- data/lib/ideal_postcodes/responses/autocomplete_response.rb +19 -0
- data/lib/ideal_postcodes/responses/cleanse_response.rb +31 -0
- data/lib/ideal_postcodes/responses/config_response.rb +21 -0
- data/lib/ideal_postcodes/responses/configs_response.rb +21 -0
- data/lib/ideal_postcodes/responses/delete_config_response.rb +19 -0
- data/lib/ideal_postcodes/responses/delete_licensee_response.rb +19 -0
- data/lib/ideal_postcodes/responses/email_response.rb +31 -0
- data/lib/ideal_postcodes/responses/gbr_resolve_address_response.rb +21 -0
- data/lib/ideal_postcodes/responses/licensee_response.rb +21 -0
- data/lib/ideal_postcodes/responses/licensees_response.rb +21 -0
- data/lib/ideal_postcodes/responses/phone_number_response.rb +31 -0
- data/lib/ideal_postcodes/responses/place_response.rb +19 -0
- data/lib/ideal_postcodes/responses/postcode_response.rb +30 -0
- data/lib/ideal_postcodes/responses/resolve_place_response.rb +24 -0
- data/lib/ideal_postcodes/transport.rb +61 -0
- data/lib/ideal_postcodes/types/ab_address.rb +283 -0
- data/lib/ideal_postcodes/types/abp_address.rb +674 -0
- data/lib/ideal_postcodes/types/address.rb +290 -0
- data/lib/ideal_postcodes/types/address_list_item.rb +592 -0
- data/lib/ideal_postcodes/types/address_result.rb +24 -0
- data/lib/ideal_postcodes/types/address_suggestion.rb +27 -0
- data/lib/ideal_postcodes/types/api_key.rb +27 -0
- data/lib/ideal_postcodes/types/api_key_automated_topup.rb +17 -0
- data/lib/ideal_postcodes/types/api_key_current_purchase.rb +27 -0
- data/lib/ideal_postcodes/types/api_key_daily_limit.rb +21 -0
- data/lib/ideal_postcodes/types/api_key_datasets.rb +202 -0
- data/lib/ideal_postcodes/types/api_key_details.rb +90 -0
- data/lib/ideal_postcodes/types/api_key_individual_limit.rb +16 -0
- data/lib/ideal_postcodes/types/api_key_monthly_limit.rb +21 -0
- data/lib/ideal_postcodes/types/api_key_notifications.rb +35 -0
- data/lib/ideal_postcodes/types/autocomplete_result.rb +25 -0
- data/lib/ideal_postcodes/types/available_context.rb +35 -0
- data/lib/ideal_postcodes/types/ban_address.rb +179 -0
- data/lib/ideal_postcodes/types/bev_address.rb +288 -0
- data/lib/ideal_postcodes/types/cannar_address.rb +297 -0
- data/lib/ideal_postcodes/types/carrier.rb +31 -0
- data/lib/ideal_postcodes/types/config.rb +34 -0
- data/lib/ideal_postcodes/types/configs_result.rb +15 -0
- data/lib/ideal_postcodes/types/deleted_config.rb +13 -0
- data/lib/ideal_postcodes/types/deleted_licensee.rb +13 -0
- data/lib/ideal_postcodes/types/ecad_address.rb +393 -0
- data/lib/ideal_postcodes/types/ecaf_address.rb +204 -0
- data/lib/ideal_postcodes/types/email.rb +45 -0
- data/lib/ideal_postcodes/types/fodbosa_address.rb +201 -0
- data/lib/ideal_postcodes/types/gbr_cleanse_match.rb +70 -0
- data/lib/ideal_postcodes/types/gbr_cleanse_no_match.rb +47 -0
- data/lib/ideal_postcodes/types/geonames_place.rb +153 -0
- data/lib/ideal_postcodes/types/gnaf_address.rb +463 -0
- data/lib/ideal_postcodes/types/here_address.rb +174 -0
- data/lib/ideal_postcodes/types/invalid_phone_number.rb +50 -0
- data/lib/ideal_postcodes/types/kadaster_address.rb +480 -0
- data/lib/ideal_postcodes/types/kartverket_address.rb +342 -0
- data/lib/ideal_postcodes/types/key_usage_day.rb +16 -0
- data/lib/ideal_postcodes/types/key_usage_result.rb +36 -0
- data/lib/ideal_postcodes/types/licensee.rb +50 -0
- data/lib/ideal_postcodes/types/licensee_daily_usage.rb +29 -0
- data/lib/ideal_postcodes/types/licensees_result.rb +23 -0
- data/lib/ideal_postcodes/types/mois_address.rb +440 -0
- data/lib/ideal_postcodes/types/mr_address.rb +99 -0
- data/lib/ideal_postcodes/types/native_record.rb +368 -0
- data/lib/ideal_postcodes/types/nyb_address.rb +99 -0
- data/lib/ideal_postcodes/types/paf_address.rb +96 -0
- data/lib/ideal_postcodes/types/pafa_address.rb +104 -0
- data/lib/ideal_postcodes/types/pafw_address.rb +99 -0
- data/lib/ideal_postcodes/types/phone_number.rb +50 -0
- data/lib/ideal_postcodes/types/place.rb +79 -0
- data/lib/ideal_postcodes/types/place_result.rb +21 -0
- data/lib/ideal_postcodes/types/place_suggestion.rb +32 -0
- data/lib/ideal_postcodes/types/sdfi_address.rb +520 -0
- data/lib/ideal_postcodes/types/swt_address.rb +247 -0
- data/lib/ideal_postcodes/types/uk_address_suggestion.rb +45 -0
- data/lib/ideal_postcodes/types/uk_address_suggestion_urls.rb +21 -0
- data/lib/ideal_postcodes/types/unknown_email.rb +43 -0
- data/lib/ideal_postcodes/types/upujp_address.rb +763 -0
- data/lib/ideal_postcodes/types/usps_address.rb +294 -0
- data/lib/ideal_postcodes/version.rb +5 -0
- data/lib/ideal_postcodes.rb +14 -2
- data/sig/ideal_postcodes/base_client.rbs +40 -0
- data/sig/ideal_postcodes/client.rbs +35 -0
- data/sig/ideal_postcodes/errors.rbs +27 -0
- data/sig/ideal_postcodes/model.rbs +37 -0
- data/sig/ideal_postcodes/operations.rbs +207 -0
- data/sig/ideal_postcodes/responses/address_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/api_key_details_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/api_key_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/api_key_usage_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/autocomplete_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/cleanse_response.rbs +19 -0
- data/sig/ideal_postcodes/responses/config_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/configs_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/delete_config_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/delete_licensee_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/email_response.rbs +19 -0
- data/sig/ideal_postcodes/responses/gbr_resolve_address_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/licensee_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/licensees_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/phone_number_response.rbs +19 -0
- data/sig/ideal_postcodes/responses/place_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/postcode_response.rbs +16 -0
- data/sig/ideal_postcodes/responses/resolve_place_response.rbs +13 -0
- data/sig/ideal_postcodes/transport.rbs +39 -0
- data/sig/ideal_postcodes/types/ab_address.rbs +57 -0
- data/sig/ideal_postcodes/types/abp_address.rbs +126 -0
- data/sig/ideal_postcodes/types/address.rbs +136 -0
- data/sig/ideal_postcodes/types/address_list_item.rbs +160 -0
- data/sig/ideal_postcodes/types/address_result.rbs +12 -0
- data/sig/ideal_postcodes/types/address_suggestion.rbs +11 -0
- data/sig/ideal_postcodes/types/api_key.rbs +11 -0
- data/sig/ideal_postcodes/types/api_key_automated_topup.rbs +9 -0
- data/sig/ideal_postcodes/types/api_key_current_purchase.rbs +11 -0
- data/sig/ideal_postcodes/types/api_key_daily_limit.rbs +10 -0
- data/sig/ideal_postcodes/types/api_key_datasets.rbs +46 -0
- data/sig/ideal_postcodes/types/api_key_details.rbs +22 -0
- data/sig/ideal_postcodes/types/api_key_individual_limit.rbs +9 -0
- data/sig/ideal_postcodes/types/api_key_monthly_limit.rbs +10 -0
- data/sig/ideal_postcodes/types/api_key_notifications.rbs +13 -0
- data/sig/ideal_postcodes/types/autocomplete_result.rbs +15 -0
- data/sig/ideal_postcodes/types/available_context.rbs +13 -0
- data/sig/ideal_postcodes/types/ban_address.rbs +46 -0
- data/sig/ideal_postcodes/types/bev_address.rbs +67 -0
- data/sig/ideal_postcodes/types/cannar_address.rbs +62 -0
- data/sig/ideal_postcodes/types/carrier.rbs +14 -0
- data/sig/ideal_postcodes/types/config.rbs +14 -0
- data/sig/ideal_postcodes/types/configs_result.rbs +9 -0
- data/sig/ideal_postcodes/types/deleted_config.rbs +9 -0
- data/sig/ideal_postcodes/types/deleted_licensee.rbs +9 -0
- data/sig/ideal_postcodes/types/ecad_address.rbs +84 -0
- data/sig/ideal_postcodes/types/ecaf_address.rbs +45 -0
- data/sig/ideal_postcodes/types/email.rbs +16 -0
- data/sig/ideal_postcodes/types/fodbosa_address.rbs +43 -0
- data/sig/ideal_postcodes/types/gbr_cleanse_match.rbs +25 -0
- data/sig/ideal_postcodes/types/gbr_cleanse_no_match.rbs +28 -0
- data/sig/ideal_postcodes/types/geonames_place.rbs +42 -0
- data/sig/ideal_postcodes/types/gnaf_address.rbs +104 -0
- data/sig/ideal_postcodes/types/here_address.rbs +37 -0
- data/sig/ideal_postcodes/types/invalid_phone_number.rbs +17 -0
- data/sig/ideal_postcodes/types/kadaster_address.rbs +98 -0
- data/sig/ideal_postcodes/types/kartverket_address.rbs +78 -0
- data/sig/ideal_postcodes/types/key_usage_day.rbs +10 -0
- data/sig/ideal_postcodes/types/key_usage_result.rbs +13 -0
- data/sig/ideal_postcodes/types/licensee.rbs +17 -0
- data/sig/ideal_postcodes/types/licensee_daily_usage.rbs +12 -0
- data/sig/ideal_postcodes/types/licensees_result.rbs +11 -0
- data/sig/ideal_postcodes/types/mois_address.rbs +97 -0
- data/sig/ideal_postcodes/types/mr_address.rbs +27 -0
- data/sig/ideal_postcodes/types/native_record.rbs +34 -0
- data/sig/ideal_postcodes/types/nyb_address.rbs +27 -0
- data/sig/ideal_postcodes/types/paf_address.rbs +27 -0
- data/sig/ideal_postcodes/types/pafa_address.rbs +27 -0
- data/sig/ideal_postcodes/types/pafw_address.rbs +27 -0
- data/sig/ideal_postcodes/types/phone_number.rbs +17 -0
- data/sig/ideal_postcodes/types/place.rbs +29 -0
- data/sig/ideal_postcodes/types/place_result.rbs +15 -0
- data/sig/ideal_postcodes/types/place_suggestion.rbs +12 -0
- data/sig/ideal_postcodes/types/sdfi_address.rbs +108 -0
- data/sig/ideal_postcodes/types/swt_address.rbs +57 -0
- data/sig/ideal_postcodes/types/uk_address_suggestion.rbs +13 -0
- data/sig/ideal_postcodes/types/uk_address_suggestion_urls.rbs +10 -0
- data/sig/ideal_postcodes/types/unknown_email.rbs +16 -0
- data/sig/ideal_postcodes/types/upujp_address.rbs +156 -0
- data/sig/ideal_postcodes/types/usps_address.rbs +63 -0
- metadata +186 -174
- data/.github/workflows/ci.yml +0 -22
- data/Gemfile +0 -2
- data/Rakefile +0 -15
- data/ideal-postcodes-ruby.gemspec +0 -25
- data/lib/idealpostcodes/address.rb +0 -31
- data/lib/idealpostcodes/errors.rb +0 -38
- data/lib/idealpostcodes/key.rb +0 -14
- data/lib/idealpostcodes/postcode.rb +0 -23
- data/lib/idealpostcodes/util.rb +0 -42
- data/lib/idealpostcodes/version.rb +0 -3
- data/lib/idealpostcodes.rb +0 -124
- data/spec/addresses_spec.rb +0 -68
- data/spec/idealpostcodes_spec.rb +0 -56
- data/spec/keys_spec.rb +0 -25
- data/spec/postcodes_spec.rb +0 -77
- data/spec/spec_helper.rb +0 -89
- data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_raises_an_exception_if_invalid_key.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_raises_an_exception_if_limit_breached.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_raises_an_exception_if_no_lookups_remaining.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_returns_an_address_for_a_valid_UDPRN.yml +0 -74
- data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_returns_nil_for_an_invalid_UDPRN.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_is_sensitive_to_limit.yml +0 -81
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_is_sensitive_to_page.yml +0 -369
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_raises_an_exception_if_invalid_key.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_raises_an_exception_if_limit_breached.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_raises_an_exception_if_no_lookups_remaining.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_returns_results_in_a_SearchResult_object.yml +0 -273
- data/spec/vcr_cassettes/IdealPostcodes_Key_lookup_details_returns_key_details.yml +0 -62
- data/spec/vcr_cassettes/IdealPostcodes_Key_lookup_returns_the_availability_status_of_a_key_false_key_.yml +0 -45
- data/spec/vcr_cassettes/IdealPostcodes_Key_lookup_returns_the_availability_status_of_a_key_true_key_.yml +0 -45
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_is_sensitive_to_limit_parameter.yml +0 -52
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_is_sensitive_to_radius_parament.yml +0 -133
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_returns_an_array_of_postcodes_and_locations.yml +0 -84
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_returns_an_empty_array_if_no_results_are_found.yml +0 -43
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_raises_an_exception_if_invalid_key.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_raises_an_exception_if_key_has_run_out_of_balance.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_raises_an_exception_if_limit_has_been_reached.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_returns_a_list_of_addresses_for_a_postcode.yml +0 -268
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_returns_an_empty_array_if_postcode_does_not_exist.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_key_available_returns_false_if_key_is_unavailable.yml +0 -45
- data/spec/vcr_cassettes/IdealPostcodes_key_available_returns_true_if_key_is_available.yml +0 -45
- data/spec/vcr_cassettes/IdealPostcodes_key_details_raises_an_exception_if_no_secret_is_provided.yml +0 -45
- data/spec/vcr_cassettes/IdealPostcodes_key_details_returns_key_information.yml +0 -62
- data/spec/vcr_cassettes/IdealPostcodes_request_generates_a_HTTP_request.yml +0 -268
- data/spec/vcr_cassettes/IdealPostcodes_request_raises_authentication_error_if_invalid_key_is_provided.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_request_raises_limit_reached_error_if_a_limit_has_been_breached.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_request_raises_token_exhausted_error_if_key_balance_is_depleted.yml +0 -42
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
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 IdealPostcodes
|
|
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 IdealPostcodes
|
|
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
|