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,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- class FailureMessage
18
- attr_accessor :message
17
+ class DocumentScanAttachments
18
+ attr_accessor :report
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
21
21
  def self.attribute_map
22
22
  {
23
- :'message' => :'message'
23
+ :'report' => :'report'
24
24
  }
25
25
  end
26
26
 
@@ -32,13 +32,14 @@ module TrinsicApi
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'message' => :'String'
35
+ :'report' => :'String'
36
36
  }
37
37
  end
38
38
 
39
39
  # List of attributes with nullable: true
40
40
  def self.openapi_nullable
41
41
  Set.new([
42
+ :'report'
42
43
  ])
43
44
  end
44
45
 
@@ -46,21 +47,19 @@ module TrinsicApi
46
47
  # @param [Hash] attributes Model attributes in the form of hash
47
48
  def initialize(attributes = {})
48
49
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::FailureMessage` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::DocumentScanAttachments` initialize method"
50
51
  end
51
52
 
52
53
  # check to see if the attribute exists and convert string to symbol for hash key
53
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
55
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::FailureMessage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::DocumentScanAttachments`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
57
  end
57
58
  h[k.to_sym] = v
58
59
  }
59
60
 
60
- if attributes.key?(:'message')
61
- self.message = attributes[:'message']
62
- else
63
- self.message = nil
61
+ if attributes.key?(:'report')
62
+ self.report = attributes[:'report']
64
63
  end
65
64
  end
66
65
 
@@ -69,10 +68,6 @@ module TrinsicApi
69
68
  def list_invalid_properties
70
69
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
71
70
  invalid_properties = Array.new
72
- if @message.nil?
73
- invalid_properties.push('invalid value for "message", message cannot be nil.')
74
- end
75
-
76
71
  invalid_properties
77
72
  end
78
73
 
@@ -80,7 +75,6 @@ module TrinsicApi
80
75
  # @return true if the model is valid
81
76
  def valid?
82
77
  warn '[DEPRECATED] the `valid?` method is obsolete'
83
- return false if @message.nil?
84
78
  true
85
79
  end
86
80
 
@@ -89,7 +83,7 @@ module TrinsicApi
89
83
  def ==(o)
90
84
  return true if self.equal?(o)
91
85
  self.class == o.class &&
92
- message == o.message
86
+ report == o.report
93
87
  end
94
88
 
95
89
  # @see the `==` method
@@ -101,7 +95,7 @@ module TrinsicApi
101
95
  # Calculates hash code according to all attributes.
102
96
  # @return [Integer] Hash code
103
97
  def hash
104
- [message].hash
98
+ [report].hash
105
99
  end
106
100
 
107
101
  # Builds the object from hash
@@ -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,16 +14,14 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- class SessionState
18
- IDV_CREATED = "IdvCreated".freeze
19
- IDV_INITIATED = "IdvInitiated".freeze
20
- IDV_AUTHENTICATING = "IdvAuthenticating".freeze
21
- IDV_IN_PROGRESS = "IdvInProgress".freeze
22
- IDV_SUCCESS = "IdvSuccess".freeze
23
- IDV_FAILED = "IdvFailed".freeze
17
+ class DocumentType
18
+ PASSPORT = "Passport".freeze
19
+ DRIVERS_LICENSE = "DriversLicense".freeze
20
+ NATIONAL_ID = "NationalId".freeze
21
+ ID_CARD = "IdCard".freeze
24
22
 
25
23
  def self.all_vars
26
- @all_vars ||= [IDV_CREATED, IDV_INITIATED, IDV_AUTHENTICATING, IDV_IN_PROGRESS, IDV_SUCCESS, IDV_FAILED].freeze
24
+ @all_vars ||= [PASSPORT, DRIVERS_LICENSE, NATIONAL_ID, ID_CARD].freeze
27
25
  end
28
26
 
29
27
  # Builds the enum from string
@@ -37,8 +35,8 @@ module TrinsicApi
37
35
  # @param [String] The enum value in the form of the string
38
36
  # @return [String] The enum value
39
37
  def build_from_hash(value)
40
- return value if SessionState.all_vars.include?(value)
41
- raise "Invalid ENUM value #{value} for class #SessionState"
38
+ return value if DocumentType.all_vars.include?(value)
39
+ raise "Invalid ENUM value #{value} for class #DocumentType"
42
40
  end
43
41
  end
44
42
  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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -43,6 +43,7 @@ module TrinsicApi
43
43
  # List of attributes with nullable: true
44
44
  def self.openapi_nullable
45
45
  Set.new([
46
+ :'identity_data'
46
47
  ])
47
48
  end
48
49
 
@@ -0,0 +1,273 @@
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 HttpValidationProblemDetails
18
+ attr_accessor :type
19
+
20
+ attr_accessor :title
21
+
22
+ attr_accessor :status
23
+
24
+ attr_accessor :detail
25
+
26
+ attr_accessor :instance
27
+
28
+ attr_accessor :errors
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'type' => :'type',
34
+ :'title' => :'title',
35
+ :'status' => :'status',
36
+ :'detail' => :'detail',
37
+ :'instance' => :'instance',
38
+ :'errors' => :'errors'
39
+ }
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'type' => :'String',
51
+ :'title' => :'String',
52
+ :'status' => :'Integer',
53
+ :'detail' => :'String',
54
+ :'instance' => :'String',
55
+ :'errors' => :'Hash<String, Array<String>>'
56
+ }
57
+ end
58
+
59
+ # List of attributes with nullable: true
60
+ def self.openapi_nullable
61
+ Set.new([
62
+ :'type',
63
+ :'title',
64
+ :'status',
65
+ :'detail',
66
+ :'instance',
67
+ ])
68
+ end
69
+
70
+ # List of class defined in allOf (OpenAPI v3)
71
+ def self.openapi_all_of
72
+ [
73
+ :'ProblemDetails'
74
+ ]
75
+ end
76
+
77
+ # Initializes the object
78
+ # @param [Hash] attributes Model attributes in the form of hash
79
+ def initialize(attributes = {})
80
+ if (!attributes.is_a?(Hash))
81
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::HttpValidationProblemDetails` initialize method"
82
+ end
83
+
84
+ # check to see if the attribute exists and convert string to symbol for hash key
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!self.class.attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::HttpValidationProblemDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'type')
93
+ self.type = attributes[:'type']
94
+ end
95
+
96
+ if attributes.key?(:'title')
97
+ self.title = attributes[:'title']
98
+ end
99
+
100
+ if attributes.key?(:'status')
101
+ self.status = attributes[:'status']
102
+ end
103
+
104
+ if attributes.key?(:'detail')
105
+ self.detail = attributes[:'detail']
106
+ end
107
+
108
+ if attributes.key?(:'instance')
109
+ self.instance = attributes[:'instance']
110
+ end
111
+
112
+ if attributes.key?(:'errors')
113
+ if (value = attributes[:'errors']).is_a?(Hash)
114
+ self.errors = value
115
+ end
116
+ end
117
+ end
118
+
119
+ # Show invalid properties with the reasons. Usually used together with valid?
120
+ # @return Array for valid properties with the reasons
121
+ def list_invalid_properties
122
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
+ invalid_properties = Array.new
124
+ invalid_properties
125
+ end
126
+
127
+ # Check to see if the all the properties in the model are valid
128
+ # @return true if the model is valid
129
+ def valid?
130
+ warn '[DEPRECATED] the `valid?` method is obsolete'
131
+ true
132
+ end
133
+
134
+ # Checks equality by comparing each attribute.
135
+ # @param [Object] Object to be compared
136
+ def ==(o)
137
+ return true if self.equal?(o)
138
+ self.class == o.class &&
139
+ type == o.type &&
140
+ title == o.title &&
141
+ status == o.status &&
142
+ detail == o.detail &&
143
+ instance == o.instance &&
144
+ errors == o.errors
145
+ end
146
+
147
+ # @see the `==` method
148
+ # @param [Object] Object to be compared
149
+ def eql?(o)
150
+ self == o
151
+ end
152
+
153
+ # Calculates hash code according to all attributes.
154
+ # @return [Integer] Hash code
155
+ def hash
156
+ [type, title, status, detail, instance, errors].hash
157
+ end
158
+
159
+ # Builds the object from hash
160
+ # @param [Hash] attributes Model attributes in the form of hash
161
+ # @return [Object] Returns the model itself
162
+ def self.build_from_hash(attributes)
163
+ return nil unless attributes.is_a?(Hash)
164
+ attributes = attributes.transform_keys(&:to_sym)
165
+ transformed_hash = {}
166
+ openapi_types.each_pair do |key, type|
167
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
168
+ transformed_hash["#{key}"] = nil
169
+ elsif type =~ /\AArray<(.*)>/i
170
+ # check to ensure the input is an array given that the attribute
171
+ # is documented as an array but the input is not
172
+ if attributes[attribute_map[key]].is_a?(Array)
173
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
174
+ end
175
+ elsif !attributes[attribute_map[key]].nil?
176
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
177
+ end
178
+ end
179
+ new(transformed_hash)
180
+ end
181
+
182
+ # Deserializes the data based on type
183
+ # @param string type Data type
184
+ # @param string value Value to be deserialized
185
+ # @return [Object] Deserialized data
186
+ def self._deserialize(type, value)
187
+ case type.to_sym
188
+ when :Time
189
+ Time.parse(value)
190
+ when :Date
191
+ Date.parse(value)
192
+ when :String
193
+ value.to_s
194
+ when :Integer
195
+ value.to_i
196
+ when :Float
197
+ value.to_f
198
+ when :Boolean
199
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
200
+ true
201
+ else
202
+ false
203
+ end
204
+ when :Object
205
+ # generic object (usually a Hash), return directly
206
+ value
207
+ when /\AArray<(?<inner_type>.+)>\z/
208
+ inner_type = Regexp.last_match[:inner_type]
209
+ value.map { |v| _deserialize(inner_type, v) }
210
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
211
+ k_type = Regexp.last_match[:k_type]
212
+ v_type = Regexp.last_match[:v_type]
213
+ {}.tap do |hash|
214
+ value.each do |k, v|
215
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
216
+ end
217
+ end
218
+ else # model
219
+ # models (e.g. Pet) or oneOf
220
+ klass = TrinsicApi.const_get(type)
221
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
222
+ end
223
+ end
224
+
225
+ # Returns the string representation of the object
226
+ # @return [String] String presentation of the object
227
+ def to_s
228
+ to_hash.to_s
229
+ end
230
+
231
+ # to_body is an alias to to_hash (backward compatibility)
232
+ # @return [Hash] Returns the object in the form of hash
233
+ def to_body
234
+ to_hash
235
+ end
236
+
237
+ # Returns the object in the form of hash
238
+ # @return [Hash] Returns the object in the form of hash
239
+ def to_hash
240
+ hash = {}
241
+ self.class.attribute_map.each_pair do |attr, param|
242
+ value = self.send(attr)
243
+ if value.nil?
244
+ is_nullable = self.class.openapi_nullable.include?(attr)
245
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
246
+ end
247
+
248
+ hash[param] = _to_hash(value)
249
+ end
250
+ hash
251
+ end
252
+
253
+ # Outputs non-array value in the form of hash
254
+ # For object, use to_hash. Otherwise, just return the value
255
+ # @param [Object] value Any valid value
256
+ # @return [Hash] Returns the value in the form of hash
257
+ def _to_hash(value)
258
+ if value.is_a?(Array)
259
+ value.compact.map { |v| _to_hash(v) }
260
+ elsif value.is_a?(Hash)
261
+ {}.tap do |hash|
262
+ value.each { |k, v| hash[k] = _to_hash(v) }
263
+ end
264
+ elsif value.respond_to? :to_hash
265
+ value.to_hash
266
+ else
267
+ value
268
+ end
269
+ end
270
+
271
+ end
272
+
273
+ 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
 
@@ -15,16 +15,12 @@ require 'time'
15
15
 
16
16
  module TrinsicApi
17
17
  class IdentityData
18
- # The ID of the integration from which this data originated (eg \"yoti\", \"clear\")
19
18
  attr_accessor :originating_provider_id
20
19
 
21
- # Identity data of the individual who was verified
22
20
  attr_accessor :person
23
21
 
24
- # Identity data of the document involved in verification, if relevant
25
22
  attr_accessor :document
26
23
 
27
- # Attachment Access Keys for attachments (eg document / selfie images)
28
24
  attr_accessor :attachment_access_keys
29
25
 
30
26
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -55,6 +51,10 @@ module TrinsicApi
55
51
  # List of attributes with nullable: true
56
52
  def self.openapi_nullable
57
53
  Set.new([
54
+ :'originating_provider_id',
55
+ :'person',
56
+ :'document',
57
+ :'attachment_access_keys'
58
58
  ])
59
59
  end
60
60