trinsic_api 2.0.1 → 2.0.3
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/AttachmentsApi.md +1 -1
- data/docs/{BangladeshNationalIdInput.md → BangladeshNidInput.md} +6 -4
- data/docs/BrazilDigitalCnhInput.md +1 -1
- data/docs/HttpValidationProblemDetails.md +5 -5
- data/docs/NetworkApi.md +3 -3
- data/docs/ProblemDetails.md +5 -5
- data/docs/ProviderContract.md +2 -2
- data/docs/ProviderInput.md +1 -1
- data/docs/RefreshStepContentRequest.md +1 -1
- data/docs/SessionsApi.md +12 -12
- data/lib/trinsic_api/api/attachments_api.rb +1 -1
- data/lib/trinsic_api/api/network_api.rb +3 -3
- data/lib/trinsic_api/api/sessions_api.rb +9 -9
- data/lib/trinsic_api/models/{bangladesh_national_id_input.rb → bangladesh_nid_input.rb} +23 -12
- data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +1 -1
- data/lib/trinsic_api/models/http_validation_problem_details.rb +5 -0
- data/lib/trinsic_api/models/problem_details.rb +5 -0
- data/lib/trinsic_api/models/provider_contract.rb +17 -17
- data/lib/trinsic_api/models/provider_input.rb +1 -1
- data/lib/trinsic_api/models/refresh_step_content_request.rb +26 -1
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +1 -2
- data/spec/models/{bangladesh_national_id_input_spec.rb → bangladesh_nid_input_spec.rb} +13 -7
- data/spec/models/provider_contract_spec.rb +1 -1
- metadata +59 -63
- data/docs/WellKnownApi.md +0 -71
- data/lib/trinsic_api/api/well_known_api.rb +0 -75
- data/spec/api/well_known_api_spec.rb +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f61cc97f7dfdac403ad569a71c22e10fb441ea4351721b86c498328c751a7faf
|
4
|
+
data.tar.gz: 18c5b192be5da02584f9d897f5bfb04ca905cb5422fe3589ceba2f803992b8c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58bbbe3ee0b94cc333dfe8c64ddba9924b4838aa1fcc3ed52c8b992d026d1c542715b8026bb685a5d6cc47efd0e6617bff6cfc4aca1e89d8c72a8894e5bdb05b
|
7
|
+
data.tar.gz: 1824adf318dd3dee303b728955e9e8e09954302797c07514875f9aa1c6098cc6ca33a1fb8fe76bcdd4c611138374b9169896e19482742309b5e718554df9b0d4
|
data/docs/AttachmentsApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# TrinsicApi::
|
1
|
+
# TrinsicApi::BangladeshNidInput
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -7,18 +7,20 @@
|
|
7
7
|
| **national_id_number** | **String** | The user's Bangladesh National ID number. | [optional] |
|
8
8
|
| **date_of_birth** | **Date** | The user's date of birth, in `YYYY-MM-DD` format | [optional] |
|
9
9
|
| **name** | **String** | The user's full name | [optional] |
|
10
|
-
| **
|
10
|
+
| **photo_byes** | **String** | The raw bytes of the photo file collected from the user. | [optional] |
|
11
|
+
| **photo_image_mime_type** | **String** | The MIME Type of the file contained in `PhotoByes`. Must be one of `image/jpeg`, or `image/png`. | [optional] |
|
11
12
|
|
12
13
|
## Example
|
13
14
|
|
14
15
|
```ruby
|
15
16
|
require 'trinsic_api'
|
16
17
|
|
17
|
-
instance = TrinsicApi::
|
18
|
+
instance = TrinsicApi::BangladeshNidInput.new(
|
18
19
|
national_id_number: null,
|
19
20
|
date_of_birth: null,
|
20
21
|
name: null,
|
21
|
-
|
22
|
+
photo_byes: null,
|
23
|
+
photo_image_mime_type: null
|
22
24
|
)
|
23
25
|
```
|
24
26
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **cpf_number** | **String** | The user's 11-digit, numeric CPF Number | |
|
8
|
-
| **digital_cnh_file** | **String** | The raw bytes of the digital CNH file collected from the user.
|
8
|
+
| **digital_cnh_file** | **String** | The raw bytes of the digital CNH file collected from the user. | [optional] |
|
9
9
|
| **digital_cnh_file_content_type** | **String** | The MIME Type of the file contained in `DigitalCnhFile`. Must be one of `application/pdf`, `image/jpeg`, or `image/png`. | [optional] |
|
10
10
|
| **facial_biometry_photo** | **String** | The raw bytes of the image of the user's face, collected for biometric comparison. | [optional] |
|
11
11
|
|
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **type** | **String** |
|
8
|
-
| **title** | **String** |
|
9
|
-
| **status** | **Integer** |
|
10
|
-
| **detail** | **String** |
|
11
|
-
| **instance** | **String** |
|
7
|
+
| **type** | **String** | A URI reference that identifies the problem type. | [optional] |
|
8
|
+
| **title** | **String** | A short, human-readable summary of the error. | [optional] |
|
9
|
+
| **status** | **Integer** | The HTTP status code returned for the request. | [optional] |
|
10
|
+
| **detail** | **String** | A human-readable explanation specific of the problem. | [optional] |
|
11
|
+
| **instance** | **String** | A URI reference that identifies the specific occurrence of the problem. | [optional] |
|
12
12
|
| **errors** | **Hash<String, Array<String>>** | | [optional] |
|
13
13
|
|
14
14
|
## Example
|
data/docs/NetworkApi.md
CHANGED
@@ -72,7 +72,7 @@ This endpoint does not need any parameter.
|
|
72
72
|
### HTTP request headers
|
73
73
|
|
74
74
|
- **Content-Type**: Not defined
|
75
|
-
- **Accept**: text/plain, application/json, text/json
|
75
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
76
76
|
|
77
77
|
|
78
78
|
## list_providers
|
@@ -138,7 +138,7 @@ This endpoint does not need any parameter.
|
|
138
138
|
### HTTP request headers
|
139
139
|
|
140
140
|
- **Content-Type**: Not defined
|
141
|
-
- **Accept**: text/plain, application/json, text/json
|
141
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
142
142
|
|
143
143
|
|
144
144
|
## recommend_providers
|
@@ -209,5 +209,5 @@ end
|
|
209
209
|
### HTTP request headers
|
210
210
|
|
211
211
|
- **Content-Type**: application/json, text/json, application/*+json
|
212
|
-
- **Accept**: text/plain, application/json, text/json
|
212
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
213
213
|
|
data/docs/ProblemDetails.md
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **type** | **String** |
|
8
|
-
| **title** | **String** |
|
9
|
-
| **status** | **Integer** |
|
10
|
-
| **detail** | **String** |
|
11
|
-
| **instance** | **String** |
|
7
|
+
| **type** | **String** | A URI reference that identifies the problem type. | [optional] |
|
8
|
+
| **title** | **String** | A short, human-readable summary of the error. | [optional] |
|
9
|
+
| **status** | **Integer** | The HTTP status code returned for the request. | [optional] |
|
10
|
+
| **detail** | **String** | A human-readable explanation specific of the problem. | [optional] |
|
11
|
+
| **instance** | **String** | A URI reference that identifies the specific occurrence of the problem. | [optional] |
|
12
12
|
|
13
13
|
## Example
|
14
14
|
|
data/docs/ProviderContract.md
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
| **has_trinsic_interface** | **Boolean** | Whether there exists a Trinsic-hosted UI for this Provider. This is `true` for any Provider which is not a simple, OIDC-like redirect flow. | |
|
20
20
|
| **supports_advanced_provider_sessions** | **Boolean** | Whether this Provider can be fully whitelabeled/OEMed through the Advanced Provider Sessions API. If `false`, the Provider may still be launched through Advanced Provider Sessions; however, it will necessarily require a Trinsic-hosted UI to function. | |
|
21
21
|
| **sub_providers** | [**Array<SubProviderMetadata>**](SubProviderMetadata.md) | Metadata about the sub-providers which are available for this Provider. For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers. | [optional] |
|
22
|
-
| **
|
22
|
+
| **health** | [**ProviderHealth**](ProviderHealth.md) | The health for an integration to be able to successfully perform a verification session. | |
|
23
23
|
|
24
24
|
## Example
|
25
25
|
|
@@ -42,7 +42,7 @@ instance = TrinsicApi::ProviderContract.new(
|
|
42
42
|
has_trinsic_interface: true,
|
43
43
|
supports_advanced_provider_sessions: true,
|
44
44
|
sub_providers: null,
|
45
|
-
|
45
|
+
health: null
|
46
46
|
)
|
47
47
|
```
|
48
48
|
|
data/docs/ProviderInput.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
| **kenya_nid** | [**KenyaNidInput**](KenyaNidInput.md) | Input for the `f-kenya-nid` provider | [optional] |
|
11
11
|
| **nigeria_nin** | [**NigeriaNinInput**](NigeriaNinInput.md) | Input for the `f-nigeria-nin` provider | [optional] |
|
12
12
|
| **aadhaar** | [**AadhaarInput**](AadhaarInput.md) | Input for the `f-india-aadhaar-match` provider | [optional] |
|
13
|
-
| **bangladesh_national_id** | [**
|
13
|
+
| **bangladesh_national_id** | [**BangladeshNidInput**](BangladeshNidInput.md) | Input for the `bangladesh-nid` provider | [optional] |
|
14
14
|
| **brazil_cpf_check** | [**BrazilCpfCheckInput**](BrazilCpfCheckInput.md) | Input for the `g-brazil-cpf` provider | [optional] |
|
15
15
|
| **brazil_digital_cnh** | [**BrazilDigitalCnhInput**](BrazilDigitalCnhInput.md) | Input for the `g-brazil-digital-cnh` provider | [optional] |
|
16
16
|
| **philippine_match** | [**PhilippineMatchInput**](PhilippineMatchInput.md) | Input for the `b-philsys-biometric` provider | [optional] |
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **results_access_key** | **String** | The `ResultsAccessKey` returned when the Session was created |
|
7
|
+
| **results_access_key** | **String** | The `ResultsAccessKey` returned when the Session was created | |
|
8
8
|
|
9
9
|
## Example
|
10
10
|
|
data/docs/SessionsApi.md
CHANGED
@@ -35,7 +35,7 @@ TrinsicApi.configure do |config|
|
|
35
35
|
end
|
36
36
|
|
37
37
|
api_instance = TrinsicApi::SessionsApi.new
|
38
|
-
session_id = '
|
38
|
+
session_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
39
39
|
|
40
40
|
begin
|
41
41
|
# Cancel Session
|
@@ -81,7 +81,7 @@ end
|
|
81
81
|
### HTTP request headers
|
82
82
|
|
83
83
|
- **Content-Type**: Not defined
|
84
|
-
- **Accept**: text/plain, application/json, text/json
|
84
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
85
85
|
|
86
86
|
|
87
87
|
## create_advanced_provider_session
|
@@ -152,7 +152,7 @@ end
|
|
152
152
|
### HTTP request headers
|
153
153
|
|
154
154
|
- **Content-Type**: application/json, text/json, application/*+json
|
155
|
-
- **Accept**: text/plain, application/json, text/json
|
155
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
156
156
|
|
157
157
|
|
158
158
|
## create_hosted_provider_session
|
@@ -223,7 +223,7 @@ end
|
|
223
223
|
### HTTP request headers
|
224
224
|
|
225
225
|
- **Content-Type**: application/json, text/json, application/*+json
|
226
|
-
- **Accept**: text/plain, application/json, text/json
|
226
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
227
227
|
|
228
228
|
|
229
229
|
## create_widget_session
|
@@ -294,7 +294,7 @@ end
|
|
294
294
|
### HTTP request headers
|
295
295
|
|
296
296
|
- **Content-Type**: application/json, text/json, application/*+json
|
297
|
-
- **Accept**: text/plain, application/json, text/json
|
297
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
298
298
|
|
299
299
|
|
300
300
|
## get_session
|
@@ -363,7 +363,7 @@ end
|
|
363
363
|
### HTTP request headers
|
364
364
|
|
365
365
|
- **Content-Type**: Not defined
|
366
|
-
- **Accept**: text/plain, application/json, text/json
|
366
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
367
367
|
|
368
368
|
|
369
369
|
## get_session_result
|
@@ -434,7 +434,7 @@ end
|
|
434
434
|
### HTTP request headers
|
435
435
|
|
436
436
|
- **Content-Type**: application/json, text/json, application/*+json
|
437
|
-
- **Accept**: text/plain, application/json, text/json
|
437
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
438
438
|
|
439
439
|
|
440
440
|
## list_sessions
|
@@ -511,7 +511,7 @@ end
|
|
511
511
|
### HTTP request headers
|
512
512
|
|
513
513
|
- **Content-Type**: Not defined
|
514
|
-
- **Accept**: text/plain, application/json, text/json
|
514
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
515
515
|
|
516
516
|
|
517
517
|
## redact_session
|
@@ -534,7 +534,7 @@ TrinsicApi.configure do |config|
|
|
534
534
|
end
|
535
535
|
|
536
536
|
api_instance = TrinsicApi::SessionsApi.new
|
537
|
-
session_id = '
|
537
|
+
session_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
538
538
|
|
539
539
|
begin
|
540
540
|
# Redact Session
|
@@ -579,7 +579,7 @@ nil (empty response body)
|
|
579
579
|
### HTTP request headers
|
580
580
|
|
581
581
|
- **Content-Type**: Not defined
|
582
|
-
- **Accept**: application/json
|
582
|
+
- **Accept**: application/problem+json
|
583
583
|
|
584
584
|
|
585
585
|
## refresh_step_content
|
@@ -604,7 +604,7 @@ end
|
|
604
604
|
api_instance = TrinsicApi::SessionsApi.new
|
605
605
|
acceptance_session_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
606
606
|
opts = {
|
607
|
-
refresh_step_content_request: TrinsicApi::RefreshStepContentRequest.new # RefreshStepContentRequest |
|
607
|
+
refresh_step_content_request: TrinsicApi::RefreshStepContentRequest.new({results_access_key: 'results_access_key_example'}) # RefreshStepContentRequest |
|
608
608
|
}
|
609
609
|
|
610
610
|
begin
|
@@ -652,5 +652,5 @@ end
|
|
652
652
|
### HTTP request headers
|
653
653
|
|
654
654
|
- **Content-Type**: application/json, text/json, application/*+json
|
655
|
-
- **Accept**: text/plain, application/json, text/json
|
655
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
656
656
|
|
@@ -47,7 +47,7 @@ module TrinsicApi
|
|
47
47
|
# header parameters
|
48
48
|
header_params = opts[:header_params] || {}
|
49
49
|
# HTTP header 'Accept' (if needed)
|
50
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
53
53
|
if !content_type.nil?
|
@@ -45,7 +45,7 @@ module TrinsicApi
|
|
45
45
|
# header parameters
|
46
46
|
header_params = opts[:header_params] || {}
|
47
47
|
# HTTP header 'Accept' (if needed)
|
48
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
49
49
|
|
50
50
|
# form parameters
|
51
51
|
form_params = opts[:form_params] || {}
|
@@ -102,7 +102,7 @@ module TrinsicApi
|
|
102
102
|
# header parameters
|
103
103
|
header_params = opts[:header_params] || {}
|
104
104
|
# HTTP header 'Accept' (if needed)
|
105
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
105
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
106
106
|
|
107
107
|
# form parameters
|
108
108
|
form_params = opts[:form_params] || {}
|
@@ -161,7 +161,7 @@ module TrinsicApi
|
|
161
161
|
# header parameters
|
162
162
|
header_params = opts[:header_params] || {}
|
163
163
|
# HTTP header 'Accept' (if needed)
|
164
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
164
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
165
165
|
# HTTP header 'Content-Type'
|
166
166
|
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
167
167
|
if !content_type.nil?
|
@@ -51,7 +51,7 @@ module TrinsicApi
|
|
51
51
|
# header parameters
|
52
52
|
header_params = opts[:header_params] || {}
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = opts[:form_params] || {}
|
@@ -110,7 +110,7 @@ module TrinsicApi
|
|
110
110
|
# header parameters
|
111
111
|
header_params = opts[:header_params] || {}
|
112
112
|
# HTTP header 'Accept' (if needed)
|
113
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
114
114
|
# HTTP header 'Content-Type'
|
115
115
|
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
116
116
|
if !content_type.nil?
|
@@ -174,7 +174,7 @@ module TrinsicApi
|
|
174
174
|
# header parameters
|
175
175
|
header_params = opts[:header_params] || {}
|
176
176
|
# HTTP header 'Accept' (if needed)
|
177
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
178
178
|
# HTTP header 'Content-Type'
|
179
179
|
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
180
180
|
if !content_type.nil?
|
@@ -238,7 +238,7 @@ module TrinsicApi
|
|
238
238
|
# header parameters
|
239
239
|
header_params = opts[:header_params] || {}
|
240
240
|
# HTTP header 'Accept' (if needed)
|
241
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
241
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
242
242
|
# HTTP header 'Content-Type'
|
243
243
|
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
244
244
|
if !content_type.nil?
|
@@ -306,7 +306,7 @@ module TrinsicApi
|
|
306
306
|
# header parameters
|
307
307
|
header_params = opts[:header_params] || {}
|
308
308
|
# HTTP header 'Accept' (if needed)
|
309
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
309
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
310
310
|
|
311
311
|
# form parameters
|
312
312
|
form_params = opts[:form_params] || {}
|
@@ -369,7 +369,7 @@ module TrinsicApi
|
|
369
369
|
# header parameters
|
370
370
|
header_params = opts[:header_params] || {}
|
371
371
|
# HTTP header 'Accept' (if needed)
|
372
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
372
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
373
373
|
# HTTP header 'Content-Type'
|
374
374
|
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
375
375
|
if !content_type.nil?
|
@@ -459,7 +459,7 @@ module TrinsicApi
|
|
459
459
|
# header parameters
|
460
460
|
header_params = opts[:header_params] || {}
|
461
461
|
# HTTP header 'Accept' (if needed)
|
462
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
462
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
463
463
|
|
464
464
|
# form parameters
|
465
465
|
form_params = opts[:form_params] || {}
|
@@ -522,7 +522,7 @@ module TrinsicApi
|
|
522
522
|
# header parameters
|
523
523
|
header_params = opts[:header_params] || {}
|
524
524
|
# HTTP header 'Accept' (if needed)
|
525
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
525
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/problem+json']) unless header_params['Accept']
|
526
526
|
|
527
527
|
# form parameters
|
528
528
|
form_params = opts[:form_params] || {}
|
@@ -587,7 +587,7 @@ module TrinsicApi
|
|
587
587
|
# header parameters
|
588
588
|
header_params = opts[:header_params] || {}
|
589
589
|
# HTTP header 'Accept' (if needed)
|
590
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json']) unless header_params['Accept']
|
590
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/problem+json']) unless header_params['Accept']
|
591
591
|
# HTTP header 'Content-Type'
|
592
592
|
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
593
593
|
if !content_type.nil?
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
class
|
17
|
+
class BangladeshNidInput
|
18
18
|
# The user's Bangladesh National ID number.
|
19
19
|
attr_accessor :national_id_number
|
20
20
|
|
@@ -24,8 +24,11 @@ module TrinsicApi
|
|
24
24
|
# The user's full name
|
25
25
|
attr_accessor :name
|
26
26
|
|
27
|
-
# The
|
28
|
-
attr_accessor :
|
27
|
+
# The raw bytes of the photo file collected from the user.
|
28
|
+
attr_accessor :photo_byes
|
29
|
+
|
30
|
+
# The MIME Type of the file contained in `PhotoByes`. Must be one of `image/jpeg`, or `image/png`.
|
31
|
+
attr_accessor :photo_image_mime_type
|
29
32
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
34
|
def self.attribute_map
|
@@ -33,7 +36,8 @@ module TrinsicApi
|
|
33
36
|
:'national_id_number' => :'nationalIdNumber',
|
34
37
|
:'date_of_birth' => :'dateOfBirth',
|
35
38
|
:'name' => :'name',
|
36
|
-
:'
|
39
|
+
:'photo_byes' => :'photoByes',
|
40
|
+
:'photo_image_mime_type' => :'photoImageMimeType'
|
37
41
|
}
|
38
42
|
end
|
39
43
|
|
@@ -53,7 +57,8 @@ module TrinsicApi
|
|
53
57
|
:'national_id_number' => :'String',
|
54
58
|
:'date_of_birth' => :'Date',
|
55
59
|
:'name' => :'String',
|
56
|
-
:'
|
60
|
+
:'photo_byes' => :'String',
|
61
|
+
:'photo_image_mime_type' => :'String'
|
57
62
|
}
|
58
63
|
end
|
59
64
|
|
@@ -63,7 +68,8 @@ module TrinsicApi
|
|
63
68
|
:'national_id_number',
|
64
69
|
:'date_of_birth',
|
65
70
|
:'name',
|
66
|
-
:'
|
71
|
+
:'photo_byes',
|
72
|
+
:'photo_image_mime_type'
|
67
73
|
])
|
68
74
|
end
|
69
75
|
|
@@ -71,14 +77,14 @@ module TrinsicApi
|
|
71
77
|
# @param [Hash] attributes Model attributes in the form of hash
|
72
78
|
def initialize(attributes = {})
|
73
79
|
if (!attributes.is_a?(Hash))
|
74
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::BangladeshNidInput` initialize method"
|
75
81
|
end
|
76
82
|
|
77
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
78
84
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
79
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
86
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BangladeshNidInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
82
88
|
end
|
83
89
|
h[k.to_sym] = v
|
84
90
|
}
|
@@ -95,8 +101,12 @@ module TrinsicApi
|
|
95
101
|
self.name = attributes[:'name']
|
96
102
|
end
|
97
103
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
104
|
+
if attributes.key?(:'photo_byes')
|
105
|
+
self.photo_byes = attributes[:'photo_byes']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'photo_image_mime_type')
|
109
|
+
self.photo_image_mime_type = attributes[:'photo_image_mime_type']
|
100
110
|
end
|
101
111
|
end
|
102
112
|
|
@@ -123,7 +133,8 @@ module TrinsicApi
|
|
123
133
|
national_id_number == o.national_id_number &&
|
124
134
|
date_of_birth == o.date_of_birth &&
|
125
135
|
name == o.name &&
|
126
|
-
|
136
|
+
photo_byes == o.photo_byes &&
|
137
|
+
photo_image_mime_type == o.photo_image_mime_type
|
127
138
|
end
|
128
139
|
|
129
140
|
# @see the `==` method
|
@@ -135,7 +146,7 @@ module TrinsicApi
|
|
135
146
|
# Calculates hash code according to all attributes.
|
136
147
|
# @return [Integer] Hash code
|
137
148
|
def hash
|
138
|
-
[national_id_number, date_of_birth, name,
|
149
|
+
[national_id_number, date_of_birth, name, photo_byes, photo_image_mime_type].hash
|
139
150
|
end
|
140
151
|
|
141
152
|
# Builds the object from hash
|
@@ -18,7 +18,7 @@ module TrinsicApi
|
|
18
18
|
# The user's 11-digit, numeric CPF Number
|
19
19
|
attr_accessor :cpf_number
|
20
20
|
|
21
|
-
# The raw bytes of the digital CNH file collected from the user.
|
21
|
+
# The raw bytes of the digital CNH file collected from the user.
|
22
22
|
attr_accessor :digital_cnh_file
|
23
23
|
|
24
24
|
# The MIME Type of the file contained in `DigitalCnhFile`. Must be one of `application/pdf`, `image/jpeg`, or `image/png`.
|
@@ -15,14 +15,19 @@ require 'time'
|
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
17
|
class HttpValidationProblemDetails
|
18
|
+
# A URI reference that identifies the problem type.
|
18
19
|
attr_accessor :type
|
19
20
|
|
21
|
+
# A short, human-readable summary of the error.
|
20
22
|
attr_accessor :title
|
21
23
|
|
24
|
+
# The HTTP status code returned for the request.
|
22
25
|
attr_accessor :status
|
23
26
|
|
27
|
+
# A human-readable explanation specific of the problem.
|
24
28
|
attr_accessor :detail
|
25
29
|
|
30
|
+
# A URI reference that identifies the specific occurrence of the problem.
|
26
31
|
attr_accessor :instance
|
27
32
|
|
28
33
|
attr_accessor :errors
|
@@ -15,14 +15,19 @@ require 'time'
|
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
17
|
class ProblemDetails
|
18
|
+
# A URI reference that identifies the problem type.
|
18
19
|
attr_accessor :type
|
19
20
|
|
21
|
+
# A short, human-readable summary of the error.
|
20
22
|
attr_accessor :title
|
21
23
|
|
24
|
+
# The HTTP status code returned for the request.
|
22
25
|
attr_accessor :status
|
23
26
|
|
27
|
+
# A human-readable explanation specific of the problem.
|
24
28
|
attr_accessor :detail
|
25
29
|
|
30
|
+
# A URI reference that identifies the specific occurrence of the problem.
|
26
31
|
attr_accessor :instance
|
27
32
|
|
28
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -60,8 +60,8 @@ module TrinsicApi
|
|
60
60
|
# Metadata about the sub-providers which are available for this Provider. For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
|
61
61
|
attr_accessor :sub_providers
|
62
62
|
|
63
|
-
# The
|
64
|
-
attr_accessor :
|
63
|
+
# The health for an integration to be able to successfully perform a verification session.
|
64
|
+
attr_accessor :health
|
65
65
|
|
66
66
|
class EnumAttributeValidator
|
67
67
|
attr_reader :datatype
|
@@ -103,7 +103,7 @@ module TrinsicApi
|
|
103
103
|
:'has_trinsic_interface' => :'hasTrinsicInterface',
|
104
104
|
:'supports_advanced_provider_sessions' => :'supportsAdvancedProviderSessions',
|
105
105
|
:'sub_providers' => :'subProviders',
|
106
|
-
:'
|
106
|
+
:'health' => :'health'
|
107
107
|
}
|
108
108
|
end
|
109
109
|
|
@@ -135,7 +135,7 @@ module TrinsicApi
|
|
135
135
|
:'has_trinsic_interface' => :'Boolean',
|
136
136
|
:'supports_advanced_provider_sessions' => :'Boolean',
|
137
137
|
:'sub_providers' => :'Array<SubProviderMetadata>',
|
138
|
-
:'
|
138
|
+
:'health' => :'ProviderHealth'
|
139
139
|
}
|
140
140
|
end
|
141
141
|
|
@@ -256,10 +256,10 @@ module TrinsicApi
|
|
256
256
|
end
|
257
257
|
end
|
258
258
|
|
259
|
-
if attributes.key?(:'
|
260
|
-
self.
|
259
|
+
if attributes.key?(:'health')
|
260
|
+
self.health = attributes[:'health']
|
261
261
|
else
|
262
|
-
self.
|
262
|
+
self.health = nil
|
263
263
|
end
|
264
264
|
end
|
265
265
|
|
@@ -324,8 +324,8 @@ module TrinsicApi
|
|
324
324
|
invalid_properties.push('invalid value for "supports_advanced_provider_sessions", supports_advanced_provider_sessions cannot be nil.')
|
325
325
|
end
|
326
326
|
|
327
|
-
if @
|
328
|
-
invalid_properties.push('invalid value for "
|
327
|
+
if @health.nil?
|
328
|
+
invalid_properties.push('invalid value for "health", health cannot be nil.')
|
329
329
|
end
|
330
330
|
|
331
331
|
invalid_properties
|
@@ -349,7 +349,7 @@ module TrinsicApi
|
|
349
349
|
return false if @requires_input.nil?
|
350
350
|
return false if @has_trinsic_interface.nil?
|
351
351
|
return false if @supports_advanced_provider_sessions.nil?
|
352
|
-
return false if @
|
352
|
+
return false if @health.nil?
|
353
353
|
true
|
354
354
|
end
|
355
355
|
|
@@ -494,13 +494,13 @@ module TrinsicApi
|
|
494
494
|
end
|
495
495
|
|
496
496
|
# Custom attribute writer method with validation
|
497
|
-
# @param [Object]
|
498
|
-
def
|
499
|
-
if
|
500
|
-
fail ArgumentError, '
|
497
|
+
# @param [Object] health Value to be assigned
|
498
|
+
def health=(health)
|
499
|
+
if health.nil?
|
500
|
+
fail ArgumentError, 'health cannot be nil'
|
501
501
|
end
|
502
502
|
|
503
|
-
@
|
503
|
+
@health = health
|
504
504
|
end
|
505
505
|
|
506
506
|
# Checks equality by comparing each attribute.
|
@@ -523,7 +523,7 @@ module TrinsicApi
|
|
523
523
|
has_trinsic_interface == o.has_trinsic_interface &&
|
524
524
|
supports_advanced_provider_sessions == o.supports_advanced_provider_sessions &&
|
525
525
|
sub_providers == o.sub_providers &&
|
526
|
-
|
526
|
+
health == o.health
|
527
527
|
end
|
528
528
|
|
529
529
|
# @see the `==` method
|
@@ -535,7 +535,7 @@ module TrinsicApi
|
|
535
535
|
# Calculates hash code according to all attributes.
|
536
536
|
# @return [Integer] Hash code
|
537
537
|
def hash
|
538
|
-
[id, name, description, logo_url, available, geography, regions, launch_method, collection_method, results_may_be_delayed_after_redirect, has_refreshable_content, requires_input, has_trinsic_interface, supports_advanced_provider_sessions, sub_providers,
|
538
|
+
[id, name, description, logo_url, available, geography, regions, launch_method, collection_method, results_may_be_delayed_after_redirect, has_refreshable_content, requires_input, has_trinsic_interface, supports_advanced_provider_sessions, sub_providers, health].hash
|
539
539
|
end
|
540
540
|
|
541
541
|
# Builds the object from hash
|
@@ -108,7 +108,7 @@ module TrinsicApi
|
|
108
108
|
:'kenya_nid' => :'KenyaNidInput',
|
109
109
|
:'nigeria_nin' => :'NigeriaNinInput',
|
110
110
|
:'aadhaar' => :'AadhaarInput',
|
111
|
-
:'bangladesh_national_id' => :'
|
111
|
+
:'bangladesh_national_id' => :'BangladeshNidInput',
|
112
112
|
:'brazil_cpf_check' => :'BrazilCpfCheckInput',
|
113
113
|
:'brazil_digital_cnh' => :'BrazilDigitalCnhInput',
|
114
114
|
:'philippine_match' => :'PhilippineMatchInput',
|
@@ -45,7 +45,6 @@ module TrinsicApi
|
|
45
45
|
# List of attributes with nullable: true
|
46
46
|
def self.openapi_nullable
|
47
47
|
Set.new([
|
48
|
-
:'results_access_key'
|
49
48
|
])
|
50
49
|
end
|
51
50
|
|
@@ -67,6 +66,8 @@ module TrinsicApi
|
|
67
66
|
|
68
67
|
if attributes.key?(:'results_access_key')
|
69
68
|
self.results_access_key = attributes[:'results_access_key']
|
69
|
+
else
|
70
|
+
self.results_access_key = nil
|
70
71
|
end
|
71
72
|
end
|
72
73
|
|
@@ -75,6 +76,14 @@ module TrinsicApi
|
|
75
76
|
def list_invalid_properties
|
76
77
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
77
78
|
invalid_properties = Array.new
|
79
|
+
if @results_access_key.nil?
|
80
|
+
invalid_properties.push('invalid value for "results_access_key", results_access_key cannot be nil.')
|
81
|
+
end
|
82
|
+
|
83
|
+
if @results_access_key.to_s.length < 1
|
84
|
+
invalid_properties.push('invalid value for "results_access_key", the character length must be great than or equal to 1.')
|
85
|
+
end
|
86
|
+
|
78
87
|
invalid_properties
|
79
88
|
end
|
80
89
|
|
@@ -82,9 +91,25 @@ module TrinsicApi
|
|
82
91
|
# @return true if the model is valid
|
83
92
|
def valid?
|
84
93
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
94
|
+
return false if @results_access_key.nil?
|
95
|
+
return false if @results_access_key.to_s.length < 1
|
85
96
|
true
|
86
97
|
end
|
87
98
|
|
99
|
+
# Custom attribute writer method with validation
|
100
|
+
# @param [Object] results_access_key Value to be assigned
|
101
|
+
def results_access_key=(results_access_key)
|
102
|
+
if results_access_key.nil?
|
103
|
+
fail ArgumentError, 'results_access_key cannot be nil'
|
104
|
+
end
|
105
|
+
|
106
|
+
if results_access_key.to_s.length < 1
|
107
|
+
fail ArgumentError, 'invalid value for "results_access_key", the character length must be great than or equal to 1.'
|
108
|
+
end
|
109
|
+
|
110
|
+
@results_access_key = results_access_key
|
111
|
+
end
|
112
|
+
|
88
113
|
# Checks equality by comparing each attribute.
|
89
114
|
# @param [Object] Object to be compared
|
90
115
|
def ==(o)
|
data/lib/trinsic_api/version.rb
CHANGED
data/lib/trinsic_api.rb
CHANGED
@@ -20,7 +20,7 @@ require 'trinsic_api/configuration'
|
|
20
20
|
require 'trinsic_api/models/aadhaar_input'
|
21
21
|
require 'trinsic_api/models/address'
|
22
22
|
require 'trinsic_api/models/attachment_access_keys'
|
23
|
-
require 'trinsic_api/models/
|
23
|
+
require 'trinsic_api/models/bangladesh_nid_input'
|
24
24
|
require 'trinsic_api/models/brazil_cpf_check_input'
|
25
25
|
require 'trinsic_api/models/brazil_digital_cnh_input'
|
26
26
|
require 'trinsic_api/models/cancel_session_response'
|
@@ -87,7 +87,6 @@ require 'trinsic_api/models/trinsic_test_sub_providers_input'
|
|
87
87
|
require 'trinsic_api/api/attachments_api'
|
88
88
|
require 'trinsic_api/api/network_api'
|
89
89
|
require 'trinsic_api/api/sessions_api'
|
90
|
-
require 'trinsic_api/api/well_known_api'
|
91
90
|
|
92
91
|
module TrinsicApi
|
93
92
|
class << self
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for TrinsicApi::
|
17
|
+
# Unit tests for TrinsicApi::BangladeshNidInput
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe TrinsicApi::
|
21
|
-
let(:instance) { TrinsicApi::
|
20
|
+
describe TrinsicApi::BangladeshNidInput do
|
21
|
+
let(:instance) { TrinsicApi::BangladeshNidInput.new }
|
22
22
|
|
23
|
-
describe 'test an instance of
|
24
|
-
it 'should create an instance of
|
23
|
+
describe 'test an instance of BangladeshNidInput' do
|
24
|
+
it 'should create an instance of BangladeshNidInput' do
|
25
25
|
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(TrinsicApi::
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::BangladeshNidInput)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -45,7 +45,13 @@ describe TrinsicApi::BangladeshNationalIdInput do
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
describe 'test attribute "
|
48
|
+
describe 'test attribute "photo_byes"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "photo_image_mime_type"' do
|
49
55
|
it 'should work' do
|
50
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
57
|
end
|
@@ -117,7 +117,7 @@ describe TrinsicApi::ProviderContract do
|
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
-
describe 'test attribute "
|
120
|
+
describe 'test attribute "health"' do
|
121
121
|
it 'should work' do
|
122
122
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
123
123
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trinsic_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trinsic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -65,7 +65,7 @@ files:
|
|
65
65
|
- docs/Address.md
|
66
66
|
- docs/AttachmentAccessKeys.md
|
67
67
|
- docs/AttachmentsApi.md
|
68
|
-
- docs/
|
68
|
+
- docs/BangladeshNidInput.md
|
69
69
|
- docs/BrazilCpfCheckInput.md
|
70
70
|
- docs/BrazilDigitalCnhInput.md
|
71
71
|
- docs/CancelSessionResponse.md
|
@@ -129,20 +129,18 @@ files:
|
|
129
129
|
- docs/SubProviderMetadata.md
|
130
130
|
- docs/TrinsicTestDatabaseLookupInput.md
|
131
131
|
- docs/TrinsicTestSubProvidersInput.md
|
132
|
-
- docs/WellKnownApi.md
|
133
132
|
- git_push.sh
|
134
133
|
- lib/trinsic_api.rb
|
135
134
|
- lib/trinsic_api/api/attachments_api.rb
|
136
135
|
- lib/trinsic_api/api/network_api.rb
|
137
136
|
- lib/trinsic_api/api/sessions_api.rb
|
138
|
-
- lib/trinsic_api/api/well_known_api.rb
|
139
137
|
- lib/trinsic_api/api_client.rb
|
140
138
|
- lib/trinsic_api/api_error.rb
|
141
139
|
- lib/trinsic_api/configuration.rb
|
142
140
|
- lib/trinsic_api/models/aadhaar_input.rb
|
143
141
|
- lib/trinsic_api/models/address.rb
|
144
142
|
- lib/trinsic_api/models/attachment_access_keys.rb
|
145
|
-
- lib/trinsic_api/models/
|
143
|
+
- lib/trinsic_api/models/bangladesh_nid_input.rb
|
146
144
|
- lib/trinsic_api/models/brazil_cpf_check_input.rb
|
147
145
|
- lib/trinsic_api/models/brazil_digital_cnh_input.rb
|
148
146
|
- lib/trinsic_api/models/cancel_session_response.rb
|
@@ -208,11 +206,10 @@ files:
|
|
208
206
|
- spec/api/attachments_api_spec.rb
|
209
207
|
- spec/api/network_api_spec.rb
|
210
208
|
- spec/api/sessions_api_spec.rb
|
211
|
-
- spec/api/well_known_api_spec.rb
|
212
209
|
- spec/models/aadhaar_input_spec.rb
|
213
210
|
- spec/models/address_spec.rb
|
214
211
|
- spec/models/attachment_access_keys_spec.rb
|
215
|
-
- spec/models/
|
212
|
+
- spec/models/bangladesh_nid_input_spec.rb
|
216
213
|
- spec/models/brazil_cpf_check_input_spec.rb
|
217
214
|
- spec/models/brazil_digital_cnh_input_spec.rb
|
218
215
|
- spec/models/cancel_session_response_spec.rb
|
@@ -300,73 +297,72 @@ signing_key:
|
|
300
297
|
specification_version: 4
|
301
298
|
summary: Trinsic API Ruby Library
|
302
299
|
test_files:
|
303
|
-
- spec/api/well_known_api_spec.rb
|
304
|
-
- spec/api/sessions_api_spec.rb
|
305
|
-
- spec/api/network_api_spec.rb
|
306
300
|
- spec/api/attachments_api_spec.rb
|
307
|
-
- spec/
|
308
|
-
- spec/
|
309
|
-
- spec/models/
|
310
|
-
- spec/models/smart_id_input_spec.rb
|
311
|
-
- spec/models/language_spec.rb
|
312
|
-
- spec/models/provider_health_spec.rb
|
313
|
-
- spec/models/create_widget_session_response_spec.rb
|
314
|
-
- spec/models/problem_details_spec.rb
|
315
|
-
- spec/models/session_spec.rb
|
316
|
-
- spec/models/provider_attachments_spec.rb
|
317
|
-
- spec/models/identity_data_spec.rb
|
318
|
-
- spec/models/get_session_result_response_spec.rb
|
301
|
+
- spec/api/network_api_spec.rb
|
302
|
+
- spec/api/sessions_api_spec.rb
|
303
|
+
- spec/models/refresh_step_content_request_spec.rb
|
319
304
|
- spec/models/trinsic_test_sub_providers_input_spec.rb
|
320
|
-
- spec/models/
|
321
|
-
- spec/models/
|
322
|
-
- spec/models/
|
323
|
-
- spec/models/
|
305
|
+
- spec/models/get_attachment_request_spec.rb
|
306
|
+
- spec/models/http_validation_problem_details_spec.rb
|
307
|
+
- spec/models/provider_health_spec.rb
|
308
|
+
- spec/models/provider_contract_spec.rb
|
309
|
+
- spec/models/address_spec.rb
|
310
|
+
- spec/models/recommend_request_spec.rb
|
324
311
|
- spec/models/provider_information_spec.rb
|
325
|
-
- spec/models/
|
312
|
+
- spec/models/person_data_spec.rb
|
326
313
|
- spec/models/cancel_session_response_spec.rb
|
327
314
|
- spec/models/step_refresh_info_spec.rb
|
328
|
-
- spec/models/
|
329
|
-
- spec/models/
|
330
|
-
- spec/models/
|
331
|
-
- spec/models/
|
332
|
-
- spec/models/
|
333
|
-
- spec/models/create_advanced_provider_session_request_spec.rb
|
334
|
-
- spec/models/sex_spec.rb
|
315
|
+
- spec/models/provider_info_spec.rb
|
316
|
+
- spec/models/identity_data_spec.rb
|
317
|
+
- spec/models/list_sessions_response_spec.rb
|
318
|
+
- spec/models/aadhaar_input_spec.rb
|
319
|
+
- spec/models/document_data_spec.rb
|
335
320
|
- spec/models/mexico_curp_input_spec.rb
|
336
|
-
- spec/models/
|
321
|
+
- spec/models/create_widget_session_response_spec.rb
|
322
|
+
- spec/models/session_ordering_spec.rb
|
337
323
|
- spec/models/kenya_nid_input_spec.rb
|
338
|
-
- spec/models/order_direction_spec.rb
|
339
|
-
- spec/models/document_type_spec.rb
|
340
|
-
- spec/models/mobile_id_input_spec.rb
|
341
324
|
- spec/models/sub_provider_metadata_spec.rb
|
342
|
-
- spec/models/document_data_spec.rb
|
343
|
-
- spec/models/refresh_step_content_request_spec.rb
|
344
|
-
- spec/models/person_data_spec.rb
|
345
|
-
- spec/models/provider_contract_spec.rb
|
346
|
-
- spec/models/list_provider_contracts_response_spec.rb
|
347
|
-
- spec/models/get_session_response_spec.rb
|
348
|
-
- spec/models/nigeria_nin_input_spec.rb
|
349
325
|
- spec/models/provider_input_spec.rb
|
350
|
-
- spec/models/
|
351
|
-
- spec/models/
|
352
|
-
- spec/models/
|
353
|
-
- spec/models/session_error_code_spec.rb
|
326
|
+
- spec/models/list_provider_contracts_response_spec.rb
|
327
|
+
- spec/models/document_type_spec.rb
|
328
|
+
- spec/models/create_hosted_provider_session_response_spec.rb
|
354
329
|
- spec/models/list_providers_response_spec.rb
|
355
|
-
- spec/models/
|
356
|
-
- spec/models/bangladesh_national_id_input_spec.rb
|
357
|
-
- spec/models/result_collection_spec.rb
|
358
|
-
- spec/models/provider_info_spec.rb
|
359
|
-
- spec/models/refresh_step_content_response_spec.rb
|
360
|
-
- spec/models/indonesia_nik_input_spec.rb
|
361
|
-
- spec/models/recommendation_info_spec.rb
|
330
|
+
- spec/models/philippine_qr_input_spec.rb
|
362
331
|
- spec/models/document_scan_attachments_spec.rb
|
363
|
-
- spec/models/
|
364
|
-
- spec/models/
|
332
|
+
- spec/models/recommendation_info_spec.rb
|
333
|
+
- spec/models/create_hosted_provider_session_request_spec.rb
|
334
|
+
- spec/models/brazil_digital_cnh_input_spec.rb
|
335
|
+
- spec/models/south_africa_nid_input_spec.rb
|
336
|
+
- spec/models/idin_input_spec.rb
|
337
|
+
- spec/models/smart_id_input_spec.rb
|
365
338
|
- spec/models/brazil_cpf_check_input_spec.rb
|
366
339
|
- spec/models/integration_launch_method_spec.rb
|
340
|
+
- spec/models/philippine_match_input_spec.rb
|
341
|
+
- spec/models/create_advanced_provider_session_response_spec.rb
|
342
|
+
- spec/models/get_session_response_spec.rb
|
343
|
+
- spec/models/get_session_result_request_spec.rb
|
344
|
+
- spec/models/bangladesh_nid_input_spec.rb
|
345
|
+
- spec/models/result_collection_spec.rb
|
346
|
+
- spec/models/indonesia_nik_input_spec.rb
|
347
|
+
- spec/models/order_direction_spec.rb
|
348
|
+
- spec/models/get_attachment_response_spec.rb
|
349
|
+
- spec/models/integration_capability_spec.rb
|
350
|
+
- spec/models/provider_attachments_spec.rb
|
367
351
|
- spec/models/spid_input_spec.rb
|
368
|
-
- spec/models/
|
369
|
-
- spec/models/
|
370
|
-
- spec/models/
|
371
|
-
- spec/models/
|
352
|
+
- spec/models/nigeria_nin_input_spec.rb
|
353
|
+
- spec/models/attachment_access_keys_spec.rb
|
354
|
+
- spec/models/create_widget_session_request_spec.rb
|
355
|
+
- spec/models/session_spec.rb
|
356
|
+
- spec/models/create_advanced_provider_session_request_spec.rb
|
357
|
+
- spec/models/recommend_response_spec.rb
|
358
|
+
- spec/models/mobile_id_input_spec.rb
|
359
|
+
- spec/models/sex_spec.rb
|
360
|
+
- spec/models/language_spec.rb
|
361
|
+
- spec/models/refresh_step_content_response_spec.rb
|
362
|
+
- spec/models/get_session_result_response_spec.rb
|
363
|
+
- spec/models/session_error_code_spec.rb
|
364
|
+
- spec/models/trinsic_test_database_lookup_input_spec.rb
|
365
|
+
- spec/models/result_collection_method_spec.rb
|
366
|
+
- spec/models/integration_step_spec.rb
|
367
|
+
- spec/models/problem_details_spec.rb
|
372
368
|
- spec/spec_helper.rb
|
data/docs/WellKnownApi.md
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
# TrinsicApi::WellKnownApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.trinsic.id*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**interac_jwk**](WellKnownApi.md#interac_jwk) | **GET** /api/integrations/v1/interac/.well-known/jwks.json | |
|
8
|
-
|
9
|
-
|
10
|
-
## interac_jwk
|
11
|
-
|
12
|
-
> interac_jwk
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
### Examples
|
17
|
-
|
18
|
-
```ruby
|
19
|
-
require 'time'
|
20
|
-
require 'trinsic_api'
|
21
|
-
# setup authorization
|
22
|
-
TrinsicApi.configure do |config|
|
23
|
-
# Configure Bearer authorization: Bearer
|
24
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
25
|
-
end
|
26
|
-
|
27
|
-
api_instance = TrinsicApi::WellKnownApi.new
|
28
|
-
|
29
|
-
begin
|
30
|
-
|
31
|
-
api_instance.interac_jwk
|
32
|
-
rescue TrinsicApi::ApiError => e
|
33
|
-
puts "Error when calling WellKnownApi->interac_jwk: #{e}"
|
34
|
-
end
|
35
|
-
```
|
36
|
-
|
37
|
-
#### Using the interac_jwk_with_http_info variant
|
38
|
-
|
39
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
40
|
-
|
41
|
-
> <Array(nil, Integer, Hash)> interac_jwk_with_http_info
|
42
|
-
|
43
|
-
```ruby
|
44
|
-
begin
|
45
|
-
|
46
|
-
data, status_code, headers = api_instance.interac_jwk_with_http_info
|
47
|
-
p status_code # => 2xx
|
48
|
-
p headers # => { ... }
|
49
|
-
p data # => nil
|
50
|
-
rescue TrinsicApi::ApiError => e
|
51
|
-
puts "Error when calling WellKnownApi->interac_jwk_with_http_info: #{e}"
|
52
|
-
end
|
53
|
-
```
|
54
|
-
|
55
|
-
### Parameters
|
56
|
-
|
57
|
-
This endpoint does not need any parameter.
|
58
|
-
|
59
|
-
### Return type
|
60
|
-
|
61
|
-
nil (empty response body)
|
62
|
-
|
63
|
-
### Authorization
|
64
|
-
|
65
|
-
[Bearer](../README.md#Bearer)
|
66
|
-
|
67
|
-
### HTTP request headers
|
68
|
-
|
69
|
-
- **Content-Type**: Not defined
|
70
|
-
- **Accept**: application/json
|
71
|
-
|
@@ -1,75 +0,0 @@
|
|
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 'cgi'
|
14
|
-
|
15
|
-
module TrinsicApi
|
16
|
-
class WellKnownApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# @param [Hash] opts the optional parameters
|
23
|
-
# @return [nil]
|
24
|
-
def interac_jwk(opts = {})
|
25
|
-
interac_jwk_with_http_info(opts)
|
26
|
-
nil
|
27
|
-
end
|
28
|
-
|
29
|
-
# @param [Hash] opts the optional parameters
|
30
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
31
|
-
def interac_jwk_with_http_info(opts = {})
|
32
|
-
if @api_client.config.debugging
|
33
|
-
@api_client.config.logger.debug 'Calling API: WellKnownApi.interac_jwk ...'
|
34
|
-
end
|
35
|
-
# resource path
|
36
|
-
local_var_path = '/api/integrations/v1/interac/.well-known/jwks.json'
|
37
|
-
|
38
|
-
# query parameters
|
39
|
-
query_params = opts[:query_params] || {}
|
40
|
-
|
41
|
-
# header parameters
|
42
|
-
header_params = opts[:header_params] || {}
|
43
|
-
# HTTP header 'Accept' (if needed)
|
44
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
45
|
-
|
46
|
-
# form parameters
|
47
|
-
form_params = opts[:form_params] || {}
|
48
|
-
|
49
|
-
# http body (model)
|
50
|
-
post_body = opts[:debug_body]
|
51
|
-
|
52
|
-
# return_type
|
53
|
-
return_type = opts[:debug_return_type]
|
54
|
-
|
55
|
-
# auth_names
|
56
|
-
auth_names = opts[:debug_auth_names] || ['Bearer']
|
57
|
-
|
58
|
-
new_options = opts.merge(
|
59
|
-
:operation => :"WellKnownApi.interac_jwk",
|
60
|
-
:header_params => header_params,
|
61
|
-
:query_params => query_params,
|
62
|
-
:form_params => form_params,
|
63
|
-
:body => post_body,
|
64
|
-
:auth_names => auth_names,
|
65
|
-
:return_type => return_type
|
66
|
-
)
|
67
|
-
|
68
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
69
|
-
if @api_client.config.debugging
|
70
|
-
@api_client.config.logger.debug "API called: WellKnownApi#interac_jwk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
-
end
|
72
|
-
return data, status_code, headers
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
@@ -1,44 +0,0 @@
|
|
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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for TrinsicApi::WellKnownApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'WellKnownApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = TrinsicApi::WellKnownApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of WellKnownApi' do
|
30
|
-
it 'should create an instance of WellKnownApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(TrinsicApi::WellKnownApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for interac_jwk
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [nil]
|
38
|
-
describe 'interac_jwk test' do
|
39
|
-
it 'should work' do
|
40
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
end
|