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,30 +14,54 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- class CreateSessionRequest
18
- # Whether to immediately launch the identity provider, without invoking the Trinsic Widget UI. Users will not be shown the Widget; therefore, reuse of credentials, selection of an identity provider, and saving a verification for future reuse are not available to the end user in this mode. Sessions created with this option enabled must be created with a `RedirectUrl` specified, and cannot be invoked using the frontend SDK at this time.
19
- attr_accessor :launch_provider_directly
17
+ class ProviderInput
18
+ # Input for the `f-indonesia-nik` integration
19
+ attr_accessor :indonesia_nik
20
20
 
21
- # Whether to enable Trinsic's \"Remember Me\" feature, which allows users to save their credentials for future use. This option is only relevant when `LaunchProviderDirectly` is unspecified or set to `false`. If `LaunchProviderDirectly` is `true`, this field must be unspecified or set to `false`. If this field is set to `true`, then: - The user will be prompted to authenticate with their phone number at the start of the flow - If the user has previously saved a verification for reuse with Trinsic, they will be offered the ability to reuse it - After the user has verified their identity (and if the identity provider in question supports it), they will be prompted to save their credentials for future use If this field is set to `false`, then: - The user will not be prompted to authenticate with their phone number at the start of the flow. - Instead, the user will be immediately shown the list of available providers - The user will not be offered the ability to reuse a previously-saved Trinsic credential - After the user has verified their identity, they will not be prompted to save their credentials for future use - Instead, they will immediately return to your product
22
- attr_accessor :enable_remember_me
21
+ # Input for the `f-mexico-curp` integration
22
+ attr_accessor :mexico_curp
23
23
 
24
- # The list of allowed identity providers. If not specified, all available providers will be allowed. If `LaunchMethodDirectly` is `true`, this field must be set, and must have only a single entry. If `LaunchMethodDirectly` is not specified or is `false`, this field may have any number of entries.
25
- attr_accessor :providers
24
+ # Input for the `f-south-africa-nid` integration
25
+ attr_accessor :south_africa_nid
26
26
 
27
- # Known identity data of an individual being verified. Provide this to Trinsic during Session creation to enable improved identity provider selection recommendations.
28
- attr_accessor :known_identity_data
27
+ # Input for the `f-kenya-nid` integration
28
+ attr_accessor :kenya_nid
29
29
 
30
- # Specific identity attributes to request. If not provided, all available attributes will be requested.
31
- attr_accessor :disclosed_fields
30
+ # Input for the `f-nigeria-nin` integration
31
+ attr_accessor :nigeria_nin
32
+
33
+ # Input for the `f-india-aadhaar-match` integration
34
+ attr_accessor :aadhaar
35
+
36
+ # Input for the `bangladesh-nid` integration
37
+ attr_accessor :bangladesh_national_id
38
+
39
+ # Input for the `g-brazil-cpf` integration
40
+ attr_accessor :brazil_cpf_check
41
+
42
+ # Input for the `g-brazil-digital-cnh` integration
43
+ attr_accessor :brazil_digital_cnh
44
+
45
+ # Input for the `b-philsys-biometric` integration
46
+ attr_accessor :philippine_match
47
+
48
+ # Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` integrations
49
+ attr_accessor :philippine_qr
32
50
 
33
51
  # Attribute mapping from ruby-style variable name to JSON key.
34
52
  def self.attribute_map
35
53
  {
36
- :'launch_provider_directly' => :'launchProviderDirectly',
37
- :'enable_remember_me' => :'enableRememberMe',
38
- :'providers' => :'providers',
39
- :'known_identity_data' => :'knownIdentityData',
40
- :'disclosed_fields' => :'disclosedFields'
54
+ :'indonesia_nik' => :'indonesiaNik',
55
+ :'mexico_curp' => :'mexicoCurp',
56
+ :'south_africa_nid' => :'southAfricaNid',
57
+ :'kenya_nid' => :'kenyaNid',
58
+ :'nigeria_nin' => :'nigeriaNin',
59
+ :'aadhaar' => :'aadhaar',
60
+ :'bangladesh_national_id' => :'bangladeshNationalId',
61
+ :'brazil_cpf_check' => :'brazilCpfCheck',
62
+ :'brazil_digital_cnh' => :'brazilDigitalCnh',
63
+ :'philippine_match' => :'philippineMatch',
64
+ :'philippine_qr' => :'philippineQR'
41
65
  }
