trinsic_api 2.3.0.pre.alpha1 → 2.3.0.pre.alpha2
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 +4 -4
- data/docs/AttachmentAccessKeys.md +2 -0
- data/docs/CreateHostedProviderSessionResponse.md +1 -1
- data/docs/CreateWidgetSessionResponse.md +1 -1
- data/docs/IntegrationStep.md +1 -1
- data/docs/KenyaNidBiometric2Input.md +22 -0
- data/docs/KenyaNidInput.md +1 -1
- data/docs/KenyaNidLookup2Input.md +18 -0
- data/docs/KenyaNidMatch2Input.md +28 -0
- data/docs/NigeriaNinInput.md +1 -1
- data/docs/PhilippinesDigitalNidProviderOutput.md +18 -0
- data/docs/PhilippinesPhysicalNidProviderOutput.md +18 -0
- data/docs/ProviderInput.md +8 -0
- data/docs/ProviderOutput.md +5 -1
- data/docs/SexV1.md +15 -0
- data/docs/SouthAfricaNidInput.md +1 -1
- data/docs/SouthAfricaNidLookup2Input.md +18 -0
- data/docs/SpidProviderOutput.md +22 -4
- data/lib/trinsic_api/models/attachment_access_keys.rb +11 -1
- data/lib/trinsic_api/models/kenya_nid_biometric2_input.rb +246 -0
- data/lib/trinsic_api/models/kenya_nid_input.rb +1 -1
- data/lib/trinsic_api/models/kenya_nid_lookup2_input.rb +222 -0
- data/lib/trinsic_api/models/kenya_nid_match2_input.rb +299 -0
- data/lib/trinsic_api/models/nigeria_nin_input.rb +1 -1
- data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +238 -0
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +238 -0
- data/lib/trinsic_api/models/provider_input.rb +45 -1
- data/lib/trinsic_api/models/provider_output.rb +25 -5
- data/lib/trinsic_api/models/sex_v1.rb +42 -0
- data/lib/trinsic_api/models/south_africa_nid_input.rb +1 -1
- data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +222 -0
- data/lib/trinsic_api/models/spid_provider_output.rb +149 -18
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +7 -0
- data/spec/models/attachment_access_keys_spec.rb +6 -0
- data/spec/models/kenya_nid_biometric2_input_spec.rb +48 -0
- data/spec/models/kenya_nid_lookup2_input_spec.rb +36 -0
- data/spec/models/kenya_nid_match2_input_spec.rb +66 -0
- data/spec/models/philippines_digital_nid_provider_output_spec.rb +36 -0
- data/spec/models/philippines_physical_nid_provider_output_spec.rb +36 -0
- data/spec/models/provider_input_spec.rb +24 -0
- data/spec/models/provider_output_spec.rb +12 -0
- data/spec/models/sex_v1_spec.rb +30 -0
- data/spec/models/south_africa_nid_lookup2_input_spec.rb +36 -0
- data/spec/models/spid_provider_output_spec.rb +56 -2
- metadata +30 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ceb20a76b3ebff0814c4e9ef9a7043835e84d821a8121a43af33379a1593a76c
|
|
4
|
+
data.tar.gz: 4752bcc20ae9699e9882c01285f4b8336eb8d7b93e345c65d8b4c17b7a0d93f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 044ebe2fbdd4e9d184823d96bfdaefaba43cf88eb620473a55153575f1eeb54e3d3fe2620f3ad9c29c6b27678e46f9252d518c5796d4f7069e819a3b989cbf4e
|
|
7
|
+
data.tar.gz: 3aefba01cfb157792d5a64f130d3d01c8f14f08205b38b5ee75cf9f625c5a3ed30205f70ef27348e6f74c079df43f041b64ecbf090db15158bdad2040d63382c
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| **document_front** | **String** | | [optional] |
|
|
9
9
|
| **document_back** | **String** | | [optional] |
|
|
10
10
|
| **document_portrait** | **String** | | [optional] |
|
|
11
|
+
| **document_signature** | **String** | | [optional] |
|
|
11
12
|
| **provider** | [**ProviderAttachments**](ProviderAttachments.md) | | |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
@@ -20,6 +21,7 @@ instance = TrinsicApi::AttachmentAccessKeys.new(
|
|
|
20
21
|
document_front: null,
|
|
21
22
|
document_back: null,
|
|
22
23
|
document_portrait: null,
|
|
24
|
+
document_signature: null,
|
|
23
25
|
provider: null
|
|
24
26
|
)
|
|
25
27
|
```
|
|
@@ -15,7 +15,7 @@ require 'trinsic_api'
|
|
|
15
15
|
|
|
16
16
|
instance = TrinsicApi::CreateHostedProviderSessionResponse.new(
|
|
17
17
|
session_id: null,
|
|
18
|
-
launch_url: https://
|
|
18
|
+
launch_url: https://verify.trinsic.id/api/session/launch?clientToken=...,
|
|
19
19
|
results_access_key: 417zNGHMJp6Ht2jCoktTLNGDRZEt4BqTwwQ8Q9ZaQz8aS4Jd7nD1xff2WLhPS69j5q9QT4gvgV79Gv7QtaXwu5YC9Utr35...
|
|
20
20
|
)
|
|
21
21
|
```
|
|
@@ -15,7 +15,7 @@ require 'trinsic_api'
|
|
|
15
15
|
|
|
16
16
|
instance = TrinsicApi::CreateWidgetSessionResponse.new(
|
|
17
17
|
session_id: null,
|
|
18
|
-
launch_url: https://
|
|
18
|
+
launch_url: https://verify.trinsic.id/api/session/launch?clientToken=...,
|
|
19
19
|
results_access_key: 417zNGHMJp6Ht2jCoktTLNGDRZEt4BqTwwQ8Q9ZaQz8aS4Jd7nD1xff2WLhPS69j5q9QT4gvgV79Gv7QtaXwu5YC9Utr35...
|
|
20
20
|
)
|
|
21
21
|
```
|
data/docs/IntegrationStep.md
CHANGED
|
@@ -15,7 +15,7 @@ require 'trinsic_api'
|
|
|
15
15
|
|
|
16
16
|
instance = TrinsicApi::IntegrationStep.new(
|
|
17
17
|
method: null,
|
|
18
|
-
content: https://
|
|
18
|
+
content: https://verify.trinsic.id/api/session/launch?clientToken=...,
|
|
19
19
|
refresh: null
|
|
20
20
|
)
|
|
21
21
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# TrinsicApi::KenyaNidBiometric2Input
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id_number** | **String** | The user's Kenyan National ID number | [optional] |
|
|
8
|
+
| **liveness_images** | **Array<String>** | An array of exactly 8 images required for biometric liveness verification. The first 7 images should be liveness frames captured during the liveness detection process, and the last image (8th) should be a selfie of the user. All images must be in JPEG format and each image must be less than 15MB in size. | [optional] |
|
|
9
|
+
| **test_selfie** | **String** | Test selfie for test environment (optional, maximum 15MB). Must be JPEG format. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'trinsic_api'
|
|
15
|
+
|
|
16
|
+
instance = TrinsicApi::KenyaNidBiometric2Input.new(
|
|
17
|
+
id_number: null,
|
|
18
|
+
liveness_images: null,
|
|
19
|
+
test_selfie: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/KenyaNidInput.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **last_name** | **String** | The user's middle name as it appears in their National ID (optional) | |
|
|
10
10
|
| **date_of_birth** | **Date** | The user's date of birth, in `YYYY-MM-DD` format | |
|
|
11
11
|
| **gender** | **String** | The user's gender as it appears in their National ID (e.g., male, female) | |
|
|
12
|
-
| **national_id_number** | **String** | The user's
|
|
12
|
+
| **national_id_number** | **String** | The user's Kenya National ID number | |
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# TrinsicApi::KenyaNidLookup2Input
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id_number** | **String** | The user's National ID number | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'trinsic_api'
|
|
13
|
+
|
|
14
|
+
instance = TrinsicApi::KenyaNidLookup2Input.new(
|
|
15
|
+
id_number: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# TrinsicApi::KenyaNidMatch2Input
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id_number** | **String** | The user's Kenyan National ID number | [optional] |
|
|
8
|
+
| **given_name** | **String** | The user's first name as it appears in their National ID | [optional] |
|
|
9
|
+
| **family_name** | **String** | The user's last name as it appears in their National ID | [optional] |
|
|
10
|
+
| **middle_name** | **String** | The user's middle name as it appears in their National ID (optional) | [optional] |
|
|
11
|
+
| **date_of_birth** | **Date** | The user's date of birth, in `YYYY-MM-DD` format | [optional] |
|
|
12
|
+
| **sex** | [**SexV1**](SexV1.md) | The user's sex as it appears in their National ID | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'trinsic_api'
|
|
18
|
+
|
|
19
|
+
instance = TrinsicApi::KenyaNidMatch2Input.new(
|
|
20
|
+
id_number: null,
|
|
21
|
+
given_name: null,
|
|
22
|
+
family_name: null,
|
|
23
|
+
middle_name: null,
|
|
24
|
+
date_of_birth: null,
|
|
25
|
+
sex: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
data/docs/NigeriaNinInput.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
| **phone_number** | **String** | The user's phone number (optional) | [optional] |
|
|
11
11
|
| **date_of_birth** | **Date** | The user's date of birth, in `YYYY-MM-DD` format | |
|
|
12
12
|
| **gender** | **String** | The user's gender as it appears in their National ID (e.g., male, female) | [optional] |
|
|
13
|
-
| **national_id_number** | **String** | The user's
|
|
13
|
+
| **national_id_number** | **String** | The user's National ID number | |
|
|
14
14
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# TrinsicApi::PhilippinesDigitalNidProviderOutput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **philsys_card_number** | **String** | The PhilSys card number. | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'trinsic_api'
|
|
13
|
+
|
|
14
|
+
instance = TrinsicApi::PhilippinesDigitalNidProviderOutput.new(
|
|
15
|
+
philsys_card_number: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# TrinsicApi::PhilippinesPhysicalNidProviderOutput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **philsys_card_number** | **String** | The PhilSys card number. | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'trinsic_api'
|
|
13
|
+
|
|
14
|
+
instance = TrinsicApi::PhilippinesPhysicalNidProviderOutput.new(
|
|
15
|
+
philsys_card_number: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/ProviderInput.md
CHANGED
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **kenya_biometric2** | [**KenyaNidBiometric2Input**](KenyaNidBiometric2Input.md) | Input for the `kenya-nid-match-biometric-2` provider | [optional] |
|
|
7
8
|
| **indonesia_nik** | [**IndonesiaNikInput**](IndonesiaNikInput.md) | Input for the `indonesia-nik-lookup` provider | [optional] |
|
|
8
9
|
| **indonesia_dukcapil_match** | [**IndonesiaDukcapilMatchInput**](IndonesiaDukcapilMatchInput.md) | Input for the `indonesia-dukcapil-match` provider | [optional] |
|
|
9
10
|
| **mexico_curp** | [**MexicoCurpInput**](MexicoCurpInput.md) | Input for the `mexico-curp-lookup` provider | [optional] |
|
|
10
11
|
| **south_africa_nid** | [**SouthAfricaNidInput**](SouthAfricaNidInput.md) | Input for the `south-africa-nid-lookup` provider | [optional] |
|
|
11
12
|
| **kenya_nid** | [**KenyaNidInput**](KenyaNidInput.md) | Input for the `kenya-nid-lookup` provider | [optional] |
|
|
13
|
+
| **kenya_nid_match2** | [**KenyaNidMatch2Input**](KenyaNidMatch2Input.md) | Input for the `kenya-nid-match-2` provider | [optional] |
|
|
14
|
+
| **kenya_nid_lookup2** | [**KenyaNidLookup2Input**](KenyaNidLookup2Input.md) | Input for the `kenya-nid-lookup-2` provider | [optional] |
|
|
15
|
+
| **south_africa_nid_lookup2** | [**SouthAfricaNidLookup2Input**](SouthAfricaNidLookup2Input.md) | Input for the `south-africa-nid-lookup-2` provider | [optional] |
|
|
12
16
|
| **nigeria_nin** | [**NigeriaNinInput**](NigeriaNinInput.md) | Input for the `nigeria-nin-lookup` provider | [optional] |
|
|
13
17
|
| **aadhaar** | [**AadhaarInput**](AadhaarInput.md) | Input for the `india-digilocker-aadhaar-match` provider | [optional] |
|
|
14
18
|
| **bangladesh_national_id** | [**BangladeshNidInput**](BangladeshNidInput.md) | Input for the `bangladesh-nid` provider | [optional] |
|
|
@@ -31,11 +35,15 @@
|
|
|
31
35
|
require 'trinsic_api'
|
|
32
36
|
|
|
33
37
|
instance = TrinsicApi::ProviderInput.new(
|
|
38
|
+
kenya_biometric2: null,
|
|
34
39
|
indonesia_nik: null,
|
|
35
40
|
indonesia_dukcapil_match: null,
|
|
36
41
|
mexico_curp: null,
|
|
37
42
|
south_africa_nid: null,
|
|
38
43
|
kenya_nid: null,
|
|
44
|
+
kenya_nid_match2: null,
|
|
45
|
+
kenya_nid_lookup2: null,
|
|
46
|
+
south_africa_nid_lookup2: null,
|
|
39
47
|
nigeria_nin: null,
|
|
40
48
|
aadhaar: null,
|
|
41
49
|
bangladesh_national_id: null,
|
data/docs/ProviderOutput.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
| **italy_spid** | [**SpidProviderOutput**](SpidProviderOutput.md) | | [optional] |
|
|
8
8
|
| **mexico_curp_lookup** | [**MexicoCurpProviderOutput**](MexicoCurpProviderOutput.md) | | [optional] |
|
|
9
9
|
| **ethiopia_fayda** | [**FaydaProviderOutput**](FaydaProviderOutput.md) | | [optional] |
|
|
10
|
+
| **philippines_physical_national_id_qr** | [**PhilippinesPhysicalNidProviderOutput**](PhilippinesPhysicalNidProviderOutput.md) | | [optional] |
|
|
11
|
+
| **philippines_digital_national_id_qr** | [**PhilippinesDigitalNidProviderOutput**](PhilippinesDigitalNidProviderOutput.md) | | [optional] |
|
|
10
12
|
|
|
11
13
|
## Example
|
|
12
14
|
|
|
@@ -16,7 +18,9 @@ require 'trinsic_api'
|
|
|
16
18
|
instance = TrinsicApi::ProviderOutput.new(
|
|
17
19
|
italy_spid: null,
|
|
18
20
|
mexico_curp_lookup: null,
|
|
19
|
-
ethiopia_fayda: null
|
|
21
|
+
ethiopia_fayda: null,
|
|
22
|
+
philippines_physical_national_id_qr: null,
|
|
23
|
+
philippines_digital_national_id_qr: null
|
|
20
24
|
)
|
|
21
25
|
```
|
|
22
26
|
|
data/docs/SexV1.md
ADDED
data/docs/SouthAfricaNidInput.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **full_name** | **String** | The user's full name as it appears in their National ID | |
|
|
8
8
|
| **date_of_birth** | **Date** | The user's date of birth, in `YYYY-MM-DD` format | |
|
|
9
9
|
| **gender** | **String** | The user's gender as it appears in their National ID (e.g., male, female) | |
|
|
10
|
-
| **national_id_number** | **String** | The user's
|
|
10
|
+
| **national_id_number** | **String** | The user's National ID number | |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# TrinsicApi::SouthAfricaNidLookup2Input
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id_number** | **String** | The user's National ID number | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'trinsic_api'
|
|
13
|
+
|
|
14
|
+
instance = TrinsicApi::SouthAfricaNidLookup2Input.new(
|
|
15
|
+
id_number: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/SpidProviderOutput.md
CHANGED
|
@@ -5,10 +5,19 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **billing_information** | [**SpidBillingInformation**](SpidBillingInformation.md) | Information about the billable status of this SPID Verification. Present only if your account has period-based billing enabled for SPID. Contact Trinsic to enable this. | [optional] |
|
|
8
|
+
| **identity_provider_entity_id** | **String** | The SPID Entity ID of the Identity Provider which issued the SPID identity. This is an HTTPS URI which uniquely identifies the IdP within the SPID federation. A normalized / simplified representation of this value is present in the `originatingSubProviderId` field in Trinsic's normalized data model. | |
|
|
9
|
+
| **spid_code** | **String** | The identifier of the user's SPID credential. This uniquely identifies the credential within the SPID federation. | |
|
|
10
|
+
| **spid_credential_expiration_date** | **Date** | Expiration date of the user's SPID credential. This is not the same as the expiration date of the underlying identity document (such as a passport) which was used to create the SPID identity. | [optional] |
|
|
11
|
+
| **place_of_birth** | **String** | The user's place of birth. | [optional] |
|
|
12
|
+
| **county_of_birth** | **String** | The user's county of birth. | [optional] |
|
|
13
|
+
| **raw_id_card** | **String** | The raw, space-separated string value for the \"IdCard\" field from the SPID identity. Trinsic additionally parses this field and uses it to populate the `Document` object in the normalized data model. | [optional] |
|
|
14
|
+
| **email** | **String** | The email address of the user. | [optional] |
|
|
15
|
+
| **digital_address** | **String** | The digital address of the user. | [optional] |
|
|
8
16
|
| **fiscal_number** | **String** | Fiscal tax number for the subject. | [optional] |
|
|
9
|
-
| **spid_code** | **String** | Unique user identifier contained within the SPID identity. | [optional] |
|
|
10
17
|
| **iva_code** | **String** | VAT number for the subject. | [optional] |
|
|
11
|
-
| **
|
|
18
|
+
| **company_name** | **String** | The name of the company which the user is associated with. | [optional] |
|
|
19
|
+
| **company_fiscal_number** | **String** | The fiscal tax number of the company which the user is associated with. | [optional] |
|
|
20
|
+
| **registered_office** | **String** | The registered office address of the company which the user is associated with. | [optional] |
|
|
12
21
|
|
|
13
22
|
## Example
|
|
14
23
|
|
|
@@ -17,10 +26,19 @@ require 'trinsic_api'
|
|
|
17
26
|
|
|
18
27
|
instance = TrinsicApi::SpidProviderOutput.new(
|
|
19
28
|
billing_information: null,
|
|
20
|
-
|
|
29
|
+
identity_provider_entity_id: null,
|
|
21
30
|
spid_code: null,
|
|
31
|
+
spid_credential_expiration_date: null,
|
|
32
|
+
place_of_birth: null,
|
|
33
|
+
county_of_birth: null,
|
|
34
|
+
raw_id_card: null,
|
|
35
|
+
email: null,
|
|
36
|
+
digital_address: null,
|
|
37
|
+
fiscal_number: null,
|
|
22
38
|
iva_code: null,
|
|
23
|
-
|
|
39
|
+
company_name: null,
|
|
40
|
+
company_fiscal_number: null,
|
|
41
|
+
registered_office: null
|
|
24
42
|
)
|
|
25
43
|
```
|
|
26
44
|
|
|
@@ -23,6 +23,8 @@ module TrinsicApi
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :document_portrait
|
|
25
25
|
|
|
26
|
+
attr_accessor :document_signature
|
|
27
|
+
|
|
26
28
|
attr_accessor :provider
|
|
27
29
|
|
|
28
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -32,6 +34,7 @@ module TrinsicApi
|
|
|
32
34
|
:'document_front' => :'documentFront',
|
|
33
35
|
:'document_back' => :'documentBack',
|
|
34
36
|
:'document_portrait' => :'documentPortrait',
|
|
37
|
+
:'document_signature' => :'documentSignature',
|
|
35
38
|
:'provider' => :'provider'
|
|
36
39
|
}
|
|
37
40
|
end
|
|
@@ -53,6 +56,7 @@ module TrinsicApi
|
|
|
53
56
|
:'document_front' => :'String',
|
|
54
57
|
:'document_back' => :'String',
|
|
55
58
|
:'document_portrait' => :'String',
|
|
59
|
+
:'document_signature' => :'String',
|
|
56
60
|
:'provider' => :'ProviderAttachments'
|
|
57
61
|
}
|
|
58
62
|
end
|
|
@@ -64,6 +68,7 @@ module TrinsicApi
|
|
|
64
68
|
:'document_front',
|
|
65
69
|
:'document_back',
|
|
66
70
|
:'document_portrait',
|
|
71
|
+
:'document_signature',
|
|
67
72
|
])
|
|
68
73
|
end
|
|
69
74
|
|
|
@@ -99,6 +104,10 @@ module TrinsicApi
|
|
|
99
104
|
self.document_portrait = attributes[:'document_portrait']
|
|
100
105
|
end
|
|
101
106
|
|
|
107
|
+
if attributes.key?(:'document_signature')
|
|
108
|
+
self.document_signature = attributes[:'document_signature']
|
|
109
|
+
end
|
|
110
|
+
|
|
102
111
|
if attributes.key?(:'provider')
|
|
103
112
|
self.provider = attributes[:'provider']
|
|
104
113
|
else
|
|
@@ -145,6 +154,7 @@ module TrinsicApi
|
|
|
145
154
|
document_front == o.document_front &&
|
|
146
155
|
document_back == o.document_back &&
|
|
147
156
|
document_portrait == o.document_portrait &&
|
|
157
|
+
document_signature == o.document_signature &&
|
|
148
158
|
provider == o.provider
|
|
149
159
|
end
|
|
150
160
|
|
|
@@ -157,7 +167,7 @@ module TrinsicApi
|
|
|
157
167
|
# Calculates hash code according to all attributes.
|
|
158
168
|
# @return [Integer] Hash code
|
|
159
169
|
def hash
|
|
160
|
-
[selfie, document_front, document_back, document_portrait, provider].hash
|
|
170
|
+
[selfie, document_front, document_back, document_portrait, document_signature, provider].hash
|
|
161
171
|
end
|
|
162
172
|
|
|
163
173
|
# Builds the object from hash
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Trinsic API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.13.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module TrinsicApi
|
|
17
|
+
class KenyaNidBiometric2Input
|
|
18
|
+
# The user's Kenyan National ID number
|
|
19
|
+
attr_accessor :id_number
|
|
20
|
+
|
|
21
|
+
# An array of exactly 8 images required for biometric liveness verification. The first 7 images should be liveness frames captured during the liveness detection process, and the last image (8th) should be a selfie of the user. All images must be in JPEG format and each image must be less than 15MB in size.
|
|
22
|
+
attr_accessor :liveness_images
|
|
23
|
+
|
|
24
|
+
# Test selfie for test environment (optional, maximum 15MB). Must be JPEG format.
|
|
25
|
+
attr_accessor :test_selfie
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'id_number' => :'idNumber',
|
|
31
|
+
:'liveness_images' => :'livenessImages',
|
|
32
|
+
:'test_selfie' => :'testSelfie'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
acceptable_attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'id_number' => :'String',
|
|
50
|
+
:'liveness_images' => :'Array<String>',
|
|
51
|
+
:'test_selfie' => :'String'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
:'id_number',
|
|
59
|
+
:'liveness_images',
|
|
60
|
+
:'test_selfie'
|
|
61
|
+
])
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Initializes the object
|
|
65
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
66
|
+
def initialize(attributes = {})
|
|
67
|
+
if (!attributes.is_a?(Hash))
|
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::KenyaNidBiometric2Input` initialize method"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
72
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::KenyaNidBiometric2Input`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
76
|
+
end
|
|
77
|
+
h[k.to_sym] = v
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'id_number')
|
|
81
|
+
self.id_number = attributes[:'id_number']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'liveness_images')
|
|
85
|
+
if (value = attributes[:'liveness_images']).is_a?(Array)
|
|
86
|
+
self.liveness_images = value
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'test_selfie')
|
|
91
|
+
self.test_selfie = attributes[:'test_selfie']
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
96
|
+
# @return Array for valid properties with the reasons
|
|
97
|
+
def list_invalid_properties
|
|
98
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
invalid_properties
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Check to see if the all the properties in the model are valid
|
|
104
|
+
# @return true if the model is valid
|
|
105
|
+
def valid?
|
|
106
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
107
|
+
true
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Checks equality by comparing each attribute.
|
|
111
|
+
# @param [Object] Object to be compared
|
|
112
|
+
def ==(o)
|
|
113
|
+
return true if self.equal?(o)
|
|
114
|
+
self.class == o.class &&
|
|
115
|
+
id_number == o.id_number &&
|
|
116
|
+
liveness_images == o.liveness_images &&
|
|
117
|
+
test_selfie == o.test_selfie
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# @see the `==` method
|
|
121
|
+
# @param [Object] Object to be compared
|
|
122
|
+
def eql?(o)
|
|
123
|
+
self == o
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Calculates hash code according to all attributes.
|
|
127
|
+
# @return [Integer] Hash code
|
|
128
|
+
def hash
|
|
129
|
+
[id_number, liveness_images, test_selfie].hash
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Builds the object from hash
|
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
134
|
+
# @return [Object] Returns the model itself
|
|
135
|
+
def self.build_from_hash(attributes)
|
|
136
|
+
return nil unless attributes.is_a?(Hash)
|
|
137
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
138
|
+
transformed_hash = {}
|
|
139
|
+
openapi_types.each_pair do |key, type|
|
|
140
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
141
|
+
transformed_hash["#{key}"] = nil
|
|
142
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
143
|
+
# check to ensure the input is an array given that the attribute
|
|
144
|
+
# is documented as an array but the input is not
|
|
145
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
146
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
147
|
+
end
|
|
148
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
149
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
new(transformed_hash)
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Deserializes the data based on type
|
|
156
|
+
# @param string type Data type
|
|
157
|
+
# @param string value Value to be deserialized
|
|
158
|
+
# @return [Object] Deserialized data
|
|
159
|
+
def self._deserialize(type, value)
|
|
160
|
+
case type.to_sym
|
|
161
|
+
when :Time
|
|
162
|
+
Time.parse(value)
|
|
163
|
+
when :Date
|
|
164
|
+
Date.parse(value)
|
|
165
|
+
when :String
|
|
166
|
+
value.to_s
|
|
167
|
+
when :Integer
|
|
168
|
+
value.to_i
|
|
169
|
+
when :Float
|
|
170
|
+
value.to_f
|
|
171
|
+
when :Boolean
|
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
173
|
+
true
|
|
174
|
+
else
|
|
175
|
+
false
|
|
176
|
+
end
|
|
177
|
+
when :Object
|
|
178
|
+
# generic object (usually a Hash), return directly
|
|
179
|
+
value
|
|
180
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
181
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
182
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
184
|
+
k_type = Regexp.last_match[:k_type]
|
|
185
|
+
v_type = Regexp.last_match[:v_type]
|
|
186
|
+
{}.tap do |hash|
|
|
187
|
+
value.each do |k, v|
|
|
188
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
else # model
|
|
192
|
+
# models (e.g. Pet) or oneOf
|
|
193
|
+
klass = TrinsicApi.const_get(type)
|
|
194
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Returns the string representation of the object
|
|
199
|
+
# @return [String] String presentation of the object
|
|
200
|
+
def to_s
|
|
201
|
+
to_hash.to_s
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_body
|
|
207
|
+
to_hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Returns the object in the form of hash
|
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
|
212
|
+
def to_hash
|
|
213
|
+
hash = {}
|
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
215
|
+
value = self.send(attr)
|
|
216
|
+
if value.nil?
|
|
217
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
218
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
hash[param] = _to_hash(value)
|
|
222
|
+
end
|
|
223
|
+
hash
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Outputs non-array value in the form of hash
|
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
228
|
+
# @param [Object] value Any valid value
|
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
|
230
|
+
def _to_hash(value)
|
|
231
|
+
if value.is_a?(Array)
|
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
|
233
|
+
elsif value.is_a?(Hash)
|
|
234
|
+
{}.tap do |hash|
|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
236
|
+
end
|
|
237
|
+
elsif value.respond_to? :to_hash
|
|
238
|
+
value.to_hash
|
|
239
|
+
else
|
|
240
|
+
value
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
end
|
|
@@ -30,7 +30,7 @@ module TrinsicApi
|
|
|
30
30
|
# The user's gender as it appears in their National ID (e.g., male, female)
|
|
31
31
|
attr_accessor :gender
|
|
32
32
|
|
|
33
|
-
# The user's
|
|
33
|
+
# The user's Kenya National ID number
|
|
34
34
|
attr_accessor :national_id_number
|
|
35
35
|
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|