ideal_postcodes 2.0.0 → 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 +5 -5
- 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 -175
- data/.travis.yml +0 -9
- 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 -33
- data/lib/idealpostcodes/key.rb +0 -13
- data/lib/idealpostcodes/postcode.rb +0 -22
- data/lib/idealpostcodes/util.rb +0 -29
- data/lib/idealpostcodes/version.rb +0 -3
- data/lib/idealpostcodes.rb +0 -112
- 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 -66
- data/spec/spec_helper.rb +0 -68
- 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,12 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class LicenseeDailyUsage < Model
|
|
6
|
+
def limit: () -> Integer?
|
|
7
|
+
def count: () -> Integer
|
|
8
|
+
def updatedAt: () -> String
|
|
9
|
+
alias updated_at updatedAt
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class MoisAddress < Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
# Known values: "mois"
|
|
8
|
+
def dataset: () -> String
|
|
9
|
+
# Known values: "South Korea"
|
|
10
|
+
def country: () -> String
|
|
11
|
+
# Known values: "KOR"
|
|
12
|
+
def country_iso: () -> String
|
|
13
|
+
# Known values: "KR"
|
|
14
|
+
def country_iso_2: () -> String
|
|
15
|
+
# Known values: "ko"
|
|
16
|
+
def language: () -> String
|
|
17
|
+
def address: () -> String
|
|
18
|
+
def line_1: () -> String
|
|
19
|
+
def line_2: () -> String
|
|
20
|
+
def city: () -> String
|
|
21
|
+
def province: () -> String
|
|
22
|
+
def 법정읍면동명: () -> String
|
|
23
|
+
def 법정동코드: () -> String
|
|
24
|
+
def 법정리명: () -> String
|
|
25
|
+
def 비고1: () -> String
|
|
26
|
+
def 비고2: () -> String
|
|
27
|
+
def 변동전도로명주소: () -> String
|
|
28
|
+
def 변경이력정보: () -> String
|
|
29
|
+
def 변경이력사유: () -> String
|
|
30
|
+
def 변경전_도로명주소: () -> String
|
|
31
|
+
def 변경사유: () -> String
|
|
32
|
+
def 변경사유코드: () -> String
|
|
33
|
+
def 층일련번호: () -> String
|
|
34
|
+
def 층명칭: () -> String
|
|
35
|
+
def 대표지번여부: () -> String
|
|
36
|
+
def 대표여부: () -> String
|
|
37
|
+
def 다량배달처명: () -> String
|
|
38
|
+
def 동일련번호: () -> String
|
|
39
|
+
def 동명칭: () -> String
|
|
40
|
+
def 도로명: () -> String
|
|
41
|
+
def 도로명_로마자: () -> String
|
|
42
|
+
def 도로명번호: () -> String
|
|
43
|
+
def 도로명코드: () -> String
|
|
44
|
+
def 도로명코드_고시일자: () -> String
|
|
45
|
+
def 도로명코드_말소일자: () -> String
|
|
46
|
+
def 읍면동구분: () -> String
|
|
47
|
+
def 읍면동일련번호: () -> String
|
|
48
|
+
def 읍면동코드: () -> String
|
|
49
|
+
def 읍면동명: () -> String
|
|
50
|
+
def 읍면동명_로마자: () -> String
|
|
51
|
+
def 건축물대장_건물명: () -> String
|
|
52
|
+
def 건물본번: () -> String
|
|
53
|
+
def 건물부번: () -> String
|
|
54
|
+
def 건물관리번호: () -> String
|
|
55
|
+
def 기초구역번호: () -> String
|
|
56
|
+
def 공동주택여부: () -> String
|
|
57
|
+
def 고시일자: () -> String
|
|
58
|
+
def 관리번호: () -> String
|
|
59
|
+
def 행정동코드: () -> String
|
|
60
|
+
def 행정동명: () -> String
|
|
61
|
+
def 호일련번호: () -> String
|
|
62
|
+
def 호명칭: () -> String
|
|
63
|
+
def 호접미사일련번호: () -> String
|
|
64
|
+
def 호접미사명칭: () -> String
|
|
65
|
+
def 이동사유코드: () -> String
|
|
66
|
+
def 일련번호: () -> String
|
|
67
|
+
def 지번일련번호: () -> String
|
|
68
|
+
def 지번본번_번지: () -> String
|
|
69
|
+
def 지번부번_호: () -> String
|
|
70
|
+
def 지하구분: () -> String
|
|
71
|
+
def 지하여부: () -> String
|
|
72
|
+
def 산여부: () -> String
|
|
73
|
+
def 상위도로명: () -> String
|
|
74
|
+
def 상위도로명번호: () -> String
|
|
75
|
+
def 상세건물명: () -> String
|
|
76
|
+
def 상세주소_부여여부: () -> String
|
|
77
|
+
def 상세주소여부: () -> String
|
|
78
|
+
def 사용여부: () -> String
|
|
79
|
+
def 시도명: () -> String
|
|
80
|
+
def 시도명_로마자: () -> String
|
|
81
|
+
def 시군구_건물명: () -> String
|
|
82
|
+
def 시군구코드: () -> String
|
|
83
|
+
def 시군구명: () -> String
|
|
84
|
+
def 시군구명_로마자: () -> String
|
|
85
|
+
def 시군구용_건물명: () -> String
|
|
86
|
+
def 우편일련번호: () -> String
|
|
87
|
+
def 우편번호: () -> String
|
|
88
|
+
def 우편번호_일련번호: () -> String
|
|
89
|
+
def 영문_법정리명: () -> String
|
|
90
|
+
def 영문읍면동명: () -> String
|
|
91
|
+
def 영문_법정읍면동명: () -> String
|
|
92
|
+
def 영문도로명: () -> String
|
|
93
|
+
def 영문시도명: () -> String
|
|
94
|
+
def 영문시군구명: () -> String
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class MrAddress < Model
|
|
6
|
+
# Known values: "mr"
|
|
7
|
+
def dataset: () -> String
|
|
8
|
+
def postcode: () -> String
|
|
9
|
+
def post_town: () -> String
|
|
10
|
+
def dependant_locality: () -> String
|
|
11
|
+
def double_dependant_locality: () -> String
|
|
12
|
+
def thoroughfare: () -> String
|
|
13
|
+
def dependant_thoroughfare: () -> String
|
|
14
|
+
def building_number: () -> String
|
|
15
|
+
def building_name: () -> String
|
|
16
|
+
def sub_building_name: () -> String
|
|
17
|
+
def department_name: () -> String
|
|
18
|
+
def organisation_name: () -> String
|
|
19
|
+
def udprn: () -> Integer
|
|
20
|
+
# Known values: "S", "L", ""
|
|
21
|
+
def postcode_type: () -> String
|
|
22
|
+
def su_organisation_indicator: () -> String
|
|
23
|
+
def delivery_point_suffix: () -> String
|
|
24
|
+
def umprn: () -> Integer
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
module NativeRecord
|
|
6
|
+
type t =
|
|
7
|
+
Types::PafAddress
|
|
8
|
+
| Types::MrAddress
|
|
9
|
+
| Types::NybAddress
|
|
10
|
+
| Types::PafaAddress
|
|
11
|
+
| Types::PafwAddress
|
|
12
|
+
| Types::AbAddress
|
|
13
|
+
| Types::AbpAddress
|
|
14
|
+
| Types::UspsAddress
|
|
15
|
+
| Types::EcadAddress
|
|
16
|
+
| Types::EcafAddress
|
|
17
|
+
| Types::HereAddress
|
|
18
|
+
| Types::GnafAddress
|
|
19
|
+
| Types::KadasterAddress
|
|
20
|
+
| Types::KartverketAddress
|
|
21
|
+
| Types::SdfiAddress
|
|
22
|
+
| Types::CannarAddress
|
|
23
|
+
| Types::FodbosaAddress
|
|
24
|
+
| Types::MoisAddress
|
|
25
|
+
| Types::UpujpAddress
|
|
26
|
+
| Types::BevAddress
|
|
27
|
+
| Types::BanAddress
|
|
28
|
+
| Types::SwtAddress
|
|
29
|
+
| Hash[String, untyped]
|
|
30
|
+
|
|
31
|
+
def self.from_hash: (Hash[String, untyped]? value) -> t?
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class NybAddress < Model
|
|
6
|
+
# Known values: "nyb"
|
|
7
|
+
def dataset: () -> String
|
|
8
|
+
def postcode: () -> String
|
|
9
|
+
def post_town: () -> String
|
|
10
|
+
def dependant_locality: () -> String
|
|
11
|
+
def double_dependant_locality: () -> String
|
|
12
|
+
def thoroughfare: () -> String
|
|
13
|
+
def dependant_thoroughfare: () -> String
|
|
14
|
+
def building_number: () -> String
|
|
15
|
+
def building_name: () -> String
|
|
16
|
+
def sub_building_name: () -> String
|
|
17
|
+
def department_name: () -> String
|
|
18
|
+
def organisation_name: () -> String
|
|
19
|
+
def udprn: () -> Integer
|
|
20
|
+
# Known values: "S", "L", ""
|
|
21
|
+
def postcode_type: () -> String
|
|
22
|
+
def su_organisation_indicator: () -> String
|
|
23
|
+
def delivery_point_suffix: () -> String
|
|
24
|
+
def po_box: () -> String
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class PafAddress < Model
|
|
6
|
+
# Known values: "paf"
|
|
7
|
+
def dataset: () -> String
|
|
8
|
+
def postcode: () -> String
|
|
9
|
+
def post_town: () -> String
|
|
10
|
+
def dependant_locality: () -> String
|
|
11
|
+
def double_dependant_locality: () -> String
|
|
12
|
+
def thoroughfare: () -> String
|
|
13
|
+
def dependant_thoroughfare: () -> String
|
|
14
|
+
def building_number: () -> String
|
|
15
|
+
def building_name: () -> String
|
|
16
|
+
def sub_building_name: () -> String
|
|
17
|
+
def department_name: () -> String
|
|
18
|
+
def organisation_name: () -> String
|
|
19
|
+
def udprn: () -> Integer
|
|
20
|
+
# Known values: "S", "L", ""
|
|
21
|
+
def postcode_type: () -> String
|
|
22
|
+
def su_organisation_indicator: () -> String
|
|
23
|
+
def delivery_point_suffix: () -> String
|
|
24
|
+
def po_box: () -> String
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class PafaAddress < Model
|
|
6
|
+
# Known values: "pafa"
|
|
7
|
+
def dataset: () -> String
|
|
8
|
+
def postcode: () -> String
|
|
9
|
+
def post_town: () -> String
|
|
10
|
+
def dependant_locality: () -> String
|
|
11
|
+
def double_dependant_locality: () -> String
|
|
12
|
+
def thoroughfare: () -> String
|
|
13
|
+
def dependant_thoroughfare: () -> String
|
|
14
|
+
def building_number: () -> String
|
|
15
|
+
def building_name: () -> String
|
|
16
|
+
def sub_building_name: () -> String
|
|
17
|
+
def department_name: () -> String
|
|
18
|
+
def organisation_name: () -> String
|
|
19
|
+
def udprn: () -> Integer
|
|
20
|
+
# Known values: "S", "L", ""
|
|
21
|
+
def postcode_type: () -> String
|
|
22
|
+
def su_organisation_indicator: () -> String
|
|
23
|
+
def delivery_point_suffix: () -> String
|
|
24
|
+
def po_box: () -> String
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class PafwAddress < Model
|
|
6
|
+
# Known values: "pafw"
|
|
7
|
+
def dataset: () -> String
|
|
8
|
+
def postcode: () -> String
|
|
9
|
+
def post_town: () -> String
|
|
10
|
+
def dependant_locality: () -> String
|
|
11
|
+
def double_dependant_locality: () -> String
|
|
12
|
+
def thoroughfare: () -> String
|
|
13
|
+
def dependant_thoroughfare: () -> String
|
|
14
|
+
def building_number: () -> String
|
|
15
|
+
def building_name: () -> String
|
|
16
|
+
def sub_building_name: () -> String
|
|
17
|
+
def department_name: () -> String
|
|
18
|
+
def organisation_name: () -> String
|
|
19
|
+
def udprn: () -> Integer
|
|
20
|
+
# Known values: "S", "L", ""
|
|
21
|
+
def postcode_type: () -> String
|
|
22
|
+
def su_organisation_indicator: () -> String
|
|
23
|
+
def delivery_point_suffix: () -> String
|
|
24
|
+
def po_box: () -> String
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class PhoneNumber < Model
|
|
6
|
+
# Known values: true
|
|
7
|
+
def valid: () -> bool
|
|
8
|
+
def national_format: () -> String
|
|
9
|
+
def international_format: () -> String
|
|
10
|
+
def iso_country: () -> String
|
|
11
|
+
def iso_country_2: () -> String
|
|
12
|
+
def country: () -> String
|
|
13
|
+
def current_carrier: () -> Types::Carrier?
|
|
14
|
+
def original_carrier: () -> Types::Carrier?
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class Place < Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
# Known values: "geonames"
|
|
8
|
+
def dataset: () -> String
|
|
9
|
+
def name: () -> String
|
|
10
|
+
def descriptive_name: () -> String
|
|
11
|
+
def country_iso: () -> String
|
|
12
|
+
# Known values: "en", "ar", "as", "az", "be", "bg", "bn", "bs", "ca", "cs", "cy", "da", "de",
|
|
13
|
+
# "el", "es", "et", "eu", "fi", "fo", "fr", "ga", "gl", "gn", "he", "hi", "hr", "hu", "hy",
|
|
14
|
+
# "id", "is", "it", "ja", "ka", "kk", "km", "kn", "ko", "lt", "lv", "mk", "mn", "ms", "mt",
|
|
15
|
+
# "my", "nl", "no", "pl", "pt", "rm", "ro", "ru", "sk", "sl", "sq", "sr", "sv", "ta", "th",
|
|
16
|
+
# "tr", "uk", "uz", "vi", "wa", "zh"
|
|
17
|
+
def language: () -> String
|
|
18
|
+
def longitude: () -> (String | Float)
|
|
19
|
+
def latitude: () -> (String | Float)
|
|
20
|
+
def native: () -> native?
|
|
21
|
+
|
|
22
|
+
type native = Types::GeonamesPlace | Hash[String, untyped]
|
|
23
|
+
|
|
24
|
+
private
|
|
25
|
+
|
|
26
|
+
def hydrate_native: (Hash[String, untyped] value) -> native
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class PlaceResult < Model
|
|
6
|
+
def hits: () -> Array[hit]
|
|
7
|
+
|
|
8
|
+
type hit = Types::PlaceSuggestion
|
|
9
|
+
|
|
10
|
+
private
|
|
11
|
+
|
|
12
|
+
def hydrate_hit: (Hash[String, untyped] value) -> hit
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class PlaceSuggestion < Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
def name: () -> String
|
|
8
|
+
def descriptive_name: () -> String
|
|
9
|
+
def country_iso: () -> String
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class SdfiAddress < Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
# Known values: "sdfi"
|
|
8
|
+
def dataset: () -> String
|
|
9
|
+
# Known values: "Denmark"
|
|
10
|
+
def country: () -> String
|
|
11
|
+
# Known values: "DNK"
|
|
12
|
+
def country_iso: () -> String
|
|
13
|
+
# Known values: "DK"
|
|
14
|
+
def country_iso_2: () -> String
|
|
15
|
+
def address: () -> String
|
|
16
|
+
def line_1: () -> String
|
|
17
|
+
def line_2: () -> String
|
|
18
|
+
# Known values: "da"
|
|
19
|
+
def language: () -> String
|
|
20
|
+
def latitude: () -> (String | Float)
|
|
21
|
+
def longitude: () -> (String | Float)
|
|
22
|
+
def adresse_id: () -> String
|
|
23
|
+
def kvhx: () -> String
|
|
24
|
+
def kvh: () -> String
|
|
25
|
+
def adgangsadresse: () -> bool
|
|
26
|
+
def status: () -> String
|
|
27
|
+
def darstatus: () -> String
|
|
28
|
+
def oprettet: () -> String
|
|
29
|
+
def ændret: () -> String
|
|
30
|
+
def ikrafttrædelse: () -> String
|
|
31
|
+
def nedlagt: () -> String
|
|
32
|
+
def vejkode: () -> String
|
|
33
|
+
def vejnavn: () -> String
|
|
34
|
+
def adresseringsvejnavn: () -> String
|
|
35
|
+
def husnr: () -> String
|
|
36
|
+
def etage: () -> String
|
|
37
|
+
def dør: () -> String
|
|
38
|
+
def supplerendebynavn_dagi_id: () -> String
|
|
39
|
+
def supplerendebynavn: () -> String
|
|
40
|
+
def postnr: () -> String
|
|
41
|
+
def postnrnavn: () -> String
|
|
42
|
+
def stormodtagerpostnr: () -> String
|
|
43
|
+
def stormodtagerpostnrnavn: () -> String
|
|
44
|
+
def betegnelse: () -> String
|
|
45
|
+
def adressepunktændringsdato: () -> String
|
|
46
|
+
def etrs89koordinat_øst: () -> String
|
|
47
|
+
def etrs89koordinat_nord: () -> String
|
|
48
|
+
def wgs84koordinat_bredde: () -> (String | Float)
|
|
49
|
+
def wgs84koordinat_længde: () -> (String | Float)
|
|
50
|
+
def højde: () -> String
|
|
51
|
+
def nøjagtighed: () -> String
|
|
52
|
+
def kilde: () -> String
|
|
53
|
+
def tekniskstandard: () -> String
|
|
54
|
+
def tekstretning: () -> String
|
|
55
|
+
def ddkn_m100: () -> String
|
|
56
|
+
def ddkn_km1: () -> String
|
|
57
|
+
def ddkn_km10: () -> String
|
|
58
|
+
def kommunekode: () -> String
|
|
59
|
+
def kommunenavn: () -> String
|
|
60
|
+
def landsdelsnuts3: () -> String
|
|
61
|
+
def landsdelsnavn: () -> String
|
|
62
|
+
def regionskode: () -> String
|
|
63
|
+
def regionsnavn: () -> String
|
|
64
|
+
def afstemningsområdenummer: () -> String
|
|
65
|
+
def afstemningsområdenavn: () -> String
|
|
66
|
+
def menighedsrådsafstemningsområdenummer: () -> String
|
|
67
|
+
def menighedsrådsafstemningsområdenavn: () -> String
|
|
68
|
+
def opstillingskredskode: () -> String
|
|
69
|
+
def opstillingskredsnavn: () -> String
|
|
70
|
+
def storkredsnummer: () -> String
|
|
71
|
+
def storkredsnavn: () -> String
|
|
72
|
+
def valglandsdelsbogstav: () -> String
|
|
73
|
+
def valglandsdelsnavn: () -> String
|
|
74
|
+
def sognekode: () -> String
|
|
75
|
+
def sognenavn: () -> String
|
|
76
|
+
def politikredskode: () -> String
|
|
77
|
+
def politikredsnavn: () -> String
|
|
78
|
+
def retskredskode: () -> String
|
|
79
|
+
def retskredsnavn: () -> String
|
|
80
|
+
def jordstykke_ejerlavkode: () -> String
|
|
81
|
+
def jordstykke_ejerlavnavn: () -> String
|
|
82
|
+
def jordstykke_matrikelnr: () -> String
|
|
83
|
+
def jordstykke_esrejendomsnr: () -> String
|
|
84
|
+
def ejerlavkode: () -> String
|
|
85
|
+
def ejerlavnavn: () -> String
|
|
86
|
+
def matrikelnr: () -> String
|
|
87
|
+
def esrejendomsnr: () -> String
|
|
88
|
+
def zone: () -> String
|
|
89
|
+
def brofast: () -> bool
|
|
90
|
+
def adgangsadresseid: () -> String
|
|
91
|
+
def adgangspunktid: () -> String
|
|
92
|
+
def navngivenvej_id: () -> String
|
|
93
|
+
def adgangsadresse_status: () -> String
|
|
94
|
+
def adgangsadresse_darstatus: () -> String
|
|
95
|
+
def adgangsadresse_oprettet: () -> String
|
|
96
|
+
def adgangsadresse_ændret: () -> String
|
|
97
|
+
def adgangsadresse_ikrafttrædelse: () -> String
|
|
98
|
+
def adgangsadresse_nedlagt: () -> String
|
|
99
|
+
def vejpunkt_id: () -> String
|
|
100
|
+
def vejpunkt_ændret: () -> String
|
|
101
|
+
def vejpunkt_kilde: () -> String
|
|
102
|
+
def vejpunkt_nøjagtighed: () -> String
|
|
103
|
+
def vejpunkt_tekniskstandard: () -> String
|
|
104
|
+
def vejpunkt_x: () -> String
|
|
105
|
+
def vejpunkt_y: () -> String
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class SwtAddress < Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
# Known values: "swt"
|
|
8
|
+
def dataset: () -> String
|
|
9
|
+
# Known values: "Switzerland", "Liechtenstein"
|
|
10
|
+
def country: () -> String
|
|
11
|
+
# Known values: "CHE", "LIE"
|
|
12
|
+
def country_iso: () -> String
|
|
13
|
+
# Known values: "CH", "LI"
|
|
14
|
+
def country_iso_2: () -> String
|
|
15
|
+
# Known values: "de", "fr", "it", "rm"
|
|
16
|
+
def language: () -> String
|
|
17
|
+
def canton: () -> String
|
|
18
|
+
def address: () -> String
|
|
19
|
+
def line_1: () -> String
|
|
20
|
+
def line_2: () -> String
|
|
21
|
+
def latitude: () -> (String | Float)
|
|
22
|
+
def longitude: () -> (String | Float)
|
|
23
|
+
def adr_egaid: () -> Integer
|
|
24
|
+
def str_esid: () -> Integer
|
|
25
|
+
def bdg_egid: () -> Integer
|
|
26
|
+
def adr_edid: () -> Integer
|
|
27
|
+
def stn_label: () -> String
|
|
28
|
+
def adr_number: () -> String
|
|
29
|
+
def bdg_category: () -> String
|
|
30
|
+
def bdg_name: () -> String
|
|
31
|
+
def zip_label: () -> String
|
|
32
|
+
def com_fosnr: () -> Integer
|
|
33
|
+
def com_name: () -> String
|
|
34
|
+
def com_canton: () -> String
|
|
35
|
+
def adr_status: () -> String
|
|
36
|
+
def adr_official: () -> bool
|
|
37
|
+
def adr_modified: () -> String
|
|
38
|
+
def adr_easting: () -> String
|
|
39
|
+
def adr_northing: () -> String
|
|
40
|
+
def str_type: () -> String
|
|
41
|
+
def str_status: () -> String
|
|
42
|
+
def str_official: () -> bool
|
|
43
|
+
def str_modified: () -> String
|
|
44
|
+
def str_easting: () -> String
|
|
45
|
+
def str_northing: () -> String
|
|
46
|
+
def ortschaftsname: () -> String
|
|
47
|
+
def plz4: () -> String
|
|
48
|
+
def zusatzziffer: () -> String?
|
|
49
|
+
def zip_id: () -> Integer?
|
|
50
|
+
def gemeindename: () -> String?
|
|
51
|
+
def bfs_nr: () -> Integer?
|
|
52
|
+
def kantonskürzel: () -> String
|
|
53
|
+
def sprache: () -> String?
|
|
54
|
+
def validity: () -> String?
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class UkAddressSuggestion < Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
def suggestion: () -> String
|
|
8
|
+
def udprn: () -> Integer
|
|
9
|
+
def umprn: () -> Integer?
|
|
10
|
+
def urls: () -> Types::UkAddressSuggestionUrls
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class UnknownEmail < Model
|
|
6
|
+
# Known values: "unknown"
|
|
7
|
+
def result: () -> String
|
|
8
|
+
def deliverable: () -> nil
|
|
9
|
+
def disposable: () -> nil
|
|
10
|
+
def free: () -> nil
|
|
11
|
+
def role: () -> nil
|
|
12
|
+
def catchall: () -> nil
|
|
13
|
+
def suggestions: () -> Array[String]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|