checkify 0.1.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 +7 -0
- data/CHANGELOG.md +9 -0
- data/LICENSE +21 -0
- data/README.md +319 -0
- data/docs/AbnAddress.md +24 -0
- data/docs/AbnResponse.md +34 -0
- data/docs/AbnResponseAbnDetails.md +22 -0
- data/docs/Account.md +36 -0
- data/docs/AccountApi.md +74 -0
- data/docs/AcnAddress.md +24 -0
- data/docs/AcnResponse.md +38 -0
- data/docs/AcnResponseAbnDetails.md +18 -0
- data/docs/AcnResponseAcnDetails.md +22 -0
- data/docs/AddressApi.md +457 -0
- data/docs/AddressDetails.md +52 -0
- data/docs/AsicDocument.md +28 -0
- data/docs/AsicDocumentContentsInner.md +20 -0
- data/docs/BatchApi.md +217 -0
- data/docs/BulkCreateRequest.md +20 -0
- data/docs/BulkCreateRequestItems.md +49 -0
- data/docs/BulkJob.md +26 -0
- data/docs/BusinessActivity.md +22 -0
- data/docs/BusinessActivityResponse.md +22 -0
- data/docs/BusinessApi.md +361 -0
- data/docs/CommunicationApi.md +151 -0
- data/docs/DirectorIdResponse.md +24 -0
- data/docs/EmailResponse.md +42 -0
- data/docs/EmailResponseDns.md +18 -0
- data/docs/EmailResponseFormat.md +22 -0
- data/docs/Error.md +22 -0
- data/docs/FormerName.md +22 -0
- data/docs/IdentityApi.md +225 -0
- data/docs/NameAvailability.md +26 -0
- data/docs/PhoneResponse.md +32 -0
- data/docs/PostcodeResult.md +30 -0
- data/docs/ReverseResult.md +38 -0
- data/docs/SanctionsResponse.md +20 -0
- data/docs/SanctionsResult.md +42 -0
- data/docs/SanctionsResultSanctions.md +24 -0
- data/docs/SuburbDetails.md +30 -0
- data/docs/TfnResponse.md +24 -0
- data/lib/checkify/api/account_api.rb +79 -0
- data/lib/checkify/api/address_api.rb +490 -0
- data/lib/checkify/api/batch_api.rb +216 -0
- data/lib/checkify/api/business_api.rb +365 -0
- data/lib/checkify/api/communication_api.rb +157 -0
- data/lib/checkify/api/identity_api.rb +248 -0
- data/lib/checkify/api_client.rb +397 -0
- data/lib/checkify/api_error.rb +58 -0
- data/lib/checkify/api_model_base.rb +88 -0
- data/lib/checkify/client.rb +25 -0
- data/lib/checkify/configuration.rb +305 -0
- data/lib/checkify/models/abn_address.rb +173 -0
- data/lib/checkify/models/abn_response.rb +223 -0
- data/lib/checkify/models/abn_response_abn_details.rb +165 -0
- data/lib/checkify/models/account.rb +277 -0
- data/lib/checkify/models/acn_address.rb +173 -0
- data/lib/checkify/models/acn_response.rb +244 -0
- data/lib/checkify/models/acn_response_abn_details.rb +145 -0
- data/lib/checkify/models/acn_response_acn_details.rb +164 -0
- data/lib/checkify/models/address_details.rb +324 -0
- data/lib/checkify/models/asic_document.rb +192 -0
- data/lib/checkify/models/asic_document_contents_inner.rb +154 -0
- data/lib/checkify/models/bulk_create_request.rb +213 -0
- data/lib/checkify/models/bulk_create_request_items.rb +103 -0
- data/lib/checkify/models/bulk_job.rb +215 -0
- data/lib/checkify/models/business_activity.rb +166 -0
- data/lib/checkify/models/business_activity_response.rb +165 -0
- data/lib/checkify/models/director_id_response.rb +174 -0
- data/lib/checkify/models/email_response.rb +292 -0
- data/lib/checkify/models/email_response_dns.rb +146 -0
- data/lib/checkify/models/email_response_format.rb +167 -0
- data/lib/checkify/models/error.rb +166 -0
- data/lib/checkify/models/former_name.rb +163 -0
- data/lib/checkify/models/name_availability.rb +186 -0
- data/lib/checkify/models/phone_response.rb +216 -0
- data/lib/checkify/models/postcode_result.rb +201 -0
- data/lib/checkify/models/reverse_result.rb +237 -0
- data/lib/checkify/models/sanctions_response.rb +157 -0
- data/lib/checkify/models/sanctions_result.rb +339 -0
- data/lib/checkify/models/sanctions_result_sanctions.rb +172 -0
- data/lib/checkify/models/suburb_details.rb +207 -0
- data/lib/checkify/models/tfn_response.rb +174 -0
- data/lib/checkify/version.rb +15 -0
- data/lib/checkify.rb +78 -0
- data/openapi.yaml +1373 -0
- metadata +182 -0
data/docs/AddressApi.md
ADDED
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
# Checkify::AddressApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://checkify.com.au/api/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**autocomplete**](AddressApi.md#autocomplete) | **GET** /autocomplete | Address autocomplete |
|
|
8
|
+
| [**autocomplete_details**](AddressApi.md#autocomplete_details) | **GET** /autocomplete-details | Address details |
|
|
9
|
+
| [**autocomplete_suburb**](AddressApi.md#autocomplete_suburb) | **GET** /autocomplete-suburb | Suburb autocomplete |
|
|
10
|
+
| [**autocomplete_suburb_details**](AddressApi.md#autocomplete_suburb_details) | **GET** /autocomplete-suburb-details | Suburb details |
|
|
11
|
+
| [**postcode_lookup**](AddressApi.md#postcode_lookup) | **GET** /postcode | Postcode lookup |
|
|
12
|
+
| [**reverse_geocode**](AddressApi.md#reverse_geocode) | **GET** /reverse | Reverse geocode |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## autocomplete
|
|
16
|
+
|
|
17
|
+
> Hash<String, String> autocomplete(query, opts)
|
|
18
|
+
|
|
19
|
+
Address autocomplete
|
|
20
|
+
|
|
21
|
+
Type-ahead address search across 17.8 M+ Australian and New Zealand addresses. Returns a map of address IDs to highlighted HTML strings. Costs 0 units.
|
|
22
|
+
|
|
23
|
+
### Examples
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'time'
|
|
27
|
+
require 'checkify'
|
|
28
|
+
# setup authorization
|
|
29
|
+
Checkify.configure do |config|
|
|
30
|
+
# Configure Bearer authorization: BearerAuth
|
|
31
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
api_instance = Checkify::AddressApi.new
|
|
35
|
+
query = 'query_example' # String | Search term, min 3 characters
|
|
36
|
+
opts = {
|
|
37
|
+
country: 'au' # String | Country dataset: au (default) or nz
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
begin
|
|
41
|
+
# Address autocomplete
|
|
42
|
+
result = api_instance.autocomplete(query, opts)
|
|
43
|
+
p result
|
|
44
|
+
rescue Checkify::ApiError => e
|
|
45
|
+
puts "Error when calling AddressApi->autocomplete: #{e}"
|
|
46
|
+
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Using the autocomplete_with_http_info variant
|
|
50
|
+
|
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
|
52
|
+
|
|
53
|
+
> <Array(Hash<String, String>, Integer, Hash)> autocomplete_with_http_info(query, opts)
|
|
54
|
+
|
|
55
|
+
```ruby
|
|
56
|
+
begin
|
|
57
|
+
# Address autocomplete
|
|
58
|
+
data, status_code, headers = api_instance.autocomplete_with_http_info(query, opts)
|
|
59
|
+
p status_code # => 2xx
|
|
60
|
+
p headers # => { ... }
|
|
61
|
+
p data # => Hash<String, String>
|
|
62
|
+
rescue Checkify::ApiError => e
|
|
63
|
+
puts "Error when calling AddressApi->autocomplete_with_http_info: #{e}"
|
|
64
|
+
end
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
| Name | Type | Description | Notes |
|
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
|
71
|
+
| **query** | **String** | Search term, min 3 characters | |
|
|
72
|
+
| **country** | **String** | Country dataset: au (default) or nz | [optional][default to 'au'] |
|
|
73
|
+
|
|
74
|
+
### Return type
|
|
75
|
+
|
|
76
|
+
**Hash<String, String>**
|
|
77
|
+
|
|
78
|
+
### Authorization
|
|
79
|
+
|
|
80
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
81
|
+
|
|
82
|
+
### HTTP request headers
|
|
83
|
+
|
|
84
|
+
- **Content-Type**: Not defined
|
|
85
|
+
- **Accept**: application/json
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## autocomplete_details
|
|
89
|
+
|
|
90
|
+
> <AddressDetails> autocomplete_details(id, opts)
|
|
91
|
+
|
|
92
|
+
Address details
|
|
93
|
+
|
|
94
|
+
Fetch the full structured record for an address ID returned by /autocomplete. Costs 1 unit.
|
|
95
|
+
|
|
96
|
+
### Examples
|
|
97
|
+
|
|
98
|
+
```ruby
|
|
99
|
+
require 'time'
|
|
100
|
+
require 'checkify'
|
|
101
|
+
# setup authorization
|
|
102
|
+
Checkify.configure do |config|
|
|
103
|
+
# Configure Bearer authorization: BearerAuth
|
|
104
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
api_instance = Checkify::AddressApi.new
|
|
108
|
+
id = 'id_example' # String | Address ID from /autocomplete
|
|
109
|
+
opts = {
|
|
110
|
+
country: 'au' # String | Country dataset: au (default) or nz
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
begin
|
|
114
|
+
# Address details
|
|
115
|
+
result = api_instance.autocomplete_details(id, opts)
|
|
116
|
+
p result
|
|
117
|
+
rescue Checkify::ApiError => e
|
|
118
|
+
puts "Error when calling AddressApi->autocomplete_details: #{e}"
|
|
119
|
+
end
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
#### Using the autocomplete_details_with_http_info variant
|
|
123
|
+
|
|
124
|
+
This returns an Array which contains the response data, status code and headers.
|
|
125
|
+
|
|
126
|
+
> <Array(<AddressDetails>, Integer, Hash)> autocomplete_details_with_http_info(id, opts)
|
|
127
|
+
|
|
128
|
+
```ruby
|
|
129
|
+
begin
|
|
130
|
+
# Address details
|
|
131
|
+
data, status_code, headers = api_instance.autocomplete_details_with_http_info(id, opts)
|
|
132
|
+
p status_code # => 2xx
|
|
133
|
+
p headers # => { ... }
|
|
134
|
+
p data # => <AddressDetails>
|
|
135
|
+
rescue Checkify::ApiError => e
|
|
136
|
+
puts "Error when calling AddressApi->autocomplete_details_with_http_info: #{e}"
|
|
137
|
+
end
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
| Name | Type | Description | Notes |
|
|
143
|
+
| ---- | ---- | ----------- | ----- |
|
|
144
|
+
| **id** | **String** | Address ID from /autocomplete | |
|
|
145
|
+
| **country** | **String** | Country dataset: au (default) or nz | [optional][default to 'au'] |
|
|
146
|
+
|
|
147
|
+
### Return type
|
|
148
|
+
|
|
149
|
+
[**AddressDetails**](AddressDetails.md)
|
|
150
|
+
|
|
151
|
+
### Authorization
|
|
152
|
+
|
|
153
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
154
|
+
|
|
155
|
+
### HTTP request headers
|
|
156
|
+
|
|
157
|
+
- **Content-Type**: Not defined
|
|
158
|
+
- **Accept**: application/json
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
## autocomplete_suburb
|
|
162
|
+
|
|
163
|
+
> Hash<String, String> autocomplete_suburb(query, opts)
|
|
164
|
+
|
|
165
|
+
Suburb autocomplete
|
|
166
|
+
|
|
167
|
+
Search for suburbs and localities across Australia and New Zealand. Returns a map of locality IDs to highlighted strings. Costs 0 units.
|
|
168
|
+
|
|
169
|
+
### Examples
|
|
170
|
+
|
|
171
|
+
```ruby
|
|
172
|
+
require 'time'
|
|
173
|
+
require 'checkify'
|
|
174
|
+
# setup authorization
|
|
175
|
+
Checkify.configure do |config|
|
|
176
|
+
# Configure Bearer authorization: BearerAuth
|
|
177
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
api_instance = Checkify::AddressApi.new
|
|
181
|
+
query = 'query_example' # String | Search term, min 2 characters
|
|
182
|
+
opts = {
|
|
183
|
+
country: 'au' # String | Country dataset: au (default) or nz
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
begin
|
|
187
|
+
# Suburb autocomplete
|
|
188
|
+
result = api_instance.autocomplete_suburb(query, opts)
|
|
189
|
+
p result
|
|
190
|
+
rescue Checkify::ApiError => e
|
|
191
|
+
puts "Error when calling AddressApi->autocomplete_suburb: #{e}"
|
|
192
|
+
end
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
#### Using the autocomplete_suburb_with_http_info variant
|
|
196
|
+
|
|
197
|
+
This returns an Array which contains the response data, status code and headers.
|
|
198
|
+
|
|
199
|
+
> <Array(Hash<String, String>, Integer, Hash)> autocomplete_suburb_with_http_info(query, opts)
|
|
200
|
+
|
|
201
|
+
```ruby
|
|
202
|
+
begin
|
|
203
|
+
# Suburb autocomplete
|
|
204
|
+
data, status_code, headers = api_instance.autocomplete_suburb_with_http_info(query, opts)
|
|
205
|
+
p status_code # => 2xx
|
|
206
|
+
p headers # => { ... }
|
|
207
|
+
p data # => Hash<String, String>
|
|
208
|
+
rescue Checkify::ApiError => e
|
|
209
|
+
puts "Error when calling AddressApi->autocomplete_suburb_with_http_info: #{e}"
|
|
210
|
+
end
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Parameters
|
|
214
|
+
|
|
215
|
+
| Name | Type | Description | Notes |
|
|
216
|
+
| ---- | ---- | ----------- | ----- |
|
|
217
|
+
| **query** | **String** | Search term, min 2 characters | |
|
|
218
|
+
| **country** | **String** | Country dataset: au (default) or nz | [optional][default to 'au'] |
|
|
219
|
+
|
|
220
|
+
### Return type
|
|
221
|
+
|
|
222
|
+
**Hash<String, String>**
|
|
223
|
+
|
|
224
|
+
### Authorization
|
|
225
|
+
|
|
226
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
227
|
+
|
|
228
|
+
### HTTP request headers
|
|
229
|
+
|
|
230
|
+
- **Content-Type**: Not defined
|
|
231
|
+
- **Accept**: application/json
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
## autocomplete_suburb_details
|
|
235
|
+
|
|
236
|
+
> <SuburbDetails> autocomplete_suburb_details(id, opts)
|
|
237
|
+
|
|
238
|
+
Suburb details
|
|
239
|
+
|
|
240
|
+
Get full details for a locality ID returned by /autocomplete-suburb. Costs 1 unit. For NZ results, state/stateFull are null; use region instead. NZ localities return postcode: null.
|
|
241
|
+
|
|
242
|
+
### Examples
|
|
243
|
+
|
|
244
|
+
```ruby
|
|
245
|
+
require 'time'
|
|
246
|
+
require 'checkify'
|
|
247
|
+
# setup authorization
|
|
248
|
+
Checkify.configure do |config|
|
|
249
|
+
# Configure Bearer authorization: BearerAuth
|
|
250
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
api_instance = Checkify::AddressApi.new
|
|
254
|
+
id = 'id_example' # String | Locality ID from /autocomplete-suburb
|
|
255
|
+
opts = {
|
|
256
|
+
country: 'au' # String | Country dataset: au (default) or nz
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
begin
|
|
260
|
+
# Suburb details
|
|
261
|
+
result = api_instance.autocomplete_suburb_details(id, opts)
|
|
262
|
+
p result
|
|
263
|
+
rescue Checkify::ApiError => e
|
|
264
|
+
puts "Error when calling AddressApi->autocomplete_suburb_details: #{e}"
|
|
265
|
+
end
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
#### Using the autocomplete_suburb_details_with_http_info variant
|
|
269
|
+
|
|
270
|
+
This returns an Array which contains the response data, status code and headers.
|
|
271
|
+
|
|
272
|
+
> <Array(<SuburbDetails>, Integer, Hash)> autocomplete_suburb_details_with_http_info(id, opts)
|
|
273
|
+
|
|
274
|
+
```ruby
|
|
275
|
+
begin
|
|
276
|
+
# Suburb details
|
|
277
|
+
data, status_code, headers = api_instance.autocomplete_suburb_details_with_http_info(id, opts)
|
|
278
|
+
p status_code # => 2xx
|
|
279
|
+
p headers # => { ... }
|
|
280
|
+
p data # => <SuburbDetails>
|
|
281
|
+
rescue Checkify::ApiError => e
|
|
282
|
+
puts "Error when calling AddressApi->autocomplete_suburb_details_with_http_info: #{e}"
|
|
283
|
+
end
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### Parameters
|
|
287
|
+
|
|
288
|
+
| Name | Type | Description | Notes |
|
|
289
|
+
| ---- | ---- | ----------- | ----- |
|
|
290
|
+
| **id** | **String** | Locality ID from /autocomplete-suburb | |
|
|
291
|
+
| **country** | **String** | Country dataset: au (default) or nz | [optional][default to 'au'] |
|
|
292
|
+
|
|
293
|
+
### Return type
|
|
294
|
+
|
|
295
|
+
[**SuburbDetails**](SuburbDetails.md)
|
|
296
|
+
|
|
297
|
+
### Authorization
|
|
298
|
+
|
|
299
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
300
|
+
|
|
301
|
+
### HTTP request headers
|
|
302
|
+
|
|
303
|
+
- **Content-Type**: Not defined
|
|
304
|
+
- **Accept**: application/json
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
## postcode_lookup
|
|
308
|
+
|
|
309
|
+
> <Array<PostcodeResult>> postcode_lookup(postcode, opts)
|
|
310
|
+
|
|
311
|
+
Postcode lookup
|
|
312
|
+
|
|
313
|
+
Look up all suburbs and localities that belong to a postcode. Returns up to 50 results ordered alphabetically. Costs 1 unit.
|
|
314
|
+
|
|
315
|
+
### Examples
|
|
316
|
+
|
|
317
|
+
```ruby
|
|
318
|
+
require 'time'
|
|
319
|
+
require 'checkify'
|
|
320
|
+
# setup authorization
|
|
321
|
+
Checkify.configure do |config|
|
|
322
|
+
# Configure Bearer authorization: BearerAuth
|
|
323
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
api_instance = Checkify::AddressApi.new
|
|
327
|
+
postcode = 'postcode_example' # String | 4-digit postcode
|
|
328
|
+
opts = {
|
|
329
|
+
country: 'au' # String | Country dataset: au (default) or nz
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
begin
|
|
333
|
+
# Postcode lookup
|
|
334
|
+
result = api_instance.postcode_lookup(postcode, opts)
|
|
335
|
+
p result
|
|
336
|
+
rescue Checkify::ApiError => e
|
|
337
|
+
puts "Error when calling AddressApi->postcode_lookup: #{e}"
|
|
338
|
+
end
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
#### Using the postcode_lookup_with_http_info variant
|
|
342
|
+
|
|
343
|
+
This returns an Array which contains the response data, status code and headers.
|
|
344
|
+
|
|
345
|
+
> <Array(<Array<PostcodeResult>>, Integer, Hash)> postcode_lookup_with_http_info(postcode, opts)
|
|
346
|
+
|
|
347
|
+
```ruby
|
|
348
|
+
begin
|
|
349
|
+
# Postcode lookup
|
|
350
|
+
data, status_code, headers = api_instance.postcode_lookup_with_http_info(postcode, opts)
|
|
351
|
+
p status_code # => 2xx
|
|
352
|
+
p headers # => { ... }
|
|
353
|
+
p data # => <Array<PostcodeResult>>
|
|
354
|
+
rescue Checkify::ApiError => e
|
|
355
|
+
puts "Error when calling AddressApi->postcode_lookup_with_http_info: #{e}"
|
|
356
|
+
end
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
### Parameters
|
|
360
|
+
|
|
361
|
+
| Name | Type | Description | Notes |
|
|
362
|
+
| ---- | ---- | ----------- | ----- |
|
|
363
|
+
| **postcode** | **String** | 4-digit postcode | |
|
|
364
|
+
| **country** | **String** | Country dataset: au (default) or nz | [optional][default to 'au'] |
|
|
365
|
+
|
|
366
|
+
### Return type
|
|
367
|
+
|
|
368
|
+
[**Array<PostcodeResult>**](PostcodeResult.md)
|
|
369
|
+
|
|
370
|
+
### Authorization
|
|
371
|
+
|
|
372
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
373
|
+
|
|
374
|
+
### HTTP request headers
|
|
375
|
+
|
|
376
|
+
- **Content-Type**: Not defined
|
|
377
|
+
- **Accept**: application/json
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
## reverse_geocode
|
|
381
|
+
|
|
382
|
+
> <Array<ReverseResult>> reverse_geocode(lat, lng, opts)
|
|
383
|
+
|
|
384
|
+
Reverse geocode
|
|
385
|
+
|
|
386
|
+
Find the nearest address(es) to a coordinate pair. Results are ordered by distance. Costs 1 unit.
|
|
387
|
+
|
|
388
|
+
### Examples
|
|
389
|
+
|
|
390
|
+
```ruby
|
|
391
|
+
require 'time'
|
|
392
|
+
require 'checkify'
|
|
393
|
+
# setup authorization
|
|
394
|
+
Checkify.configure do |config|
|
|
395
|
+
# Configure Bearer authorization: BearerAuth
|
|
396
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
api_instance = Checkify::AddressApi.new
|
|
400
|
+
lat = 1.2 # Float | Latitude (AU: −44 to −9, NZ: −47 to −34)
|
|
401
|
+
lng = 1.2 # Float | Longitude (AU: 112–155, NZ: 166–178)
|
|
402
|
+
opts = {
|
|
403
|
+
radius: 56, # Integer | Search radius in metres (1–5000, default 100)
|
|
404
|
+
limit: 56, # Integer | Max results (1–10, default 1)
|
|
405
|
+
country: 'au' # String | Country dataset: au (default) or nz
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
begin
|
|
409
|
+
# Reverse geocode
|
|
410
|
+
result = api_instance.reverse_geocode(lat, lng, opts)
|
|
411
|
+
p result
|
|
412
|
+
rescue Checkify::ApiError => e
|
|
413
|
+
puts "Error when calling AddressApi->reverse_geocode: #{e}"
|
|
414
|
+
end
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
#### Using the reverse_geocode_with_http_info variant
|
|
418
|
+
|
|
419
|
+
This returns an Array which contains the response data, status code and headers.
|
|
420
|
+
|
|
421
|
+
> <Array(<Array<ReverseResult>>, Integer, Hash)> reverse_geocode_with_http_info(lat, lng, opts)
|
|
422
|
+
|
|
423
|
+
```ruby
|
|
424
|
+
begin
|
|
425
|
+
# Reverse geocode
|
|
426
|
+
data, status_code, headers = api_instance.reverse_geocode_with_http_info(lat, lng, opts)
|
|
427
|
+
p status_code # => 2xx
|
|
428
|
+
p headers # => { ... }
|
|
429
|
+
p data # => <Array<ReverseResult>>
|
|
430
|
+
rescue Checkify::ApiError => e
|
|
431
|
+
puts "Error when calling AddressApi->reverse_geocode_with_http_info: #{e}"
|
|
432
|
+
end
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
### Parameters
|
|
436
|
+
|
|
437
|
+
| Name | Type | Description | Notes |
|
|
438
|
+
| ---- | ---- | ----------- | ----- |
|
|
439
|
+
| **lat** | **Float** | Latitude (AU: −44 to −9, NZ: −47 to −34) | |
|
|
440
|
+
| **lng** | **Float** | Longitude (AU: 112–155, NZ: 166–178) | |
|
|
441
|
+
| **radius** | **Integer** | Search radius in metres (1–5000, default 100) | [optional][default to 100] |
|
|
442
|
+
| **limit** | **Integer** | Max results (1–10, default 1) | [optional][default to 1] |
|
|
443
|
+
| **country** | **String** | Country dataset: au (default) or nz | [optional][default to 'au'] |
|
|
444
|
+
|
|
445
|
+
### Return type
|
|
446
|
+
|
|
447
|
+
[**Array<ReverseResult>**](ReverseResult.md)
|
|
448
|
+
|
|
449
|
+
### Authorization
|
|
450
|
+
|
|
451
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
452
|
+
|
|
453
|
+
### HTTP request headers
|
|
454
|
+
|
|
455
|
+
- **Content-Type**: Not defined
|
|
456
|
+
- **Accept**: application/json
|
|
457
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Checkify::AddressDetails
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **unit** | **String** | Flat/unit number and type | [optional] |
|
|
8
|
+
| **level** | **String** | Floor/level descriptor | [optional] |
|
|
9
|
+
| **unit_level** | **String** | Combined unit and level | [optional] |
|
|
10
|
+
| **street_number** | **String** | House/lot number | [optional] |
|
|
11
|
+
| **street_name** | **String** | Street name only | [optional] |
|
|
12
|
+
| **street_type** | **String** | Street type code (ST, RD, AVE…) | [optional] |
|
|
13
|
+
| **street** | **String** | Number + full street name combined | [optional] |
|
|
14
|
+
| **city** | **String** | Locality/suburb name | [optional] |
|
|
15
|
+
| **postcode** | **String** | 4-digit postcode | [optional] |
|
|
16
|
+
| **state** | **String** | State abbreviation (NSW, VIC…) — AU only | [optional] |
|
|
17
|
+
| **state_full** | **String** | Full state name — AU only | [optional] |
|
|
18
|
+
| **region** | **String** | Region/city (e.g. Auckland) — NZ only | [optional] |
|
|
19
|
+
| **country** | **String** | Country code (AU or NZ) | [optional] |
|
|
20
|
+
| **country_full** | **String** | Full country name | [optional] |
|
|
21
|
+
| **latitude** | **Float** | | [optional] |
|
|
22
|
+
| **longitude** | **Float** | | [optional] |
|
|
23
|
+
| **mesh_block_code** | **String** | ABS Mesh Block identifier — AU only | [optional] |
|
|
24
|
+
| **building_name** | **String** | Named building or complex — AU only | [optional] |
|
|
25
|
+
|
|
26
|
+
## Example
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
require 'checkify'
|
|
30
|
+
|
|
31
|
+
instance = Checkify::AddressDetails.new(
|
|
32
|
+
unit: null,
|
|
33
|
+
level: null,
|
|
34
|
+
unit_level: null,
|
|
35
|
+
street_number: null,
|
|
36
|
+
street_name: null,
|
|
37
|
+
street_type: null,
|
|
38
|
+
street: null,
|
|
39
|
+
city: null,
|
|
40
|
+
postcode: null,
|
|
41
|
+
state: null,
|
|
42
|
+
state_full: null,
|
|
43
|
+
region: null,
|
|
44
|
+
country: null,
|
|
45
|
+
country_full: null,
|
|
46
|
+
latitude: null,
|
|
47
|
+
longitude: null,
|
|
48
|
+
mesh_block_code: null,
|
|
49
|
+
building_name: null
|
|
50
|
+
)
|
|
51
|
+
```
|
|
52
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Checkify::AsicDocument
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **number** | **String** | | [optional] |
|
|
8
|
+
| **date** | **Date** | | [optional] |
|
|
9
|
+
| **code** | **String** | | [optional] |
|
|
10
|
+
| **title** | **String** | | [optional] |
|
|
11
|
+
| **pages** | **Integer** | | [optional] |
|
|
12
|
+
| **contents** | [**Array<AsicDocumentContentsInner>**](AsicDocumentContentsInner.md) | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'checkify'
|
|
18
|
+
|
|
19
|
+
instance = Checkify::AsicDocument.new(
|
|
20
|
+
number: null,
|
|
21
|
+
date: null,
|
|
22
|
+
code: null,
|
|
23
|
+
title: null,
|
|
24
|
+
pages: null,
|
|
25
|
+
contents: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Checkify::AsicDocumentContentsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **sub_code** | **String** | | [optional] |
|
|
8
|
+
| **title** | **String** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'checkify'
|
|
14
|
+
|
|
15
|
+
instance = Checkify::AsicDocumentContentsInner.new(
|
|
16
|
+
sub_code: null,
|
|
17
|
+
title: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|