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,42 @@
|
|
|
1
|
+
# Checkify::SanctionsResult
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **source** | **String** | Source sanctions list | [optional] |
|
|
8
|
+
| **reference** | **String** | Source-specific reference number | [optional] |
|
|
9
|
+
| **name** | **String** | Primary name of the sanctioned individual or entity | [optional] |
|
|
10
|
+
| **type** | **String** | | [optional] |
|
|
11
|
+
| **aliases** | **Array<String>** | | [optional] |
|
|
12
|
+
| **confidence** | **Float** | Confidence score — higher when birth details match | [optional] |
|
|
13
|
+
| **sanctions** | [**SanctionsResultSanctions**](SanctionsResultSanctions.md) | | [optional] |
|
|
14
|
+
| **date_of_birth** | **String** | | [optional] |
|
|
15
|
+
| **place_of_birth** | **String** | | [optional] |
|
|
16
|
+
| **citizenship** | **String** | | [optional] |
|
|
17
|
+
| **committees** | **String** | | [optional] |
|
|
18
|
+
| **listing_information** | **String** | | [optional] |
|
|
19
|
+
| **source_updated_at** | **String** | Date of last source list update | [optional] |
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'checkify'
|
|
25
|
+
|
|
26
|
+
instance = Checkify::SanctionsResult.new(
|
|
27
|
+
source: null,
|
|
28
|
+
reference: null,
|
|
29
|
+
name: null,
|
|
30
|
+
type: null,
|
|
31
|
+
aliases: null,
|
|
32
|
+
confidence: null,
|
|
33
|
+
sanctions: null,
|
|
34
|
+
date_of_birth: null,
|
|
35
|
+
place_of_birth: null,
|
|
36
|
+
citizenship: null,
|
|
37
|
+
committees: null,
|
|
38
|
+
listing_information: null,
|
|
39
|
+
source_updated_at: null
|
|
40
|
+
)
|
|
41
|
+
```
|
|
42
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Checkify::SanctionsResultSanctions
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **targeted_financial_sanction** | **Boolean** | | [optional] |
|
|
8
|
+
| **travel_ban** | **Boolean** | | [optional] |
|
|
9
|
+
| **arms_embargo** | **Boolean** | | [optional] |
|
|
10
|
+
| **maritime_restriction** | **Boolean** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'checkify'
|
|
16
|
+
|
|
17
|
+
instance = Checkify::SanctionsResultSanctions.new(
|
|
18
|
+
targeted_financial_sanction: null,
|
|
19
|
+
travel_ban: null,
|
|
20
|
+
arms_embargo: null,
|
|
21
|
+
maritime_restriction: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Checkify::SuburbDetails
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **city** | **String** | | [optional] |
|
|
8
|
+
| **postcode** | **String** | 4-digit postcode (null for NZ) | [optional] |
|
|
9
|
+
| **state** | **String** | State abbreviation — AU only | [optional] |
|
|
10
|
+
| **state_full** | **String** | Full state name — AU only | [optional] |
|
|
11
|
+
| **region** | **String** | Region/city — NZ only | [optional] |
|
|
12
|
+
| **country** | **String** | | [optional] |
|
|
13
|
+
| **country_full** | **String** | | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'checkify'
|
|
19
|
+
|
|
20
|
+
instance = Checkify::SuburbDetails.new(
|
|
21
|
+
city: null,
|
|
22
|
+
postcode: null,
|
|
23
|
+
state: null,
|
|
24
|
+
state_full: null,
|
|
25
|
+
region: null,
|
|
26
|
+
country: null,
|
|
27
|
+
country_full: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
data/docs/TfnResponse.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Checkify::TfnResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **tfn** | **String** | Normalised digits only | [optional] |
|
|
8
|
+
| **tfn_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::TfnResponse.new(
|
|
18
|
+
tfn: null,
|
|
19
|
+
tfn_formatted: null,
|
|
20
|
+
valid: null,
|
|
21
|
+
notice: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
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 AccountApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get account details
|
|
23
|
+
# Returns your current plan, unit usage, billing period, subscription status, and a per-endpoint breakdown of API calls for the current period. Costs 0 units. Usage breakdown is cached for 5 minutes.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [Account]
|
|
26
|
+
def get_account(opts = {})
|
|
27
|
+
data, _status_code, _headers = get_account_with_http_info(opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Get account details
|
|
32
|
+
# Returns your current plan, unit usage, billing period, subscription status, and a per-endpoint breakdown of API calls for the current period. Costs 0 units. Usage breakdown is cached for 5 minutes.
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
|
|
35
|
+
def get_account_with_http_info(opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: AccountApi.get_account ...'
|
|
38
|
+
end
|
|
39
|
+
# resource path
|
|
40
|
+
local_var_path = '/account'
|
|
41
|
+
|
|
42
|
+
# query parameters
|
|
43
|
+
query_params = opts[:query_params] || {}
|
|
44
|
+
|
|
45
|
+
# header parameters
|
|
46
|
+
header_params = opts[:header_params] || {}
|
|
47
|
+
# HTTP header 'Accept' (if needed)
|
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
49
|
+
|
|
50
|
+
# form parameters
|
|
51
|
+
form_params = opts[:form_params] || {}
|
|
52
|
+
|
|
53
|
+
# http body (model)
|
|
54
|
+
post_body = opts[:debug_body]
|
|
55
|
+
|
|
56
|
+
# return_type
|
|
57
|
+
return_type = opts[:debug_return_type] || 'Account'
|
|
58
|
+
|
|
59
|
+
# auth_names
|
|
60
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
61
|
+
|
|
62
|
+
new_options = opts.merge(
|
|
63
|
+
:operation => :"AccountApi.get_account",
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
73
|
+
if @api_client.config.debugging
|
|
74
|
+
@api_client.config.logger.debug "API called: AccountApi#get_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
75
|
+
end
|
|
76
|
+
return data, status_code, headers
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|