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.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AadhaarInput.md +20 -0
  3. data/docs/Address.md +3 -3
  4. data/docs/AttachmentAccessKeys.md +7 -5
  5. data/docs/BangladeshNationalIdInput.md +24 -0
  6. data/docs/BrazilCpfCheckInput.md +18 -0
  7. data/docs/BrazilDigitalCnhInput.md +24 -0
  8. data/docs/CreateAdvancedProviderSessionRequest.md +26 -0
  9. data/docs/CreateAdvancedProviderSessionResponse.md +22 -0
  10. data/docs/CreateHostedProviderSessionRequest.md +22 -0
  11. data/docs/CreateHostedProviderSessionResponse.md +20 -0
  12. data/docs/CreateWidgetSessionRequest.md +22 -0
  13. data/docs/{CreateSessionResponse.md → CreateWidgetSessionResponse.md} +5 -5
  14. data/docs/DocumentData.md +3 -3
  15. data/docs/DocumentScanAttachments.md +18 -0
  16. data/docs/{SessionState.md → DocumentType.md} +2 -2
  17. data/docs/HttpValidationProblemDetails.md +28 -0
  18. data/docs/IdentityData.md +4 -4
  19. data/docs/IndonesiaNikInput.md +22 -0
  20. data/docs/{FailureMessage.md → IntegrationCapability.md} +2 -5
  21. data/docs/IntegrationLaunchMethod.md +15 -0
  22. data/docs/IntegrationStep.md +22 -0
  23. data/docs/KenyaNidInput.md +28 -0
  24. data/docs/KnownAddress.md +3 -1
  25. data/docs/KnownPersonData.md +4 -0
  26. data/docs/MexicoCurpInput.md +18 -0
  27. data/docs/NetworkApi.md +2 -72
  28. data/docs/NigeriaNinInput.md +30 -0
  29. data/docs/PersonData.md +14 -12
  30. data/docs/PhilippineMatchInput.md +26 -0
  31. data/docs/PhilippineQRInput.md +20 -0
  32. data/docs/ProblemDetails.md +26 -0
  33. data/docs/ProviderAttachments.md +18 -0
  34. data/docs/ProviderInfo.md +3 -1
  35. data/docs/ProviderInput.md +38 -0
  36. data/docs/RecommendRequest.md +7 -3
  37. data/docs/RefreshStepContentRequest.md +18 -0
  38. data/docs/RefreshStepContentResponse.md +18 -0
  39. data/docs/ResultCollection.md +20 -0
  40. data/docs/ResultCollectionMethod.md +15 -0
  41. data/docs/Session.md +6 -8
  42. data/docs/{VerificationFailCode.md → SessionErrorCode.md} +2 -2
  43. data/docs/SessionsApi.md +236 -18
  44. data/docs/{SessionFailCode.md → Sex.md} +2 -2
  45. data/docs/SouthAfricaNidInput.md +24 -0
  46. data/docs/StepRefreshInfo.md +22 -0
  47. data/lib/trinsic_api/api/attachments_api.rb +1 -1
  48. data/lib/trinsic_api/api/network_api.rb +3 -66
  49. data/lib/trinsic_api/api/sessions_api.rb +217 -19
  50. data/lib/trinsic_api/api_client.rb +1 -1
  51. data/lib/trinsic_api/api_error.rb +1 -1
  52. data/lib/trinsic_api/configuration.rb +1 -1
  53. data/lib/trinsic_api/models/{validation_result.rb → aadhaar_input.rb} +21 -26
  54. data/lib/trinsic_api/models/address.rb +16 -10
  55. data/lib/trinsic_api/models/attachment_access_keys.rb +25 -10
  56. data/lib/trinsic_api/models/bangladesh_national_id_input.rb +249 -0
  57. data/lib/trinsic_api/models/brazil_cpf_check_input.rb +261 -0
  58. data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +294 -0
  59. data/lib/trinsic_api/models/cancel_session_response.rb +1 -1
  60. data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +312 -0
  61. data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +256 -0
  62. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +288 -0
  63. data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +233 -0
  64. data/lib/trinsic_api/models/create_widget_session_request.rb +240 -0
  65. data/lib/trinsic_api/models/{create_session_response.rb → create_widget_session_response.rb} +18 -17
  66. data/lib/trinsic_api/models/document_data.rb +32 -4
  67. data/lib/trinsic_api/models/{failure_message.rb → document_scan_attachments.rb} +12 -18
  68. data/lib/trinsic_api/models/{session_state.rb → document_type.rb} +9 -11
  69. data/lib/trinsic_api/models/get_attachment_request.rb +1 -1
  70. data/lib/trinsic_api/models/get_attachment_response.rb +1 -1
  71. data/lib/trinsic_api/models/get_session_response.rb +1 -1
  72. data/lib/trinsic_api/models/get_session_result_request.rb +1 -1
  73. data/lib/trinsic_api/models/get_session_result_response.rb +2 -1
  74. data/lib/trinsic_api/models/http_validation_problem_details.rb +273 -0
  75. data/lib/trinsic_api/models/identity_data.rb +5 -5
  76. data/lib/trinsic_api/models/{disclosed_fields_request.rb → indonesia_nik_input.rb} +94 -93
  77. data/lib/trinsic_api/models/integration_capability.rb +44 -0
  78. data/lib/trinsic_api/models/integration_launch_method.rb +42 -0
  79. data/lib/trinsic_api/models/integration_step.rb +275 -0
  80. data/lib/trinsic_api/models/kenya_nid_input.rb +397 -0
  81. data/lib/trinsic_api/models/known_address.rb +20 -2
  82. data/lib/trinsic_api/models/known_identity_data.rb +2 -1
  83. data/lib/trinsic_api/models/known_person_data.rb +30 -2
  84. data/lib/trinsic_api/models/list_providers_response.rb +1 -1
  85. data/lib/trinsic_api/models/list_sessions_response.rb +1 -1
  86. data/lib/trinsic_api/models/mexico_curp_input.rb +250 -0
  87. data/lib/trinsic_api/models/nigeria_nin_input.rb +383 -0
  88. data/lib/trinsic_api/models/order_direction.rb +1 -1
  89. data/lib/trinsic_api/models/person_data.rb +50 -15
  90. data/lib/trinsic_api/models/philippine_match_input.rb +260 -0
  91. data/lib/trinsic_api/models/philippine_qr_input.rb +227 -0
  92. data/lib/trinsic_api/models/problem_details.rb +255 -0
  93. data/lib/trinsic_api/models/provider_attachments.rb +215 -0
  94. data/lib/trinsic_api/models/provider_info.rb +18 -5
  95. data/lib/trinsic_api/models/provider_information.rb +1 -1
  96. data/lib/trinsic_api/models/{create_session_request.rb → provider_input.rb} +111 -42
  97. data/lib/trinsic_api/models/recommend_request.rb +38 -18
  98. data/lib/trinsic_api/models/recommend_response.rb +1 -1
  99. data/lib/trinsic_api/models/refresh_step_content_request.rb +216 -0
  100. data/lib/trinsic_api/models/{identity_lookup_response.rb → refresh_step_content_response.rb} +16 -16
  101. data/lib/trinsic_api/models/{verification.rb → result_collection.rb} +27 -20
  102. data/lib/trinsic_api/models/result_collection_method.rb +40 -0
  103. data/lib/trinsic_api/models/session.rb +32 -48
  104. data/lib/trinsic_api/models/session_error_code.rb +48 -0
  105. data/lib/trinsic_api/models/session_ordering.rb +1 -1
  106. data/lib/trinsic_api/models/sex.rb +42 -0
  107. data/lib/trinsic_api/models/{disclosed_fields.rb → south_africa_nid_input.rb} +107 -154
  108. data/lib/trinsic_api/models/step_refresh_info.rb +256 -0
  109. data/lib/trinsic_api/version.rb +2 -2
  110. data/lib/trinsic_api.rb +34 -12
  111. data/spec/api/attachments_api_spec.rb +1 -1
  112. data/spec/api/network_api_spec.rb +2 -14
  113. data/spec/api/sessions_api_spec.rb +44 -7
  114. data/spec/models/{verification_spec.rb → aadhaar_input_spec.rb} +9 -9
  115. data/spec/models/address_spec.rb +2 -2
  116. data/spec/models/attachment_access_keys_spec.rb +7 -1
  117. data/spec/models/bangladesh_national_id_input_spec.rb +54 -0
  118. data/spec/models/{identity_lookup_response_spec.rb → brazil_cpf_check_input_spec.rb} +8 -8
  119. data/spec/models/brazil_digital_cnh_input_spec.rb +54 -0
  120. data/spec/models/cancel_session_response_spec.rb +1 -1
  121. data/spec/models/create_advanced_provider_session_request_spec.rb +60 -0
  122. data/spec/models/create_advanced_provider_session_response_spec.rb +48 -0
  123. data/spec/models/create_hosted_provider_session_request_spec.rb +48 -0
  124. data/spec/models/create_hosted_provider_session_response_spec.rb +42 -0
  125. data/spec/models/create_widget_session_request_spec.rb +48 -0
  126. data/spec/models/{create_session_response_spec.rb → create_widget_session_response_spec.rb} +8 -8
  127. data/spec/models/document_data_spec.rb +1 -1
  128. data/spec/models/document_scan_attachments_spec.rb +36 -0
  129. data/spec/models/{session_state_spec.rb → document_type_spec.rb} +7 -7
  130. data/spec/models/get_attachment_request_spec.rb +1 -1
  131. data/spec/models/get_attachment_response_spec.rb +1 -1
  132. data/spec/models/get_session_response_spec.rb +1 -1
  133. data/spec/models/get_session_result_request_spec.rb +1 -1
  134. data/spec/models/get_session_result_response_spec.rb +1 -1
  135. data/spec/models/http_validation_problem_details_spec.rb +66 -0
  136. data/spec/models/identity_data_spec.rb +1 -1
  137. data/spec/models/indonesia_nik_input_spec.rb +48 -0
  138. data/spec/models/integration_capability_spec.rb +30 -0
  139. data/spec/models/integration_launch_method_spec.rb +30 -0
  140. data/spec/models/integration_step_spec.rb +48 -0
  141. data/spec/models/kenya_nid_input_spec.rb +66 -0
  142. data/spec/models/known_address_spec.rb +7 -1
  143. data/spec/models/known_identity_data_spec.rb +1 -1
  144. data/spec/models/known_person_data_spec.rb +13 -1
  145. data/spec/models/list_providers_response_spec.rb +1 -1
  146. data/spec/models/list_sessions_response_spec.rb +1 -1
  147. data/spec/models/{failure_message_spec.rb → mexico_curp_input_spec.rb} +8 -8
  148. data/spec/models/nigeria_nin_input_spec.rb +72 -0
  149. data/spec/models/order_direction_spec.rb +1 -1
  150. data/spec/models/person_data_spec.rb +8 -2
  151. data/spec/models/{create_session_request_spec.rb → philippine_match_input_spec.rb} +12 -12
  152. data/spec/models/philippine_qr_input_spec.rb +42 -0
  153. data/spec/models/problem_details_spec.rb +60 -0
  154. data/spec/models/provider_attachments_spec.rb +36 -0
  155. data/spec/models/provider_info_spec.rb +7 -1
  156. data/spec/models/provider_information_spec.rb +1 -1
  157. data/spec/models/{disclosed_fields_spec.rb → provider_input_spec.rb} +18 -24
  158. data/spec/models/recommend_request_spec.rb +14 -2
  159. data/spec/models/recommend_response_spec.rb +1 -1
  160. data/spec/models/refresh_step_content_request_spec.rb +36 -0
  161. data/spec/models/refresh_step_content_response_spec.rb +36 -0
  162. data/spec/models/result_collection_method_spec.rb +30 -0
  163. data/spec/models/{validation_result_spec.rb → result_collection_spec.rb} +9 -9
  164. data/spec/models/{verification_fail_code_spec.rb → session_error_code_spec.rb} +7 -7
  165. data/spec/models/session_ordering_spec.rb +1 -1
  166. data/spec/models/session_spec.rb +4 -10
  167. data/spec/models/{session_fail_code_spec.rb → sex_spec.rb} +7 -7
  168. data/spec/models/south_africa_nid_input_spec.rb +54 -0
  169. data/spec/models/step_refresh_info_spec.rb +48 -0
  170. data/spec/spec_helper.rb +1 -1
  171. data/trinsic_api.gemspec +1 -1
  172. metadata +154 -66
  173. data/docs/CreateSessionRequest.md +0 -26
  174. data/docs/DisclosedFields.md +0 -40
  175. data/docs/DisclosedFieldsRequest.md +0 -40
  176. data/docs/IdentityLookupResponse.md +0 -18
  177. data/docs/ValidationResult.md +0 -20
  178. data/docs/Verification.md +0 -20
  179. data/lib/trinsic_api/models/session_fail_code.rb +0 -45
  180. data/lib/trinsic_api/models/verification_fail_code.rb +0 -44
  181. data/spec/models/disclosed_fields_request_spec.rb +0 -102
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #Connect API
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
- # A Verification contained within a Session
18
- class Verification
19
- # The identity provider that was used to perform the Verification, if any
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 Verification is in state `VerificationFailed`, this field contains the reason for failure
23
- attr_accessor :fail_code
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
- :'provider' => :'provider',
51
- :'fail_code' => :'failCode'
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
- :'provider' => :'String',
64
- :'fail_code' => :'VerificationFailCode'
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::Verification` initialize method"
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::Verification`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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?(:'provider')
90
- self.provider = attributes[:'provider']
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?(:'fail_code')
94
- self.fail_code = attributes[:'fail_code']
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
- provider == o.provider &&
119
- fail_code == o.fail_code
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
- [provider, fail_code].hash
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
- #Connect API
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
- # The state of the session
21
- attr_accessor :state
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 session is in state `IdvFailed`, this field contains the reason for failure.
24
- attr_accessor :fail_code
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 underlying verification for this Session
27
- attr_accessor :verification
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
- :'state' => :'state',
65
- :'fail_code' => :'failCode',
66
- :'verification' => :'verification',
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
- :'state' => :'SessionState',
83
- :'fail_code' => :'SessionFailCode',
84
- :'verification' => :'Verification',
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?(:'state')
119
- self.state = attributes[:'state']
114
+ if attributes.key?(:'done')
115
+ self.done = attributes[:'done']
120
116
  else
121
- self.state = nil
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?(:'verification')
129
- self.verification = attributes[:'verification']
120
+ if attributes.key?(:'success')
121
+ self.success = attributes[:'success']
130
122
  else
131
- self.verification = nil
123
+ self.success = nil
132
124
  end
133
125
 
134
- if attributes.key?(:'disclosed_fields')
135
- self.disclosed_fields = attributes[:'disclosed_fields']
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 @state.nil?
163
- invalid_properties.push('invalid value for "state", state cannot be nil.')
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 @disclosed_fields.nil?
171
- invalid_properties.push('invalid value for "disclosed_fields", disclosed_fields cannot be nil.')
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 @state.nil?
191
- return false if @verification.nil?
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
- state == o.state &&
205
- fail_code == o.fail_code &&
206
- verification == o.verification &&
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, state, fail_code, verification, disclosed_fields, created, updated].hash
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
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #Connect API
2
+ #Trinsic API
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
@@ -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