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
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Checkify API
|
|
3
|
+
|
|
4
|
+
#Australian and New Zealand address validation, business lookups, identity checks, and communication validation through a single REST interface.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Checkify
|
|
16
|
+
class BatchApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create bulk job
|
|
23
|
+
# 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.
|
|
24
|
+
# @param bulk_create_request [BulkCreateRequest]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [BulkJob]
|
|
27
|
+
def create_bulk_job(bulk_create_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_bulk_job_with_http_info(bulk_create_request, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create bulk job
|
|
33
|
+
# 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.
|
|
34
|
+
# @param bulk_create_request [BulkCreateRequest]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(BulkJob, Integer, Hash)>] BulkJob data, response status code and response headers
|
|
37
|
+
def create_bulk_job_with_http_info(bulk_create_request, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.create_bulk_job ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'bulk_create_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && bulk_create_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'bulk_create_request' when calling BatchApi.create_bulk_job"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/bulk'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = header_params['Content-Type'] || @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_create_request)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'BulkJob'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"BatchApi.create_bulk_job",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: BatchApi#create_bulk_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Download bulk results
|
|
91
|
+
# Download the completed bulk job results as CSV.
|
|
92
|
+
# @param id [Integer]
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [File]
|
|
95
|
+
def download_bulk_results(id, opts = {})
|
|
96
|
+
data, _status_code, _headers = download_bulk_results_with_http_info(id, opts)
|
|
97
|
+
data
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Download bulk results
|
|
101
|
+
# Download the completed bulk job results as CSV.
|
|
102
|
+
# @param id [Integer]
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
105
|
+
def download_bulk_results_with_http_info(id, opts = {})
|
|
106
|
+
if @api_client.config.debugging
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.download_bulk_results ...'
|
|
108
|
+
end
|
|
109
|
+
# verify the required parameter 'id' is set
|
|
110
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BatchApi.download_bulk_results"
|
|
112
|
+
end
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = '/bulk/{id}/download'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
115
|
+
|
|
116
|
+
# query parameters
|
|
117
|
+
query_params = opts[:query_params] || {}
|
|
118
|
+
|
|
119
|
+
# header parameters
|
|
120
|
+
header_params = opts[:header_params] || {}
|
|
121
|
+
# HTTP header 'Accept' (if needed)
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv', 'application/json']) unless header_params['Accept']
|
|
123
|
+
|
|
124
|
+
# form parameters
|
|
125
|
+
form_params = opts[:form_params] || {}
|
|
126
|
+
|
|
127
|
+
# http body (model)
|
|
128
|
+
post_body = opts[:debug_body]
|
|
129
|
+
|
|
130
|
+
# return_type
|
|
131
|
+
return_type = opts[:debug_return_type] || 'File'
|
|
132
|
+
|
|
133
|
+
# auth_names
|
|
134
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
135
|
+
|
|
136
|
+
new_options = opts.merge(
|
|
137
|
+
:operation => :"BatchApi.download_bulk_results",
|
|
138
|
+
:header_params => header_params,
|
|
139
|
+
:query_params => query_params,
|
|
140
|
+
:form_params => form_params,
|
|
141
|
+
:body => post_body,
|
|
142
|
+
:auth_names => auth_names,
|
|
143
|
+
:return_type => return_type
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
147
|
+
if @api_client.config.debugging
|
|
148
|
+
@api_client.config.logger.debug "API called: BatchApi#download_bulk_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
149
|
+
end
|
|
150
|
+
return data, status_code, headers
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Get bulk job status
|
|
154
|
+
# Check the status of a bulk processing job.
|
|
155
|
+
# @param id [Integer]
|
|
156
|
+
# @param [Hash] opts the optional parameters
|
|
157
|
+
# @return [BulkJob]
|
|
158
|
+
def get_bulk_job(id, opts = {})
|
|
159
|
+
data, _status_code, _headers = get_bulk_job_with_http_info(id, opts)
|
|
160
|
+
data
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Get bulk job status
|
|
164
|
+
# Check the status of a bulk processing job.
|
|
165
|
+
# @param id [Integer]
|
|
166
|
+
# @param [Hash] opts the optional parameters
|
|
167
|
+
# @return [Array<(BulkJob, Integer, Hash)>] BulkJob data, response status code and response headers
|
|
168
|
+
def get_bulk_job_with_http_info(id, opts = {})
|
|
169
|
+
if @api_client.config.debugging
|
|
170
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.get_bulk_job ...'
|
|
171
|
+
end
|
|
172
|
+
# verify the required parameter 'id' is set
|
|
173
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
174
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BatchApi.get_bulk_job"
|
|
175
|
+
end
|
|
176
|
+
# resource path
|
|
177
|
+
local_var_path = '/bulk/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
178
|
+
|
|
179
|
+
# query parameters
|
|
180
|
+
query_params = opts[:query_params] || {}
|
|
181
|
+
|
|
182
|
+
# header parameters
|
|
183
|
+
header_params = opts[:header_params] || {}
|
|
184
|
+
# HTTP header 'Accept' (if needed)
|
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
186
|
+
|
|
187
|
+
# form parameters
|
|
188
|
+
form_params = opts[:form_params] || {}
|
|
189
|
+
|
|
190
|
+
# http body (model)
|
|
191
|
+
post_body = opts[:debug_body]
|
|
192
|
+
|
|
193
|
+
# return_type
|
|
194
|
+
return_type = opts[:debug_return_type] || 'BulkJob'
|
|
195
|
+
|
|
196
|
+
# auth_names
|
|
197
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
198
|
+
|
|
199
|
+
new_options = opts.merge(
|
|
200
|
+
:operation => :"BatchApi.get_bulk_job",
|
|
201
|
+
:header_params => header_params,
|
|
202
|
+
:query_params => query_params,
|
|
203
|
+
:form_params => form_params,
|
|
204
|
+
:body => post_body,
|
|
205
|
+
:auth_names => auth_names,
|
|
206
|
+
:return_type => return_type
|
|
207
|
+
)
|
|
208
|
+
|
|
209
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
210
|
+
if @api_client.config.debugging
|
|
211
|
+
@api_client.config.logger.debug "API called: BatchApi#get_bulk_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
212
|
+
end
|
|
213
|
+
return data, status_code, headers
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
end
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Checkify API
|
|
3
|
+
|
|
4
|
+
#Australian and New Zealand address validation, business lookups, identity checks, and communication validation through a single REST interface.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Checkify
|
|
16
|
+
class BusinessApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# ABN lookup
|
|
23
|
+
# Validate an Australian Business Number and retrieve registered business details from the ABR. Costs 1 unit.
|
|
24
|
+
# @param abn [String] 11-digit ABN — spaces accepted
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [AbnResponse]
|
|
27
|
+
def abn_lookup(abn, opts = {})
|
|
28
|
+
data, _status_code, _headers = abn_lookup_with_http_info(abn, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# ABN lookup
|
|
33
|
+
# Validate an Australian Business Number and retrieve registered business details from the ABR. Costs 1 unit.
|
|
34
|
+
# @param abn [String] 11-digit ABN — spaces accepted
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(AbnResponse, Integer, Hash)>] AbnResponse data, response status code and response headers
|
|
37
|
+
def abn_lookup_with_http_info(abn, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.abn_lookup ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'abn' is set
|
|
42
|
+
if @api_client.config.client_side_validation && abn.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'abn' when calling BusinessApi.abn_lookup"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/abn'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
query_params[:'abn'] = abn
|
|
51
|
+
|
|
52
|
+
# header parameters
|
|
53
|
+
header_params = opts[:header_params] || {}
|
|
54
|
+
# HTTP header 'Accept' (if needed)
|
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = opts[:form_params] || {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = opts[:debug_body]
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:debug_return_type] || 'AbnResponse'
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :"BusinessApi.abn_lookup",
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: BusinessApi#abn_lookup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# ACN lookup
|
|
87
|
+
# 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.
|
|
88
|
+
# @param acn [String] 9-digit ACN — spaces accepted
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [AcnResponse]
|
|
91
|
+
def acn_lookup(acn, opts = {})
|
|
92
|
+
data, _status_code, _headers = acn_lookup_with_http_info(acn, opts)
|
|
93
|
+
data
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# ACN lookup
|
|
97
|
+
# 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.
|
|
98
|
+
# @param acn [String] 9-digit ACN — spaces accepted
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [Array<(AcnResponse, Integer, Hash)>] AcnResponse data, response status code and response headers
|
|
101
|
+
def acn_lookup_with_http_info(acn, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.acn_lookup ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'acn' is set
|
|
106
|
+
if @api_client.config.client_side_validation && acn.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'acn' when calling BusinessApi.acn_lookup"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '/acn'
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = opts[:query_params] || {}
|
|
114
|
+
query_params[:'acn'] = acn
|
|
115
|
+
|
|
116
|
+
# header parameters
|
|
117
|
+
header_params = opts[:header_params] || {}
|
|
118
|
+
# HTTP header 'Accept' (if needed)
|
|
119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
120
|
+
|
|
121
|
+
# form parameters
|
|
122
|
+
form_params = opts[:form_params] || {}
|
|
123
|
+
|
|
124
|
+
# http body (model)
|
|
125
|
+
post_body = opts[:debug_body]
|
|
126
|
+
|
|
127
|
+
# return_type
|
|
128
|
+
return_type = opts[:debug_return_type] || 'AcnResponse'
|
|
129
|
+
|
|
130
|
+
# auth_names
|
|
131
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
132
|
+
|
|
133
|
+
new_options = opts.merge(
|
|
134
|
+
:operation => :"BusinessApi.acn_lookup",
|
|
135
|
+
:header_params => header_params,
|
|
136
|
+
:query_params => query_params,
|
|
137
|
+
:form_params => form_params,
|
|
138
|
+
:body => post_body,
|
|
139
|
+
:auth_names => auth_names,
|
|
140
|
+
:return_type => return_type
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
144
|
+
if @api_client.config.debugging
|
|
145
|
+
@api_client.config.logger.debug "API called: BusinessApi#acn_lookup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
146
|
+
end
|
|
147
|
+
return data, status_code, headers
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Business activity search
|
|
151
|
+
# Search over 9,000 Australian business activities and industry classifications (ANZSIC codes) with fuzzy matching, misspelling correction, and relevance scoring. Costs 0 units.
|
|
152
|
+
# @param search [String] Search query, min 3 characters
|
|
153
|
+
# @param [Hash] opts the optional parameters
|
|
154
|
+
# @option opts [Integer] :limit Max results (1–100, default 25) (default to 25)
|
|
155
|
+
# @return [BusinessActivityResponse]
|
|
156
|
+
def business_activity(search, opts = {})
|
|
157
|
+
data, _status_code, _headers = business_activity_with_http_info(search, opts)
|
|
158
|
+
data
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Business activity search
|
|
162
|
+
# Search over 9,000 Australian business activities and industry classifications (ANZSIC codes) with fuzzy matching, misspelling correction, and relevance scoring. Costs 0 units.
|
|
163
|
+
# @param search [String] Search query, min 3 characters
|
|
164
|
+
# @param [Hash] opts the optional parameters
|
|
165
|
+
# @option opts [Integer] :limit Max results (1–100, default 25) (default to 25)
|
|
166
|
+
# @return [Array<(BusinessActivityResponse, Integer, Hash)>] BusinessActivityResponse data, response status code and response headers
|
|
167
|
+
def business_activity_with_http_info(search, opts = {})
|
|
168
|
+
if @api_client.config.debugging
|
|
169
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.business_activity ...'
|
|
170
|
+
end
|
|
171
|
+
# verify the required parameter 'search' is set
|
|
172
|
+
if @api_client.config.client_side_validation && search.nil?
|
|
173
|
+
fail ArgumentError, "Missing the required parameter 'search' when calling BusinessApi.business_activity"
|
|
174
|
+
end
|
|
175
|
+
if @api_client.config.client_side_validation && search.to_s.length < 3
|
|
176
|
+
fail ArgumentError, 'invalid value for "search" when calling BusinessApi.business_activity, the character length must be greater than or equal to 3.'
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
180
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BusinessApi.business_activity, must be smaller than or equal to 100.'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
184
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BusinessApi.business_activity, must be greater than or equal to 1.'
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# resource path
|
|
188
|
+
local_var_path = '/business-activity'
|
|
189
|
+
|
|
190
|
+
# query parameters
|
|
191
|
+
query_params = opts[:query_params] || {}
|
|
192
|
+
query_params[:'search'] = search
|
|
193
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
194
|
+
|
|
195
|
+
# header parameters
|
|
196
|
+
header_params = opts[:header_params] || {}
|
|
197
|
+
# HTTP header 'Accept' (if needed)
|
|
198
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
199
|
+
|
|
200
|
+
# form parameters
|
|
201
|
+
form_params = opts[:form_params] || {}
|
|
202
|
+
|
|
203
|
+
# http body (model)
|
|
204
|
+
post_body = opts[:debug_body]
|
|
205
|
+
|
|
206
|
+
# return_type
|
|
207
|
+
return_type = opts[:debug_return_type] || 'BusinessActivityResponse'
|
|
208
|
+
|
|
209
|
+
# auth_names
|
|
210
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
211
|
+
|
|
212
|
+
new_options = opts.merge(
|
|
213
|
+
:operation => :"BusinessApi.business_activity",
|
|
214
|
+
:header_params => header_params,
|
|
215
|
+
:query_params => query_params,
|
|
216
|
+
:form_params => form_params,
|
|
217
|
+
:body => post_body,
|
|
218
|
+
:auth_names => auth_names,
|
|
219
|
+
:return_type => return_type
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
223
|
+
if @api_client.config.debugging
|
|
224
|
+
@api_client.config.logger.debug "API called: BusinessApi#business_activity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
225
|
+
end
|
|
226
|
+
return data, status_code, headers
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Business name availability
|
|
230
|
+
# Check whether a proposed business (trading) name is available for registration with ASIC. Costs 1 unit.
|
|
231
|
+
# @param name [String] Proposed business name (max 200 characters)
|
|
232
|
+
# @param [Hash] opts the optional parameters
|
|
233
|
+
# @return [NameAvailability]
|
|
234
|
+
def business_name_check(name, opts = {})
|
|
235
|
+
data, _status_code, _headers = business_name_check_with_http_info(name, opts)
|
|
236
|
+
data
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Business name availability
|
|
240
|
+
# Check whether a proposed business (trading) name is available for registration with ASIC. Costs 1 unit.
|
|
241
|
+
# @param name [String] Proposed business name (max 200 characters)
|
|
242
|
+
# @param [Hash] opts the optional parameters
|
|
243
|
+
# @return [Array<(NameAvailability, Integer, Hash)>] NameAvailability data, response status code and response headers
|
|
244
|
+
def business_name_check_with_http_info(name, opts = {})
|
|
245
|
+
if @api_client.config.debugging
|
|
246
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.business_name_check ...'
|
|
247
|
+
end
|
|
248
|
+
# verify the required parameter 'name' is set
|
|
249
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
250
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling BusinessApi.business_name_check"
|
|
251
|
+
end
|
|
252
|
+
if @api_client.config.client_side_validation && name.to_s.length > 200
|
|
253
|
+
fail ArgumentError, 'invalid value for "name" when calling BusinessApi.business_name_check, the character length must be smaller than or equal to 200.'
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# resource path
|
|
257
|
+
local_var_path = '/business-name'
|
|
258
|
+
|
|
259
|
+
# query parameters
|
|
260
|
+
query_params = opts[:query_params] || {}
|
|
261
|
+
query_params[:'name'] = name
|
|
262
|
+
|
|
263
|
+
# header parameters
|
|
264
|
+
header_params = opts[:header_params] || {}
|
|
265
|
+
# HTTP header 'Accept' (if needed)
|
|
266
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
267
|
+
|
|
268
|
+
# form parameters
|
|
269
|
+
form_params = opts[:form_params] || {}
|
|
270
|
+
|
|
271
|
+
# http body (model)
|
|
272
|
+
post_body = opts[:debug_body]
|
|
273
|
+
|
|
274
|
+
# return_type
|
|
275
|
+
return_type = opts[:debug_return_type] || 'NameAvailability'
|
|
276
|
+
|
|
277
|
+
# auth_names
|
|
278
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
279
|
+
|
|
280
|
+
new_options = opts.merge(
|
|
281
|
+
:operation => :"BusinessApi.business_name_check",
|
|
282
|
+
:header_params => header_params,
|
|
283
|
+
:query_params => query_params,
|
|
284
|
+
:form_params => form_params,
|
|
285
|
+
:body => post_body,
|
|
286
|
+
:auth_names => auth_names,
|
|
287
|
+
:return_type => return_type
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
291
|
+
if @api_client.config.debugging
|
|
292
|
+
@api_client.config.logger.debug "API called: BusinessApi#business_name_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
293
|
+
end
|
|
294
|
+
return data, status_code, headers
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Company name availability
|
|
298
|
+
# Check whether a proposed company name is available for registration with ASIC. Costs 1 unit.
|
|
299
|
+
# @param name [String] Proposed company name (max 200 characters)
|
|
300
|
+
# @param [Hash] opts the optional parameters
|
|
301
|
+
# @return [NameAvailability]
|
|
302
|
+
def company_name_check(name, opts = {})
|
|
303
|
+
data, _status_code, _headers = company_name_check_with_http_info(name, opts)
|
|
304
|
+
data
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Company name availability
|
|
308
|
+
# Check whether a proposed company name is available for registration with ASIC. Costs 1 unit.
|
|
309
|
+
# @param name [String] Proposed company name (max 200 characters)
|
|
310
|
+
# @param [Hash] opts the optional parameters
|
|
311
|
+
# @return [Array<(NameAvailability, Integer, Hash)>] NameAvailability data, response status code and response headers
|
|
312
|
+
def company_name_check_with_http_info(name, opts = {})
|
|
313
|
+
if @api_client.config.debugging
|
|
314
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.company_name_check ...'
|
|
315
|
+
end
|
|
316
|
+
# verify the required parameter 'name' is set
|
|
317
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
318
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling BusinessApi.company_name_check"
|
|
319
|
+
end
|
|
320
|
+
if @api_client.config.client_side_validation && name.to_s.length > 200
|
|
321
|
+
fail ArgumentError, 'invalid value for "name" when calling BusinessApi.company_name_check, the character length must be smaller than or equal to 200.'
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# resource path
|
|
325
|
+
local_var_path = '/company-name'
|
|
326
|
+
|
|
327
|
+
# query parameters
|
|
328
|
+
query_params = opts[:query_params] || {}
|
|
329
|
+
query_params[:'name'] = name
|
|
330
|
+
|
|
331
|
+
# header parameters
|
|
332
|
+
header_params = opts[:header_params] || {}
|
|
333
|
+
# HTTP header 'Accept' (if needed)
|
|
334
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
335
|
+
|
|
336
|
+
# form parameters
|
|
337
|
+
form_params = opts[:form_params] || {}
|
|
338
|
+
|
|
339
|
+
# http body (model)
|
|
340
|
+
post_body = opts[:debug_body]
|
|
341
|
+
|
|
342
|
+
# return_type
|
|
343
|
+
return_type = opts[:debug_return_type] || 'NameAvailability'
|
|
344
|
+
|
|
345
|
+
# auth_names
|
|
346
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
347
|
+
|
|
348
|
+
new_options = opts.merge(
|
|
349
|
+
:operation => :"BusinessApi.company_name_check",
|
|
350
|
+
:header_params => header_params,
|
|
351
|
+
:query_params => query_params,
|
|
352
|
+
:form_params => form_params,
|
|
353
|
+
:body => post_body,
|
|
354
|
+
:auth_names => auth_names,
|
|
355
|
+
:return_type => return_type
|
|
356
|
+
)
|
|
357
|
+
|
|
358
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
359
|
+
if @api_client.config.debugging
|
|
360
|
+
@api_client.config.logger.debug "API called: BusinessApi#company_name_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
361
|
+
end
|
|
362
|
+
return data, status_code, headers
|
|
363
|
+
end
|
|
364
|
+
end
|
|
365
|
+
end
|