42
66
  end
43
67
 
@@ -49,17 +73,34 @@ module TrinsicApi
49
73
  # Attribute type mapping.
50
74
  def self.openapi_types
51
75
  {
52
- :'launch_provider_directly' => :'Boolean',
53
- :'enable_remember_me' => :'Boolean',
54
- :'providers' => :'Array<String>',
55
- :'known_identity_data' => :'KnownIdentityData',
56
- :'disclosed_fields' => :'DisclosedFieldsRequest'
76
+ :'indonesia_nik' => :'IndonesiaNikInput',
77
+ :'mexico_curp' => :'MexicoCurpInput',
78
+ :'south_africa_nid' => :'SouthAfricaNidInput',
79
+ :'kenya_nid' => :'KenyaNidInput',
80
+ :'nigeria_nin' => :'NigeriaNinInput',
81
+ :'aadhaar' => :'AadhaarInput',
82
+ :'bangladesh_national_id' => :'BangladeshNationalIdInput',
83
+ :'brazil_cpf_check' => :'BrazilCpfCheckInput',
84
+ :'brazil_digital_cnh' => :'BrazilDigitalCnhInput',
85
+ :'philippine_match' => :'PhilippineMatchInput',
86
+ :'philippine_qr' => :'PhilippineQRInput'
57
87
  }
58
88
  end
59
89
 
60
90
  # List of attributes with nullable: true
61
91
  def self.openapi_nullable
62
92
  Set.new([
93
+ :'indonesia_nik',
94
+ :'mexico_curp',
95
+ :'south_africa_nid',
96
+ :'kenya_nid',
97
+ :'nigeria_nin',
98
+ :'aadhaar',
99
+ :'bangladesh_national_id',
100
+ :'brazil_cpf_check',
101
+ :'brazil_digital_cnh',
102
+ :'philippine_match',
103
+ :'philippine_qr'
63
104
  ])
64
105
  end
65
106
 
@@ -67,37 +108,59 @@ module TrinsicApi
67
108
  # @param [Hash] attributes Model attributes in the form of hash
68
109
  def initialize(attributes = {})
69
110
  if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::CreateSessionRequest` initialize method"
111
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::ProviderInput` initialize method"
71
112
  end
72
113
 
73
114
  # check to see if the attribute exists and convert string to symbol for hash key
74
115
  attributes = attributes.each_with_object({}) { |(k, v), h|
75
116
  if (!self.class.attribute_map.key?(k.to_sym))
76
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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: " + self.class.attribute_map.keys.inspect
77
118
  end
78
119
  h[k.to_sym] = v
79
120
  }
80
121
 
81
- if attributes.key?(:'launch_provider_directly')
82
- self.launch_provider_directly = attributes[:'launch_provider_directly']
122
+ if attributes.key?(:'indonesia_nik')
123
+ self.indonesia_nik = attributes[:'indonesia_nik']
83
124
  end
84
125
 
85
- if attributes.key?(:'enable_remember_me')
86
- self.enable_remember_me = attributes[:'enable_remember_me']
126
+ if attributes.key?(:'mexico_curp')
127
+ self.mexico_curp = attributes[:'mexico_curp']
87
128
  end
88
129
 
