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,157 @@
|
|
|
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 CommunicationApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Email validation
|
|
23
|
+
# Validate an email address — checks RFC format, DNS/MX records, SMTP deliverability, disposable/free/role detection, and quality score. Costs 1 unit.
|
|
24
|
+
# @param email [String] Email address to validate (max 254 characters)
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [EmailResponse]
|
|
27
|
+
def email_validation(email, opts = {})
|
|
28
|
+
data, _status_code, _headers = email_validation_with_http_info(email, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Email validation
|
|
33
|
+
# Validate an email address — checks RFC format, DNS/MX records, SMTP deliverability, disposable/free/role detection, and quality score. Costs 1 unit.
|
|
34
|
+
# @param email [String] Email address to validate (max 254 characters)
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(EmailResponse, Integer, Hash)>] EmailResponse data, response status code and response headers
|
|
37
|
+
def email_validation_with_http_info(email, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: CommunicationApi.email_validation ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'email' is set
|
|
42
|
+
if @api_client.config.client_side_validation && email.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'email' when calling CommunicationApi.email_validation"
|
|
44
|
+
end
|
|
45
|
+
if @api_client.config.client_side_validation && email.to_s.length > 254
|
|
46
|
+
fail ArgumentError, 'invalid value for "email" when calling CommunicationApi.email_validation, the character length must be smaller than or equal to 254.'
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/email'
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = opts[:query_params] || {}
|
|
54
|
+
query_params[:'email'] = email
|
|
55
|
+
|
|
56
|
+
# header parameters
|
|
57
|
+
header_params = opts[:header_params] || {}
|
|
58
|
+
# HTTP header 'Accept' (if needed)
|
|
59
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body]
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'EmailResponse'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"CommunicationApi.email_validation",
|
|
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(:GET, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: CommunicationApi#email_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Phone validation
|
|
91
|
+
# Validate and normalise a phone number. Detects country, returns E.164 / national / international formats, line type, carrier, and location. Defaults to AU parsing. Costs 1 unit.
|
|
92
|
+
# @param phone [String] Phone number to validate — include country code or use the country hint
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @option opts [String] :country ISO 3166-1 alpha-2 country code hint for local numbers (default AU) (default to 'AU')
|
|
95
|
+
# @return [PhoneResponse]
|
|
96
|
+
def phone_validation(phone, opts = {})
|
|
97
|
+
data, _status_code, _headers = phone_validation_with_http_info(phone, opts)
|
|
98
|
+
data
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Phone validation
|
|
102
|
+
# Validate and normalise a phone number. Detects country, returns E.164 / national / international formats, line type, carrier, and location. Defaults to AU parsing. Costs 1 unit.
|
|
103
|
+
# @param phone [String] Phone number to validate — include country code or use the country hint
|
|
104
|
+
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [String] :country ISO 3166-1 alpha-2 country code hint for local numbers (default AU) (default to 'AU')
|
|
106
|
+
# @return [Array<(PhoneResponse, Integer, Hash)>] PhoneResponse data, response status code and response headers
|
|
107
|
+
def phone_validation_with_http_info(phone, opts = {})
|
|
108
|
+
if @api_client.config.debugging
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: CommunicationApi.phone_validation ...'
|
|
110
|
+
end
|
|
111
|
+
# verify the required parameter 'phone' is set
|
|
112
|
+
if @api_client.config.client_side_validation && phone.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'phone' when calling CommunicationApi.phone_validation"
|
|
114
|
+
end
|
|
115
|
+
# resource path
|
|
116
|
+
local_var_path = '/phone'
|
|
117
|
+
|
|
118
|
+
# query parameters
|
|
119
|
+
query_params = opts[:query_params] || {}
|
|
120
|
+
query_params[:'phone'] = phone
|
|
121
|
+
query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
|
|
122
|
+
|
|
123
|
+
# header parameters
|
|
124
|
+
header_params = opts[:header_params] || {}
|
|
125
|
+
# HTTP header 'Accept' (if needed)
|
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
127
|
+
|
|
128
|
+
# form parameters
|
|
129
|
+
form_params = opts[:form_params] || {}
|
|
130
|
+
|
|
131
|
+
# http body (model)
|
|
132
|
+
post_body = opts[:debug_body]
|
|
133
|
+
|
|
134
|
+
# return_type
|
|
135
|
+
return_type = opts[:debug_return_type] || 'PhoneResponse'
|
|
136
|
+
|
|
137
|
+
# auth_names
|
|
138
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
139
|
+
|
|
140
|
+
new_options = opts.merge(
|
|
141
|
+
:operation => :"CommunicationApi.phone_validation",
|
|
142
|
+
:header_params => header_params,
|
|
143
|
+
:query_params => query_params,
|
|
144
|
+
:form_params => form_params,
|
|
145
|
+
:body => post_body,
|
|
146
|
+
:auth_names => auth_names,
|
|
147
|
+
:return_type => return_type
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
151
|
+
if @api_client.config.debugging
|
|
152
|
+
@api_client.config.logger.debug "API called: CommunicationApi#phone_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
153
|
+
end
|
|
154
|
+
return data, status_code, headers
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
@@ -0,0 +1,248 @@
|
|
|
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 IdentityApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Director ID validation
|
|
23
|
+
# Validate the format and checksum of an Australian Director Identification Number using the official ABRS Damm algorithm. Structural check only — no live ABRS registry lookup. Costs 1 unit.
|
|
24
|
+
# @param director_id [String] 15-digit Director ID starting with 036 — spaces accepted
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [DirectorIdResponse]
|
|
27
|
+
def director_id_validation(director_id, opts = {})
|
|
28
|
+
data, _status_code, _headers = director_id_validation_with_http_info(director_id, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Director ID validation
|
|
33
|
+
# Validate the format and checksum of an Australian Director Identification Number using the official ABRS Damm algorithm. Structural check only — no live ABRS registry lookup. Costs 1 unit.
|
|
34
|
+
# @param director_id [String] 15-digit Director ID starting with 036 — spaces accepted
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(DirectorIdResponse, Integer, Hash)>] DirectorIdResponse data, response status code and response headers
|
|
37
|
+
def director_id_validation_with_http_info(director_id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: IdentityApi.director_id_validation ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'director_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && director_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'director_id' when calling IdentityApi.director_id_validation"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/director-id'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
query_params[:'director_id'] = director_id
|
|
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] || 'DirectorIdResponse'
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :"IdentityApi.director_id_validation",
|
|
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: IdentityApi#director_id_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Sanctions screening
|
|
87
|
+
# Screen an individual or entity name against 11 sanctions and debarment lists including DFAT, UN, OFAC SDN, EU, UK OFSI, Canada, New Zealand, France, Hong Kong, World Bank, and IDB. Costs 3 units.
|
|
88
|
+
# @param name [String] Full name to screen (3–200 characters)
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @option opts [Integer] :birth_year Year of birth (1900–2008) — boosts confidence if matched
|
|
91
|
+
# @option opts [String] :country ISO 3166-1 alpha-2 country code — boosts confidence if matched
|
|
92
|
+
# @option opts [String] :city City of birth (max 200 characters) — fuzzy-compared for confidence boost
|
|
93
|
+
# @return [SanctionsResponse]
|
|
94
|
+
def sanctions_screening(name, opts = {})
|
|
95
|
+
data, _status_code, _headers = sanctions_screening_with_http_info(name, opts)
|
|
96
|
+
data
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Sanctions screening
|
|
100
|
+
# Screen an individual or entity name against 11 sanctions and debarment lists including DFAT, UN, OFAC SDN, EU, UK OFSI, Canada, New Zealand, France, Hong Kong, World Bank, and IDB. Costs 3 units.
|
|
101
|
+
# @param name [String] Full name to screen (3–200 characters)
|
|
102
|
+
# @param [Hash] opts the optional parameters
|
|
103
|
+
# @option opts [Integer] :birth_year Year of birth (1900–2008) — boosts confidence if matched
|
|
104
|
+
# @option opts [String] :country ISO 3166-1 alpha-2 country code — boosts confidence if matched
|
|
105
|
+
# @option opts [String] :city City of birth (max 200 characters) — fuzzy-compared for confidence boost
|
|
106
|
+
# @return [Array<(SanctionsResponse, Integer, Hash)>] SanctionsResponse data, response status code and response headers
|
|
107
|
+
def sanctions_screening_with_http_info(name, opts = {})
|
|
108
|
+
if @api_client.config.debugging
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: IdentityApi.sanctions_screening ...'
|
|
110
|
+
end
|
|
111
|
+
# verify the required parameter 'name' is set
|
|
112
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling IdentityApi.sanctions_screening"
|
|
114
|
+
end
|
|
115
|
+
if @api_client.config.client_side_validation && name.to_s.length > 200
|
|
116
|
+
fail ArgumentError, 'invalid value for "name" when calling IdentityApi.sanctions_screening, the character length must be smaller than or equal to 200.'
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if @api_client.config.client_side_validation && name.to_s.length < 3
|
|
120
|
+
fail ArgumentError, 'invalid value for "name" when calling IdentityApi.sanctions_screening, the character length must be greater than or equal to 3.'
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if @api_client.config.client_side_validation && !opts[:'birth_year'].nil? && opts[:'birth_year'] > 2008
|
|
124
|
+
fail ArgumentError, 'invalid value for "opts[:"birth_year"]" when calling IdentityApi.sanctions_screening, must be smaller than or equal to 2008.'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if @api_client.config.client_side_validation && !opts[:'birth_year'].nil? && opts[:'birth_year'] < 1900
|
|
128
|
+
fail ArgumentError, 'invalid value for "opts[:"birth_year"]" when calling IdentityApi.sanctions_screening, must be greater than or equal to 1900.'
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
pattern = Regexp.new(/^[A-Z]{2}$/)
|
|
132
|
+
if @api_client.config.client_side_validation && !opts[:'country'].nil? && opts[:'country'] !~ pattern
|
|
133
|
+
fail ArgumentError, "invalid value for 'opts[:\"country\"]' when calling IdentityApi.sanctions_screening, must conform to the pattern #{pattern}."
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if @api_client.config.client_side_validation && !opts[:'city'].nil? && opts[:'city'].to_s.length > 200
|
|
137
|
+
fail ArgumentError, 'invalid value for "opts[:"city"]" when calling IdentityApi.sanctions_screening, the character length must be smaller than or equal to 200.'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# resource path
|
|
141
|
+
local_var_path = '/sanctions-screening'
|
|
142
|
+
|
|
143
|
+
# query parameters
|
|
144
|
+
query_params = opts[:query_params] || {}
|
|
145
|
+
query_params[:'name'] = name
|
|
146
|
+
query_params[:'birth_year'] = opts[:'birth_year'] if !opts[:'birth_year'].nil?
|
|
147
|
+
query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
|
|
148
|
+
query_params[:'city'] = opts[:'city'] if !opts[:'city'].nil?
|
|
149
|
+
|
|
150
|
+
# header parameters
|
|
151
|
+
header_params = opts[:header_params] || {}
|
|
152
|
+
# HTTP header 'Accept' (if needed)
|
|
153
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
154
|
+
|
|
155
|
+
# form parameters
|
|
156
|
+
form_params = opts[:form_params] || {}
|
|
157
|
+
|
|
158
|
+
# http body (model)
|
|
159
|
+
post_body = opts[:debug_body]
|
|
160
|
+
|
|
161
|
+
# return_type
|
|
162
|
+
return_type = opts[:debug_return_type] || 'SanctionsResponse'
|
|
163
|
+
|
|
164
|
+
# auth_names
|
|
165
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
166
|
+
|
|
167
|
+
new_options = opts.merge(
|
|
168
|
+
:operation => :"IdentityApi.sanctions_screening",
|
|
169
|
+
:header_params => header_params,
|
|
170
|
+
:query_params => query_params,
|
|
171
|
+
:form_params => form_params,
|
|
172
|
+
:body => post_body,
|
|
173
|
+
:auth_names => auth_names,
|
|
174
|
+
:return_type => return_type
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
178
|
+
if @api_client.config.debugging
|
|
179
|
+
@api_client.config.logger.debug "API called: IdentityApi#sanctions_screening\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
180
|
+
end
|
|
181
|
+
return data, status_code, headers
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# TFN validation
|
|
185
|
+
# Validate the format and checksum of an Australian Tax File Number. Structural check only — no live ATO registry lookup. Costs 1 unit.
|
|
186
|
+
# @param tfn [String] 8 or 9-digit TFN — spaces and hyphens accepted
|
|
187
|
+
# @param [Hash] opts the optional parameters
|
|
188
|
+
# @return [TfnResponse]
|
|
189
|
+
def tfn_validation(tfn, opts = {})
|
|
190
|
+
data, _status_code, _headers = tfn_validation_with_http_info(tfn, opts)
|
|
191
|
+
data
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# TFN validation
|
|
195
|
+
# Validate the format and checksum of an Australian Tax File Number. Structural check only — no live ATO registry lookup. Costs 1 unit.
|
|
196
|
+
# @param tfn [String] 8 or 9-digit TFN — spaces and hyphens accepted
|
|
197
|
+
# @param [Hash] opts the optional parameters
|
|
198
|
+
# @return [Array<(TfnResponse, Integer, Hash)>] TfnResponse data, response status code and response headers
|
|
199
|
+
def tfn_validation_with_http_info(tfn, opts = {})
|
|
200
|
+
if @api_client.config.debugging
|
|
201
|
+
@api_client.config.logger.debug 'Calling API: IdentityApi.tfn_validation ...'
|
|
202
|
+
end
|
|
203
|
+
# verify the required parameter 'tfn' is set
|
|
204
|
+
if @api_client.config.client_side_validation && tfn.nil?
|
|
205
|
+
fail ArgumentError, "Missing the required parameter 'tfn' when calling IdentityApi.tfn_validation"
|
|
206
|
+
end
|
|
207
|
+
# resource path
|
|
208
|
+
local_var_path = '/tfn'
|
|
209
|
+
|
|
210
|
+
# query parameters
|
|
211
|
+
query_params = opts[:query_params] || {}
|
|
212
|
+
query_params[:'tfn'] = tfn
|
|
213
|
+
|
|
214
|
+
# header parameters
|
|
215
|
+
header_params = opts[:header_params] || {}
|
|
216
|
+
# HTTP header 'Accept' (if needed)
|
|
217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
218
|
+
|
|
219
|
+
# form parameters
|
|
220
|
+
form_params = opts[:form_params] || {}
|
|
221
|
+
|
|
222
|
+
# http body (model)
|
|
223
|
+
post_body = opts[:debug_body]
|
|
224
|
+
|
|
225
|
+
# return_type
|
|
226
|
+
return_type = opts[:debug_return_type] || 'TfnResponse'
|
|
227
|
+
|
|
228
|
+
# auth_names
|
|
229
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
230
|
+
|
|
231
|
+
new_options = opts.merge(
|
|
232
|
+
:operation => :"IdentityApi.tfn_validation",
|
|
233
|
+
:header_params => header_params,
|
|
234
|
+
:query_params => query_params,
|
|
235
|
+
:form_params => form_params,
|
|
236
|
+
:body => post_body,
|
|
237
|
+
:auth_names => auth_names,
|
|
238
|
+
:return_type => return_type
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
242
|
+
if @api_client.config.debugging
|
|
243
|
+
@api_client.config.logger.debug "API called: IdentityApi#tfn_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
244
|
+
end
|
|
245
|
+
return data, status_code, headers
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
end
|