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,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class ApiKeyResponse < Model
|
|
6
|
+
def result: () -> Types::ApiKey
|
|
7
|
+
# Known values: "Success"
|
|
8
|
+
def message: () -> String
|
|
9
|
+
# Known values: 2000
|
|
10
|
+
def code: () -> Integer
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class ApiKeyUsageResponse < Model
|
|
6
|
+
def result: () -> Types::KeyUsageResult
|
|
7
|
+
# Known values: 2000
|
|
8
|
+
def code: () -> Integer
|
|
9
|
+
# Known values: "Success"
|
|
10
|
+
def message: () -> String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class AutocompleteResponse < Model
|
|
6
|
+
def result: () -> Types::AutocompleteResult
|
|
7
|
+
# Known values: 2000
|
|
8
|
+
def code: () -> Integer
|
|
9
|
+
# Known values: "Success"
|
|
10
|
+
def message: () -> String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class CleanseResponse < Model
|
|
6
|
+
# Known values: 2000
|
|
7
|
+
def code: () -> Integer
|
|
8
|
+
# Known values: "Success"
|
|
9
|
+
def message: () -> String
|
|
10
|
+
def result: () -> result
|
|
11
|
+
|
|
12
|
+
type result = Types::GbrCleanseMatch | Types::GbrCleanseNoMatch
|
|
13
|
+
|
|
14
|
+
private
|
|
15
|
+
|
|
16
|
+
def hydrate_result: (Hash[String, untyped] value) -> result
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class ConfigResponse < Model
|
|
6
|
+
def result: () -> Types::Config
|
|
7
|
+
# Known values: 2000
|
|
8
|
+
def code: () -> Integer
|
|
9
|
+
# Known values: "Success"
|
|
10
|
+
def message: () -> String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class ConfigsResponse < Model
|
|
6
|
+
def result: () -> Types::ConfigsResult
|
|
7
|
+
# Known values: "Success"
|
|
8
|
+
def message: () -> String
|
|
9
|
+
# Known values: 2000
|
|
10
|
+
def code: () -> Integer
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class DeleteConfigResponse < Model
|
|
6
|
+
def result: () -> Types::DeletedConfig
|
|
7
|
+
# Known values: 2000
|
|
8
|
+
def code: () -> Integer
|
|
9
|
+
# Known values: "Success"
|
|
10
|
+
def message: () -> String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class DeleteLicenseeResponse < Model
|
|
6
|
+
def result: () -> Types::DeletedLicensee
|
|
7
|
+
# Known values: 2000
|
|
8
|
+
def code: () -> Integer
|
|
9
|
+
# Known values: "Success"
|
|
10
|
+
def message: () -> String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class EmailResponse < Model
|
|
6
|
+
# Known values: 2000
|
|
7
|
+
def code: () -> Integer
|
|
8
|
+
# Known values: "Success"
|
|
9
|
+
def message: () -> String
|
|
10
|
+
def result: () -> result
|
|
11
|
+
|
|
12
|
+
type result = Types::Email | Types::UnknownEmail
|
|
13
|
+
|
|
14
|
+
private
|
|
15
|
+
|
|
16
|
+
def hydrate_result: (Hash[String, untyped] value) -> result
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class GbrResolveAddressResponse < Model
|
|
6
|
+
# Known values: 2000
|
|
7
|
+
def code: () -> Integer
|
|
8
|
+
# Known values: "Success"
|
|
9
|
+
def message: () -> String
|
|
10
|
+
def result: () -> Types::Address
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class LicenseeResponse < Model
|
|
6
|
+
def result: () -> Types::Licensee
|
|
7
|
+
# Known values: 2000
|
|
8
|
+
def code: () -> Integer
|
|
9
|
+
# Known values: "Success"
|
|
10
|
+
def message: () -> String
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class LicenseesResponse < Model
|
|
6
|
+
def result: () -> Types::LicenseesResult
|
|
7
|
+
# Known values: "Success"
|
|
8
|
+
def message: () -> String
|
|
9
|
+
# Known values: 2000
|
|
10
|
+
def code: () -> Integer
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class PhoneNumberResponse < Model
|
|
6
|
+
# Known values: 2000
|
|
7
|
+
def code: () -> Integer
|
|
8
|
+
# Known values: "Success"
|
|
9
|
+
def message: () -> String
|
|
10
|
+
def result: () -> result
|
|
11
|
+
|
|
12
|
+
type result = Types::PhoneNumber | Types::InvalidPhoneNumber
|
|
13
|
+
|
|
14
|
+
private
|
|
15
|
+
|
|
16
|
+
def hydrate_result: (Hash[String, untyped] value) -> result
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class PlaceResponse < Model
|
|
6
|
+
# Known values: 2000
|
|
7
|
+
def code: () -> Integer
|
|
8
|
+
# Known values: "Success"
|
|
9
|
+
def message: () -> String
|
|
10
|
+
def result: () -> Types::PlaceResult
|
|
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 Responses
|
|
5
|
+
class PostcodeResponse < Model
|
|
6
|
+
def result: () -> Array[Types::AddressListItem]
|
|
7
|
+
# Known values: 2000
|
|
8
|
+
def code: () -> Integer
|
|
9
|
+
# Known values: "Success"
|
|
10
|
+
def message: () -> String
|
|
11
|
+
def page: () -> Integer
|
|
12
|
+
def limit: () -> Integer
|
|
13
|
+
def total: () -> Integer
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Responses
|
|
5
|
+
class ResolvePlaceResponse < Model
|
|
6
|
+
# Known values: 2000
|
|
7
|
+
def code: () -> Integer
|
|
8
|
+
# Known values: "Success"
|
|
9
|
+
def message: () -> String
|
|
10
|
+
def result: () -> Types::Place
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module IdealPostcodes
|
|
2
|
+
class Request
|
|
3
|
+
attr_reader http_method: String
|
|
4
|
+
attr_reader url: String
|
|
5
|
+
attr_reader headers: Hash[String, String]
|
|
6
|
+
attr_reader body: String?
|
|
7
|
+
|
|
8
|
+
def initialize: (http_method: String, url: String, headers: Hash[String, String], body: String?) -> void
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
class Response
|
|
12
|
+
attr_reader status: Integer
|
|
13
|
+
attr_reader headers: Hash[String, String]
|
|
14
|
+
attr_reader body: String
|
|
15
|
+
|
|
16
|
+
def initialize: (status: Integer, headers: Hash[String, String], body: String) -> void
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# Anything that sends a Request and returns a Response.
|
|
20
|
+
interface _Transport
|
|
21
|
+
def call: (Request request) -> Response
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
class HttpTransport
|
|
25
|
+
include _Transport
|
|
26
|
+
|
|
27
|
+
FAILURES: Array[singleton(Exception)]
|
|
28
|
+
|
|
29
|
+
def initialize: (?timeout: Numeric) -> void
|
|
30
|
+
|
|
31
|
+
private
|
|
32
|
+
|
|
33
|
+
def convert: (untyped response) -> Response
|
|
34
|
+
|
|
35
|
+
def options: (untyped uri) -> Hash[Symbol, untyped]
|
|
36
|
+
|
|
37
|
+
def build: (Request request, untyped uri) -> untyped
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class AbAddress < Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
def country_iso: () -> String
|
|
8
|
+
# Known values: "ab"
|
|
9
|
+
def dataset: () -> String
|
|
10
|
+
# Known values: "en", "ar", "as", "az", "be", "bg", "bn", "bs", "ca", "cs", "cy", "da", "de",
|
|
11
|
+
# "el", "es", "et", "eu", "fi", "fo", "fr", "ga", "gl", "gn", "he", "hi", "hr", "hu", "hy",
|
|
12
|
+
# "id", "is", "it", "ja", "ka", "kk", "km", "kn", "ko", "lt", "lv", "mk", "mn", "ms", "mt",
|
|
13
|
+
# "my", "nl", "no", "pl", "pt", "rm", "ro", "ru", "sk", "sl", "sq", "sr", "sv", "ta", "th",
|
|
14
|
+
# "tr", "uk", "uz", "vi", "wa", "zh"
|
|
15
|
+
def language: () -> String
|
|
16
|
+
def line_1: () -> String
|
|
17
|
+
def line_2: () -> String
|
|
18
|
+
def line_3: () -> String
|
|
19
|
+
def premise: () -> String
|
|
20
|
+
def uprn: () -> String
|
|
21
|
+
def udprn: () -> Integer
|
|
22
|
+
def parent_uprn: () -> String
|
|
23
|
+
def usrn: () -> Integer
|
|
24
|
+
def toid: () -> String
|
|
25
|
+
def classification_code: () -> String
|
|
26
|
+
def eastings: () -> Float
|
|
27
|
+
def northings: () -> Float
|
|
28
|
+
def latitude: () -> Float
|
|
29
|
+
def longitude: () -> Float
|
|
30
|
+
def single_address_line: () -> String
|
|
31
|
+
def street_name: () -> String
|
|
32
|
+
def locality: () -> String
|
|
33
|
+
def town_name: () -> String
|
|
34
|
+
def delivery_point_suffix: () -> String
|
|
35
|
+
def post_town: () -> String
|
|
36
|
+
def gss_code: () -> String
|
|
37
|
+
def rpc: () -> Integer
|
|
38
|
+
def last_update_date: () -> String
|
|
39
|
+
def island: () -> String
|
|
40
|
+
# Known values: "I", "U", "D"
|
|
41
|
+
def change_code: () -> String
|
|
42
|
+
def building_name: () -> String
|
|
43
|
+
def building_number: () -> String
|
|
44
|
+
def sub_building: () -> String
|
|
45
|
+
def postcode: () -> String
|
|
46
|
+
def po_box: () -> String
|
|
47
|
+
def organisation: () -> String
|
|
48
|
+
def country: () -> String
|
|
49
|
+
def county: () -> String
|
|
50
|
+
def district: () -> String
|
|
51
|
+
def ward: () -> String
|
|
52
|
+
def traditional_county: () -> String
|
|
53
|
+
def administrative_county: () -> String
|
|
54
|
+
def postal_county: () -> String
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class AbpAddress < Model
|
|
6
|
+
def uprn: () -> String
|
|
7
|
+
def parent_uprn: () -> String?
|
|
8
|
+
def logical_status: () -> Integer
|
|
9
|
+
def blpu_state: () -> String?
|
|
10
|
+
def blpu_state_date: () -> String?
|
|
11
|
+
def country: () -> String
|
|
12
|
+
def latitude: () -> Float
|
|
13
|
+
def longitude: () -> Float
|
|
14
|
+
def x_coordinate: () -> Float
|
|
15
|
+
def y_coordinate: () -> Float
|
|
16
|
+
def rpc: () -> Integer?
|
|
17
|
+
def local_custodian_code: () -> Integer
|
|
18
|
+
def addressbase_postal: () -> String
|
|
19
|
+
def postcode_locator: () -> String
|
|
20
|
+
def multi_occ_count: () -> Integer
|
|
21
|
+
def blpu_start_date: () -> String?
|
|
22
|
+
def blpu_end_date: () -> String?
|
|
23
|
+
def blpu_last_update_date: () -> String?
|
|
24
|
+
def blpu_entry_date: () -> String?
|
|
25
|
+
def udprn: () -> String?
|
|
26
|
+
def organisation_name: () -> String?
|
|
27
|
+
def legal_name: () -> String?
|
|
28
|
+
def department_name: () -> String?
|
|
29
|
+
def sub_building_name: () -> String?
|
|
30
|
+
def building_name: () -> String?
|
|
31
|
+
def building_number: () -> Integer?
|
|
32
|
+
def dependent_thoroughfare: () -> String?
|
|
33
|
+
def thoroughfare: () -> String?
|
|
34
|
+
def double_dependent_locality: () -> String?
|
|
35
|
+
def dependent_locality: () -> String?
|
|
36
|
+
def post_town: () -> String?
|
|
37
|
+
def postcode: () -> String
|
|
38
|
+
def postcode_type: () -> String?
|
|
39
|
+
def delivery_point_suffix: () -> String?
|
|
40
|
+
def po_box_number: () -> String?
|
|
41
|
+
def welsh_dependent_thoroughfare: () -> String?
|
|
42
|
+
def welsh_thoroughfare: () -> String?
|
|
43
|
+
def welsh_double_dependent_locality: () -> String?
|
|
44
|
+
def welsh_dependent_locality: () -> String?
|
|
45
|
+
def welsh_post_town: () -> String?
|
|
46
|
+
def dpa_process_date: () -> String?
|
|
47
|
+
def dpa_start_date: () -> String?
|
|
48
|
+
def dpa_end_date: () -> String?
|
|
49
|
+
def dpa_last_update_date: () -> String?
|
|
50
|
+
def dpa_entry_date: () -> String?
|
|
51
|
+
def classification_code: () -> String?
|
|
52
|
+
def class_scheme: () -> String?
|
|
53
|
+
def scheme_version: () -> Float?
|
|
54
|
+
def classification_start_date: () -> String?
|
|
55
|
+
def classification_end_date: () -> String?
|
|
56
|
+
def classification_last_update_date: () -> String?
|
|
57
|
+
def classification_entry_date: () -> String?
|
|
58
|
+
def organisation_start_date: () -> String?
|
|
59
|
+
def organisation_end_date: () -> String?
|
|
60
|
+
def organisation_last_update_date: () -> String?
|
|
61
|
+
def organisation_entry_date: () -> String?
|
|
62
|
+
def lpi_key: () -> String?
|
|
63
|
+
def lpi_language: () -> String?
|
|
64
|
+
def lpi_logical_status: () -> Integer?
|
|
65
|
+
def lpi_start_date: () -> String?
|
|
66
|
+
def lpi_end_date: () -> String?
|
|
67
|
+
def lpi_last_update_date: () -> String?
|
|
68
|
+
def lpi_entry_date: () -> String?
|
|
69
|
+
def sao_start_number: () -> Integer?
|
|
70
|
+
def sao_start_suffix: () -> String?
|
|
71
|
+
def sao_end_number: () -> Integer?
|
|
72
|
+
def sao_end_suffix: () -> String?
|
|
73
|
+
def sao_text: () -> String?
|
|
74
|
+
def pao_start_number: () -> Integer?
|
|
75
|
+
def pao_start_suffix: () -> String?
|
|
76
|
+
def pao_end_number: () -> Integer?
|
|
77
|
+
def pao_end_suffix: () -> String?
|
|
78
|
+
def pao_text: () -> String?
|
|
79
|
+
def usrn: () -> String?
|
|
80
|
+
def usrn_match_indicator: () -> String?
|
|
81
|
+
def area_name: () -> String?
|
|
82
|
+
def level: () -> String?
|
|
83
|
+
def official_flag: () -> String?
|
|
84
|
+
def street_record_type: () -> Integer?
|
|
85
|
+
def swa_org_ref_naming: () -> Integer?
|
|
86
|
+
def street_state: () -> String?
|
|
87
|
+
def street_state_date: () -> String?
|
|
88
|
+
def street_surface: () -> String?
|
|
89
|
+
def street_classification: () -> String?
|
|
90
|
+
def street_start_date: () -> String?
|
|
91
|
+
def street_last_update_date: () -> String?
|
|
92
|
+
def street_record_entry_date: () -> String?
|
|
93
|
+
def street_start_x: () -> Float?
|
|
94
|
+
def street_start_y: () -> Float?
|
|
95
|
+
def street_start_lat: () -> Float?
|
|
96
|
+
def street_start_long: () -> Float?
|
|
97
|
+
def street_end_x: () -> Float?
|
|
98
|
+
def street_end_y: () -> Float?
|
|
99
|
+
def street_end_lat: () -> Float?
|
|
100
|
+
def street_end_long: () -> Float?
|
|
101
|
+
def street_tolerance: () -> Integer?
|
|
102
|
+
def street_description: () -> String?
|
|
103
|
+
def street_locality: () -> String?
|
|
104
|
+
def street_town: () -> String?
|
|
105
|
+
def adminstrative_area: () -> String?
|
|
106
|
+
def sd_language: () -> String?
|
|
107
|
+
def sd_start_date: () -> String?
|
|
108
|
+
def sd_end_date: () -> String?
|
|
109
|
+
def sd_last_update_date: () -> String?
|
|
110
|
+
def sd_entry_date: () -> String?
|
|
111
|
+
def toid: () -> String?
|
|
112
|
+
def toid_address: () -> String?
|
|
113
|
+
def toid_highways: () -> String?
|
|
114
|
+
def council_tax_ref: () -> String?
|
|
115
|
+
def ndr_ref: () -> String?
|
|
116
|
+
def ons_ward_code: () -> String?
|
|
117
|
+
def ons_parish_code: () -> String?
|
|
118
|
+
def id: () -> String
|
|
119
|
+
# Known values: "abp"
|
|
120
|
+
def dataset: () -> String
|
|
121
|
+
# Known values: "GBR"
|
|
122
|
+
def country_iso: () -> String
|
|
123
|
+
def suggestion_line: () -> String
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
2
|
+
|
|
3
|
+
module IdealPostcodes
|
|
4
|
+
module Types
|
|
5
|
+
class Address < Model
|
|
6
|
+
def id: () -> String
|
|
7
|
+
# Known values: "paf", "pafw", "pafa", "mr", "nyb", "usps", "ecaf", "ecad", "ab", "abp",
|
|
8
|
+
# "herewe", "heret", "heresa", "hereo", "herena", "heremeas", "heremea", "herem", "herei",
|
|
9
|
+
# "herehk", "hereee", "hereap", "gnaf", "kadaster", "kartverket", "sdfi", "cannar", "fodbosa",
|
|
10
|
+
# "mois", "upujp", "bev", "ban", "swt"
|
|
11
|
+
def dataset: () -> String
|
|
12
|
+
# Known values: "GBR", "IMN", "JEY", "GGY", "USA", "PRI", "GUM", "IRL", "VAT", "FRA", "GRL",
|
|
13
|
+
# "NLD", "LUX", "AUT", "GIB", "LIE", "FIN", "ISL", "CHE", "PRT", "BEL", "MCO", "ITA", "FRO",
|
|
14
|
+
# "NOR", "DNK", "SMR", "MLT", "AND", "SWE", "DEU", "ESP", "SJM", "BRN", "IDN", "KHM", "MMR",
|
|
15
|
+
# "MYS", "PHL", "SGP", "THA", "TLS", "VNM", "ALB", "ARM", "AZE", "BGR", "BIH", "BLR", "CYP",
|
|
16
|
+
# "CZE", "EST", "GEO", "GRC", "HRV", "HUN", "KAZ", "KGZ", "LTU", "LVA", "MDA", "MKD", "MNE",
|
|
17
|
+
# "POL", "ROU", "RUS", "SRB", "SVK", "SVN", "TUR", "UKR", "UZB", "XKX", "HKG", "BGD", "IND",
|
|
18
|
+
# "LKA", "MAC", "AGO", "ARE", "BFA", "BHR", "BWA", "CMR", "EGY", "GHA", "ISR", "JOR", "KEN",
|
|
19
|
+
# "KWT", "LBN", "LSO", "MAR", "MOZ", "MUS", "MYT", "NAM", "NGA", "OMN", "QAT", "REU", "SAU",
|
|
20
|
+
# "SEN", "SWZ", "TUN", "ZAF", "ZMB", "ZWE", "BHS", "BLZ", "BMU", "CAN", "CRI", "CYM", "DOM",
|
|
21
|
+
# "GTM", "HND", "HTI", "JAM", "MEX", "NIC", "PAN", "SLV", "VGB", "AUS", "CCK", "CXR", "FJI",
|
|
22
|
+
# "NCL", "NFK", "NZL", "PYF", "TON", "VUT", "ABW", "ARG", "BLM", "BOL", "BRA", "BRB", "CHL",
|
|
23
|
+
# "COL", "CUW", "DMA", "ECU", "GLP", "GUF", "GUY", "MAF", "MTQ", "PER", "PRY", "SUR", "TTO",
|
|
24
|
+
# "URY", "VEN", "TWN", "CHN", "JPN", "KOR", "LAO", "MNG", "PNG", "PRK", "SLB", "TJK", "TKM",
|
|
25
|
+
# "BTN", "IOT", "MDV", "NPL", "PAK", "AFG", "BDI", "BEN", "CAF", "CIV", "COD", "COG", "COM",
|
|
26
|
+
# "CPV", "DJI", "DZA", "ERI", "ESH", "ETH", "GAB", "GIN", "GMB", "GNB", "GNQ", "IRN", "IRQ",
|
|
27
|
+
# "LBR", "LBY", "MDG", "MLI", "MRT", "MWI", "NER", "RWA", "SHN", "SLE", "SOM", "SSD", "STP",
|
|
28
|
+
# "SYC", "TCD", "TGO", "TZA", "UGA", "SDN", "SYR", "YEM", "CUB", "SPM", "TCA", "COK", "KIR",
|
|
29
|
+
# "NIU", "NRU", "PCN", "TKL", "TUV", "WLF", "WSM", "AIA", "ATG", "BES", "FLK", "GRD", "KNA",
|
|
30
|
+
# "LCA", "MSR", "SGS", "SXM", "VCT", "ASM", "FSM", "MHL", "MNP", "PLW", "VIR"
|
|
31
|
+
def country_iso: () -> String
|
|
32
|
+
# Known values: "GB", "IM", "JE", "GG", "US", "PR", "GU", "IE", "VA", "FR", "GL", "NL", "LU",
|
|
33
|
+
# "AT", "GI", "LI", "FI", "IS", "CH", "PT", "BE", "MC", "IT", "FO", "NO", "DK", "SM", "MT",
|
|
34
|
+
# "AD", "SE", "DE", "ES", "SJ", "BS", "BZ", "BM", "CA", "CR", "KY", "DO", "GT", "HN", "HT",
|
|
35
|
+
# "JM", "MX", "NI", "PA", "SV", "VG", "AU", "CC", "CX", "FJ", "NC", "NF", "NZ", "PF", "TO",
|
|
36
|
+
# "VU", "AW", "AR", "BL", "BO", "BR", "BB", "CL", "CO", "CW", "DM", "EC", "GP", "GD", "GF",
|
|
37
|
+
# "GY", "MF", "MQ", "PE", "PY", "SR", "TT", "UY", "VE", "TW", "BN", "ID", "KH", "MM", "MY",
|
|
38
|
+
# "PH", "SG", "TH", "TL", "VN", "AL", "AM", "AZ", "BG", "BA", "BY", "CY", "CZ", "EE", "GE",
|
|
39
|
+
# "GR", "HR", "HU", "KZ", "KG", "XK", "LT", "LV", "MD", "MK", "ME", "PL", "RO", "RU", "RS",
|
|
40
|
+
# "SK", "SI", "TR", "UA", "UZ", "HK", "BD", "IN", "LK", "MO", "AO", "AE", "BF", "BH", "BW",
|
|
41
|
+
# "CM", "EG", "GH", "IL", "JO", "KE", "KW", "LB", "LS", "MA", "MZ", "MU", "YT", "NA", "NG",
|
|
42
|
+
# "OM", "QA", "RE", "SA", "SN", "SZ", "TN", "ZA", "ZM", "ZW", "CN", "JP", "KR", "LA", "MN",
|
|
43
|
+
# "PG", "KP", "SB", "TJ", "TM", "BT", "IO", "MV", "NP", "PK", "AF", "BI", "BJ", "CF", "CI",
|
|
44
|
+
# "CD", "CG", "KM", "CV", "DJ", "DZ", "ER", "EH", "ET", "GA", "GN", "GM", "GW", "GQ", "IR",
|
|
45
|
+
# "IQ", "LR", "LY", "MG", "ML", "MR", "MW", "NE", "RW", "SH", "SL", "SO", "SS", "ST", "SC",
|
|
46
|
+
# "TD", "TG", "TZ", "UG", "SD", "SY", "YE", "CU", "PM", "TC", "CK", "KI", "NU", "NR", "PN",
|
|
47
|
+
# "TK", "TV", "WF", "WS", "AI", "AG", "BQ", "FK", "KN", "LC", "MS", "GS", "SX", "VC", "AS",
|
|
48
|
+
# "FM", "MH", "MP", "PW", "VI"
|
|
49
|
+
def country_iso_2: () -> String
|
|
50
|
+
# Known values: "United Kingdom", "England", "Scotland", "Wales", "Northern Ireland", "Isle of
|
|
51
|
+
# Man", "Jersey", "Guernsey", "Channel Islands", "Guam", "United States", "Puerto Rico",
|
|
52
|
+
# "Ireland", "Vatican City", "France", "Greenland", "Netherlands", "Luxembourg", "Austria",
|
|
53
|
+
# "Gibraltar", "Liechtenstein", "Finland", "Iceland", "Switzerland", "Portugal", "Belgium",
|
|
54
|
+
# "Monaco", "Italy", "Faroe Islands", "Norway", "Denmark", "San Marino", "Malta", "Andorra",
|
|
55
|
+
# "Sweden", "Germany", "Spain", "Svalbard and Jan Mayen", "Bahamas", "Belize", "Bermuda",
|
|
56
|
+
# "Canada", "Costa Rica", "Cayman Islands", "Dominican Republic", "Guatemala", "Honduras",
|
|
57
|
+
# "Haiti", "Jamaica", "Mexico", "Nicaragua", "Panama", "El Salvador", "British Virgin
|
|
58
|
+
# Islands", "Australia", "Cocos (Keeling) Islands", "Christmas Island", "Fiji", "New
|
|
59
|
+
# Caledonia", "Norfolk Island", "New Zealand", "French Polynesia", "Tonga", "Vanuatu",
|
|
60
|
+
# "Aruba", "Argentina", "Saint Barthélemy", "Bolivia", "Brazil", "Barbados", "Chile",
|
|
61
|
+
# "Colombia", "Curaçao", "Dominica", "Ecuador", "Guadeloupe", "Grenada", "French Guiana",
|
|
62
|
+
# "Guyana", "Saint Martin (French part)", "Martinique", "Peru", "Paraguay", "Suriname",
|
|
63
|
+
# "Trinidad and Tobago", "Uruguay", "Venezuela", "Taiwan", "Brunei Darussalam", "Indonesia",
|
|
64
|
+
# "Cambodia", "Myanmar", "Malaysia", "Philippines", "Singapore", "Thailand", "Timor-Leste",
|
|
65
|
+
# "Vietnam", "Albania", "Armenia", "Azerbaijan", "Bulgaria", "Bosnia and Herzegovina",
|
|
66
|
+
# "Belarus", "Cyprus", "Czech Republic", "Estonia", "Georgia", "Greece", "Croatia", "Hungary",
|
|
67
|
+
# "Kazakhstan", "Kyrgyzstan", "Kosovo", "Lithuania", "Latvia", "Moldova", "North Macedonia",
|
|
68
|
+
# "Montenegro", "Poland", "Romania", "Russia", "Serbia", "Slovakia", "Slovenia", "Turkey",
|
|
69
|
+
# "Ukraine", "Uzbekistan", "Hong Kong", "Bangladesh", "India", "Sri Lanka", "Macau", "Angola",
|
|
70
|
+
# "United Arab Emirates", "Burkina Faso", "Bahrain", "Botswana", "Cameroon", "Egypt", "Ghana",
|
|
71
|
+
# "Israel", "Jordan", "Kenya", "Kuwait", "Lebanon", "Lesotho", "Morocco", "Mozambique",
|
|
72
|
+
# "Mauritius", "Mayotte", "Namibia", "Nigeria", "Oman", "Qatar", "Réunion", "Saudi Arabia",
|
|
73
|
+
# "Senegal", "Eswatini", "Tunisia", "South Africa", "Zambia", "Zimbabwe", "China", "Japan",
|
|
74
|
+
# "South Korea", "Laos", "Mongolia", "Papua New Guinea", "North Korea", "Solomon Islands",
|
|
75
|
+
# "Tajikistan", "Turkmenistan", "Bhutan", "British Indian Ocean Territory", "Maldives",
|
|
76
|
+
# "Nepal", "Pakistan", "Afghanistan", "Burundi", "Benin", "Central African Republic", "Côte
|
|
77
|
+
# d'Ivoire", "Democratic Republic of the Congo", "Republic of the Congo", "Comoros", "Cape
|
|
78
|
+
# Verde", "Djibouti", "Algeria", "Eritrea", "Western Sahara", "Ethiopia", "Gabon", "Guinea",
|
|
79
|
+
# "Gambia", "Guinea-Bissau", "Equatorial Guinea", "Iran", "Iraq", "Liberia", "Libya",
|
|
80
|
+
# "Madagascar", "Mali", "Mauritania", "Malawi", "Niger", "Rwanda", "Saint Helena", "Sierra
|
|
81
|
+
# Leone", "Somalia", "South Sudan", "São Tomé and Príncipe", "Seychelles", "Chad", "Togo",
|
|
82
|
+
# "Tanzania", "Uganda", "Sudan", "Syria", "Yemen", "Cuba", "Saint Pierre and Miquelon", "Turks
|
|
83
|
+
# and Caicos Islands", "Cook Islands", "Kiribati", "Niue", "Nauru", "Pitcairn Islands",
|
|
84
|
+
# "Tokelau", "Tuvalu", "Wallis and Futuna", "Samoa", "Anguilla", "Antigua and Barbuda",
|
|
85
|
+
# "Bonaire, Sint Eustatius and Saba", "Falkland Islands (Malvinas)", "Saint Kitts and Nevis",
|
|
86
|
+
# "Saint Lucia", "Montserrat", "South Georgia and the South Sandwich Islands", "Sint Maarten
|
|
87
|
+
# (Dutch part)", "Saint Vincent and the Grenadines", "American Samoa", "Federated States of
|
|
88
|
+
# Micronesia", "Marshall Islands", "Northern Mariana Islands", "Palau", "United States Virgin
|
|
89
|
+
# Islands"
|
|
90
|
+
def country: () -> String
|
|
91
|
+
# Known values: "en", "ar", "as", "az", "be", "bg", "bn", "bs", "ca", "cs", "cy", "da", "de",
|
|
92
|
+
# "el", "es", "et", "eu", "fi", "fo", "fr", "ga", "gl", "gn", "he", "hi", "hr", "hu", "hy",
|
|
93
|
+
# "id", "is", "it", "ja", "ka", "kk", "km", "kn", "ko", "lt", "lv", "mk", "mn", "ms", "mt",
|
|
94
|
+
# "my", "nl", "no", "pl", "pt", "rm", "ro", "ru", "sk", "sl", "sq", "sr", "sv", "ta", "th",
|
|
95
|
+
# "tr", "uk", "uz", "vi", "wa", "zh"
|
|
96
|
+
def language: () -> String
|
|
97
|
+
def line_1: () -> String
|
|
98
|
+
def line_2: () -> String
|
|
99
|
+
def line_3: () -> String
|
|
100
|
+
def post_town: () -> String
|
|
101
|
+
def postcode: () -> String
|
|
102
|
+
def county: () -> String
|
|
103
|
+
def county_code: () -> String
|
|
104
|
+
def uprn: () -> String
|
|
105
|
+
def udprn: () -> (Integer | String)
|
|
106
|
+
def umprn: () -> (String | Float)
|
|
107
|
+
def postcode_outward: () -> String
|
|
108
|
+
def postcode_inward: () -> String
|
|
109
|
+
def dependant_locality: () -> String
|
|
110
|
+
def double_dependant_locality: () -> String
|
|
111
|
+
def thoroughfare: () -> String
|
|
112
|
+
def dependant_thoroughfare: () -> String
|
|
113
|
+
def building_number: () -> String
|
|
114
|
+
def building_name: () -> String
|
|
115
|
+
def sub_building_name: () -> String
|
|
116
|
+
def po_box: () -> String
|
|
117
|
+
def department_name: () -> String
|
|
118
|
+
def organisation_name: () -> String
|
|
119
|
+
# Known values: "S", "L", ""
|
|
120
|
+
def postcode_type: () -> String
|
|
121
|
+
def su_organisation_indicator: () -> String
|
|
122
|
+
def delivery_point_suffix: () -> String
|
|
123
|
+
def premise: () -> String
|
|
124
|
+
def administrative_county: () -> String
|
|
125
|
+
def postal_county: () -> String
|
|
126
|
+
def traditional_county: () -> String
|
|
127
|
+
def district: () -> String
|
|
128
|
+
def ward: () -> String
|
|
129
|
+
def longitude: () -> (String | Float)
|
|
130
|
+
def latitude: () -> (String | Float)
|
|
131
|
+
def eastings: () -> (String | Float)
|
|
132
|
+
def northings: () -> (String | Float)
|
|
133
|
+
def native: () -> Types::NativeRecord::t?
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|