89
- if attributes.key?(:'providers')
90
- if (value = attributes[:'providers']).is_a?(Array)
91
- self.providers = value
92
- end
130
+ if attributes.key?(:'south_africa_nid')
131
+ self.south_africa_nid = attributes[:'south_africa_nid']
132
+ end
133
+
134
+ if attributes.key?(:'kenya_nid')
135
+ self.kenya_nid = attributes[:'kenya_nid']
136
+ end
137
+
138
+ if attributes.key?(:'nigeria_nin')
139
+ self.nigeria_nin = attributes[:'nigeria_nin']
140
+ end
141
+
142
+ if attributes.key?(:'aadhaar')
143
+ self.aadhaar = attributes[:'aadhaar']
144
+ end
145
+
146
+ if attributes.key?(:'bangladesh_national_id')
147
+ self.bangladesh_national_id = attributes[:'bangladesh_national_id']
148
+ end
149
+
150
+ if attributes.key?(:'brazil_cpf_check')
151
+ self.brazil_cpf_check = attributes[:'brazil_cpf_check']
152
+ end
153
+
154
+ if attributes.key?(:'brazil_digital_cnh')
155
+ self.brazil_digital_cnh = attributes[:'brazil_digital_cnh']
93
156
  end
94
157
 
95
- if attributes.key?(:'known_identity_data')
96
- self.known_identity_data = attributes[:'known_identity_data']
158
+ if attributes.key?(:'philippine_match')
159
+ self.philippine_match = attributes[:'philippine_match']
97
160
  end
98
161
 
99
- if attributes.key?(:'disclosed_fields')
100
- self.disclosed_fields = attributes[:'disclosed_fields']
162
+ if attributes.key?(:'philippine_qr')
163
+ self.philippine_qr = attributes[:'philippine_qr']
101
164
  end
102
165
  end
103
166
 
@@ -121,11 +184,17 @@ module TrinsicApi
121
184
  def ==(o)
122
185
  return true if self.equal?(o)
123
186
  self.class == o.class &&
124
- launch_provider_directly == o.launch_provider_directly &&
125
- enable_remember_me == o.enable_remember_me &&
126
- providers == o.providers &&
127
- known_identity_data == o.known_identity_data &&
128
- disclosed_fields == o.disclosed_fields
187
+ indonesia_nik == o.indonesia_nik &&
188
+ mexico_curp == o.mexico_curp &&
189
+ south_africa_nid == o.south_africa_nid &&
190
+ kenya_nid == o.kenya_nid &&
191
+ nigeria_nin == o.nigeria_nin &&
192
+ aadhaar == o.aadhaar &&
193
+ bangladesh_national_id == o.bangladesh_national_id &&
194
+ brazil_cpf_check == o.brazil_cpf_check &&
195
+ brazil_digital_cnh == o.brazil_digital_cnh &&
196
+ philippine_match == o.philippine_match &&
197
+ philippine_qr == o.philippine_qr
129
198
  end
130
199
 
131
200
  # @see the `==` method
@@ -137,7 +206,7 @@ module TrinsicApi
137
206
  # Calculates hash code according to all attributes.
138
207
  # @return [Integer] Hash code
139
208
  def hash
140
- [launch_provider_directly, enable_remember_me, providers, known_identity_data, disclosed_fields].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
141
210
  end
142
211
 
143
212
  # 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
 
@@ -15,21 +15,29 @@ require 'time'
15
15
 
16
16
  module TrinsicApi
17
17
  class RecommendRequest
18
- # The phone number of the user you whish to generate a recommendation for. Will be used to lookup the user's identity in the network
18
+ # The phone number of the user you wish to generate a recommendation for. Will be used to look up the user's identity in the network
19
19
  attr_accessor :phone_number
20
20
 
21
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
22
  attr_accessor :countries
23
23
 
24
- # If one of the countries is US, you can specify a list of US states to further refine the recommendation (e.g., CA, UT, NY)
25
- attr_accessor :states
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
26
32
 
27
33
  # Attribute mapping from ruby-style variable name to JSON key.
28
34
  def self.attribute_map
29
35
  {
30
36
  :'phone_number' => :'phoneNumber',
31
37
  :'countries' => :'countries',
32
- :'states' => :'states'
38
+ :'subdivisions' => :'subdivisions',
39
+ :'ip_addresses' => :'ipAddresses',
40
+ :'include_disabled_providers' => :'includeDisabledProviders'
33
41
  }
