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,288 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
6
|
+
module Types
|
|
7
|
+
# Austria BEV Address
|
|
8
|
+
#
|
|
9
|
+
# An address from the Adressregister, Austria's official address register published by the
|
|
10
|
+
# Bundesamt für Eich- und Vermessungswesen (BEV) under Open Government Data Austria.
|
|
11
|
+
#
|
|
12
|
+
# One record per building at an address: the address (`adrcd`) is joined to its building
|
|
13
|
+
# (`subcd`, `objektnummer`), municipality, locality, street and census district lookups.
|
|
14
|
+
#
|
|
15
|
+
# Field names follow the German source. House numbers are decomposed into up to four
|
|
16
|
+
# number/letter/connector parts (`hausnrzahl1`-`hausnrzahl4`) and supplied pre-combined
|
|
17
|
+
# (`hnr_adr_zusammen`, `hnr_geb_zusammen`, `address`). Values sourced from list columns (`kgnr`,
|
|
18
|
+
# `objfunktkennziffer`) are returned comma-separated.
|
|
19
|
+
class BevAddress < Model
|
|
20
|
+
# Globally unique internally generated identifier for an address
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
def id = @hash["id"]
|
|
24
|
+
|
|
25
|
+
# @return [String]
|
|
26
|
+
def dataset = @hash["dataset"]
|
|
27
|
+
|
|
28
|
+
# Full country names (ISO 3166)
|
|
29
|
+
#
|
|
30
|
+
# @return [String]
|
|
31
|
+
def country = @hash["country"]
|
|
32
|
+
|
|
33
|
+
# 3 letter country code (ISO 3166-1)
|
|
34
|
+
#
|
|
35
|
+
# @return [String]
|
|
36
|
+
def country_iso = @hash["country_iso"]
|
|
37
|
+
|
|
38
|
+
# 2 letter country code (ISO 3166-1)
|
|
39
|
+
#
|
|
40
|
+
# @return [String]
|
|
41
|
+
def country_iso_2 = @hash["country_iso_2"]
|
|
42
|
+
|
|
43
|
+
# Language represented by 2 letter ISO Code (639-1)
|
|
44
|
+
#
|
|
45
|
+
# @return [String]
|
|
46
|
+
def language = @hash["language"]
|
|
47
|
+
|
|
48
|
+
# Complete house number: `hnr_adr_zusammen` combined with `hnr_geb_zusammen`.
|
|
49
|
+
#
|
|
50
|
+
# @return [String]
|
|
51
|
+
def address = @hash["address"]
|
|
52
|
+
|
|
53
|
+
# First address line. The building or farmstead name (`hofname`) where one is present,
|
|
54
|
+
# otherwise the street line (street name plus `address`).
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
def line_1 = @hash["line_1"]
|
|
58
|
+
|
|
59
|
+
# Second address line. The street line (street name plus `address`) where `line_1` holds the
|
|
60
|
+
# building name.
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
def line_2 = @hash["line_2"]
|
|
64
|
+
|
|
65
|
+
# The latitude of the address or postcode (WGS84).
|
|
66
|
+
#
|
|
67
|
+
# @return [String, Float]
|
|
68
|
+
def latitude = @hash["latitude"]
|
|
69
|
+
|
|
70
|
+
# The longitude of the address or postcode (WGS84).
|
|
71
|
+
#
|
|
72
|
+
# @return [String, Float]
|
|
73
|
+
def longitude = @hash["longitude"]
|
|
74
|
+
|
|
75
|
+
# Unique identifier of the address
|
|
76
|
+
#
|
|
77
|
+
# @return [String]
|
|
78
|
+
def adrcd = @hash["adrcd"]
|
|
79
|
+
|
|
80
|
+
# Comma-separated cadastral numbers (Katastralgemeindenummer) of the land parcels associated
|
|
81
|
+
# with the address
|
|
82
|
+
#
|
|
83
|
+
# @return [String]
|
|
84
|
+
def kgnr = @hash["kgnr"]
|
|
85
|
+
|
|
86
|
+
# Municipality unique identifier
|
|
87
|
+
#
|
|
88
|
+
# @return [String]
|
|
89
|
+
def gkz = @hash["gkz"]
|
|
90
|
+
|
|
91
|
+
# Locality unique identifier
|
|
92
|
+
#
|
|
93
|
+
# @return [String]
|
|
94
|
+
def okz = @hash["okz"]
|
|
95
|
+
|
|
96
|
+
# Postal code
|
|
97
|
+
#
|
|
98
|
+
# @return [String]
|
|
99
|
+
def plz = @hash["plz"]
|
|
100
|
+
|
|
101
|
+
# Street unique identifier
|
|
102
|
+
#
|
|
103
|
+
# @return [String]
|
|
104
|
+
def skz = @hash["skz"]
|
|
105
|
+
|
|
106
|
+
# Census district unique identifier
|
|
107
|
+
#
|
|
108
|
+
# @return [String]
|
|
109
|
+
def zaehlsprengel = @hash["zaehlsprengel"]
|
|
110
|
+
|
|
111
|
+
# Text before house number
|
|
112
|
+
#
|
|
113
|
+
# @return [String]
|
|
114
|
+
def hausnrtext = @hash["hausnrtext"]
|
|
115
|
+
|
|
116
|
+
# House number part 1
|
|
117
|
+
#
|
|
118
|
+
# @return [Integer]
|
|
119
|
+
def hausnrzahl1 = @hash["hausnrzahl1"]
|
|
120
|
+
|
|
121
|
+
# House letter part 1
|
|
122
|
+
#
|
|
123
|
+
# @return [String]
|
|
124
|
+
def hausnrbuchstabe1 = @hash["hausnrbuchstabe1"]
|
|
125
|
+
|
|
126
|
+
# House number connector 1. `-` indicates `hausnrzahl1` to `hausnrzahl2` is a range.
|
|
127
|
+
#
|
|
128
|
+
# @return [String]
|
|
129
|
+
def hausnrverbindung1 = @hash["hausnrverbindung1"]
|
|
130
|
+
|
|
131
|
+
# @return [String, Integer]
|
|
132
|
+
def hausnrzahl2 = @hash["hausnrzahl2"]
|
|
133
|
+
|
|
134
|
+
# House letter part 2
|
|
135
|
+
#
|
|
136
|
+
# @return [String]
|
|
137
|
+
def hausnrbuchstabe2 = @hash["hausnrbuchstabe2"]
|
|
138
|
+
|
|
139
|
+
# House number range scheme (even, odd, all or not specified), as German source text
|
|
140
|
+
#
|
|
141
|
+
# @return [String]
|
|
142
|
+
def hausnrbereich = @hash["hausnrbereich"]
|
|
143
|
+
|
|
144
|
+
# Complete house number of the address (combination of house number parts and letters)
|
|
145
|
+
#
|
|
146
|
+
# @return [String]
|
|
147
|
+
def hnr_adr_zusammen = @hash["hnr_adr_zusammen"]
|
|
148
|
+
|
|
149
|
+
# Parcel number used as an address when no house number is present. `0` where unused.
|
|
150
|
+
#
|
|
151
|
+
# @return [Integer]
|
|
152
|
+
def gnradresse = @hash["gnradresse"]
|
|
153
|
+
|
|
154
|
+
# Name of building or building complex (e.g. farmstead), title cased
|
|
155
|
+
#
|
|
156
|
+
# @return [String]
|
|
157
|
+
def hofname = @hash["hofname"]
|
|
158
|
+
|
|
159
|
+
# Easting / X coordinate in the coordinate reference system given by `epsg`
|
|
160
|
+
#
|
|
161
|
+
# @return [String]
|
|
162
|
+
def rw = @hash["rw"]
|
|
163
|
+
|
|
164
|
+
# Northing / Y coordinate in the coordinate reference system given by `epsg`
|
|
165
|
+
#
|
|
166
|
+
# @return [String]
|
|
167
|
+
def hw = @hash["hw"]
|
|
168
|
+
|
|
169
|
+
# Coordinate reference system identifier for `rw` and `hw`
|
|
170
|
+
#
|
|
171
|
+
# @return [Integer]
|
|
172
|
+
def epsg = @hash["epsg"]
|
|
173
|
+
|
|
174
|
+
# Coordinate accuracy level (building level, parcel level, etc.)
|
|
175
|
+
#
|
|
176
|
+
# @return [String]
|
|
177
|
+
def quelladresse = @hash["quelladresse"]
|
|
178
|
+
|
|
179
|
+
# Coordinate determination method (DKM, surveying office, municipality, etc.)
|
|
180
|
+
#
|
|
181
|
+
# @return [String]
|
|
182
|
+
def bestimmungsart = @hash["bestimmungsart"]
|
|
183
|
+
|
|
184
|
+
# Subcode to distinguish multiple buildings at the same address
|
|
185
|
+
#
|
|
186
|
+
# @return [String]
|
|
187
|
+
def subcd = @hash["subcd"]
|
|
188
|
+
|
|
189
|
+
# Object number of the building
|
|
190
|
+
#
|
|
191
|
+
# @return [String]
|
|
192
|
+
def objektnummer = @hash["objektnummer"]
|
|
193
|
+
|
|
194
|
+
# Comma-separated building function codes for the building (e.g. `01` pharmacy, `04` fire
|
|
195
|
+
# department, `08` school, `99` no function assigned)
|
|
196
|
+
#
|
|
197
|
+
# @return [String]
|
|
198
|
+
def objfunktkennziffer = @hash["objfunktkennziffer"]
|
|
199
|
+
|
|
200
|
+
# `1` where this is the primary address for the associated building, `0` otherwise
|
|
201
|
+
#
|
|
202
|
+
# @return [Integer]
|
|
203
|
+
def hauptadresse = @hash["hauptadresse"]
|
|
204
|
+
|
|
205
|
+
# House number connector 2
|
|
206
|
+
#
|
|
207
|
+
# @return [String]
|
|
208
|
+
def hausnrverbindung2 = @hash["hausnrverbindung2"]
|
|
209
|
+
|
|
210
|
+
# @return [String, Integer]
|
|
211
|
+
def hausnrzahl3 = @hash["hausnrzahl3"]
|
|
212
|
+
|
|
213
|
+
# House letter part 3
|
|
214
|
+
#
|
|
215
|
+
# @return [String]
|
|
216
|
+
def hausnrbuchstabe3 = @hash["hausnrbuchstabe3"]
|
|
217
|
+
|
|
218
|
+
# House number connector 3
|
|
219
|
+
#
|
|
220
|
+
# @return [String]
|
|
221
|
+
def hausnrverbindung3 = @hash["hausnrverbindung3"]
|
|
222
|
+
|
|
223
|
+
# @return [String, Integer]
|
|
224
|
+
def hausnrzahl4 = @hash["hausnrzahl4"]
|
|
225
|
+
|
|
226
|
+
# House letter part 4
|
|
227
|
+
#
|
|
228
|
+
# @return [String]
|
|
229
|
+
def hausnrbuchstabe4 = @hash["hausnrbuchstabe4"]
|
|
230
|
+
|
|
231
|
+
# Building description
|
|
232
|
+
#
|
|
233
|
+
# @return [String]
|
|
234
|
+
def hausnrgebaeudebez = @hash["hausnrgebaeudebez"]
|
|
235
|
+
|
|
236
|
+
# Complete building designation (combination of house number and building designation)
|
|
237
|
+
#
|
|
238
|
+
# @return [String]
|
|
239
|
+
def hnr_geb_zusammen = @hash["hnr_geb_zusammen"]
|
|
240
|
+
|
|
241
|
+
# Code indicating the primary use or function of the building (e.g. `01` one apartment, `02`
|
|
242
|
+
# two or more apartments, `05` office building)
|
|
243
|
+
#
|
|
244
|
+
# @return [String]
|
|
245
|
+
def eigenschaft = @hash["eigenschaft"]
|
|
246
|
+
|
|
247
|
+
# Name of the municipality
|
|
248
|
+
#
|
|
249
|
+
# @return [String]
|
|
250
|
+
def gemeindename = @hash["gemeindename"]
|
|
251
|
+
|
|
252
|
+
# Name of the locality
|
|
253
|
+
#
|
|
254
|
+
# @return [String]
|
|
255
|
+
def ortsname = @hash["ortsname"]
|
|
256
|
+
|
|
257
|
+
# Name of the street
|
|
258
|
+
#
|
|
259
|
+
# @return [String]
|
|
260
|
+
def strassenname = @hash["strassenname"]
|
|
261
|
+
|
|
262
|
+
# Street type (e.g. "Allee", "Strasse")
|
|
263
|
+
#
|
|
264
|
+
# @return [String]
|
|
265
|
+
def strassennamenzusatz = @hash["strassennamenzusatz"]
|
|
266
|
+
|
|
267
|
+
# Indicates whether the street type is included in the street name
|
|
268
|
+
#
|
|
269
|
+
# @return [Integer]
|
|
270
|
+
def szusadrbest = @hash["szusadrbest"]
|
|
271
|
+
|
|
272
|
+
# Postal town name
|
|
273
|
+
#
|
|
274
|
+
# @return [String]
|
|
275
|
+
def zustellort = @hash["zustellort"]
|
|
276
|
+
|
|
277
|
+
# Postal town identifier
|
|
278
|
+
#
|
|
279
|
+
# @return [String]
|
|
280
|
+
def zustellort_id = @hash["zustellort_id"]
|
|
281
|
+
|
|
282
|
+
# Name of the census district
|
|
283
|
+
#
|
|
284
|
+
# @return [String]
|
|
285
|
+
def zaehlsprengelname = @hash["zaehlsprengelname"]
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
end
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
6
|
+
module Types
|
|
7
|
+
# Canada NAR Address
|
|
8
|
+
#
|
|
9
|
+
# A Canadian civic address from the National Address Register (NAR), published by Statistics
|
|
10
|
+
# Canada under the Statistics Canada Open Licence. Each address carries its civic number,
|
|
11
|
+
# street, municipality, province and postal code, a point coordinate, and its census
|
|
12
|
+
# subdivision, federal electoral district and economic region, in English and French. Statistics
|
|
13
|
+
# Canada publishes around 17.2 million addresses and refreshes them annually. 99.5% carry a full
|
|
14
|
+
# postal code and 95.7% carry a latitude and longitude.
|
|
15
|
+
#
|
|
16
|
+
# Conventions:
|
|
17
|
+
#
|
|
18
|
+
# - One record per address. `id` is `cannar_` followed by `addr_guid`, a pipe and the language
|
|
19
|
+
# code (`cannar_<addr_guid>|en`). The suffix selects the English or French form of the record,
|
|
20
|
+
# so preserve it verbatim when resolving an address.
|
|
21
|
+
# - `language` is `en` or `fr`. The API derives it rather than reading it from the file: a
|
|
22
|
+
# French street type gives `fr`, and the types both languages share (`AV`, `PROM`, `ROUTE`,
|
|
23
|
+
# `RTE`) give `fr` in Quebec and New Brunswick and `en` elsewhere. An address appears under
|
|
24
|
+
# one language only. There is no paired English and French copy of the same record. The
|
|
25
|
+
# `csd_*`, `fed_*` and `er_*` name pairs are returned in both languages whatever the record's
|
|
26
|
+
# `language`.
|
|
27
|
+
# - `line_1` is the number and street. A hyphen joins the apartment or suite number to the civic
|
|
28
|
+
# number (`306-1 Finch Bay`). A letter civic number suffix joins without a space (`5A`), a
|
|
29
|
+
# numeric one with a space (`1 1/2`). The street comes from the `mail_street_*` fields where
|
|
30
|
+
# `mail_street_name` is present and from the `official_street_*` fields otherwise. In English
|
|
31
|
+
# the street type follows the name (`Iron Horse Dr`), except `Route`, which precedes it. In
|
|
32
|
+
# French the type is lower cased and precedes the name (`rue d'Andermatt`).
|
|
33
|
+
# - `line_2` carries the PO Box or Rural Route line from `bu_n_civic_add` (`PO Box 377`, `RR
|
|
34
|
+
# 4`). There is no third line. `address` is the number component of `line_1` on its own,
|
|
35
|
+
# apartment included (`5A`, `306-1`).
|
|
36
|
+
# - The API title cases `mail_street_name`, `mail_street_type`, `mail_mun_name` and
|
|
37
|
+
# `official_street_type`. Every other text field is as Statistics Canada ships it, so
|
|
38
|
+
# `mail_prov_abvn`, `mail_postal_code`, `mail_street_dir` and `official_street_dir` stay upper
|
|
39
|
+
# case and the `csd_*`, `fed_*` and `er_*` names keep their supplied case.
|
|
40
|
+
# - No field is null. A value absent upstream is an empty string `""`, including `latitude` and
|
|
41
|
+
# `longitude` where the location has no coordinate.
|
|
42
|
+
# - `latitude` and `longitude` repeat `reppoint_latitude` and `reppoint_longitude`: the WGS84
|
|
43
|
+
# representative point of the location record, shared by every address at the same `loc_guid`.
|
|
44
|
+
# `bg_x` and `bg_y` are the building's coordinates in EPSG:3347, returned as strings.
|
|
45
|
+
class CannarAddress < Model
|
|
46
|
+
# Globally unique internally generated identifier for an address
|
|
47
|
+
#
|
|
48
|
+
# @return [String]
|
|
49
|
+
def id = @hash["id"]
|
|
50
|
+
|
|
51
|
+
# @return [String]
|
|
52
|
+
def dataset = @hash["dataset"]
|
|
53
|
+
|
|
54
|
+
# Full country names (ISO 3166)
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
def country = @hash["country"]
|
|
58
|
+
|
|
59
|
+
# 3 letter country code (ISO 3166-1)
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
def country_iso = @hash["country_iso"]
|
|
63
|
+
|
|
64
|
+
# 2 letter country code (ISO 3166-1)
|
|
65
|
+
#
|
|
66
|
+
# @return [String]
|
|
67
|
+
def country_iso_2 = @hash["country_iso_2"]
|
|
68
|
+
|
|
69
|
+
# Language represented by 2 letter ISO Code (639-1)
|
|
70
|
+
#
|
|
71
|
+
# @return [String]
|
|
72
|
+
def language = @hash["language"]
|
|
73
|
+
|
|
74
|
+
# House number, prefixed with the apartment or suite number and a hyphen where one is present.
|
|
75
|
+
# E.g. `1425` or `10-123 1/2`.
|
|
76
|
+
#
|
|
77
|
+
# @return [String]
|
|
78
|
+
def address = @hash["address"]
|
|
79
|
+
|
|
80
|
+
# First address line. House number and street.
|
|
81
|
+
#
|
|
82
|
+
# @return [String]
|
|
83
|
+
def line_1 = @hash["line_1"]
|
|
84
|
+
|
|
85
|
+
# Second address line. Carries the PO Box or Rural Route delivery information where present.
|
|
86
|
+
#
|
|
87
|
+
# @return [String]
|
|
88
|
+
def line_2 = @hash["line_2"]
|
|
89
|
+
|
|
90
|
+
# The latitude of the address or postcode (WGS84).
|
|
91
|
+
#
|
|
92
|
+
# @return [String, Float]
|
|
93
|
+
def latitude = @hash["latitude"]
|
|
94
|
+
|
|
95
|
+
# The longitude of the address or postcode (WGS84).
|
|
96
|
+
#
|
|
97
|
+
# @return [String, Float]
|
|
98
|
+
def longitude = @hash["longitude"]
|
|
99
|
+
|
|
100
|
+
# Globally unique identifier for location.
|
|
101
|
+
#
|
|
102
|
+
# @return [String]
|
|
103
|
+
def loc_guid = @hash["loc_guid"]
|
|
104
|
+
|
|
105
|
+
# Globally unique identifier for address.
|
|
106
|
+
#
|
|
107
|
+
# @return [String]
|
|
108
|
+
def addr_guid = @hash["addr_guid"]
|
|
109
|
+
|
|
110
|
+
# Apartment or suite number.
|
|
111
|
+
#
|
|
112
|
+
# @return [String]
|
|
113
|
+
def apt_no_label = @hash["apt_no_label"]
|
|
114
|
+
|
|
115
|
+
# The building number assigned to the address.
|
|
116
|
+
#
|
|
117
|
+
# @return [String]
|
|
118
|
+
def civic_no = @hash["civic_no"]
|
|
119
|
+
|
|
120
|
+
# A suffix attached to the civic number. E.g. `A` or `1/2`.
|
|
121
|
+
#
|
|
122
|
+
# @return [String]
|
|
123
|
+
def civic_no_suffix = @hash["civic_no_suffix"]
|
|
124
|
+
|
|
125
|
+
# Official street name.
|
|
126
|
+
#
|
|
127
|
+
# @return [String]
|
|
128
|
+
def official_street_name = @hash["official_street_name"]
|
|
129
|
+
|
|
130
|
+
# Official street designator. E.g. `St`, `Ave`.
|
|
131
|
+
#
|
|
132
|
+
# @return [String]
|
|
133
|
+
def official_street_type = @hash["official_street_type"]
|
|
134
|
+
|
|
135
|
+
# Official street direction. E.g. `N`, `SE`.
|
|
136
|
+
#
|
|
137
|
+
# @return [String]
|
|
138
|
+
def official_street_dir = @hash["official_street_dir"]
|
|
139
|
+
|
|
140
|
+
# Province code. E.g. `59` for British Columbia.
|
|
141
|
+
#
|
|
142
|
+
# @return [String]
|
|
143
|
+
def prov_code = @hash["prov_code"]
|
|
144
|
+
|
|
145
|
+
# Census subdivision English name.
|
|
146
|
+
#
|
|
147
|
+
# @return [String]
|
|
148
|
+
def csd_eng_name = @hash["csd_eng_name"]
|
|
149
|
+
|
|
150
|
+
# Census subdivision French name.
|
|
151
|
+
#
|
|
152
|
+
# @return [String]
|
|
153
|
+
def csd_fre_name = @hash["csd_fre_name"]
|
|
154
|
+
|
|
155
|
+
# English code indicating the type of Census Subdivision.
|
|
156
|
+
#
|
|
157
|
+
# @return [String]
|
|
158
|
+
def csd_type_eng_code = @hash["csd_type_eng_code"]
|
|
159
|
+
|
|
160
|
+
# French code indicating the type of Census Subdivision.
|
|
161
|
+
#
|
|
162
|
+
# @return [String]
|
|
163
|
+
def csd_type_fre_code = @hash["csd_type_fre_code"]
|
|
164
|
+
|
|
165
|
+
# Name of the street used in the mailing address.
|
|
166
|
+
#
|
|
167
|
+
# @return [String]
|
|
168
|
+
def mail_street_name = @hash["mail_street_name"]
|
|
169
|
+
|
|
170
|
+
# Designator of the street used in the mailing address.
|
|
171
|
+
#
|
|
172
|
+
# @return [String]
|
|
173
|
+
def mail_street_type = @hash["mail_street_type"]
|
|
174
|
+
|
|
175
|
+
# Direction of the street used in the mailing address.
|
|
176
|
+
#
|
|
177
|
+
# @return [String]
|
|
178
|
+
def mail_street_dir = @hash["mail_street_dir"]
|
|
179
|
+
|
|
180
|
+
# Municipality name used in the mailing address.
|
|
181
|
+
#
|
|
182
|
+
# @return [String]
|
|
183
|
+
def mail_mun_name = @hash["mail_mun_name"]
|
|
184
|
+
|
|
185
|
+
# Province abbreviation used in the mailing address.
|
|
186
|
+
#
|
|
187
|
+
# @return [String]
|
|
188
|
+
def mail_prov_abvn = @hash["mail_prov_abvn"]
|
|
189
|
+
|
|
190
|
+
# Postal code used in the mailing address. Returned as supplied by the provider, without a
|
|
191
|
+
# space between the forward sortation area and local delivery unit.
|
|
192
|
+
#
|
|
193
|
+
# @return [String]
|
|
194
|
+
def mail_postal_code = @hash["mail_postal_code"]
|
|
195
|
+
|
|
196
|
+
# Legal Subdivision number within the Dominion Land Survey system for the address location.
|
|
197
|
+
#
|
|
198
|
+
# @return [String]
|
|
199
|
+
def bg_dls_lsd = @hash["bg_dls_lsd"]
|
|
200
|
+
|
|
201
|
+
# Quarter section within a section of the Dominion Land Survey system for the address
|
|
202
|
+
# location.
|
|
203
|
+
#
|
|
204
|
+
# @return [String]
|
|
205
|
+
def bg_dls_qtr = @hash["bg_dls_qtr"]
|
|
206
|
+
|
|
207
|
+
# Section number within a township of the Dominion Land Survey system for the address
|
|
208
|
+
# location.
|
|
209
|
+
#
|
|
210
|
+
# @return [String]
|
|
211
|
+
def bg_dls_sctn = @hash["bg_dls_sctn"]
|
|
212
|
+
|
|
213
|
+
# Township number within the Dominion Land Survey system for the address location.
|
|
214
|
+
#
|
|
215
|
+
# @return [String]
|
|
216
|
+
def bg_dls_twnshp = @hash["bg_dls_twnshp"]
|
|
217
|
+
|
|
218
|
+
# Range number within a meridian of the Dominion Land Survey system for the address location.
|
|
219
|
+
#
|
|
220
|
+
# @return [String]
|
|
221
|
+
def bg_dls_rng = @hash["bg_dls_rng"]
|
|
222
|
+
|
|
223
|
+
# Meridian number within the Dominion Land Survey system for the address location.
|
|
224
|
+
#
|
|
225
|
+
# @return [String]
|
|
226
|
+
def bg_dls_mrd = @hash["bg_dls_mrd"]
|
|
227
|
+
|
|
228
|
+
# X coordinate of the building in the EPSG:3347 projected grid, in metres, returned as a
|
|
229
|
+
# string.
|
|
230
|
+
#
|
|
231
|
+
# @return [String]
|
|
232
|
+
def bg_x = @hash["bg_x"]
|
|
233
|
+
|
|
234
|
+
# Y coordinate of the building in the EPSG:3347 projected grid, in metres, returned as a
|
|
235
|
+
# string.
|
|
236
|
+
#
|
|
237
|
+
# @return [String]
|
|
238
|
+
def bg_y = @hash["bg_y"]
|
|
239
|
+
|
|
240
|
+
# Additional delivery information for the mailing address, such as a PO Box or Rural Route.
|
|
241
|
+
# Upper cased, with the first `BOX` token recased to `Box` (`PO Box 377`).
|
|
242
|
+
#
|
|
243
|
+
# @return [String]
|
|
244
|
+
def bu_n_civic_add = @hash["bu_n_civic_add"]
|
|
245
|
+
|
|
246
|
+
# Building usage code.
|
|
247
|
+
#
|
|
248
|
+
# @return [String]
|
|
249
|
+
def bu_use = @hash["bu_use"]
|
|
250
|
+
|
|
251
|
+
# Unique identifier code for a Census Subdivision (CSD).
|
|
252
|
+
#
|
|
253
|
+
# @return [String]
|
|
254
|
+
def csd_code = @hash["csd_code"]
|
|
255
|
+
|
|
256
|
+
# Unique identifier code for a federal electoral district.
|
|
257
|
+
#
|
|
258
|
+
# @return [String]
|
|
259
|
+
def fed_code = @hash["fed_code"]
|
|
260
|
+
|
|
261
|
+
# Name of the federal electoral district in English.
|
|
262
|
+
#
|
|
263
|
+
# @return [String]
|
|
264
|
+
def fed_eng_name = @hash["fed_eng_name"]
|
|
265
|
+
|
|
266
|
+
# Name of the federal electoral district in French.
|
|
267
|
+
#
|
|
268
|
+
# @return [String]
|
|
269
|
+
def fed_fre_name = @hash["fed_fre_name"]
|
|
270
|
+
|
|
271
|
+
# Unique identifier code for an economic region.
|
|
272
|
+
#
|
|
273
|
+
# @return [String]
|
|
274
|
+
def er_code = @hash["er_code"]
|
|
275
|
+
|
|
276
|
+
# Name of the economic region in English.
|
|
277
|
+
#
|
|
278
|
+
# @return [String]
|
|
279
|
+
def er_eng_name = @hash["er_eng_name"]
|
|
280
|
+
|
|
281
|
+
# Name of the economic region in French.
|
|
282
|
+
#
|
|
283
|
+
# @return [String]
|
|
284
|
+
def er_fre_name = @hash["er_fre_name"]
|
|
285
|
+
|
|
286
|
+
# The latitude of the address or postcode (WGS84).
|
|
287
|
+
#
|
|
288
|
+
# @return [String, Float]
|
|
289
|
+
def reppoint_latitude = @hash["reppoint_latitude"]
|
|
290
|
+
|
|
291
|
+
# The longitude of the address or postcode (WGS84).
|
|
292
|
+
#
|
|
293
|
+
# @return [String, Float]
|
|
294
|
+
def reppoint_longitude = @hash["reppoint_longitude"]
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
6
|
+
module Types
|
|
7
|
+
# Carrier Object
|
|
8
|
+
class Carrier < Model
|
|
9
|
+
# The [Mobile Country Code](https://en.wikipedia.org/wiki/Mobile_country_code) for the
|
|
10
|
+
# carrier.
|
|
11
|
+
#
|
|
12
|
+
# @return [String, nil]
|
|
13
|
+
def network_code = @hash["network_code"]
|
|
14
|
+
|
|
15
|
+
# The full name of the carrier that number is associated with.
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
def name = @hash["name"]
|
|
19
|
+
|
|
20
|
+
# Country that number is associated with. In ISO 3166-1 alpha-2 format.
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
def country = @hash["country"]
|
|
24
|
+
|
|
25
|
+
# Type of network that number is associated with.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
def network_type = @hash["network_type"]
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
6
|
+
module Types
|
|
7
|
+
# Config Object
|
|
8
|
+
class Config < Model
|
|
9
|
+
# Timestamp for when the config was last updated
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
def updatedAt = @hash["updatedAt"]
|
|
13
|
+
|
|
14
|
+
alias updated_at updatedAt
|
|
15
|
+
|
|
16
|
+
# Timestamp for when the config was created
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
def createdAt = @hash["createdAt"]
|
|
20
|
+
|
|
21
|
+
alias created_at createdAt
|
|
22
|
+
|
|
23
|
+
# A unique name to identify the configuration payload
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
def name = @hash["name"]
|
|
27
|
+
|
|
28
|
+
# A serialised payload of up to `65536` characters
|
|
29
|
+
#
|
|
30
|
+
# @return [String]
|
|
31
|
+
def payload = @hash["payload"]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
6
|
+
module Types
|
|
7
|
+
# ConfigsResponseResult
|
|
8
|
+
#
|
|
9
|
+
# List of configurations
|
|
10
|
+
class ConfigsResult < Model
|
|
11
|
+
# @return [Array<Types::Config>]
|
|
12
|
+
def configs = read("configs") { |v| v.map { |item| Types::Config.from_hash(item) } }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
6
|
+
module Types
|
|
7
|
+
# DeleteConfigResponseResult
|
|
8
|
+
class DeletedConfig < Model
|
|
9
|
+
# @return [Integer]
|
|
10
|
+
def deleted = @hash["deleted"]
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
6
|
+
module Types
|
|
7
|
+
# DeleteLicenseeResponseResult
|
|
8
|
+
class DeletedLicensee < Model
|
|
9
|
+
# @return [Integer]
|
|
10
|
+
def deleted = @hash["deleted"]
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|