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/BatchApi.md
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Checkify::BatchApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://checkify.com.au/api/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_bulk_job**](BatchApi.md#create_bulk_job) | **POST** /bulk | Create bulk job |
|
|
8
|
+
| [**download_bulk_results**](BatchApi.md#download_bulk_results) | **GET** /bulk/{id}/download | Download bulk results |
|
|
9
|
+
| [**get_bulk_job**](BatchApi.md#get_bulk_job) | **GET** /bulk/{id} | Get bulk job status |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## create_bulk_job
|
|
13
|
+
|
|
14
|
+
> <BulkJob> create_bulk_job(bulk_create_request)
|
|
15
|
+
|
|
16
|
+
Create bulk job
|
|
17
|
+
|
|
18
|
+
Submit a batch of records for asynchronous processing. Supports ABN, ACN, TFN, Director ID, Email, Phone, Reverse Geocode, Address Validation, and Sanctions Screening. Each row consumes the same units as a single API call. Business & Enterprise plans only.
|
|
19
|
+
|
|
20
|
+
### Examples
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'time'
|
|
24
|
+
require 'checkify'
|
|
25
|
+
# setup authorization
|
|
26
|
+
Checkify.configure do |config|
|
|
27
|
+
# Configure Bearer authorization: BearerAuth
|
|
28
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = Checkify::BatchApi.new
|
|
32
|
+
bulk_create_request = Checkify::BulkCreateRequest.new({endpoint: 'address-validation', items: nil}) # BulkCreateRequest |
|
|
33
|
+
|
|
34
|
+
begin
|
|
35
|
+
# Create bulk job
|
|
36
|
+
result = api_instance.create_bulk_job(bulk_create_request)
|
|
37
|
+
p result
|
|
38
|
+
rescue Checkify::ApiError => e
|
|
39
|
+
puts "Error when calling BatchApi->create_bulk_job: #{e}"
|
|
40
|
+
end
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
#### Using the create_bulk_job_with_http_info variant
|
|
44
|
+
|
|
45
|
+
This returns an Array which contains the response data, status code and headers.
|
|
46
|
+
|
|
47
|
+
> <Array(<BulkJob>, Integer, Hash)> create_bulk_job_with_http_info(bulk_create_request)
|
|
48
|
+
|
|
49
|
+
```ruby
|
|
50
|
+
begin
|
|
51
|
+
# Create bulk job
|
|
52
|
+
data, status_code, headers = api_instance.create_bulk_job_with_http_info(bulk_create_request)
|
|
53
|
+
p status_code # => 2xx
|
|
54
|
+
p headers # => { ... }
|
|
55
|
+
p data # => <BulkJob>
|
|
56
|
+
rescue Checkify::ApiError => e
|
|
57
|
+
puts "Error when calling BatchApi->create_bulk_job_with_http_info: #{e}"
|
|
58
|
+
end
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Parameters
|
|
62
|
+
|
|
63
|
+
| Name | Type | Description | Notes |
|
|
64
|
+
| ---- | ---- | ----------- | ----- |
|
|
65
|
+
| **bulk_create_request** | [**BulkCreateRequest**](BulkCreateRequest.md) | | |
|
|
66
|
+
|
|
67
|
+
### Return type
|
|
68
|
+
|
|
69
|
+
[**BulkJob**](BulkJob.md)
|
|
70
|
+
|
|
71
|
+
### Authorization
|
|
72
|
+
|
|
73
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
74
|
+
|
|
75
|
+
### HTTP request headers
|
|
76
|
+
|
|
77
|
+
- **Content-Type**: application/json, multipart/form-data
|
|
78
|
+
- **Accept**: application/json
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## download_bulk_results
|
|
82
|
+
|
|
83
|
+
> File download_bulk_results(id)
|
|
84
|
+
|
|
85
|
+
Download bulk results
|
|
86
|
+
|
|
87
|
+
Download the completed bulk job results as CSV.
|
|
88
|
+
|
|
89
|
+
### Examples
|
|
90
|
+
|
|
91
|
+
```ruby
|
|
92
|
+
require 'time'
|
|
93
|
+
require 'checkify'
|
|
94
|
+
# setup authorization
|
|
95
|
+
Checkify.configure do |config|
|
|
96
|
+
# Configure Bearer authorization: BearerAuth
|
|
97
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
api_instance = Checkify::BatchApi.new
|
|
101
|
+
id = 56 # Integer |
|
|
102
|
+
|
|
103
|
+
begin
|
|
104
|
+
# Download bulk results
|
|
105
|
+
result = api_instance.download_bulk_results(id)
|
|
106
|
+
p result
|
|
107
|
+
rescue Checkify::ApiError => e
|
|
108
|
+
puts "Error when calling BatchApi->download_bulk_results: #{e}"
|
|
109
|
+
end
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
#### Using the download_bulk_results_with_http_info variant
|
|
113
|
+
|
|
114
|
+
This returns an Array which contains the response data, status code and headers.
|
|
115
|
+
|
|
116
|
+
> <Array(File, Integer, Hash)> download_bulk_results_with_http_info(id)
|
|
117
|
+
|
|
118
|
+
```ruby
|
|
119
|
+
begin
|
|
120
|
+
# Download bulk results
|
|
121
|
+
data, status_code, headers = api_instance.download_bulk_results_with_http_info(id)
|
|
122
|
+
p status_code # => 2xx
|
|
123
|
+
p headers # => { ... }
|
|
124
|
+
p data # => File
|
|
125
|
+
rescue Checkify::ApiError => e
|
|
126
|
+
puts "Error when calling BatchApi->download_bulk_results_with_http_info: #{e}"
|
|
127
|
+
end
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Parameters
|
|
131
|
+
|
|
132
|
+
| Name | Type | Description | Notes |
|
|
133
|
+
| ---- | ---- | ----------- | ----- |
|
|
134
|
+
| **id** | **Integer** | | |
|
|
135
|
+
|
|
136
|
+
### Return type
|
|
137
|
+
|
|
138
|
+
**File**
|
|
139
|
+
|
|
140
|
+
### Authorization
|
|
141
|
+
|
|
142
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
143
|
+
|
|
144
|
+
### HTTP request headers
|
|
145
|
+
|
|
146
|
+
- **Content-Type**: Not defined
|
|
147
|
+
- **Accept**: text/csv, application/json
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## get_bulk_job
|
|
151
|
+
|
|
152
|
+
> <BulkJob> get_bulk_job(id)
|
|
153
|
+
|
|
154
|
+
Get bulk job status
|
|
155
|
+
|
|
156
|
+
Check the status of a bulk processing job.
|
|
157
|
+
|
|
158
|
+
### Examples
|
|
159
|
+
|
|
160
|
+
```ruby
|
|
161
|
+
require 'time'
|
|
162
|
+
require 'checkify'
|
|
163
|
+
# setup authorization
|
|
164
|
+
Checkify.configure do |config|
|
|
165
|
+
# Configure Bearer authorization: BearerAuth
|
|
166
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
api_instance = Checkify::BatchApi.new
|
|
170
|
+
id = 56 # Integer |
|
|
171
|
+
|
|
172
|
+
begin
|
|
173
|
+
# Get bulk job status
|
|
174
|
+
result = api_instance.get_bulk_job(id)
|
|
175
|
+
p result
|
|
176
|
+
rescue Checkify::ApiError => e
|
|
177
|
+
puts "Error when calling BatchApi->get_bulk_job: #{e}"
|
|
178
|
+
end
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
#### Using the get_bulk_job_with_http_info variant
|
|
182
|
+
|
|
183
|
+
This returns an Array which contains the response data, status code and headers.
|
|
184
|
+
|
|
185
|
+
> <Array(<BulkJob>, Integer, Hash)> get_bulk_job_with_http_info(id)
|
|
186
|
+
|
|
187
|
+
```ruby
|
|
188
|
+
begin
|
|
189
|
+
# Get bulk job status
|
|
190
|
+
data, status_code, headers = api_instance.get_bulk_job_with_http_info(id)
|
|
191
|
+
p status_code # => 2xx
|
|
192
|
+
p headers # => { ... }
|
|
193
|
+
p data # => <BulkJob>
|
|
194
|
+
rescue Checkify::ApiError => e
|
|
195
|
+
puts "Error when calling BatchApi->get_bulk_job_with_http_info: #{e}"
|
|
196
|
+
end
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Parameters
|
|
200
|
+
|
|
201
|
+
| Name | Type | Description | Notes |
|
|
202
|
+
| ---- | ---- | ----------- | ----- |
|
|
203
|
+
| **id** | **Integer** | | |
|
|
204
|
+
|
|
205
|
+
### Return type
|
|
206
|
+
|
|
207
|
+
[**BulkJob**](BulkJob.md)
|
|
208
|
+
|
|
209
|
+
### Authorization
|
|
210
|
+
|
|
211
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
212
|
+
|
|
213
|
+
### HTTP request headers
|
|
214
|
+
|
|
215
|
+
- **Content-Type**: Not defined
|
|
216
|
+
- **Accept**: application/json
|
|
217
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Checkify::BulkCreateRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **endpoint** | **String** | Endpoint slug to process | |
|
|
8
|
+
| **items** | [**BulkCreateRequestItems**](BulkCreateRequestItems.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'checkify'
|
|
14
|
+
|
|
15
|
+
instance = Checkify::BulkCreateRequest.new(
|
|
16
|
+
endpoint: null,
|
|
17
|
+
items: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Checkify::BulkCreateRequestItems
|
|
2
|
+
|
|
3
|
+
## Class instance methods
|
|
4
|
+
|
|
5
|
+
### `openapi_one_of`
|
|
6
|
+
|
|
7
|
+
Returns the list of classes defined in oneOf.
|
|
8
|
+
|
|
9
|
+
#### Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'checkify'
|
|
13
|
+
|
|
14
|
+
Checkify::BulkCreateRequestItems.openapi_one_of
|
|
15
|
+
# =>
|
|
16
|
+
# [
|
|
17
|
+
# :'Array<Object>',
|
|
18
|
+
# :'Array<String>'
|
|
19
|
+
# ]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### build
|
|
23
|
+
|
|
24
|
+
Find the appropriate object from the `openapi_one_of` list and casts the data into it.
|
|
25
|
+
|
|
26
|
+
#### Example
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
require 'checkify'
|
|
30
|
+
|
|
31
|
+
Checkify::BulkCreateRequestItems.build(data)
|
|
32
|
+
# => #<Array<Object>:0x00007fdd4aab02a0>
|
|
33
|
+
|
|
34
|
+
Checkify::BulkCreateRequestItems.build(data_that_doesnt_match)
|
|
35
|
+
# => nil
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### Parameters
|
|
39
|
+
|
|
40
|
+
| Name | Type | Description |
|
|
41
|
+
| ---- | ---- | ----------- |
|
|
42
|
+
| **data** | **Mixed** | data to be matched against the list of oneOf items |
|
|
43
|
+
|
|
44
|
+
#### Return type
|
|
45
|
+
|
|
46
|
+
- `Array<Object>`
|
|
47
|
+
- `Array<String>`
|
|
48
|
+
- `nil` (if no type matches)
|
|
49
|
+
|
data/docs/BulkJob.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Checkify::BulkJob
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **Integer** | | [optional] |
|
|
8
|
+
| **endpoint** | **String** | | [optional] |
|
|
9
|
+
| **status** | **String** | | [optional] |
|
|
10
|
+
| **total_rows** | **Integer** | | [optional] |
|
|
11
|
+
| **created_at** | **Time** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'checkify'
|
|
17
|
+
|
|
18
|
+
instance = Checkify::BulkJob.new(
|
|
19
|
+
id: null,
|
|
20
|
+
endpoint: null,
|
|
21
|
+
status: null,
|
|
22
|
+
total_rows: null,
|
|
23
|
+
created_at: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Checkify::BusinessActivity
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **code** | **String** | Unique activity identifier | [optional] |
|
|
8
|
+
| **industry_code** | **String** | ANZSIC industry classification code | [optional] |
|
|
9
|
+
| **full_name** | **String** | Business activity description | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'checkify'
|
|
15
|
+
|
|
16
|
+
instance = Checkify::BusinessActivity.new(
|
|
17
|
+
code: null,
|
|
18
|
+
industry_code: null,
|
|
19
|
+
full_name: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Checkify::BusinessActivityResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **status** | **String** | | [optional] |
|
|
8
|
+
| **count** | **Integer** | | [optional] |
|
|
9
|
+
| **activities** | [**Array<BusinessActivity>**](BusinessActivity.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'checkify'
|
|
15
|
+
|
|
16
|
+
instance = Checkify::BusinessActivityResponse.new(
|
|
17
|
+
status: null,
|
|
18
|
+
count: null,
|
|
19
|
+
activities: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/BusinessApi.md
ADDED
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
# Checkify::BusinessApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://checkify.com.au/api/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**abn_lookup**](BusinessApi.md#abn_lookup) | **GET** /abn | ABN lookup |
|
|
8
|
+
| [**acn_lookup**](BusinessApi.md#acn_lookup) | **GET** /acn | ACN lookup |
|
|
9
|
+
| [**business_activity**](BusinessApi.md#business_activity) | **GET** /business-activity | Business activity search |
|
|
10
|
+
| [**business_name_check**](BusinessApi.md#business_name_check) | **GET** /business-name | Business name availability |
|
|
11
|
+
| [**company_name_check**](BusinessApi.md#company_name_check) | **GET** /company-name | Company name availability |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## abn_lookup
|
|
15
|
+
|
|
16
|
+
> <AbnResponse> abn_lookup(abn)
|
|
17
|
+
|
|
18
|
+
ABN lookup
|
|
19
|
+
|
|
20
|
+
Validate an Australian Business Number and retrieve registered business details from the ABR. Costs 1 unit.
|
|
21
|
+
|
|
22
|
+
### Examples
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'time'
|
|
26
|
+
require 'checkify'
|
|
27
|
+
# setup authorization
|
|
28
|
+
Checkify.configure do |config|
|
|
29
|
+
# Configure Bearer authorization: BearerAuth
|
|
30
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
api_instance = Checkify::BusinessApi.new
|
|
34
|
+
abn = 'abn_example' # String | 11-digit ABN — spaces accepted
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
# ABN lookup
|
|
38
|
+
result = api_instance.abn_lookup(abn)
|
|
39
|
+
p result
|
|
40
|
+
rescue Checkify::ApiError => e
|
|
41
|
+
puts "Error when calling BusinessApi->abn_lookup: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Using the abn_lookup_with_http_info variant
|
|
46
|
+
|
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
|
48
|
+
|
|
49
|
+
> <Array(<AbnResponse>, Integer, Hash)> abn_lookup_with_http_info(abn)
|
|
50
|
+
|
|
51
|
+
```ruby
|
|
52
|
+
begin
|
|
53
|
+
# ABN lookup
|
|
54
|
+
data, status_code, headers = api_instance.abn_lookup_with_http_info(abn)
|
|
55
|
+
p status_code # => 2xx
|
|
56
|
+
p headers # => { ... }
|
|
57
|
+
p data # => <AbnResponse>
|
|
58
|
+
rescue Checkify::ApiError => e
|
|
59
|
+
puts "Error when calling BusinessApi->abn_lookup_with_http_info: #{e}"
|
|
60
|
+
end
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Parameters
|
|
64
|
+
|
|
65
|
+
| Name | Type | Description | Notes |
|
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
|
67
|
+
| **abn** | **String** | 11-digit ABN — spaces accepted | |
|
|
68
|
+
|
|
69
|
+
### Return type
|
|
70
|
+
|
|
71
|
+
[**AbnResponse**](AbnResponse.md)
|
|
72
|
+
|
|
73
|
+
### Authorization
|
|
74
|
+
|
|
75
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
76
|
+
|
|
77
|
+
### HTTP request headers
|
|
78
|
+
|
|
79
|
+
- **Content-Type**: Not defined
|
|
80
|
+
- **Accept**: application/json
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## acn_lookup
|
|
84
|
+
|
|
85
|
+
> <AcnResponse> acn_lookup(acn)
|
|
86
|
+
|
|
87
|
+
ACN lookup
|
|
88
|
+
|
|
89
|
+
Validate an Australian Company Number and retrieve registered company details from ASIC, including entity name, type, registration dates, addresses, former names, and recent documents. Costs 1 unit.
|
|
90
|
+
|
|
91
|
+
### Examples
|
|
92
|
+
|
|
93
|
+
```ruby
|
|
94
|
+
require 'time'
|
|
95
|
+
require 'checkify'
|
|
96
|
+
# setup authorization
|
|
97
|
+
Checkify.configure do |config|
|
|
98
|
+
# Configure Bearer authorization: BearerAuth
|
|
99
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
api_instance = Checkify::BusinessApi.new
|
|
103
|
+
acn = 'acn_example' # String | 9-digit ACN — spaces accepted
|
|
104
|
+
|
|
105
|
+
begin
|
|
106
|
+
# ACN lookup
|
|
107
|
+
result = api_instance.acn_lookup(acn)
|
|
108
|
+
p result
|
|
109
|
+
rescue Checkify::ApiError => e
|
|
110
|
+
puts "Error when calling BusinessApi->acn_lookup: #{e}"
|
|
111
|
+
end
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
#### Using the acn_lookup_with_http_info variant
|
|
115
|
+
|
|
116
|
+
This returns an Array which contains the response data, status code and headers.
|
|
117
|
+
|
|
118
|
+
> <Array(<AcnResponse>, Integer, Hash)> acn_lookup_with_http_info(acn)
|
|
119
|
+
|
|
120
|
+
```ruby
|
|
121
|
+
begin
|
|
122
|
+
# ACN lookup
|
|
123
|
+
data, status_code, headers = api_instance.acn_lookup_with_http_info(acn)
|
|
124
|
+
p status_code # => 2xx
|
|
125
|
+
p headers # => { ... }
|
|
126
|
+
p data # => <AcnResponse>
|
|
127
|
+
rescue Checkify::ApiError => e
|
|
128
|
+
puts "Error when calling BusinessApi->acn_lookup_with_http_info: #{e}"
|
|
129
|
+
end
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Parameters
|
|
133
|
+
|
|
134
|
+
| Name | Type | Description | Notes |
|
|
135
|
+
| ---- | ---- | ----------- | ----- |
|
|
136
|
+
| **acn** | **String** | 9-digit ACN — spaces accepted | |
|
|
137
|
+
|
|
138
|
+
### Return type
|
|
139
|
+
|
|
140
|
+
[**AcnResponse**](AcnResponse.md)
|
|
141
|
+
|
|
142
|
+
### Authorization
|
|
143
|
+
|
|
144
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
145
|
+
|
|
146
|
+
### HTTP request headers
|
|
147
|
+
|
|
148
|
+
- **Content-Type**: Not defined
|
|
149
|
+
- **Accept**: application/json
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
## business_activity
|
|
153
|
+
|
|
154
|
+
> <BusinessActivityResponse> business_activity(search, opts)
|
|
155
|
+
|
|
156
|
+
Business activity search
|
|
157
|
+
|
|
158
|
+
Search over 9,000 Australian business activities and industry classifications (ANZSIC codes) with fuzzy matching, misspelling correction, and relevance scoring. Costs 0 units.
|
|
159
|
+
|
|
160
|
+
### Examples
|
|
161
|
+
|
|
162
|
+
```ruby
|
|
163
|
+
require 'time'
|
|
164
|
+
require 'checkify'
|
|
165
|
+
# setup authorization
|
|
166
|
+
Checkify.configure do |config|
|
|
167
|
+
# Configure Bearer authorization: BearerAuth
|
|
168
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
api_instance = Checkify::BusinessApi.new
|
|
172
|
+
search = 'search_example' # String | Search query, min 3 characters
|
|
173
|
+
opts = {
|
|
174
|
+
limit: 56 # Integer | Max results (1–100, default 25)
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
begin
|
|
178
|
+
# Business activity search
|
|
179
|
+
result = api_instance.business_activity(search, opts)
|
|
180
|
+
p result
|
|
181
|
+
rescue Checkify::ApiError => e
|
|
182
|
+
puts "Error when calling BusinessApi->business_activity: #{e}"
|
|
183
|
+
end
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
#### Using the business_activity_with_http_info variant
|
|
187
|
+
|
|
188
|
+
This returns an Array which contains the response data, status code and headers.
|
|
189
|
+
|
|
190
|
+
> <Array(<BusinessActivityResponse>, Integer, Hash)> business_activity_with_http_info(search, opts)
|
|
191
|
+
|
|
192
|
+
```ruby
|
|
193
|
+
begin
|
|
194
|
+
# Business activity search
|
|
195
|
+
data, status_code, headers = api_instance.business_activity_with_http_info(search, opts)
|
|
196
|
+
p status_code # => 2xx
|
|
197
|
+
p headers # => { ... }
|
|
198
|
+
p data # => <BusinessActivityResponse>
|
|
199
|
+
rescue Checkify::ApiError => e
|
|
200
|
+
puts "Error when calling BusinessApi->business_activity_with_http_info: #{e}"
|
|
201
|
+
end
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Parameters
|
|
205
|
+
|
|
206
|
+
| Name | Type | Description | Notes |
|
|
207
|
+
| ---- | ---- | ----------- | ----- |
|
|
208
|
+
| **search** | **String** | Search query, min 3 characters | |
|
|
209
|
+
| **limit** | **Integer** | Max results (1–100, default 25) | [optional][default to 25] |
|
|
210
|
+
|
|
211
|
+
### Return type
|
|
212
|
+
|
|
213
|
+
[**BusinessActivityResponse**](BusinessActivityResponse.md)
|
|
214
|
+
|
|
215
|
+
### Authorization
|
|
216
|
+
|
|
217
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
218
|
+
|
|
219
|
+
### HTTP request headers
|
|
220
|
+
|
|
221
|
+
- **Content-Type**: Not defined
|
|
222
|
+
- **Accept**: application/json
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
## business_name_check
|
|
226
|
+
|
|
227
|
+
> <NameAvailability> business_name_check(name)
|
|
228
|
+
|
|
229
|
+
Business name availability
|
|
230
|
+
|
|
231
|
+
Check whether a proposed business (trading) name is available for registration with ASIC. Costs 1 unit.
|
|
232
|
+
|
|
233
|
+
### Examples
|
|
234
|
+
|
|
235
|
+
```ruby
|
|
236
|
+
require 'time'
|
|
237
|
+
require 'checkify'
|
|
238
|
+
# setup authorization
|
|
239
|
+
Checkify.configure do |config|
|
|
240
|
+
# Configure Bearer authorization: BearerAuth
|
|
241
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
api_instance = Checkify::BusinessApi.new
|
|
245
|
+
name = 'name_example' # String | Proposed business name (max 200 characters)
|
|
246
|
+
|
|
247
|
+
begin
|
|
248
|
+
# Business name availability
|
|
249
|
+
result = api_instance.business_name_check(name)
|
|
250
|
+
p result
|
|
251
|
+
rescue Checkify::ApiError => e
|
|
252
|
+
puts "Error when calling BusinessApi->business_name_check: #{e}"
|
|
253
|
+
end
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
#### Using the business_name_check_with_http_info variant
|
|
257
|
+
|
|
258
|
+
This returns an Array which contains the response data, status code and headers.
|
|
259
|
+
|
|
260
|
+
> <Array(<NameAvailability>, Integer, Hash)> business_name_check_with_http_info(name)
|
|
261
|
+
|
|
262
|
+
```ruby
|
|
263
|
+
begin
|
|
264
|
+
# Business name availability
|
|
265
|
+
data, status_code, headers = api_instance.business_name_check_with_http_info(name)
|
|
266
|
+
p status_code # => 2xx
|
|
267
|
+
p headers # => { ... }
|
|
268
|
+
p data # => <NameAvailability>
|
|
269
|
+
rescue Checkify::ApiError => e
|
|
270
|
+
puts "Error when calling BusinessApi->business_name_check_with_http_info: #{e}"
|
|
271
|
+
end
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Parameters
|
|
275
|
+
|
|
276
|
+
| Name | Type | Description | Notes |
|
|
277
|
+
| ---- | ---- | ----------- | ----- |
|
|
278
|
+
| **name** | **String** | Proposed business name (max 200 characters) | |
|
|
279
|
+
|
|
280
|
+
### Return type
|
|
281
|
+
|
|
282
|
+
[**NameAvailability**](NameAvailability.md)
|
|
283
|
+
|
|
284
|
+
### Authorization
|
|
285
|
+
|
|
286
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
287
|
+
|
|
288
|
+
### HTTP request headers
|
|
289
|
+
|
|
290
|
+
- **Content-Type**: Not defined
|
|
291
|
+
- **Accept**: application/json
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## company_name_check
|
|
295
|
+
|
|
296
|
+
> <NameAvailability> company_name_check(name)
|
|
297
|
+
|
|
298
|
+
Company name availability
|
|
299
|
+
|
|
300
|
+
Check whether a proposed company name is available for registration with ASIC. Costs 1 unit.
|
|
301
|
+
|
|
302
|
+
### Examples
|
|
303
|
+
|
|
304
|
+
```ruby
|
|
305
|
+
require 'time'
|
|
306
|
+
require 'checkify'
|
|
307
|
+
# setup authorization
|
|
308
|
+
Checkify.configure do |config|
|
|
309
|
+
# Configure Bearer authorization: BearerAuth
|
|
310
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
api_instance = Checkify::BusinessApi.new
|
|
314
|
+
name = 'name_example' # String | Proposed company name (max 200 characters)
|
|
315
|
+
|
|
316
|
+
begin
|
|
317
|
+
# Company name availability
|
|
318
|
+
result = api_instance.company_name_check(name)
|
|
319
|
+
p result
|
|
320
|
+
rescue Checkify::ApiError => e
|
|
321
|
+
puts "Error when calling BusinessApi->company_name_check: #{e}"
|
|
322
|
+
end
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
#### Using the company_name_check_with_http_info variant
|
|
326
|
+
|
|
327
|
+
This returns an Array which contains the response data, status code and headers.
|
|
328
|
+
|
|
329
|
+
> <Array(<NameAvailability>, Integer, Hash)> company_name_check_with_http_info(name)
|
|
330
|
+
|
|
331
|
+
```ruby
|
|
332
|
+
begin
|
|
333
|
+
# Company name availability
|
|
334
|
+
data, status_code, headers = api_instance.company_name_check_with_http_info(name)
|
|
335
|
+
p status_code # => 2xx
|
|
336
|
+
p headers # => { ... }
|
|
337
|
+
p data # => <NameAvailability>
|
|
338
|
+
rescue Checkify::ApiError => e
|
|
339
|
+
puts "Error when calling BusinessApi->company_name_check_with_http_info: #{e}"
|
|
340
|
+
end
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Parameters
|
|
344
|
+
|
|
345
|
+
| Name | Type | Description | Notes |
|
|
346
|
+
| ---- | ---- | ----------- | ----- |
|
|
347
|
+
| **name** | **String** | Proposed company name (max 200 characters) | |
|
|
348
|
+
|
|
349
|
+
### Return type
|
|
350
|
+
|
|
351
|
+
[**NameAvailability**](NameAvailability.md)
|
|
352
|
+
|
|
353
|
+
### Authorization
|
|
354
|
+
|
|
355
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
356
|
+
|
|
357
|
+
### HTTP request headers
|
|
358
|
+
|
|
359
|
+
- **Content-Type**: Not defined
|
|
360
|
+
- **Accept**: application/json
|
|
361
|
+
|