34
42
  end
35
43
 
@@ -43,13 +51,20 @@ module TrinsicApi
43
51
  {
44
52
  :'phone_number' => :'String',
45
53
  :'countries' => :'Array<String>',
46
- :'states' => :'Array<String>'
54
+ :'subdivisions' => :'Array<String>',
55
+ :'ip_addresses' => :'Array<String>',
56
+ :'include_disabled_providers' => :'Boolean'
47
57
  }
48
58
  end
49
59
 
50
60
  # List of attributes with nullable: true
51
61
  def self.openapi_nullable
52
62
  Set.new([
63
+ :'phone_number',
64
+ :'countries',
65
+ :'subdivisions',
66
+ :'ip_addresses',
67
+ :'include_disabled_providers'
53
68
  ])
54
69
  end
55
70
 
@@ -70,8 +85,6 @@ module TrinsicApi
70
85
 
71
86
  if attributes.key?(:'phone_number')
72
87
  self.phone_number = attributes[:'phone_number']
73
- else
74
- self.phone_number = nil
75
88
  end
76
89
 
77
90
  if attributes.key?(:'countries')
@@ -80,11 +93,21 @@ module TrinsicApi
80
93
  end
81
94
  end
82
95
 
83
- if attributes.key?(:'states')
84
- if (value = attributes[:'states']).is_a?(Array)
85
- self.states = value
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
86
105
  end
87
106
  end
107
+
108
+ if attributes.key?(:'include_disabled_providers')
109
+ self.include_disabled_providers = attributes[:'include_disabled_providers']
110
+ end
88
111
  end
89
112
 
90
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -92,10 +115,6 @@ module TrinsicApi
92
115
  def list_invalid_properties
93
116
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
94
117
  invalid_properties = Array.new
95
- if @phone_number.nil?
96
- invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
97
- end
98
-
99
118
  invalid_properties
100
119
  end
101
120
 
@@ -103,7 +122,6 @@ module TrinsicApi
103
122
  # @return true if the model is valid
104
123
  def valid?
105
124
  warn '[DEPRECATED] the `valid?` method is obsolete'
106
- return false if @phone_number.nil?
107
125
  true
108
126
  end
109
127
 
@@ -114,7 +132,9 @@ module TrinsicApi
114
132
  self.class == o.class &&
115
133
  phone_number == o.phone_number &&
116
134
  countries == o.countries &&
117
- states == o.states
135
+ subdivisions == o.subdivisions &&
136
+ ip_addresses == o.ip_addresses &&
137
+ include_disabled_providers == o.include_disabled_providers
118
138
  end
119
139
 
120
140
  # @see the `==` method
@@ -126,7 +146,7 @@ module TrinsicApi
126
146
  # Calculates hash code according to all attributes.
127
147
  # @return [Integer] Hash code
128
148
  def hash
129
- [phone_number, countries, states].hash
149
+ [phone_number, countries, subdivisions, ip_addresses, include_disabled_providers].hash
130
150
  end
131
151
 
132
152
  # 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
 
