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.
Files changed (223) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -16
  3. data/LICENSE +1 -21
  4. data/README.md +13 -332
  5. data/lib/ideal_postcodes/base_client.rb +88 -0
  6. data/lib/ideal_postcodes/client.rb +42 -0
  7. data/lib/ideal_postcodes/errors.rb +59 -0
  8. data/lib/ideal_postcodes/generated.rb +83 -0
  9. data/lib/ideal_postcodes/model.rb +73 -0
  10. data/lib/ideal_postcodes/operations.rb +866 -0
  11. data/lib/ideal_postcodes/responses/address_response.rb +19 -0
  12. data/lib/ideal_postcodes/responses/api_key_details_response.rb +21 -0
  13. data/lib/ideal_postcodes/responses/api_key_response.rb +21 -0
  14. data/lib/ideal_postcodes/responses/api_key_usage_response.rb +21 -0
  15. data/lib/ideal_postcodes/responses/autocomplete_response.rb +19 -0
  16. data/lib/ideal_postcodes/responses/cleanse_response.rb +31 -0
  17. data/lib/ideal_postcodes/responses/config_response.rb +21 -0
  18. data/lib/ideal_postcodes/responses/configs_response.rb +21 -0
  19. data/lib/ideal_postcodes/responses/delete_config_response.rb +19 -0
  20. data/lib/ideal_postcodes/responses/delete_licensee_response.rb +19 -0
  21. data/lib/ideal_postcodes/responses/email_response.rb +31 -0
  22. data/lib/ideal_postcodes/responses/gbr_resolve_address_response.rb +21 -0
  23. data/lib/ideal_postcodes/responses/licensee_response.rb +21 -0
  24. data/lib/ideal_postcodes/responses/licensees_response.rb +21 -0
  25. data/lib/ideal_postcodes/responses/phone_number_response.rb +31 -0
  26. data/lib/ideal_postcodes/responses/place_response.rb +19 -0
  27. data/lib/ideal_postcodes/responses/postcode_response.rb +30 -0
  28. data/lib/ideal_postcodes/responses/resolve_place_response.rb +24 -0
  29. data/lib/ideal_postcodes/transport.rb +61 -0
  30. data/lib/ideal_postcodes/types/ab_address.rb +283 -0
  31. data/lib/ideal_postcodes/types/abp_address.rb +674 -0
  32. data/lib/ideal_postcodes/types/address.rb +290 -0
  33. data/lib/ideal_postcodes/types/address_list_item.rb +592 -0
  34. data/lib/ideal_postcodes/types/address_result.rb +24 -0
  35. data/lib/ideal_postcodes/types/address_suggestion.rb +27 -0
  36. data/lib/ideal_postcodes/types/api_key.rb +27 -0
  37. data/lib/ideal_postcodes/types/api_key_automated_topup.rb +17 -0
  38. data/lib/ideal_postcodes/types/api_key_current_purchase.rb +27 -0
  39. data/lib/ideal_postcodes/types/api_key_daily_limit.rb +21 -0
  40. data/lib/ideal_postcodes/types/api_key_datasets.rb +202 -0
  41. data/lib/ideal_postcodes/types/api_key_details.rb +90 -0
  42. data/lib/ideal_postcodes/types/api_key_individual_limit.rb +16 -0
  43. data/lib/ideal_postcodes/types/api_key_monthly_limit.rb +21 -0
  44. data/lib/ideal_postcodes/types/api_key_notifications.rb +35 -0
  45. data/lib/ideal_postcodes/types/autocomplete_result.rb +25 -0
  46. data/lib/ideal_postcodes/types/available_context.rb +35 -0
  47. data/lib/ideal_postcodes/types/ban_address.rb +179 -0
  48. data/lib/ideal_postcodes/types/bev_address.rb +288 -0
  49. data/lib/ideal_postcodes/types/cannar_address.rb +297 -0
  50. data/lib/ideal_postcodes/types/carrier.rb +31 -0
  51. data/lib/ideal_postcodes/types/config.rb +34 -0
  52. data/lib/ideal_postcodes/types/configs_result.rb +15 -0
  53. data/lib/ideal_postcodes/types/deleted_config.rb +13 -0
  54. data/lib/ideal_postcodes/types/deleted_licensee.rb +13 -0
  55. data/lib/ideal_postcodes/types/ecad_address.rb +393 -0
  56. data/lib/ideal_postcodes/types/ecaf_address.rb +204 -0
  57. data/lib/ideal_postcodes/types/email.rb +45 -0
  58. data/lib/ideal_postcodes/types/fodbosa_address.rb +201 -0
  59. data/lib/ideal_postcodes/types/gbr_cleanse_match.rb +70 -0
  60. data/lib/ideal_postcodes/types/gbr_cleanse_no_match.rb +47 -0
  61. data/lib/ideal_postcodes/types/geonames_place.rb +153 -0
  62. data/lib/ideal_postcodes/types/gnaf_address.rb +463 -0
  63. data/lib/ideal_postcodes/types/here_address.rb +174 -0
  64. data/lib/ideal_postcodes/types/invalid_phone_number.rb +50 -0
  65. data/lib/ideal_postcodes/types/kadaster_address.rb +480 -0
  66. data/lib/ideal_postcodes/types/kartverket_address.rb +342 -0
  67. data/lib/ideal_postcodes/types/key_usage_day.rb +16 -0
  68. data/lib/ideal_postcodes/types/key_usage_result.rb +36 -0
  69. data/lib/ideal_postcodes/types/licensee.rb +50 -0
  70. data/lib/ideal_postcodes/types/licensee_daily_usage.rb +29 -0
  71. data/lib/ideal_postcodes/types/licensees_result.rb +23 -0
  72. data/lib/ideal_postcodes/types/mois_address.rb +440 -0
  73. data/lib/ideal_postcodes/types/mr_address.rb +99 -0
  74. data/lib/ideal_postcodes/types/native_record.rb +368 -0
  75. data/lib/ideal_postcodes/types/nyb_address.rb +99 -0
  76. data/lib/ideal_postcodes/types/paf_address.rb +96 -0
  77. data/lib/ideal_postcodes/types/pafa_address.rb +104 -0
  78. data/lib/ideal_postcodes/types/pafw_address.rb +99 -0
  79. data/lib/ideal_postcodes/types/phone_number.rb +50 -0
  80. data/lib/ideal_postcodes/types/place.rb +79 -0
  81. data/lib/ideal_postcodes/types/place_result.rb +21 -0
  82. data/lib/ideal_postcodes/types/place_suggestion.rb +32 -0
  83. data/lib/ideal_postcodes/types/sdfi_address.rb +520 -0
  84. data/lib/ideal_postcodes/types/swt_address.rb +247 -0
  85. data/lib/ideal_postcodes/types/uk_address_suggestion.rb +45 -0
  86. data/lib/ideal_postcodes/types/uk_address_suggestion_urls.rb +21 -0
  87. data/lib/ideal_postcodes/types/unknown_email.rb +43 -0
  88. data/lib/ideal_postcodes/types/upujp_address.rb +763 -0
  89. data/lib/ideal_postcodes/types/usps_address.rb +294 -0
  90. data/lib/ideal_postcodes/version.rb +5 -0
  91. data/lib/ideal_postcodes.rb +14 -2
  92. data/sig/ideal_postcodes/base_client.rbs +40 -0
  93. data/sig/ideal_postcodes/client.rbs +35 -0
  94. data/sig/ideal_postcodes/errors.rbs +27 -0
  95. data/sig/ideal_postcodes/model.rbs +37 -0
  96. data/sig/ideal_postcodes/operations.rbs +207 -0
  97. data/sig/ideal_postcodes/responses/address_response.rbs +13 -0
  98. data/sig/ideal_postcodes/responses/api_key_details_response.rbs +13 -0
  99. data/sig/ideal_postcodes/responses/api_key_response.rbs +13 -0
  100. data/sig/ideal_postcodes/responses/api_key_usage_response.rbs +13 -0
  101. data/sig/ideal_postcodes/responses/autocomplete_response.rbs +13 -0
  102. data/sig/ideal_postcodes/responses/cleanse_response.rbs +19 -0
  103. data/sig/ideal_postcodes/responses/config_response.rbs +13 -0
  104. data/sig/ideal_postcodes/responses/configs_response.rbs +13 -0
  105. data/sig/ideal_postcodes/responses/delete_config_response.rbs +13 -0
  106. data/sig/ideal_postcodes/responses/delete_licensee_response.rbs +13 -0
  107. data/sig/ideal_postcodes/responses/email_response.rbs +19 -0
  108. data/sig/ideal_postcodes/responses/gbr_resolve_address_response.rbs +13 -0
  109. data/sig/ideal_postcodes/responses/licensee_response.rbs +13 -0
  110. data/sig/ideal_postcodes/responses/licensees_response.rbs +13 -0
  111. data/sig/ideal_postcodes/responses/phone_number_response.rbs +19 -0
  112. data/sig/ideal_postcodes/responses/place_response.rbs +13 -0
  113. data/sig/ideal_postcodes/responses/postcode_response.rbs +16 -0
  114. data/sig/ideal_postcodes/responses/resolve_place_response.rbs +13 -0
  115. data/sig/ideal_postcodes/transport.rbs +39 -0
  116. data/sig/ideal_postcodes/types/ab_address.rbs +57 -0
  117. data/sig/ideal_postcodes/types/abp_address.rbs +126 -0
  118. data/sig/ideal_postcodes/types/address.rbs +136 -0
  119. data/sig/ideal_postcodes/types/address_list_item.rbs +160 -0
  120. data/sig/ideal_postcodes/types/address_result.rbs +12 -0
  121. data/sig/ideal_postcodes/types/address_suggestion.rbs +11 -0
  122. data/sig/ideal_postcodes/types/api_key.rbs +11 -0
  123. data/sig/ideal_postcodes/types/api_key_automated_topup.rbs +9 -0
  124. data/sig/ideal_postcodes/types/api_key_current_purchase.rbs +11 -0
  125. data/sig/ideal_postcodes/types/api_key_daily_limit.rbs +10 -0
  126. data/sig/ideal_postcodes/types/api_key_datasets.rbs +46 -0
  127. data/sig/ideal_postcodes/types/api_key_details.rbs +22 -0
  128. data/sig/ideal_postcodes/types/api_key_individual_limit.rbs +9 -0
  129. data/sig/ideal_postcodes/types/api_key_monthly_limit.rbs +10 -0
  130. data/sig/ideal_postcodes/types/api_key_notifications.rbs +13 -0
  131. data/sig/ideal_postcodes/types/autocomplete_result.rbs +15 -0
  132. data/sig/ideal_postcodes/types/available_context.rbs +13 -0
  133. data/sig/ideal_postcodes/types/ban_address.rbs +46 -0
  134. data/sig/ideal_postcodes/types/bev_address.rbs +67 -0
  135. data/sig/ideal_postcodes/types/cannar_address.rbs +62 -0
  136. data/sig/ideal_postcodes/types/carrier.rbs +14 -0
  137. data/sig/ideal_postcodes/types/config.rbs +14 -0
  138. data/sig/ideal_postcodes/types/configs_result.rbs +9 -0
  139. data/sig/ideal_postcodes/types/deleted_config.rbs +9 -0
  140. data/sig/ideal_postcodes/types/deleted_licensee.rbs +9 -0
  141. data/sig/ideal_postcodes/types/ecad_address.rbs +84 -0
  142. data/sig/ideal_postcodes/types/ecaf_address.rbs +45 -0
  143. data/sig/ideal_postcodes/types/email.rbs +16 -0
  144. data/sig/ideal_postcodes/types/fodbosa_address.rbs +43 -0
  145. data/sig/ideal_postcodes/types/gbr_cleanse_match.rbs +25 -0
  146. data/sig/ideal_postcodes/types/gbr_cleanse_no_match.rbs +28 -0
  147. data/sig/ideal_postcodes/types/geonames_place.rbs +42 -0
  148. data/sig/ideal_postcodes/types/gnaf_address.rbs +104 -0
  149. data/sig/ideal_postcodes/types/here_address.rbs +37 -0
  150. data/sig/ideal_postcodes/types/invalid_phone_number.rbs +17 -0
  151. data/sig/ideal_postcodes/types/kadaster_address.rbs +98 -0
  152. data/sig/ideal_postcodes/types/kartverket_address.rbs +78 -0
  153. data/sig/ideal_postcodes/types/key_usage_day.rbs +10 -0
  154. data/sig/ideal_postcodes/types/key_usage_result.rbs +13 -0
  155. data/sig/ideal_postcodes/types/licensee.rbs +17 -0
  156. data/sig/ideal_postcodes/types/licensee_daily_usage.rbs +12 -0
  157. data/sig/ideal_postcodes/types/licensees_result.rbs +11 -0
  158. data/sig/ideal_postcodes/types/mois_address.rbs +97 -0
  159. data/sig/ideal_postcodes/types/mr_address.rbs +27 -0
  160. data/sig/ideal_postcodes/types/native_record.rbs +34 -0
  161. data/sig/ideal_postcodes/types/nyb_address.rbs +27 -0
  162. data/sig/ideal_postcodes/types/paf_address.rbs +27 -0
  163. data/sig/ideal_postcodes/types/pafa_address.rbs +27 -0
  164. data/sig/ideal_postcodes/types/pafw_address.rbs +27 -0
  165. data/sig/ideal_postcodes/types/phone_number.rbs +17 -0
  166. data/sig/ideal_postcodes/types/place.rbs +29 -0
  167. data/sig/ideal_postcodes/types/place_result.rbs +15 -0
  168. data/sig/ideal_postcodes/types/place_suggestion.rbs +12 -0
  169. data/sig/ideal_postcodes/types/sdfi_address.rbs +108 -0
  170. data/sig/ideal_postcodes/types/swt_address.rbs +57 -0
  171. data/sig/ideal_postcodes/types/uk_address_suggestion.rbs +13 -0
  172. data/sig/ideal_postcodes/types/uk_address_suggestion_urls.rbs +10 -0
  173. data/sig/ideal_postcodes/types/unknown_email.rbs +16 -0
  174. data/sig/ideal_postcodes/types/upujp_address.rbs +156 -0
  175. data/sig/ideal_postcodes/types/usps_address.rbs +63 -0
  176. metadata +186 -174
  177. data/.github/workflows/ci.yml +0 -22
  178. data/Gemfile +0 -2
  179. data/Rakefile +0 -15
  180. data/ideal-postcodes-ruby.gemspec +0 -25
  181. data/lib/idealpostcodes/address.rb +0 -31
  182. data/lib/idealpostcodes/errors.rb +0 -38
  183. data/lib/idealpostcodes/key.rb +0 -14
  184. data/lib/idealpostcodes/postcode.rb +0 -23
  185. data/lib/idealpostcodes/util.rb +0 -42
  186. data/lib/idealpostcodes/version.rb +0 -3
  187. data/lib/idealpostcodes.rb +0 -124
  188. data/spec/addresses_spec.rb +0 -68
  189. data/spec/idealpostcodes_spec.rb +0 -56
  190. data/spec/keys_spec.rb +0 -25
  191. data/spec/postcodes_spec.rb +0 -77
  192. data/spec/spec_helper.rb +0 -89
  193. data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_raises_an_exception_if_invalid_key.yml +0 -42
  194. data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_raises_an_exception_if_limit_breached.yml +0 -42
  195. data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_raises_an_exception_if_no_lookups_remaining.yml +0 -42
  196. data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_returns_an_address_for_a_valid_UDPRN.yml +0 -74
  197. data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_returns_nil_for_an_invalid_UDPRN.yml +0 -42
  198. data/spec/vcr_cassettes/IdealPostcodes_Address_search_is_sensitive_to_limit.yml +0 -81
  199. data/spec/vcr_cassettes/IdealPostcodes_Address_search_is_sensitive_to_page.yml +0 -369
  200. data/spec/vcr_cassettes/IdealPostcodes_Address_search_raises_an_exception_if_invalid_key.yml +0 -42
  201. data/spec/vcr_cassettes/IdealPostcodes_Address_search_raises_an_exception_if_limit_breached.yml +0 -42
  202. data/spec/vcr_cassettes/IdealPostcodes_Address_search_raises_an_exception_if_no_lookups_remaining.yml +0 -42
  203. data/spec/vcr_cassettes/IdealPostcodes_Address_search_returns_results_in_a_SearchResult_object.yml +0 -273
  204. data/spec/vcr_cassettes/IdealPostcodes_Key_lookup_details_returns_key_details.yml +0 -62
  205. data/spec/vcr_cassettes/IdealPostcodes_Key_lookup_returns_the_availability_status_of_a_key_false_key_.yml +0 -45
  206. data/spec/vcr_cassettes/IdealPostcodes_Key_lookup_returns_the_availability_status_of_a_key_true_key_.yml +0 -45
  207. data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_is_sensitive_to_limit_parameter.yml +0 -52
  208. data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_is_sensitive_to_radius_parament.yml +0 -133
  209. data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_returns_an_array_of_postcodes_and_locations.yml +0 -84
  210. data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_returns_an_empty_array_if_no_results_are_found.yml +0 -43
  211. data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_raises_an_exception_if_invalid_key.yml +0 -42
  212. data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_raises_an_exception_if_key_has_run_out_of_balance.yml +0 -42
  213. data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_raises_an_exception_if_limit_has_been_reached.yml +0 -42
  214. data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_returns_a_list_of_addresses_for_a_postcode.yml +0 -268
  215. data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_returns_an_empty_array_if_postcode_does_not_exist.yml +0 -42
  216. data/spec/vcr_cassettes/IdealPostcodes_key_available_returns_false_if_key_is_unavailable.yml +0 -45
  217. data/spec/vcr_cassettes/IdealPostcodes_key_available_returns_true_if_key_is_available.yml +0 -45
  218. data/spec/vcr_cassettes/IdealPostcodes_key_details_raises_an_exception_if_no_secret_is_provided.yml +0 -45
  219. data/spec/vcr_cassettes/IdealPostcodes_key_details_returns_key_information.yml +0 -62
  220. data/spec/vcr_cassettes/IdealPostcodes_request_generates_a_HTTP_request.yml +0 -268
  221. data/spec/vcr_cassettes/IdealPostcodes_request_raises_authentication_error_if_invalid_key_is_provided.yml +0 -42
  222. data/spec/vcr_cassettes/IdealPostcodes_request_raises_limit_reached_error_if_a_limit_has_been_breached.yml +0 -42
  223. 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,11 @@
1
+ # Generated from the OpenAPI spec. Do not edit.
2
+
3
+ module IdealPostcodes
4
+ module Types
5
+ class LicenseesResult < Model
6
+ def licensees: () -> Array[Types::Licensee]
7
+ def hasMore: () -> bool
8
+ alias has_more hasMore
9
+ end
10
+ end
11
+ 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,10 @@
1
+ # Generated from the OpenAPI spec. Do not edit.
2
+
3
+ module IdealPostcodes
4
+ module Types
5
+ class UkAddressSuggestionUrls < Model
6
+ def udprn: () -> String
7
+ def umprn: () -> String?
8
+ end
9
+ end
10
+ 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