trinsic_api 2.0.1 → 2.0.2
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/ProviderContract.md +2 -2
- data/lib/trinsic_api/models/provider_contract.rb +17 -17
- data/lib/trinsic_api/version.rb +1 -1
- data/spec/models/provider_contract_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc489dfadbeb323638c770c3cc51a0b220b6b88da7b6fbdb5fe92b438f44ff14
|
4
|
+
data.tar.gz: acc1edcdf3948c505b4eeb25c84049b0074c5f1c561940c51cd6f1591e8a7aa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0895fa0965b191ae2ac364e81e7028e3310ce3327d685d0ab4ba3b8506901d83be0cf2910b5a33d4fc6bf6b87d38ee7debbc48015a975bd57a5fd5a36547efa6'
|
7
|
+
data.tar.gz: 257f427c31a0a8fffb25992fdb723f3e32c92f84cea4e1f6577dde5c8fe198c475b3ce5712046d875e47a6525a9e3806fc3fd4618380566792d42a4980094dd9
|
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
|
|
@@ -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
|
data/lib/trinsic_api/version.rb
CHANGED
@@ -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
|