@@ -0,0 +1,216 @@
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 RefreshStepContentRequest
18
+ # The `ResultsAccessKey` returned when the Session was created
19
+ attr_accessor :results_access_key
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'results_access_key' => :'resultsAccessKey'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'results_access_key' => :'String'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ :'results_access_key'
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::RefreshStepContentRequest` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::RefreshStepContentRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'results_access_key')
63
+ self.results_access_key = attributes[:'results_access_key']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
71
+ invalid_properties = Array.new
72
+ invalid_properties
73
+ end
74
+
75
+ # Check to see if the all the properties in the model are valid
76
+ # @return true if the model is valid
77
+ def valid?
78
+ warn '[DEPRECATED] the `valid?` method is obsolete'
79
+ true
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param [Object] Object to be compared
84
+ def ==(o)
85
+ return true if self.equal?(o)
86
+ self.class == o.class &&
87
+ results_access_key == o.results_access_key
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Integer] Hash code
98
+ def hash
99
+ [results_access_key].hash
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def self.build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ attributes = attributes.transform_keys(&:to_sym)
108
+ transformed_hash = {}
109
+ openapi_types.each_pair do |key, type|
110
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
111
+ transformed_hash["#{key}"] = nil
112
+ elsif type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[attribute_map[key]].is_a?(Array)
116
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
117
+ end
118
+ elsif !attributes[attribute_map[key]].nil?
119
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
120
+ end
121
+ end
122
+ new(transformed_hash)
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def self._deserialize(type, value)
130
+ case type.to_sym
131
+ when :Time
132
+ Time.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ # models (e.g. Pet) or oneOf
163
+ klass = TrinsicApi.const_get(type)
164
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ if value.nil?
187
+ is_nullable = self.class.openapi_nullable.include?(attr)
188
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
189
+ end
190
+
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+
216
+ 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
 
@@ -14,14 +14,14 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- class IdentityLookupResponse
18
- # Whether the given phone number is known to have an identity in the network.
19
- attr_accessor :identity_in_network
17
+ class RefreshStepContentResponse
18
+ # The integration's next step with refreshed content
19
+ attr_accessor :next_step
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
22
22
  def self.attribute_map
23
23
  {
24
- :'identity_in_network' => :'identityInNetwork'
24
+ :'next_step' => :'nextStep'
25
25
  }
26
26
  end
27
27
 
@@ -33,7 +33,7 @@ module TrinsicApi
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'identity_in_network' => :'Boolean'
36
+ :'next_step' => :'IntegrationStep'
37
37
  }
38
38
  end
39
39
 
@@ -47,21 +47,21 @@ module TrinsicApi
47
47
  # @param [Hash] attributes Model attributes in the form of hash
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::IdentityLookupResponse` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::RefreshStepContentResponse` initialize method"
51
51
  end
52
52
 
53
53
  # check to see if the attribute exists and convert string to symbol for hash key
54
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
55
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::IdentityLookupResponse`. 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::RefreshStepContentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
57
  end
58
58
  h[k.to_sym] = v
59
59
  }
60
60
 
61
- if attributes.key?(:'identity_in_network')
62
- self.identity_in_network = attributes[:'identity_in_network']
61
+ if attributes.key?(:'next_step')
62
+ self.next_step = attributes[:'next_step']
63
63
  else
64
- self.identity_in_network = nil
64
+ self.next_step = nil
65
65
  end
66
66
  end
67
67
 
@@ -70,8 +70,8 @@ module TrinsicApi
70
70
  def list_invalid_properties
71
71
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
72
72
  invalid_properties = Array.new
73
- if @identity_in_network.nil?
74
- invalid_properties.push('invalid value for "identity_in_network", identity_in_network cannot be nil.')
73
+ if @next_step.nil?
74
+ invalid_properties.push('invalid value for "next_step", next_step cannot be nil.')
75
75
  end
76
76
 
77
77
  invalid_properties
@@ -81,7 +81,7 @@ module TrinsicApi
81
81
  # @return true if the model is valid
82
82
  def valid?
83
83
  warn '[DEPRECATED] the `valid?` method is obsolete'
84
- return false if @identity_in_network.nil?
84
+ return false if @next_step.nil?
85
85
  true
86
86
  end
87
87
 
@@ -90,7 +90,7 @@ module TrinsicApi
90
90
  def ==(o)
91
91
  return true if self.equal?(o)
92
92
  self.class == o.class &&
93
- identity_in_network == o.identity_in_network
93
+ next_step == o.next_step
94
94
  end
95
95
 
96
96
  # @see the `==` method
@@ -102,7 +102,7 @@ module TrinsicApi
102
102
  # Calculates hash code according to all attributes.
103
103
  # @return [Integer] Hash code
104
104
  def hash
105
- [identity_in_network].hash
105
+ [next_step].hash
106
106
  end
107
107
 
108
108
  # Builds the object from hash