trinsic_api 2.0.0.pre.alpha3 → 2.0.1
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/README.md +1 -1
- data/docs/AttachmentsApi.md +1 -1
- data/docs/BrazilDigitalCnhInput.md +2 -2
- data/docs/CreateAdvancedProviderSessionRequest.md +3 -3
- data/docs/CreateHostedProviderSessionResponse.md +4 -2
- data/docs/CreateWidgetSessionRequest.md +3 -3
- data/docs/CreateWidgetSessionResponse.md +4 -2
- data/docs/IdentityData.md +2 -0
- data/docs/IdinInput.md +18 -0
- data/docs/IntegrationStep.md +1 -1
- data/docs/Language.md +15 -0
- data/docs/ListProviderContractsResponse.md +18 -0
- data/docs/MobileIdInput.md +22 -0
- data/docs/NetworkApi.md +71 -4
- data/docs/ProviderContract.md +48 -0
- data/docs/ProviderHealth.md +15 -0
- data/docs/ProviderInfo.md +1 -3
- data/docs/ProviderInformation.md +3 -3
- data/docs/ProviderInput.md +24 -12
- data/docs/RecommendRequest.md +2 -10
- data/docs/RecommendationInfo.md +24 -0
- data/docs/ResultCollection.md +2 -2
- data/docs/Session.md +3 -3
- data/docs/SessionsApi.md +2 -2
- data/docs/SmartIdInput.md +18 -0
- data/docs/SpidInput.md +18 -0
- data/docs/StepRefreshInfo.md +1 -1
- data/docs/SubProviderMetadata.md +24 -0
- data/docs/TrinsicTestDatabaseLookupInput.md +24 -0
- data/docs/TrinsicTestSubProvidersInput.md +18 -0
- data/docs/WellKnownApi.md +71 -0
- data/lib/trinsic_api/api/attachments_api.rb +3 -3
- data/lib/trinsic_api/api/network_api.rb +60 -3
- data/lib/trinsic_api/api/sessions_api.rb +5 -5
- data/lib/trinsic_api/api/well_known_api.rb +75 -0
- data/lib/trinsic_api/api_client.rb +8 -9
- data/lib/trinsic_api/api_error.rb +1 -1
- data/lib/trinsic_api/configuration.rb +1 -1
- data/lib/trinsic_api/models/aadhaar_input.rb +10 -4
- data/lib/trinsic_api/models/address.rb +10 -4
- data/lib/trinsic_api/models/attachment_access_keys.rb +20 -4
- data/lib/trinsic_api/models/bangladesh_national_id_input.rb +10 -4
- data/lib/trinsic_api/models/brazil_cpf_check_input.rb +10 -4
- data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +12 -6
- data/lib/trinsic_api/models/cancel_session_response.rb +20 -4
- data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +13 -7
- data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +40 -4
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +10 -4
- data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +69 -10
- data/lib/trinsic_api/models/create_widget_session_request.rb +20 -14
- data/lib/trinsic_api/models/create_widget_session_response.rb +69 -10
- data/lib/trinsic_api/models/document_data.rb +10 -4
- data/lib/trinsic_api/models/document_scan_attachments.rb +10 -4
- data/lib/trinsic_api/models/document_type.rb +1 -1
- data/lib/trinsic_api/models/get_attachment_request.rb +10 -4
- data/lib/trinsic_api/models/get_attachment_response.rb +30 -4
- data/lib/trinsic_api/models/get_session_response.rb +20 -4
- data/lib/trinsic_api/models/get_session_result_request.rb +20 -4
- data/lib/trinsic_api/models/get_session_result_response.rb +20 -4
- data/lib/trinsic_api/models/http_validation_problem_details.rb +10 -4
- data/lib/trinsic_api/models/identity_data.rb +21 -5
- data/lib/trinsic_api/models/{known_identity_data.rb → idin_input.rb} +21 -16
- data/lib/trinsic_api/models/indonesia_nik_input.rb +20 -4
- data/lib/trinsic_api/models/integration_capability.rb +1 -1
- data/lib/trinsic_api/models/integration_launch_method.rb +3 -3
- data/lib/trinsic_api/models/integration_step.rb +30 -6
- data/lib/trinsic_api/models/kenya_nid_input.rb +20 -4
- data/lib/trinsic_api/models/language.rb +42 -0
- data/lib/trinsic_api/models/{known_address.rb → list_provider_contracts_response.rb} +39 -86
- data/lib/trinsic_api/models/list_providers_response.rb +20 -4
- data/lib/trinsic_api/models/list_sessions_response.rb +40 -4
- data/lib/trinsic_api/models/mexico_curp_input.rb +10 -4
- data/lib/trinsic_api/models/mobile_id_input.rb +266 -0
- data/lib/trinsic_api/models/nigeria_nin_input.rb +20 -4
- data/lib/trinsic_api/models/order_direction.rb +1 -1
- data/lib/trinsic_api/models/person_data.rb +10 -4
- data/lib/trinsic_api/models/philippine_match_input.rb +10 -4
- data/lib/trinsic_api/models/philippine_qr_input.rb +10 -4
- data/lib/trinsic_api/models/problem_details.rb +10 -4
- data/lib/trinsic_api/models/provider_attachments.rb +10 -4
- data/lib/trinsic_api/models/provider_contract.rb +655 -0
- data/lib/trinsic_api/models/provider_health.rb +40 -0
- data/lib/trinsic_api/models/provider_info.rb +44 -21
- data/lib/trinsic_api/models/provider_information.rb +40 -4
- data/lib/trinsic_api/models/provider_input.rb +92 -20
- data/lib/trinsic_api/models/recommend_request.rb +19 -63
- data/lib/trinsic_api/models/recommend_response.rb +40 -4
- data/lib/trinsic_api/models/recommendation_info.rb +262 -0
- data/lib/trinsic_api/models/refresh_step_content_request.rb +10 -4
- data/lib/trinsic_api/models/refresh_step_content_response.rb +20 -4
- data/lib/trinsic_api/models/result_collection.rb +38 -6
- data/lib/trinsic_api/models/result_collection_method.rb +1 -1
- data/lib/trinsic_api/models/session.rb +63 -7
- data/lib/trinsic_api/models/session_error_code.rb +1 -1
- data/lib/trinsic_api/models/session_ordering.rb +1 -1
- data/lib/trinsic_api/models/sex.rb +1 -1
- data/lib/trinsic_api/models/smart_id_input.rb +222 -0
- data/lib/trinsic_api/models/south_africa_nid_input.rb +20 -4
- data/lib/trinsic_api/models/spid_input.rb +222 -0
- data/lib/trinsic_api/models/step_refresh_info.rb +41 -5
- data/lib/trinsic_api/models/sub_provider_metadata.rb +320 -0
- data/lib/trinsic_api/models/{known_person_data.rb → trinsic_test_database_lookup_input.rb} +31 -69
- data/lib/trinsic_api/models/trinsic_test_sub_providers_input.rb +222 -0
- data/lib/trinsic_api/version.rb +2 -2
- data/lib/trinsic_api.rb +14 -4
- data/spec/api/attachments_api_spec.rb +2 -2
- data/spec/api/network_api_spec.rb +13 -2
- data/spec/api/sessions_api_spec.rb +3 -3
- data/spec/api/well_known_api_spec.rb +44 -0
- data/spec/models/aadhaar_input_spec.rb +1 -1
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/attachment_access_keys_spec.rb +1 -1
- data/spec/models/bangladesh_national_id_input_spec.rb +1 -1
- data/spec/models/brazil_cpf_check_input_spec.rb +1 -1
- data/spec/models/brazil_digital_cnh_input_spec.rb +1 -1
- data/spec/models/cancel_session_response_spec.rb +1 -1
- data/spec/models/create_advanced_provider_session_request_spec.rb +1 -1
- data/spec/models/create_advanced_provider_session_response_spec.rb +1 -1
- data/spec/models/create_hosted_provider_session_request_spec.rb +1 -1
- data/spec/models/create_hosted_provider_session_response_spec.rb +7 -1
- data/spec/models/create_widget_session_request_spec.rb +2 -2
- data/spec/models/create_widget_session_response_spec.rb +7 -1
- data/spec/models/document_data_spec.rb +1 -1
- data/spec/models/document_scan_attachments_spec.rb +1 -1
- data/spec/models/document_type_spec.rb +1 -1
- data/spec/models/get_attachment_request_spec.rb +1 -1
- data/spec/models/get_attachment_response_spec.rb +1 -1
- data/spec/models/get_session_response_spec.rb +1 -1
- data/spec/models/get_session_result_request_spec.rb +1 -1
- data/spec/models/get_session_result_response_spec.rb +1 -1
- data/spec/models/http_validation_problem_details_spec.rb +1 -1
- data/spec/models/identity_data_spec.rb +7 -1
- data/spec/models/{known_identity_data_spec.rb → idin_input_spec.rb} +8 -8
- data/spec/models/indonesia_nik_input_spec.rb +1 -1
- data/spec/models/integration_capability_spec.rb +1 -1
- data/spec/models/integration_launch_method_spec.rb +1 -1
- data/spec/models/integration_step_spec.rb +1 -1
- data/spec/models/kenya_nid_input_spec.rb +1 -1
- data/spec/models/language_spec.rb +30 -0
- data/spec/models/list_provider_contracts_response_spec.rb +36 -0
- data/spec/models/list_providers_response_spec.rb +1 -1
- data/spec/models/list_sessions_response_spec.rb +1 -1
- data/spec/models/mexico_curp_input_spec.rb +1 -1
- data/spec/models/mobile_id_input_spec.rb +48 -0
- data/spec/models/nigeria_nin_input_spec.rb +1 -1
- data/spec/models/order_direction_spec.rb +1 -1
- data/spec/models/person_data_spec.rb +1 -1
- data/spec/models/philippine_match_input_spec.rb +1 -1
- data/spec/models/philippine_qr_input_spec.rb +1 -1
- data/spec/models/problem_details_spec.rb +1 -1
- data/spec/models/provider_attachments_spec.rb +1 -1
- data/spec/models/provider_contract_spec.rb +126 -0
- data/spec/models/provider_health_spec.rb +30 -0
- data/spec/models/provider_info_spec.rb +1 -7
- data/spec/models/provider_information_spec.rb +1 -1
- data/spec/models/provider_input_spec.rb +37 -1
- data/spec/models/recommend_request_spec.rb +2 -26
- data/spec/models/recommend_response_spec.rb +1 -1
- data/spec/models/recommendation_info_spec.rb +54 -0
- data/spec/models/refresh_step_content_request_spec.rb +1 -1
- data/spec/models/refresh_step_content_response_spec.rb +1 -1
- data/spec/models/result_collection_method_spec.rb +1 -1
- data/spec/models/result_collection_spec.rb +1 -1
- data/spec/models/session_error_code_spec.rb +1 -1
- data/spec/models/session_ordering_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/sex_spec.rb +1 -1
- data/spec/models/smart_id_input_spec.rb +36 -0
- data/spec/models/south_africa_nid_input_spec.rb +1 -1
- data/spec/models/spid_input_spec.rb +36 -0
- data/spec/models/step_refresh_info_spec.rb +1 -1
- data/spec/models/sub_provider_metadata_spec.rb +54 -0
- data/spec/models/trinsic_test_database_lookup_input_spec.rb +54 -0
- data/spec/models/trinsic_test_sub_providers_input_spec.rb +36 -0
- data/spec/spec_helper.rb +1 -1
- data/trinsic_api.gemspec +1 -1
- metadata +96 -56
- data/docs/KnownAddress.md +0 -32
- data/docs/KnownIdentityData.md +0 -18
- data/docs/KnownPersonData.md +0 -32
- data/spec/models/known_address_spec.rb +0 -78
- data/spec/models/known_person_data_spec.rb +0 -78
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -25,22 +25,23 @@ module TrinsicApi
|
|
25
25
|
# A URL pointing to the provider's logo
|
26
26
|
attr_accessor :logo_url
|
27
27
|
|
28
|
-
# List of child provider id's where the provider allows deep-launching of a specific provider.
|
29
|
-
attr_accessor :child_provider_ids
|
30
|
-
|
31
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
29
|
def self.attribute_map
|
33
30
|
{
|
34
31
|
:'id' => :'id',
|
35
32
|
:'name' => :'name',
|
36
|
-
:'logo_url' => :'logoUrl'
|
37
|
-
:'child_provider_ids' => :'childProviderIds'
|
33
|
+
:'logo_url' => :'logoUrl'
|
38
34
|
}
|
39
35
|
end
|
40
36
|
|
37
|
+
# Returns attribute mapping this model knows about
|
38
|
+
def self.acceptable_attribute_map
|
39
|
+
attribute_map
|
40
|
+
end
|
41
|
+
|
41
42
|
# Returns all the JSON keys this model knows about
|
42
43
|
def self.acceptable_attributes
|
43
|
-
|
44
|
+
acceptable_attribute_map.values
|
44
45
|
end
|
45
46
|
|
46
47
|
# Attribute type mapping.
|
@@ -48,15 +49,13 @@ module TrinsicApi
|
|
48
49
|
{
|
49
50
|
:'id' => :'String',
|
50
51
|
:'name' => :'String',
|
51
|
-
:'logo_url' => :'String'
|
52
|
-
:'child_provider_ids' => :'Array<String>'
|
52
|
+
:'logo_url' => :'String'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# List of attributes with nullable: true
|
57
57
|
def self.openapi_nullable
|
58
58
|
Set.new([
|
59
|
-
:'child_provider_ids'
|
60
59
|
])
|
61
60
|
end
|
62
61
|
|
@@ -68,9 +67,10 @@ module TrinsicApi
|
|
68
67
|
end
|
69
68
|
|
70
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
71
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
72
|
-
if (!
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInfo`. Please check the name to make sure it's valid. List of attributes: " +
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
74
74
|
end
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
@@ -92,12 +92,6 @@ module TrinsicApi
|
|
92
92
|
else
|
93
93
|
self.logo_url = nil
|
94
94
|
end
|
95
|
-
|
96
|
-
if attributes.key?(:'child_provider_ids')
|
97
|
-
if (value = attributes[:'child_provider_ids']).is_a?(Array)
|
98
|
-
self.child_provider_ids = value
|
99
|
-
end
|
100
|
-
end
|
101
95
|
end
|
102
96
|
|
103
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -130,6 +124,36 @@ module TrinsicApi
|
|
130
124
|
true
|
131
125
|
end
|
132
126
|
|
127
|
+
# Custom attribute writer method with validation
|
128
|
+
# @param [Object] id Value to be assigned
|
129
|
+
def id=(id)
|
130
|
+
if id.nil?
|
131
|
+
fail ArgumentError, 'id cannot be nil'
|
132
|
+
end
|
133
|
+
|
134
|
+
@id = id
|
135
|
+
end
|
136
|
+
|
137
|
+
# Custom attribute writer method with validation
|
138
|
+
# @param [Object] name Value to be assigned
|
139
|
+
def name=(name)
|
140
|
+
if name.nil?
|
141
|
+
fail ArgumentError, 'name cannot be nil'
|
142
|
+
end
|
143
|
+
|
144
|
+
@name = name
|
145
|
+
end
|
146
|
+
|
147
|
+
# Custom attribute writer method with validation
|
148
|
+
# @param [Object] logo_url Value to be assigned
|
149
|
+
def logo_url=(logo_url)
|
150
|
+
if logo_url.nil?
|
151
|
+
fail ArgumentError, 'logo_url cannot be nil'
|
152
|
+
end
|
153
|
+
|
154
|
+
@logo_url = logo_url
|
155
|
+
end
|
156
|
+
|
133
157
|
# Checks equality by comparing each attribute.
|
134
158
|
# @param [Object] Object to be compared
|
135
159
|
def ==(o)
|
@@ -137,8 +161,7 @@ module TrinsicApi
|
|
137
161
|
self.class == o.class &&
|
138
162
|
id == o.id &&
|
139
163
|
name == o.name &&
|
140
|
-
logo_url == o.logo_url
|
141
|
-
child_provider_ids == o.child_provider_ids
|
164
|
+
logo_url == o.logo_url
|
142
165
|
end
|
143
166
|
|
144
167
|
# @see the `==` method
|
@@ -150,7 +173,7 @@ module TrinsicApi
|
|
150
173
|
# Calculates hash code according to all attributes.
|
151
174
|
# @return [Integer] Hash code
|
152
175
|
def hash
|
153
|
-
[id, name, logo_url
|
176
|
+
[id, name, logo_url].hash
|
154
177
|
end
|
155
178
|
|
156
179
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,9 +30,14 @@ module TrinsicApi
|
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
|
+
# Returns attribute mapping this model knows about
|
34
|
+
def self.acceptable_attribute_map
|
35
|
+
attribute_map
|
36
|
+
end
|
37
|
+
|
33
38
|
# Returns all the JSON keys this model knows about
|
34
39
|
def self.acceptable_attributes
|
35
|
-
|
40
|
+
acceptable_attribute_map.values
|
36
41
|
end
|
37
42
|
|
38
43
|
# Attribute type mapping.
|
@@ -58,9 +63,10 @@ module TrinsicApi
|
|
58
63
|
end
|
59
64
|
|
60
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
61
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
-
if (!
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInformation`. Please check the name to make sure it's valid. List of attributes: " +
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInformation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
64
70
|
end
|
65
71
|
h[k.to_sym] = v
|
66
72
|
}
|
@@ -114,6 +120,36 @@ module TrinsicApi
|
|
114
120
|
true
|
115
121
|
end
|
116
122
|
|
123
|
+
# Custom attribute writer method with validation
|
124
|
+
# @param [Object] provider_id Value to be assigned
|
125
|
+
def provider_id=(provider_id)
|
126
|
+
if provider_id.nil?
|
127
|
+
fail ArgumentError, 'provider_id cannot be nil'
|
128
|
+
end
|
129
|
+
|
130
|
+
@provider_id = provider_id
|
131
|
+
end
|
132
|
+
|
133
|
+
# Custom attribute writer method with validation
|
134
|
+
# @param [Object] provider_display_name Value to be assigned
|
135
|
+
def provider_display_name=(provider_display_name)
|
136
|
+
if provider_display_name.nil?
|
137
|
+
fail ArgumentError, 'provider_display_name cannot be nil'
|
138
|
+
end
|
139
|
+
|
140
|
+
@provider_display_name = provider_display_name
|
141
|
+
end
|
142
|
+
|
143
|
+
# Custom attribute writer method with validation
|
144
|
+
# @param [Object] provider_logo Value to be assigned
|
145
|
+
def provider_logo=(provider_logo)
|
146
|
+
if provider_logo.nil?
|
147
|
+
fail ArgumentError, 'provider_logo cannot be nil'
|
148
|
+
end
|
149
|
+
|
150
|
+
@provider_logo = provider_logo
|
151
|
+
end
|
152
|
+
|
117
153
|
# Checks equality by comparing each attribute.
|
118
154
|
# @param [Object] Object to be compared
|
119
155
|
def ==(o)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,39 +15,57 @@ require 'time'
|
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
17
|
class ProviderInput
|
18
|
-
# Input for the `f-indonesia-nik`
|
18
|
+
# Input for the `f-indonesia-nik` provider
|
19
19
|
attr_accessor :indonesia_nik
|
20
20
|
|
21
|
-
# Input for the `f-mexico-curp`
|
21
|
+
# Input for the `f-mexico-curp` provider
|
22
22
|
attr_accessor :mexico_curp
|
23
23
|
|
24
|
-
# Input for the `f-south-africa-nid`
|
24
|
+
# Input for the `f-south-africa-nid` provider
|
25
25
|
attr_accessor :south_africa_nid
|
26
26
|
|
27
|
-
# Input for the `f-kenya-nid`
|
27
|
+
# Input for the `f-kenya-nid` provider
|
28
28
|
attr_accessor :kenya_nid
|
29
29
|
|
30
|
-
# Input for the `f-nigeria-nin`
|
30
|
+
# Input for the `f-nigeria-nin` provider
|
31
31
|
attr_accessor :nigeria_nin
|
32
32
|
|
33
|
-
# Input for the `f-india-aadhaar-match`
|
33
|
+
# Input for the `f-india-aadhaar-match` provider
|
34
34
|
attr_accessor :aadhaar
|
35
35
|
|
36
|
-
# Input for the `bangladesh-nid`
|
36
|
+
# Input for the `bangladesh-nid` provider
|
37
37
|
attr_accessor :bangladesh_national_id
|
38
38
|
|
39
|
-
# Input for the `g-brazil-cpf`
|
39
|
+
# Input for the `g-brazil-cpf` provider
|
40
40
|
attr_accessor :brazil_cpf_check
|
41
41
|
|
42
|
-
# Input for the `g-brazil-digital-cnh`
|
42
|
+
# Input for the `g-brazil-digital-cnh` provider
|
43
43
|
attr_accessor :brazil_digital_cnh
|
44
44
|
|
45
|
-
# Input for the `b-philsys-biometric`
|
45
|
+
# Input for the `b-philsys-biometric` provider
|
46
46
|
attr_accessor :philippine_match
|
47
47
|
|
48
|
-
# Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id`
|
48
|
+
# Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` providers
|
49
49
|
attr_accessor :philippine_qr
|
50
50
|
|
51
|
+
# Input for the `smart-id` provider
|
52
|
+
attr_accessor :smart_id
|
53
|
+
|
54
|
+
# Input for the `mobile-id` provider
|
55
|
+
attr_accessor :mobile_id
|
56
|
+
|
57
|
+
# Input for the `idin` provider
|
58
|
+
attr_accessor :idin
|
59
|
+
|
60
|
+
# Input for the `spid` provider
|
61
|
+
attr_accessor :spid
|
62
|
+
|
63
|
+
# *TEST MODE ONLY.* Input for the `trinsic-test-database-lookup` provider
|
64
|
+
attr_accessor :trinsic_test_database_lookup
|
65
|
+
|
66
|
+
# *TEST MODE ONLY.* Input for the `trinsic-test-sub-providers` provider
|
67
|
+
attr_accessor :trinsic_test_sub_providers
|
68
|
+
|
51
69
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
70
|
def self.attribute_map
|
53
71
|
{
|
@@ -61,13 +79,24 @@ module TrinsicApi
|
|
61
79
|
:'brazil_cpf_check' => :'brazilCpfCheck',
|
62
80
|
:'brazil_digital_cnh' => :'brazilDigitalCnh',
|
63
81
|
:'philippine_match' => :'philippineMatch',
|
64
|
-
:'philippine_qr' => :'philippineQR'
|
82
|
+
:'philippine_qr' => :'philippineQR',
|
83
|
+
:'smart_id' => :'smartId',
|
84
|
+
:'mobile_id' => :'mobileId',
|
85
|
+
:'idin' => :'idin',
|
86
|
+
:'spid' => :'spid',
|
87
|
+
:'trinsic_test_database_lookup' => :'trinsicTestDatabaseLookup',
|
88
|
+
:'trinsic_test_sub_providers' => :'trinsicTestSubProviders'
|
65
89
|
}
|
66
90
|
end
|
67
91
|
|
92
|
+
# Returns attribute mapping this model knows about
|
93
|
+
def self.acceptable_attribute_map
|
94
|
+
attribute_map
|
95
|
+
end
|
96
|
+
|
68
97
|
# Returns all the JSON keys this model knows about
|
69
98
|
def self.acceptable_attributes
|
70
|
-
|
99
|
+
acceptable_attribute_map.values
|
71
100
|
end
|
72
101
|
|
73
102
|
# Attribute type mapping.
|
@@ -83,7 +112,13 @@ module TrinsicApi
|
|
83
112
|
:'brazil_cpf_check' => :'BrazilCpfCheckInput',
|
84
113
|
:'brazil_digital_cnh' => :'BrazilDigitalCnhInput',
|
85
114
|
:'philippine_match' => :'PhilippineMatchInput',
|
86
|
-
:'philippine_qr' => :'PhilippineQRInput'
|
115
|
+
:'philippine_qr' => :'PhilippineQRInput',
|
116
|
+
:'smart_id' => :'SmartIdInput',
|
117
|
+
:'mobile_id' => :'MobileIdInput',
|
118
|
+
:'idin' => :'IdinInput',
|
119
|
+
:'spid' => :'SpidInput',
|
120
|
+
:'trinsic_test_database_lookup' => :'TrinsicTestDatabaseLookupInput',
|
121
|
+
:'trinsic_test_sub_providers' => :'TrinsicTestSubProvidersInput'
|
87
122
|
}
|
88
123
|
end
|
89
124
|
|
@@ -100,7 +135,13 @@ module TrinsicApi
|
|
100
135
|
:'brazil_cpf_check',
|
101
136
|
:'brazil_digital_cnh',
|
102
137
|
:'philippine_match',
|
103
|
-
:'philippine_qr'
|
138
|
+
:'philippine_qr',
|
139
|
+
:'smart_id',
|
140
|
+
:'mobile_id',
|
141
|
+
:'idin',
|
142
|
+
:'spid',
|
143
|
+
:'trinsic_test_database_lookup',
|
144
|
+
:'trinsic_test_sub_providers'
|
104
145
|
])
|
105
146
|
end
|
106
147
|
|
@@ -112,9 +153,10 @@ module TrinsicApi
|
|
112
153
|
end
|
113
154
|
|
114
155
|
# check to see if the attribute exists and convert string to symbol for hash key
|
156
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
115
157
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
116
|
-
if (!
|
117
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInput`. Please check the name to make sure it's valid. List of attributes: " +
|
158
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
159
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ProviderInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
118
160
|
end
|
119
161
|
h[k.to_sym] = v
|
120
162
|
}
|
@@ -162,6 +204,30 @@ module TrinsicApi
|
|
162
204
|
if attributes.key?(:'philippine_qr')
|
163
205
|
self.philippine_qr = attributes[:'philippine_qr']
|
164
206
|
end
|
207
|
+
|
208
|
+
if attributes.key?(:'smart_id')
|
209
|
+
self.smart_id = attributes[:'smart_id']
|
210
|
+
end
|
211
|
+
|
212
|
+
if attributes.key?(:'mobile_id')
|
213
|
+
self.mobile_id = attributes[:'mobile_id']
|
214
|
+
end
|
215
|
+
|
216
|
+
if attributes.key?(:'idin')
|
217
|
+
self.idin = attributes[:'idin']
|
218
|
+
end
|
219
|
+
|
220
|
+
if attributes.key?(:'spid')
|
221
|
+
self.spid = attributes[:'spid']
|
222
|
+
end
|
223
|
+
|
224
|
+
if attributes.key?(:'trinsic_test_database_lookup')
|
225
|
+
self.trinsic_test_database_lookup = attributes[:'trinsic_test_database_lookup']
|
226
|
+
end
|
227
|
+
|
228
|
+
if attributes.key?(:'trinsic_test_sub_providers')
|
229
|
+
self.trinsic_test_sub_providers = attributes[:'trinsic_test_sub_providers']
|
230
|
+
end
|
165
231
|
end
|
166
232
|
|
167
233
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -194,7 +260,13 @@ module TrinsicApi
|
|
194
260
|
brazil_cpf_check == o.brazil_cpf_check &&
|
195
261
|
brazil_digital_cnh == o.brazil_digital_cnh &&
|
196
262
|
philippine_match == o.philippine_match &&
|
197
|
-
philippine_qr == o.philippine_qr
|
263
|
+
philippine_qr == o.philippine_qr &&
|
264
|
+
smart_id == o.smart_id &&
|
265
|
+
mobile_id == o.mobile_id &&
|
266
|
+
idin == o.idin &&
|
267
|
+
spid == o.spid &&
|
268
|
+
trinsic_test_database_lookup == o.trinsic_test_database_lookup &&
|
269
|
+
trinsic_test_sub_providers == o.trinsic_test_sub_providers
|
198
270
|
end
|
199
271
|
|
200
272
|
# @see the `==` method
|
@@ -206,7 +278,7 @@ module TrinsicApi
|
|
206
278
|
# Calculates hash code according to all attributes.
|
207
279
|
# @return [Integer] Hash code
|
208
280
|
def hash
|
209
|
-
[indonesia_nik, mexico_curp, south_africa_nid, kenya_nid, nigeria_nin, aadhaar, bangladesh_national_id, brazil_cpf_check, brazil_digital_cnh, philippine_match, philippine_qr].hash
|
281
|
+
[indonesia_nik, mexico_curp, south_africa_nid, kenya_nid, nigeria_nin, aadhaar, bangladesh_national_id, brazil_cpf_check, brazil_digital_cnh, philippine_match, philippine_qr, smart_id, mobile_id, idin, spid, trinsic_test_database_lookup, trinsic_test_sub_providers].hash
|
210
282
|
end
|
211
283
|
|
212
284
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,56 +15,37 @@ require 'time'
|
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
17
|
class RecommendRequest
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# A list of countries, in alpha-2 ISO 3166 format, you wish to specify for the recommendation, this can include the user's country of residence, nationality, etc.
|
22
|
-
attr_accessor :countries
|
23
|
-
|
24
|
-
# If one of the countries has subdivisions, for example the US states, you can specify a list of these to further refine the recommendation (e.g., CA, UT, NY)
|
25
|
-
attr_accessor :subdivisions
|
26
|
-
|
27
|
-
# Provide the IP addresses of the user you wish to generate a recommendation for. Will be used to look up the user's geographic location.
|
28
|
-
attr_accessor :ip_addresses
|
29
|
-
|
30
|
-
# If true, the recommendation will include providers that are disabled for the app
|
31
|
-
attr_accessor :include_disabled_providers
|
18
|
+
# Information about the user you wish to generate a recommendation for.
|
19
|
+
attr_accessor :recommendation_info
|
32
20
|
|
33
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
22
|
def self.attribute_map
|
35
23
|
{
|
36
|
-
:'
|
37
|
-
:'countries' => :'countries',
|
38
|
-
:'subdivisions' => :'subdivisions',
|
39
|
-
:'ip_addresses' => :'ipAddresses',
|
40
|
-
:'include_disabled_providers' => :'includeDisabledProviders'
|
24
|
+
:'recommendation_info' => :'recommendationInfo'
|
41
25
|
}
|
42
26
|
end
|
43
27
|
|
28
|
+
# Returns attribute mapping this model knows about
|
29
|
+
def self.acceptable_attribute_map
|
30
|
+
attribute_map
|
31
|
+
end
|
32
|
+
|
44
33
|
# Returns all the JSON keys this model knows about
|
45
34
|
def self.acceptable_attributes
|
46
|
-
|
35
|
+
acceptable_attribute_map.values
|
47
36
|
end
|
48
37
|
|
49
38
|
# Attribute type mapping.
|
50
39
|
def self.openapi_types
|
51
40
|
{
|
52
|
-
:'
|
53
|
-
:'countries' => :'Array<String>',
|
54
|
-
:'subdivisions' => :'Array<String>',
|
55
|
-
:'ip_addresses' => :'Array<String>',
|
56
|
-
:'include_disabled_providers' => :'Boolean'
|
41
|
+
:'recommendation_info' => :'RecommendationInfo'
|
57
42
|
}
|
58
43
|
end
|
59
44
|
|
60
45
|
# List of attributes with nullable: true
|
61
46
|
def self.openapi_nullable
|
62
47
|
Set.new([
|
63
|
-
:'
|
64
|
-
:'countries',
|
65
|
-
:'subdivisions',
|
66
|
-
:'ip_addresses',
|
67
|
-
:'include_disabled_providers'
|
48
|
+
:'recommendation_info'
|
68
49
|
])
|
69
50
|
end
|
70
51
|
|
@@ -76,37 +57,16 @@ module TrinsicApi
|
|
76
57
|
end
|
77
58
|
|
78
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
79
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
-
if (!
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::RecommendRequest`. Please check the name to make sure it's valid. List of attributes: " +
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::RecommendRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
82
64
|
end
|
83
65
|
h[k.to_sym] = v
|
84
66
|
}
|
85
67
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes.key?(:'countries')
|
91
|
-
if (value = attributes[:'countries']).is_a?(Array)
|
92
|
-
self.countries = value
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.key?(:'subdivisions')
|
97
|
-
if (value = attributes[:'subdivisions']).is_a?(Array)
|
98
|
-
self.subdivisions = value
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes.key?(:'ip_addresses')
|
103
|
-
if (value = attributes[:'ip_addresses']).is_a?(Array)
|
104
|
-
self.ip_addresses = value
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.key?(:'include_disabled_providers')
|
109
|
-
self.include_disabled_providers = attributes[:'include_disabled_providers']
|
68
|
+
if attributes.key?(:'recommendation_info')
|
69
|
+
self.recommendation_info = attributes[:'recommendation_info']
|
110
70
|
end
|
111
71
|
end
|
112
72
|
|
@@ -130,11 +90,7 @@ module TrinsicApi
|
|
130
90
|
def ==(o)
|
131
91
|
return true if self.equal?(o)
|
132
92
|
self.class == o.class &&
|
133
|
-
|
134
|
-
countries == o.countries &&
|
135
|
-
subdivisions == o.subdivisions &&
|
136
|
-
ip_addresses == o.ip_addresses &&
|
137
|
-
include_disabled_providers == o.include_disabled_providers
|
93
|
+
recommendation_info == o.recommendation_info
|
138
94
|
end
|
139
95
|
|
140
96
|
# @see the `==` method
|
@@ -146,7 +102,7 @@ module TrinsicApi
|
|
146
102
|
# Calculates hash code according to all attributes.
|
147
103
|
# @return [Integer] Hash code
|
148
104
|
def hash
|
149
|
-
[
|
105
|
+
[recommendation_info].hash
|
150
106
|
end
|
151
107
|
|
152
108
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.13.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,9 +33,14 @@ module TrinsicApi
|
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
36
|
+
# Returns attribute mapping this model knows about
|
37
|
+
def self.acceptable_attribute_map
|
38
|
+
attribute_map
|
39
|
+
end
|
40
|
+
|
36
41
|
# Returns all the JSON keys this model knows about
|
37
42
|
def self.acceptable_attributes
|
38
|
-
|
43
|
+
acceptable_attribute_map.values
|
39
44
|
end
|
40
45
|
|
41
46
|
# Attribute type mapping.
|
@@ -61,9 +66,10 @@ module TrinsicApi
|
|
61
66
|
end
|
62
67
|
|
63
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
64
70
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
-
if (!
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::RecommendResponse`. Please check the name to make sure it's valid. List of attributes: " +
|
71
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::RecommendResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
67
73
|
end
|
68
74
|
h[k.to_sym] = v
|
69
75
|
}
|
@@ -123,6 +129,36 @@ module TrinsicApi
|
|
123
129
|
true
|
124
130
|
end
|
125
131
|
|
132
|
+
# Custom attribute writer method with validation
|
133
|
+
# @param [Object] recognized Value to be assigned
|
134
|
+
def recognized=(recognized)
|
135
|
+
if recognized.nil?
|
136
|
+
fail ArgumentError, 'recognized cannot be nil'
|
137
|
+
end
|
138
|
+
|
139
|
+
@recognized = recognized
|
140
|
+
end
|
141
|
+
|
142
|
+
# Custom attribute writer method with validation
|
143
|
+
# @param [Object] relevant Value to be assigned
|
144
|
+
def relevant=(relevant)
|
145
|
+
if relevant.nil?
|
146
|
+
fail ArgumentError, 'relevant cannot be nil'
|
147
|
+
end
|
148
|
+
|
149
|
+
@relevant = relevant
|
150
|
+
end
|
151
|
+
|
152
|
+
# Custom attribute writer method with validation
|
153
|
+
# @param [Object] remainder Value to be assigned
|
154
|
+
def remainder=(remainder)
|
155
|
+
if remainder.nil?
|
156
|
+
fail ArgumentError, 'remainder cannot be nil'
|
157
|
+
end
|
158
|
+
|
159
|
+
@remainder = remainder
|
160
|
+
end
|
161
|
+
|
126
162
|
# Checks equality by comparing each attribute.
|
127
163
|
# @param [Object] Object to be compared
|
128
164
|
def ==(o)
|