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,151 @@
|
|
|
1
|
+
# Checkify::CommunicationApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://checkify.com.au/api/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**email_validation**](CommunicationApi.md#email_validation) | **GET** /email | Email validation |
|
|
8
|
+
| [**phone_validation**](CommunicationApi.md#phone_validation) | **GET** /phone | Phone validation |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## email_validation
|
|
12
|
+
|
|
13
|
+
> <EmailResponse> email_validation(email)
|
|
14
|
+
|
|
15
|
+
Email validation
|
|
16
|
+
|
|
17
|
+
Validate an email address — checks RFC format, DNS/MX records, SMTP deliverability, disposable/free/role detection, and quality score. Costs 1 unit.
|
|
18
|
+
|
|
19
|
+
### Examples
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'time'
|
|
23
|
+
require 'checkify'
|
|
24
|
+
# setup authorization
|
|
25
|
+
Checkify.configure do |config|
|
|
26
|
+
# Configure Bearer authorization: BearerAuth
|
|
27
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
api_instance = Checkify::CommunicationApi.new
|
|
31
|
+
email = 'email_example' # String | Email address to validate (max 254 characters)
|
|
32
|
+
|
|
33
|
+
begin
|
|
34
|
+
# Email validation
|
|
35
|
+
result = api_instance.email_validation(email)
|
|
36
|
+
p result
|
|
37
|
+
rescue Checkify::ApiError => e
|
|
38
|
+
puts "Error when calling CommunicationApi->email_validation: #{e}"
|
|
39
|
+
end
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### Using the email_validation_with_http_info variant
|
|
43
|
+
|
|
44
|
+
This returns an Array which contains the response data, status code and headers.
|
|
45
|
+
|
|
46
|
+
> <Array(<EmailResponse>, Integer, Hash)> email_validation_with_http_info(email)
|
|
47
|
+
|
|
48
|
+
```ruby
|
|
49
|
+
begin
|
|
50
|
+
# Email validation
|
|
51
|
+
data, status_code, headers = api_instance.email_validation_with_http_info(email)
|
|
52
|
+
p status_code # => 2xx
|
|
53
|
+
p headers # => { ... }
|
|
54
|
+
p data # => <EmailResponse>
|
|
55
|
+
rescue Checkify::ApiError => e
|
|
56
|
+
puts "Error when calling CommunicationApi->email_validation_with_http_info: #{e}"
|
|
57
|
+
end
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Parameters
|
|
61
|
+
|
|
62
|
+
| Name | Type | Description | Notes |
|
|
63
|
+
| ---- | ---- | ----------- | ----- |
|
|
64
|
+
| **email** | **String** | Email address to validate (max 254 characters) | |
|
|
65
|
+
|
|
66
|
+
### Return type
|
|
67
|
+
|
|
68
|
+
[**EmailResponse**](EmailResponse.md)
|
|
69
|
+
|
|
70
|
+
### Authorization
|
|
71
|
+
|
|
72
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
73
|
+
|
|
74
|
+
### HTTP request headers
|
|
75
|
+
|
|
76
|
+
- **Content-Type**: Not defined
|
|
77
|
+
- **Accept**: application/json
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## phone_validation
|
|
81
|
+
|
|
82
|
+
> <PhoneResponse> phone_validation(phone, opts)
|
|
83
|
+
|
|
84
|
+
Phone validation
|
|
85
|
+
|
|
86
|
+
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.
|
|
87
|
+
|
|
88
|
+
### Examples
|
|
89
|
+
|
|
90
|
+
```ruby
|
|
91
|
+
require 'time'
|
|
92
|
+
require 'checkify'
|
|
93
|
+
# setup authorization
|
|
94
|
+
Checkify.configure do |config|
|
|
95
|
+
# Configure Bearer authorization: BearerAuth
|
|
96
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
api_instance = Checkify::CommunicationApi.new
|
|
100
|
+
phone = 'phone_example' # String | Phone number to validate — include country code or use the country hint
|
|
101
|
+
opts = {
|
|
102
|
+
country: 'country_example' # String | ISO 3166-1 alpha-2 country code hint for local numbers (default AU)
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
begin
|
|
106
|
+
# Phone validation
|
|
107
|
+
result = api_instance.phone_validation(phone, opts)
|
|
108
|
+
p result
|
|
109
|
+
rescue Checkify::ApiError => e
|
|
110
|
+
puts "Error when calling CommunicationApi->phone_validation: #{e}"
|
|
111
|
+
end
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
#### Using the phone_validation_with_http_info variant
|
|
115
|
+
|
|
116
|
+
This returns an Array which contains the response data, status code and headers.
|
|
117
|
+
|
|
118
|
+
> <Array(<PhoneResponse>, Integer, Hash)> phone_validation_with_http_info(phone, opts)
|
|
119
|
+
|
|
120
|
+
```ruby
|
|
121
|
+
begin
|
|
122
|
+
# Phone validation
|
|
123
|
+
data, status_code, headers = api_instance.phone_validation_with_http_info(phone, opts)
|
|
124
|
+
p status_code # => 2xx
|
|
125
|
+
p headers # => { ... }
|
|
126
|
+
p data # => <PhoneResponse>
|
|
127
|
+
rescue Checkify::ApiError => e
|
|
128
|
+
puts "Error when calling CommunicationApi->phone_validation_with_http_info: #{e}"
|
|
129
|
+
end
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Parameters
|
|
133
|
+
|
|
134
|
+
| Name | Type | Description | Notes |
|
|
135
|
+
| ---- | ---- | ----------- | ----- |
|
|
136
|
+
| **phone** | **String** | Phone number to validate — include country code or use the country hint | |
|
|
137
|
+
| **country** | **String** | ISO 3166-1 alpha-2 country code hint for local numbers (default AU) | [optional][default to 'AU'] |
|
|
138
|
+
|
|
139
|
+
### Return type
|
|
140
|
+
|
|
141
|
+
[**PhoneResponse**](PhoneResponse.md)
|
|
142
|
+
|
|
143
|
+
### Authorization
|
|
144
|
+
|
|
145
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
146
|
+
|
|
147
|
+
### HTTP request headers
|
|
148
|
+
|
|
149
|
+
- **Content-Type**: Not defined
|
|
150
|
+
- **Accept**: application/json
|
|
151
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Checkify::DirectorIdResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **director_id** | **String** | Normalised digits only | [optional] |
|
|
8
|
+
| **director_id_formatted** | **String** | Grouped with spaces | [optional] |
|
|
9
|
+
| **valid** | **Boolean** | | [optional] |
|
|
10
|
+
| **notice** | **String** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'checkify'
|
|
16
|
+
|
|
17
|
+
instance = Checkify::DirectorIdResponse.new(
|
|
18
|
+
director_id: null,
|
|
19
|
+
director_id_formatted: null,
|
|
20
|
+
valid: null,
|
|
21
|
+
notice: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Checkify::EmailResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **email** | **String** | Normalised (lowercased) email address | [optional] |
|
|
8
|
+
| **valid** | **Boolean** | true only if both format and DNS checks pass | [optional] |
|
|
9
|
+
| **format** | [**EmailResponseFormat**](EmailResponseFormat.md) | | [optional] |
|
|
10
|
+
| **dns** | [**EmailResponseDns**](EmailResponseDns.md) | | [optional] |
|
|
11
|
+
| **deliverable** | **Boolean** | | [optional] |
|
|
12
|
+
| **can_connect_smtp** | **Boolean** | | [optional] |
|
|
13
|
+
| **inbox_full** | **Boolean** | | [optional] |
|
|
14
|
+
| **disabled** | **Boolean** | | [optional] |
|
|
15
|
+
| **catch_all** | **Boolean** | | [optional] |
|
|
16
|
+
| **score** | **Float** | Quality score — higher is better | [optional] |
|
|
17
|
+
| **free** | **Boolean** | Whether the email uses a free provider | [optional] |
|
|
18
|
+
| **disposable** | **Boolean** | Whether the email uses a disposable/temporary provider | [optional] |
|
|
19
|
+
| **role** | **Boolean** | Whether this is a role-based address (e.g. support@, info@) | [optional] |
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'checkify'
|
|
25
|
+
|
|
26
|
+
instance = Checkify::EmailResponse.new(
|
|
27
|
+
email: null,
|
|
28
|
+
valid: null,
|
|
29
|
+
format: null,
|
|
30
|
+
dns: null,
|
|
31
|
+
deliverable: null,
|
|
32
|
+
can_connect_smtp: null,
|
|
33
|
+
inbox_full: null,
|
|
34
|
+
disabled: null,
|
|
35
|
+
catch_all: null,
|
|
36
|
+
score: null,
|
|
37
|
+
free: null,
|
|
38
|
+
disposable: null,
|
|
39
|
+
role: null
|
|
40
|
+
)
|
|
41
|
+
```
|
|
42
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Checkify::EmailResponseDns
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **valid** | **Boolean** | Domain has valid MX or A records | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'checkify'
|
|
13
|
+
|
|
14
|
+
instance = Checkify::EmailResponseDns.new(
|
|
15
|
+
valid: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Checkify::EmailResponseFormat
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **valid** | **Boolean** | | [optional] |
|
|
8
|
+
| **account** | **String** | Local part (before @) | [optional] |
|
|
9
|
+
| **domain** | **String** | Domain part (after @) | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'checkify'
|
|
15
|
+
|
|
16
|
+
instance = Checkify::EmailResponseFormat.new(
|
|
17
|
+
valid: null,
|
|
18
|
+
account: null,
|
|
19
|
+
domain: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/Error.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Checkify::Error
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **error** | **String** | | [optional] |
|
|
8
|
+
| **message** | **String** | | [optional] |
|
|
9
|
+
| **errors** | **Hash<String, Array<String>>** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'checkify'
|
|
15
|
+
|
|
16
|
+
instance = Checkify::Error.new(
|
|
17
|
+
error: null,
|
|
18
|
+
message: null,
|
|
19
|
+
errors: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/FormerName.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Checkify::FormerName
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | [optional] |
|
|
8
|
+
| **active_from** | **Date** | | [optional] |
|
|
9
|
+
| **active_to** | **Date** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'checkify'
|
|
15
|
+
|
|
16
|
+
instance = Checkify::FormerName.new(
|
|
17
|
+
name: null,
|
|
18
|
+
active_from: null,
|
|
19
|
+
active_to: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/IdentityApi.md
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# Checkify::IdentityApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://checkify.com.au/api/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**director_id_validation**](IdentityApi.md#director_id_validation) | **GET** /director-id | Director ID validation |
|
|
8
|
+
| [**sanctions_screening**](IdentityApi.md#sanctions_screening) | **GET** /sanctions-screening | Sanctions screening |
|
|
9
|
+
| [**tfn_validation**](IdentityApi.md#tfn_validation) | **GET** /tfn | TFN validation |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## director_id_validation
|
|
13
|
+
|
|
14
|
+
> <DirectorIdResponse> director_id_validation(director_id)
|
|
15
|
+
|
|
16
|
+
Director ID validation
|
|
17
|
+
|
|
18
|
+
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.
|
|
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::IdentityApi.new
|
|
32
|
+
director_id = 'director_id_example' # String | 15-digit Director ID starting with 036 — spaces accepted
|
|
33
|
+
|
|
34
|
+
begin
|
|
35
|
+
# Director ID validation
|
|
36
|
+
result = api_instance.director_id_validation(director_id)
|
|
37
|
+
p result
|
|
38
|
+
rescue Checkify::ApiError => e
|
|
39
|
+
puts "Error when calling IdentityApi->director_id_validation: #{e}"
|
|
40
|
+
end
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
#### Using the director_id_validation_with_http_info variant
|
|
44
|
+
|
|
45
|
+
This returns an Array which contains the response data, status code and headers.
|
|
46
|
+
|
|
47
|
+
> <Array(<DirectorIdResponse>, Integer, Hash)> director_id_validation_with_http_info(director_id)
|
|
48
|
+
|
|
49
|
+
```ruby
|
|
50
|
+
begin
|
|
51
|
+
# Director ID validation
|
|
52
|
+
data, status_code, headers = api_instance.director_id_validation_with_http_info(director_id)
|
|
53
|
+
p status_code # => 2xx
|
|
54
|
+
p headers # => { ... }
|
|
55
|
+
p data # => <DirectorIdResponse>
|
|
56
|
+
rescue Checkify::ApiError => e
|
|
57
|
+
puts "Error when calling IdentityApi->director_id_validation_with_http_info: #{e}"
|
|
58
|
+
end
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Parameters
|
|
62
|
+
|
|
63
|
+
| Name | Type | Description | Notes |
|
|
64
|
+
| ---- | ---- | ----------- | ----- |
|
|
65
|
+
| **director_id** | **String** | 15-digit Director ID starting with 036 — spaces accepted | |
|
|
66
|
+
|
|
67
|
+
### Return type
|
|
68
|
+
|
|
69
|
+
[**DirectorIdResponse**](DirectorIdResponse.md)
|
|
70
|
+
|
|
71
|
+
### Authorization
|
|
72
|
+
|
|
73
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
74
|
+
|
|
75
|
+
### HTTP request headers
|
|
76
|
+
|
|
77
|
+
- **Content-Type**: Not defined
|
|
78
|
+
- **Accept**: application/json
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## sanctions_screening
|
|
82
|
+
|
|
83
|
+
> <SanctionsResponse> sanctions_screening(name, opts)
|
|
84
|
+
|
|
85
|
+
Sanctions screening
|
|
86
|
+
|
|
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
|
+
|
|
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::IdentityApi.new
|
|
101
|
+
name = 'name_example' # String | Full name to screen (3–200 characters)
|
|
102
|
+
opts = {
|
|
103
|
+
birth_year: 56, # Integer | Year of birth (1900–2008) — boosts confidence if matched
|
|
104
|
+
country: 'country_example', # String | ISO 3166-1 alpha-2 country code — boosts confidence if matched
|
|
105
|
+
city: 'city_example' # String | City of birth (max 200 characters) — fuzzy-compared for confidence boost
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
begin
|
|
109
|
+
# Sanctions screening
|
|
110
|
+
result = api_instance.sanctions_screening(name, opts)
|
|
111
|
+
p result
|
|
112
|
+
rescue Checkify::ApiError => e
|
|
113
|
+
puts "Error when calling IdentityApi->sanctions_screening: #{e}"
|
|
114
|
+
end
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
#### Using the sanctions_screening_with_http_info variant
|
|
118
|
+
|
|
119
|
+
This returns an Array which contains the response data, status code and headers.
|
|
120
|
+
|
|
121
|
+
> <Array(<SanctionsResponse>, Integer, Hash)> sanctions_screening_with_http_info(name, opts)
|
|
122
|
+
|
|
123
|
+
```ruby
|
|
124
|
+
begin
|
|
125
|
+
# Sanctions screening
|
|
126
|
+
data, status_code, headers = api_instance.sanctions_screening_with_http_info(name, opts)
|
|
127
|
+
p status_code # => 2xx
|
|
128
|
+
p headers # => { ... }
|
|
129
|
+
p data # => <SanctionsResponse>
|
|
130
|
+
rescue Checkify::ApiError => e
|
|
131
|
+
puts "Error when calling IdentityApi->sanctions_screening_with_http_info: #{e}"
|
|
132
|
+
end
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Parameters
|
|
136
|
+
|
|
137
|
+
| Name | Type | Description | Notes |
|
|
138
|
+
| ---- | ---- | ----------- | ----- |
|
|
139
|
+
| **name** | **String** | Full name to screen (3–200 characters) | |
|
|
140
|
+
| **birth_year** | **Integer** | Year of birth (1900–2008) — boosts confidence if matched | [optional] |
|
|
141
|
+
| **country** | **String** | ISO 3166-1 alpha-2 country code — boosts confidence if matched | [optional] |
|
|
142
|
+
| **city** | **String** | City of birth (max 200 characters) — fuzzy-compared for confidence boost | [optional] |
|
|
143
|
+
|
|
144
|
+
### Return type
|
|
145
|
+
|
|
146
|
+
[**SanctionsResponse**](SanctionsResponse.md)
|
|
147
|
+
|
|
148
|
+
### Authorization
|
|
149
|
+
|
|
150
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
151
|
+
|
|
152
|
+
### HTTP request headers
|
|
153
|
+
|
|
154
|
+
- **Content-Type**: Not defined
|
|
155
|
+
- **Accept**: application/json
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## tfn_validation
|
|
159
|
+
|
|
160
|
+
> <TfnResponse> tfn_validation(tfn)
|
|
161
|
+
|
|
162
|
+
TFN validation
|
|
163
|
+
|
|
164
|
+
Validate the format and checksum of an Australian Tax File Number. Structural check only — no live ATO registry lookup. Costs 1 unit.
|
|
165
|
+
|
|
166
|
+
### Examples
|
|
167
|
+
|
|
168
|
+
```ruby
|
|
169
|
+
require 'time'
|
|
170
|
+
require 'checkify'
|
|
171
|
+
# setup authorization
|
|
172
|
+
Checkify.configure do |config|
|
|
173
|
+
# Configure Bearer authorization: BearerAuth
|
|
174
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
api_instance = Checkify::IdentityApi.new
|
|
178
|
+
tfn = 'tfn_example' # String | 8 or 9-digit TFN — spaces and hyphens accepted
|
|
179
|
+
|
|
180
|
+
begin
|
|
181
|
+
# TFN validation
|
|
182
|
+
result = api_instance.tfn_validation(tfn)
|
|
183
|
+
p result
|
|
184
|
+
rescue Checkify::ApiError => e
|
|
185
|
+
puts "Error when calling IdentityApi->tfn_validation: #{e}"
|
|
186
|
+
end
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
#### Using the tfn_validation_with_http_info variant
|
|
190
|
+
|
|
191
|
+
This returns an Array which contains the response data, status code and headers.
|
|
192
|
+
|
|
193
|
+
> <Array(<TfnResponse>, Integer, Hash)> tfn_validation_with_http_info(tfn)
|
|
194
|
+
|
|
195
|
+
```ruby
|
|
196
|
+
begin
|
|
197
|
+
# TFN validation
|
|
198
|
+
data, status_code, headers = api_instance.tfn_validation_with_http_info(tfn)
|
|
199
|
+
p status_code # => 2xx
|
|
200
|
+
p headers # => { ... }
|
|
201
|
+
p data # => <TfnResponse>
|
|
202
|
+
rescue Checkify::ApiError => e
|
|
203
|
+
puts "Error when calling IdentityApi->tfn_validation_with_http_info: #{e}"
|
|
204
|
+
end
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Parameters
|
|
208
|
+
|
|
209
|
+
| Name | Type | Description | Notes |
|
|
210
|
+
| ---- | ---- | ----------- | ----- |
|
|
211
|
+
| **tfn** | **String** | 8 or 9-digit TFN — spaces and hyphens accepted | |
|
|
212
|
+
|
|
213
|
+
### Return type
|
|
214
|
+
|
|
215
|
+
[**TfnResponse**](TfnResponse.md)
|
|
216
|
+
|
|
217
|
+
### Authorization
|
|
218
|
+
|
|
219
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
220
|
+
|
|
221
|
+
### HTTP request headers
|
|
222
|
+
|
|
223
|
+
- **Content-Type**: Not defined
|
|
224
|
+
- **Accept**: application/json
|
|
225
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Checkify::NameAvailability
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | Normalised (uppercased) name | [optional] |
|
|
8
|
+
| **availability** | **String** | Availability status (e.g. Available) | [optional] |
|
|
9
|
+
| **short_description** | **String** | | [optional] |
|
|
10
|
+
| **objections** | **Array<String>** | | [optional] |
|
|
11
|
+
| **existing_business_name** | **Boolean** | Whether the name already exists as a registered business name | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'checkify'
|
|
17
|
+
|
|
18
|
+
instance = Checkify::NameAvailability.new(
|
|
19
|
+
name: null,
|
|
20
|
+
availability: null,
|
|
21
|
+
short_description: null,
|
|
22
|
+
objections: null,
|
|
23
|
+
existing_business_name: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Checkify::PhoneResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **phone** | **String** | E.164 format | [optional] |
|
|
8
|
+
| **phone_national** | **String** | National format as dialled locally | [optional] |
|
|
9
|
+
| **phone_international** | **String** | International format with country code | [optional] |
|
|
10
|
+
| **valid** | **Boolean** | | [optional] |
|
|
11
|
+
| **country** | **String** | Detected ISO 3166-1 alpha-2 country code | [optional] |
|
|
12
|
+
| **type** | **String** | Line type: mobile, fixed-line, toll-free, voip, etc. | [optional] |
|
|
13
|
+
| **carrier** | **String** | | [optional] |
|
|
14
|
+
| **location** | **String** | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'checkify'
|
|
20
|
+
|
|
21
|
+
instance = Checkify::PhoneResponse.new(
|
|
22
|
+
phone: null,
|
|
23
|
+
phone_national: null,
|
|
24
|
+
phone_international: null,
|
|
25
|
+
valid: null,
|
|
26
|
+
country: null,
|
|
27
|
+
type: null,
|
|
28
|
+
carrier: null,
|
|
29
|
+
location: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Checkify::PostcodeResult
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **locality_id** | **String** | | [optional] |
|
|
8
|
+
| **city** | **String** | | [optional] |
|
|
9
|
+
| **postcode** | **String** | | [optional] |
|
|
10
|
+
| **state** | **String** | | [optional] |
|
|
11
|
+
| **state_full** | **String** | | [optional] |
|
|
12
|
+
| **country** | **String** | | [optional] |
|
|
13
|
+
| **country_full** | **String** | | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'checkify'
|
|
19
|
+
|
|
20
|
+
instance = Checkify::PostcodeResult.new(
|
|
21
|
+
locality_id: null,
|
|
22
|
+
city: null,
|
|
23
|
+
postcode: null,
|
|
24
|
+
state: null,
|
|
25
|
+
state_full: null,
|
|
26
|
+
country: null,
|
|
27
|
+
country_full: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Checkify::ReverseResult
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **address_id** | **String** | | [optional] |
|
|
8
|
+
| **address_full** | **String** | | [optional] |
|
|
9
|
+
| **unit** | **String** | | [optional] |
|
|
10
|
+
| **street_number** | **String** | | [optional] |
|
|
11
|
+
| **street** | **String** | | [optional] |
|
|
12
|
+
| **city** | **String** | | [optional] |
|
|
13
|
+
| **postcode** | **String** | | [optional] |
|
|
14
|
+
| **state** | **String** | | [optional] |
|
|
15
|
+
| **latitude** | **Float** | | [optional] |
|
|
16
|
+
| **longitude** | **Float** | | [optional] |
|
|
17
|
+
| **distance_metres** | **Float** | | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'checkify'
|
|
23
|
+
|
|
24
|
+
instance = Checkify::ReverseResult.new(
|
|
25
|
+
address_id: null,
|
|
26
|
+
address_full: null,
|
|
27
|
+
unit: null,
|
|
28
|
+
street_number: null,
|
|
29
|
+
street: null,
|
|
30
|
+
city: null,
|
|
31
|
+
postcode: null,
|
|
32
|
+
state: null,
|
|
33
|
+
latitude: null,
|
|
34
|
+
longitude: null,
|
|
35
|
+
distance_metres: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Checkify::SanctionsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **match** | **Boolean** | true if any results meet the confidence threshold | [optional] |
|
|
8
|
+
| **results** | [**Array<SanctionsResult>**](SanctionsResult.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'checkify'
|
|
14
|
+
|
|
15
|
+
instance = Checkify::SanctionsResponse.new(
|
|
16
|
+
match: null,
|
|
17
|
+
results: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|