trinsic_api 1.2.0 → 2.0.0.pre.alpha3
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/AadhaarInput.md +20 -0
- data/docs/Address.md +3 -3
- data/docs/AttachmentAccessKeys.md +7 -5
- data/docs/BangladeshNationalIdInput.md +24 -0
- data/docs/BrazilCpfCheckInput.md +18 -0
- data/docs/BrazilDigitalCnhInput.md +24 -0
- data/docs/CreateAdvancedProviderSessionRequest.md +26 -0
- data/docs/CreateAdvancedProviderSessionResponse.md +22 -0
- data/docs/CreateHostedProviderSessionRequest.md +22 -0
- data/docs/CreateHostedProviderSessionResponse.md +20 -0
- data/docs/CreateWidgetSessionRequest.md +22 -0
- data/docs/{CreateSessionResponse.md → CreateWidgetSessionResponse.md} +5 -5
- data/docs/DocumentData.md +3 -3
- data/docs/DocumentScanAttachments.md +18 -0
- data/docs/{SessionState.md → DocumentType.md} +2 -2
- data/docs/HttpValidationProblemDetails.md +28 -0
- data/docs/IdentityData.md +4 -4
- data/docs/IndonesiaNikInput.md +22 -0
- data/docs/{FailureMessage.md → IntegrationCapability.md} +2 -5
- data/docs/IntegrationLaunchMethod.md +15 -0
- data/docs/IntegrationStep.md +22 -0
- data/docs/KenyaNidInput.md +28 -0
- data/docs/KnownAddress.md +3 -1
- data/docs/KnownPersonData.md +4 -0
- data/docs/MexicoCurpInput.md +18 -0
- data/docs/NetworkApi.md +2 -72
- data/docs/NigeriaNinInput.md +30 -0
- data/docs/PersonData.md +14 -12
- data/docs/PhilippineMatchInput.md +26 -0
- data/docs/PhilippineQRInput.md +20 -0
- data/docs/ProblemDetails.md +26 -0
- data/docs/ProviderAttachments.md +18 -0
- data/docs/ProviderInfo.md +3 -1
- data/docs/ProviderInput.md +38 -0
- data/docs/RecommendRequest.md +7 -3
- data/docs/RefreshStepContentRequest.md +18 -0
- data/docs/RefreshStepContentResponse.md +18 -0
- data/docs/ResultCollection.md +20 -0
- data/docs/ResultCollectionMethod.md +15 -0
- data/docs/Session.md +6 -8
- data/docs/{VerificationFailCode.md → SessionErrorCode.md} +2 -2
- data/docs/SessionsApi.md +236 -18
- data/docs/{SessionFailCode.md → Sex.md} +2 -2
- data/docs/SouthAfricaNidInput.md +24 -0
- data/docs/StepRefreshInfo.md +22 -0
- data/lib/trinsic_api/api/attachments_api.rb +1 -1
- data/lib/trinsic_api/api/network_api.rb +3 -66
- data/lib/trinsic_api/api/sessions_api.rb +217 -19
- data/lib/trinsic_api/api_client.rb +1 -1
- data/lib/trinsic_api/api_error.rb +1 -1
- data/lib/trinsic_api/configuration.rb +1 -1
- data/lib/trinsic_api/models/{validation_result.rb → aadhaar_input.rb} +21 -26
- data/lib/trinsic_api/models/address.rb +16 -10
- data/lib/trinsic_api/models/attachment_access_keys.rb +25 -10
- data/lib/trinsic_api/models/bangladesh_national_id_input.rb +249 -0
- data/lib/trinsic_api/models/brazil_cpf_check_input.rb +261 -0
- data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +294 -0
- data/lib/trinsic_api/models/cancel_session_response.rb +1 -1
- data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +312 -0
- data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +256 -0
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +288 -0
- data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +233 -0
- data/lib/trinsic_api/models/create_widget_session_request.rb +240 -0
- data/lib/trinsic_api/models/{create_session_response.rb → create_widget_session_response.rb} +18 -17
- data/lib/trinsic_api/models/document_data.rb +32 -4
- data/lib/trinsic_api/models/{failure_message.rb → document_scan_attachments.rb} +12 -18
- data/lib/trinsic_api/models/{session_state.rb → document_type.rb} +9 -11
- data/lib/trinsic_api/models/get_attachment_request.rb +1 -1
- data/lib/trinsic_api/models/get_attachment_response.rb +1 -1
- data/lib/trinsic_api/models/get_session_response.rb +1 -1
- data/lib/trinsic_api/models/get_session_result_request.rb +1 -1
- data/lib/trinsic_api/models/get_session_result_response.rb +2 -1
- data/lib/trinsic_api/models/http_validation_problem_details.rb +273 -0
- data/lib/trinsic_api/models/identity_data.rb +5 -5
- data/lib/trinsic_api/models/{disclosed_fields_request.rb → indonesia_nik_input.rb} +94 -93
- data/lib/trinsic_api/models/integration_capability.rb +44 -0
- data/lib/trinsic_api/models/integration_launch_method.rb +42 -0
- data/lib/trinsic_api/models/integration_step.rb +275 -0
- data/lib/trinsic_api/models/kenya_nid_input.rb +397 -0
- data/lib/trinsic_api/models/known_address.rb +20 -2
- data/lib/trinsic_api/models/known_identity_data.rb +2 -1
- data/lib/trinsic_api/models/known_person_data.rb +30 -2
- data/lib/trinsic_api/models/list_providers_response.rb +1 -1
- data/lib/trinsic_api/models/list_sessions_response.rb +1 -1
- data/lib/trinsic_api/models/mexico_curp_input.rb +250 -0
- data/lib/trinsic_api/models/nigeria_nin_input.rb +383 -0
- data/lib/trinsic_api/models/order_direction.rb +1 -1
- data/lib/trinsic_api/models/person_data.rb +50 -15
- data/lib/trinsic_api/models/philippine_match_input.rb +260 -0
- data/lib/trinsic_api/models/philippine_qr_input.rb +227 -0
- data/lib/trinsic_api/models/problem_details.rb +255 -0
- data/lib/trinsic_api/models/provider_attachments.rb +215 -0
- data/lib/trinsic_api/models/provider_info.rb +18 -5
- data/lib/trinsic_api/models/provider_information.rb +1 -1
- data/lib/trinsic_api/models/{create_session_request.rb → provider_input.rb} +111 -42
- data/lib/trinsic_api/models/recommend_request.rb +38 -18
- data/lib/trinsic_api/models/recommend_response.rb +1 -1
- data/lib/trinsic_api/models/refresh_step_content_request.rb +216 -0
- data/lib/trinsic_api/models/{identity_lookup_response.rb → refresh_step_content_response.rb} +16 -16
- data/lib/trinsic_api/models/{verification.rb → result_collection.rb} +27 -20
- data/lib/trinsic_api/models/result_collection_method.rb +40 -0
- data/lib/trinsic_api/models/session.rb +32 -48
- data/lib/trinsic_api/models/session_error_code.rb +48 -0
- data/lib/trinsic_api/models/session_ordering.rb +1 -1
- data/lib/trinsic_api/models/sex.rb +42 -0
- data/lib/trinsic_api/models/{disclosed_fields.rb → south_africa_nid_input.rb} +107 -154
- data/lib/trinsic_api/models/step_refresh_info.rb +256 -0
- data/lib/trinsic_api/version.rb +2 -2
- data/lib/trinsic_api.rb +34 -12
- data/spec/api/attachments_api_spec.rb +1 -1
- data/spec/api/network_api_spec.rb +2 -14
- data/spec/api/sessions_api_spec.rb +44 -7
- data/spec/models/{verification_spec.rb → aadhaar_input_spec.rb} +9 -9
- data/spec/models/address_spec.rb +2 -2
- data/spec/models/attachment_access_keys_spec.rb +7 -1
- data/spec/models/bangladesh_national_id_input_spec.rb +54 -0
- data/spec/models/{identity_lookup_response_spec.rb → brazil_cpf_check_input_spec.rb} +8 -8
- data/spec/models/brazil_digital_cnh_input_spec.rb +54 -0
- data/spec/models/cancel_session_response_spec.rb +1 -1
- data/spec/models/create_advanced_provider_session_request_spec.rb +60 -0
- data/spec/models/create_advanced_provider_session_response_spec.rb +48 -0
- data/spec/models/create_hosted_provider_session_request_spec.rb +48 -0
- data/spec/models/create_hosted_provider_session_response_spec.rb +42 -0
- data/spec/models/create_widget_session_request_spec.rb +48 -0
- data/spec/models/{create_session_response_spec.rb → create_widget_session_response_spec.rb} +8 -8
- data/spec/models/document_data_spec.rb +1 -1
- data/spec/models/document_scan_attachments_spec.rb +36 -0
- data/spec/models/{session_state_spec.rb → document_type_spec.rb} +7 -7
- 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 +66 -0
- data/spec/models/identity_data_spec.rb +1 -1
- data/spec/models/indonesia_nik_input_spec.rb +48 -0
- data/spec/models/integration_capability_spec.rb +30 -0
- data/spec/models/integration_launch_method_spec.rb +30 -0
- data/spec/models/integration_step_spec.rb +48 -0
- data/spec/models/kenya_nid_input_spec.rb +66 -0
- data/spec/models/known_address_spec.rb +7 -1
- data/spec/models/known_identity_data_spec.rb +1 -1
- data/spec/models/known_person_data_spec.rb +13 -1
- data/spec/models/list_providers_response_spec.rb +1 -1
- data/spec/models/list_sessions_response_spec.rb +1 -1
- data/spec/models/{failure_message_spec.rb → mexico_curp_input_spec.rb} +8 -8
- data/spec/models/nigeria_nin_input_spec.rb +72 -0
- data/spec/models/order_direction_spec.rb +1 -1
- data/spec/models/person_data_spec.rb +8 -2
- data/spec/models/{create_session_request_spec.rb → philippine_match_input_spec.rb} +12 -12
- data/spec/models/philippine_qr_input_spec.rb +42 -0
- data/spec/models/problem_details_spec.rb +60 -0
- data/spec/models/provider_attachments_spec.rb +36 -0
- data/spec/models/provider_info_spec.rb +7 -1
- data/spec/models/provider_information_spec.rb +1 -1
- data/spec/models/{disclosed_fields_spec.rb → provider_input_spec.rb} +18 -24
- data/spec/models/recommend_request_spec.rb +14 -2
- data/spec/models/recommend_response_spec.rb +1 -1
- data/spec/models/refresh_step_content_request_spec.rb +36 -0
- data/spec/models/refresh_step_content_response_spec.rb +36 -0
- data/spec/models/result_collection_method_spec.rb +30 -0
- data/spec/models/{validation_result_spec.rb → result_collection_spec.rb} +9 -9
- data/spec/models/{verification_fail_code_spec.rb → session_error_code_spec.rb} +7 -7
- data/spec/models/session_ordering_spec.rb +1 -1
- data/spec/models/session_spec.rb +4 -10
- data/spec/models/{session_fail_code_spec.rb → sex_spec.rb} +7 -7
- data/spec/models/south_africa_nid_input_spec.rb +54 -0
- data/spec/models/step_refresh_info_spec.rb +48 -0
- data/spec/spec_helper.rb +1 -1
- data/trinsic_api.gemspec +1 -1
- metadata +154 -66
- data/docs/CreateSessionRequest.md +0 -26
- data/docs/DisclosedFields.md +0 -40
- data/docs/DisclosedFieldsRequest.md +0 -40
- data/docs/IdentityLookupResponse.md +0 -18
- data/docs/ValidationResult.md +0 -20
- data/docs/Verification.md +0 -20
- data/lib/trinsic_api/models/session_fail_code.rb +0 -45
- data/lib/trinsic_api/models/verification_fail_code.rb +0 -44
- data/spec/models/disclosed_fields_request_spec.rb +0 -102
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trinsic API
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
@@ -14,13 +14,12 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
attr_accessor :provider
|
17
|
+
class ResultCollection
|
18
|
+
# The method by which the results of the Acceptance Session should be collected.
|
19
|
+
attr_accessor :method
|
21
20
|
|
22
|
-
# If the
|
23
|
-
attr_accessor :
|
21
|
+
# If the method is `PollResult`, this is the key that should be used to poll for the results.
|
22
|
+
attr_accessor :results_access_key
|
24
23
|
|
25
24
|
class EnumAttributeValidator
|
26
25
|
attr_reader :datatype
|
@@ -47,8 +46,8 @@ module TrinsicApi
|
|
47
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
47
|
def self.attribute_map
|
49
48
|
{
|
50
|
-
:'
|
51
|
-
:'
|
49
|
+
:'method' => :'method',
|
50
|
+
:'results_access_key' => :'resultsAccessKey'
|
52
51
|
}
|
53
52
|
end
|
54
53
|
|
@@ -60,14 +59,15 @@ module TrinsicApi
|
|
60
59
|
# Attribute type mapping.
|
61
60
|
def self.openapi_types
|
62
61
|
{
|
63
|
-
:'
|
64
|
-
:'
|
62
|
+
:'method' => :'ResultCollectionMethod',
|
63
|
+
:'results_access_key' => :'String'
|
65
64
|
}
|
66
65
|
end
|
67
66
|
|
68
67
|
# List of attributes with nullable: true
|
69
68
|
def self.openapi_nullable
|
70
69
|
Set.new([
|
70
|
+
:'results_access_key'
|
71
71
|
])
|
72
72
|
end
|
73
73
|
|
@@ -75,23 +75,25 @@ module TrinsicApi
|
|
75
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
76
76
|
def initialize(attributes = {})
|
77
77
|
if (!attributes.is_a?(Hash))
|
78
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::ResultCollection` initialize method"
|
79
79
|
end
|
80
80
|
|
81
81
|
# check to see if the attribute exists and convert string to symbol for hash key
|
82
82
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
83
83
|
if (!self.class.attribute_map.key?(k.to_sym))
|
84
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ResultCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
85
85
|
end
|
86
86
|
h[k.to_sym] = v
|
87
87
|
}
|
88
88
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
89
|
+
if attributes.key?(:'method')
|
90
|
+
self.method = attributes[:'method']
|
91
|
+
else
|
92
|
+
self.method = nil
|
91
93
|
end
|
92
94
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
95
|
+
if attributes.key?(:'results_access_key')
|
96
|
+
self.results_access_key = attributes[:'results_access_key']
|
95
97
|
end
|
96
98
|
end
|
97
99
|
|
@@ -100,6 +102,10 @@ module TrinsicApi
|
|
100
102
|
def list_invalid_properties
|
101
103
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
102
104
|
invalid_properties = Array.new
|
105
|
+
if @method.nil?
|
106
|
+
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
107
|
+
end
|
108
|
+
|
103
109
|
invalid_properties
|
104
110
|
end
|
105
111
|
|
@@ -107,6 +113,7 @@ module TrinsicApi
|
|
107
113
|
# @return true if the model is valid
|
108
114
|
def valid?
|
109
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
116
|
+
return false if @method.nil?
|
110
117
|
true
|
111
118
|
end
|
112
119
|
|
@@ -115,8 +122,8 @@ module TrinsicApi
|
|
115
122
|
def ==(o)
|
116
123
|
return true if self.equal?(o)
|
117
124
|
self.class == o.class &&
|
118
|
-
|
119
|
-
|
125
|
+
method == o.method &&
|
126
|
+
results_access_key == o.results_access_key
|
120
127
|
end
|
121
128
|
|
122
129
|
# @see the `==` method
|
@@ -128,7 +135,7 @@ module TrinsicApi
|
|
128
135
|
# Calculates hash code according to all attributes.
|
129
136
|
# @return [Integer] Hash code
|
130
137
|
def hash
|
131
|
-
[
|
138
|
+
[method, results_access_key].hash
|
132
139
|
end
|
133
140
|
|
134
141
|
# Builds the object from hash
|
@@ -0,0 +1,40 @@
|
|
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.8.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TrinsicApi
|
17
|
+
class ResultCollectionMethod
|
18
|
+
POLL_RESULT = "PollResult".freeze
|
19
|
+
CAPTURE_REDIRECT = "CaptureRedirect".freeze
|
20
|
+
|
21
|
+
def self.all_vars
|
22
|
+
@all_vars ||= [POLL_RESULT, CAPTURE_REDIRECT].freeze
|
23
|
+
end
|
24
|
+
|
25
|
+
# Builds the enum from string
|
26
|
+
# @param [String] The enum value in the form of the string
|
27
|
+
# @return [String] The enum value
|
28
|
+
def self.build_from_hash(value)
|
29
|
+
new.build_from_hash(value)
|
30
|
+
end
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [String] The enum value in the form of the string
|
34
|
+
# @return [String] The enum value
|
35
|
+
def build_from_hash(value)
|
36
|
+
return value if ResultCollectionMethod.all_vars.include?(value)
|
37
|
+
raise "Invalid ENUM value #{value} for class #ResultCollectionMethod"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trinsic API
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
@@ -17,17 +17,14 @@ module TrinsicApi
|
|
17
17
|
class Session
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
20
|
+
# Whether the Session is in a terminal / final state. If this is `true`, inspect the value of `Success` to determine whether the Session was successful.
|
21
|
+
attr_accessor :done
|
22
22
|
|
23
|
-
# If the
|
24
|
-
attr_accessor :
|
23
|
+
# Whether the Session has completed successfully. If this is `false`, the Session is either not yet done, or has failed. Inspect `Done` and `ErrorCode` for more information. If this is `true`, the Session has completed successfully.
|
24
|
+
attr_accessor :success
|
25
25
|
|
26
|
-
# The
|
27
|
-
attr_accessor :
|
28
|
-
|
29
|
-
# The fields that were requested to be disclosed when the Session was created
|
30
|
-
attr_accessor :disclosed_fields
|
26
|
+
# The reason for the Session's failure. Only present if `Success` is `false`.
|
27
|
+
attr_accessor :error_code
|
31
28
|
|
32
29
|
# The unix timestamp, in seconds, when this session was created
|
33
30
|
attr_accessor :created
|
@@ -61,10 +58,9 @@ module TrinsicApi
|
|
61
58
|
def self.attribute_map
|
62
59
|
{
|
63
60
|
:'id' => :'id',
|
64
|
-
:'
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'disclosed_fields' => :'disclosedFields',
|
61
|
+
:'done' => :'done',
|
62
|
+
:'success' => :'success',
|
63
|
+
:'error_code' => :'errorCode',
|
68
64
|
:'created' => :'created',
|
69
65
|
:'updated' => :'updated'
|
70
66
|
}
|
@@ -79,10 +75,9 @@ module TrinsicApi
|
|
79
75
|
def self.openapi_types
|
80
76
|
{
|
81
77
|
:'id' => :'String',
|
82
|
-
:'
|
83
|
-
:'
|
84
|
-
:'
|
85
|
-
:'disclosed_fields' => :'DisclosedFields',
|
78
|
+
:'done' => :'Boolean',
|
79
|
+
:'success' => :'Boolean',
|
80
|
+
:'error_code' => :'SessionErrorCode',
|
86
81
|
:'created' => :'Integer',
|
87
82
|
:'updated' => :'Integer'
|
88
83
|
}
|
@@ -91,6 +86,7 @@ module TrinsicApi
|
|
91
86
|
# List of attributes with nullable: true
|
92
87
|
def self.openapi_nullable
|
93
88
|
Set.new([
|
89
|
+
:'error_code',
|
94
90
|
])
|
95
91
|
end
|
96
92
|
|
@@ -115,26 +111,20 @@ module TrinsicApi
|
|
115
111
|
self.id = nil
|
116
112
|
end
|
117
113
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
self.
|
114
|
+
if attributes.key?(:'done')
|
115
|
+
self.done = attributes[:'done']
|
120
116
|
else
|
121
|
-
self.
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'fail_code')
|
125
|
-
self.fail_code = attributes[:'fail_code']
|
117
|
+
self.done = nil
|
126
118
|
end
|
127
119
|
|
128
|
-
if attributes.key?(:'
|
129
|
-
self.
|
120
|
+
if attributes.key?(:'success')
|
121
|
+
self.success = attributes[:'success']
|
130
122
|
else
|
131
|
-
self.
|
123
|
+
self.success = nil
|
132
124
|
end
|
133
125
|
|
134
|
-
if attributes.key?(:'
|
135
|
-
self.
|
136
|
-
else
|
137
|
-
self.disclosed_fields = nil
|
126
|
+
if attributes.key?(:'error_code')
|
127
|
+
self.error_code = attributes[:'error_code']
|
138
128
|
end
|
139
129
|
|
140
130
|
if attributes.key?(:'created')
|
@@ -159,16 +149,12 @@ module TrinsicApi
|
|
159
149
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
160
150
|
end
|
161
151
|
|
162
|
-
if @
|
163
|
-
invalid_properties.push('invalid value for "
|
164
|
-
end
|
165
|
-
|
166
|
-
if @verification.nil?
|
167
|
-
invalid_properties.push('invalid value for "verification", verification cannot be nil.')
|
152
|
+
if @done.nil?
|
153
|
+
invalid_properties.push('invalid value for "done", done cannot be nil.')
|
168
154
|
end
|
169
155
|
|
170
|
-
if @
|
171
|
-
invalid_properties.push('invalid value for "
|
156
|
+
if @success.nil?
|
157
|
+
invalid_properties.push('invalid value for "success", success cannot be nil.')
|
172
158
|
end
|
173
159
|
|
174
160
|
if @created.nil?
|
@@ -187,9 +173,8 @@ module TrinsicApi
|
|
187
173
|
def valid?
|
188
174
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
189
175
|
return false if @id.nil?
|
190
|
-
return false if @
|
191
|
-
return false if @
|
192
|
-
return false if @disclosed_fields.nil?
|
176
|
+
return false if @done.nil?
|
177
|
+
return false if @success.nil?
|
193
178
|
return false if @created.nil?
|
194
179
|
return false if @updated.nil?
|
195
180
|
true
|
@@ -201,10 +186,9 @@ module TrinsicApi
|
|
201
186
|
return true if self.equal?(o)
|
202
187
|
self.class == o.class &&
|
203
188
|
id == o.id &&
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
disclosed_fields == o.disclosed_fields &&
|
189
|
+
done == o.done &&
|
190
|
+
success == o.success &&
|
191
|
+
error_code == o.error_code &&
|
208
192
|
created == o.created &&
|
209
193
|
updated == o.updated
|
210
194
|
end
|
@@ -218,7 +202,7 @@ module TrinsicApi
|
|
218
202
|
# Calculates hash code according to all attributes.
|
219
203
|
# @return [Integer] Hash code
|
220
204
|
def hash
|
221
|
-
[id,
|
205
|
+
[id, done, success, error_code, created, updated].hash
|
222
206
|
end
|
223
207
|
|
224
208
|
# Builds the object from hash
|
@@ -0,0 +1,48 @@
|
|
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.8.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TrinsicApi
|
17
|
+
class SessionErrorCode
|
18
|
+
INTERNAL = "Internal".freeze
|
19
|
+
OTHER = "Other".freeze
|
20
|
+
CANCELED = "Canceled".freeze
|
21
|
+
USER_ABANDONED = "UserAbandoned".freeze
|
22
|
+
USER_TIMED_OUT = "UserTimedOut".freeze
|
23
|
+
EXPIRED = "Expired".freeze
|
24
|
+
INVALID_IMAGE = "InvalidImage".freeze
|
25
|
+
INAUTHENTIC = "Inauthentic".freeze
|
26
|
+
UNSUPPORTED_DOCUMENT = "UnsupportedDocument".freeze
|
27
|
+
ASSURANCE_LEVEL_NOT_MET = "AssuranceLevelNotMet".freeze
|
28
|
+
|
29
|
+
def self.all_vars
|
30
|
+
@all_vars ||= [INTERNAL, OTHER, CANCELED, USER_ABANDONED, USER_TIMED_OUT, EXPIRED, INVALID_IMAGE, INAUTHENTIC, UNSUPPORTED_DOCUMENT, ASSURANCE_LEVEL_NOT_MET].freeze
|
31
|
+
end
|
32
|
+
|
33
|
+
# Builds the enum from string
|
34
|
+
# @param [String] The enum value in the form of the string
|
35
|
+
# @return [String] The enum value
|
36
|
+
def self.build_from_hash(value)
|
37
|
+
new.build_from_hash(value)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Builds the enum from string
|
41
|
+
# @param [String] The enum value in the form of the string
|
42
|
+
# @return [String] The enum value
|
43
|
+
def build_from_hash(value)
|
44
|
+
return value if SessionErrorCode.all_vars.include?(value)
|
45
|
+
raise "Invalid ENUM value #{value} for class #SessionErrorCode"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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.8.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TrinsicApi
|
17
|
+
class Sex
|
18
|
+
UNKNOWN = "Unknown".freeze
|
19
|
+
NOT_APPLICABLE = "NotApplicable".freeze
|
20
|
+
MALE = "Male".freeze
|
21
|
+
FEMALE = "Female".freeze
|
22
|
+
|
23
|
+
def self.all_vars
|
24
|
+
@all_vars ||= [UNKNOWN, NOT_APPLICABLE, MALE, FEMALE].freeze
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def self.build_from_hash(value)
|
31
|
+
new.build_from_hash(value)
|
32
|
+
end
|
33
|
+
|
34
|
+
# Builds the enum from string
|
35
|
+
# @param [String] The enum value in the form of the string
|
36
|
+
# @return [String] The enum value
|
37
|
+
def build_from_hash(value)
|
38
|
+
return value if Sex.all_vars.include?(value)
|
39
|
+
raise "Invalid ENUM value #{value} for class #Sex"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|