trinsic_api 3.0.1 → 3.0.2.pre.preview
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/AadhaarClaims.md +46 -0
- data/docs/AadhaarLanguage.md +20 -0
- data/docs/AadhaarLocalizedClaims.md +40 -0
- data/docs/AppleWalletInput.md +3 -1
- data/docs/ConnectIdAddress.md +26 -0
- data/docs/ConnectIdAgeVerification.md +20 -0
- data/docs/ConnectIdBeneficiaryAccount.md +24 -0
- data/docs/ConnectIdProviderOutput.md +38 -0
- data/docs/CzechMojeIdAddressOutput.md +28 -0
- data/docs/CzechMojeIdProviderOutput.md +62 -0
- data/docs/DigilockerAadhaarProviderOutput.md +30 -0
- data/docs/FaydaProviderOutput.md +7 -1
- data/docs/FinnishTrustNetworkProviderOutput.md +38 -0
- data/docs/FranceIdentiteInput.md +18 -0
- data/docs/FranceIdentiteProviderOutput.md +18 -0
- data/docs/FrejaIndirectProviderOutput.md +24 -0
- data/docs/FrejaProviderOutput.md +36 -8
- data/docs/GetProviderResponse.md +18 -0
- data/docs/GoogleWalletInput.md +3 -1
- data/docs/NigeriaNinLookup2ProviderOutput.md +40 -0
- data/docs/NorwegianBankIdProviderOutput.md +32 -0
- data/docs/OneIdProviderAddress.md +26 -0
- data/docs/OneIdProviderOutput.md +28 -0
- data/docs/OutputFrejaAddress.md +24 -0
- data/docs/OutputFrejaDocument.md +24 -0
- data/docs/PhilippinesDigitalNidProviderOutput.md +21 -1
- data/docs/PhilippinesPhysicalNidProviderOutput.md +17 -1
- data/docs/ProviderInput.md +6 -0
- data/docs/ProviderOutput.md +24 -2
- data/docs/ProvidersApi.md +70 -0
- data/docs/Raw18013DocumentRequest.md +20 -0
- data/docs/Raw18013RequestInput.md +18 -0
- data/docs/RecommendProvidersResponse.md +3 -1
- data/docs/SamsungWalletInput.md +18 -0
- data/docs/UkEvisaLookupInput.md +20 -0
- data/docs/UnitedKingdomEvisaProviderOutput.md +38 -0
- data/docs/VerificationProfileResponse.md +2 -0
- data/docs/VerificationProfilesApi.md +4 -0
- data/docs/YotiDeeplinkProviderOutput.md +40 -0
- data/lib/trinsic_api/api/providers_api.rb +63 -0
- data/lib/trinsic_api/api/verification_profiles_api.rb +6 -0
- data/lib/trinsic_api/models/aadhaar_claims.rb +376 -0
- data/lib/trinsic_api/models/aadhaar_language.rb +250 -0
- data/lib/trinsic_api/models/aadhaar_localized_claims.rb +343 -0
- data/lib/trinsic_api/models/apple_wallet_input.rb +16 -5
- data/lib/trinsic_api/models/connect_id_address.rb +266 -0
- data/lib/trinsic_api/models/connect_id_age_verification.rb +233 -0
- data/lib/trinsic_api/models/connect_id_beneficiary_account.rb +255 -0
- data/lib/trinsic_api/models/connect_id_provider_output.rb +333 -0
- data/lib/trinsic_api/models/czech_moje_id_address_output.rb +277 -0
- data/lib/trinsic_api/models/czech_moje_id_provider_output.rb +465 -0
- data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +305 -0
- data/lib/trinsic_api/models/fayda_provider_output.rb +38 -5
- data/lib/trinsic_api/models/finnish_trust_network_provider_output.rb +333 -0
- data/lib/trinsic_api/models/france_identite_input.rb +222 -0
- data/lib/trinsic_api/models/france_identite_provider_output.rb +239 -0
- data/lib/trinsic_api/models/freja_indirect_provider_output.rb +320 -0
- data/lib/trinsic_api/models/freja_provider_output.rb +185 -91
- data/lib/trinsic_api/models/get_provider_response.rb +238 -0
- data/lib/trinsic_api/models/google_wallet_input.rb +16 -5
- data/lib/trinsic_api/models/integration_step.rb +1 -1
- data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +392 -0
- data/lib/trinsic_api/models/norwegian_bank_id_provider_output.rb +300 -0
- data/lib/trinsic_api/models/one_id_provider_address.rb +266 -0
- data/lib/trinsic_api/models/one_id_provider_output.rb +278 -0
- data/lib/trinsic_api/models/output_freja_address.rb +255 -0
- data/lib/trinsic_api/models/output_freja_document.rb +255 -0
- data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +114 -4
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +92 -4
- data/lib/trinsic_api/models/provider_input.rb +34 -1
- data/lib/trinsic_api/models/provider_output.rb +127 -6
- data/lib/trinsic_api/models/raw18013_document_request.rb +276 -0
- data/lib/trinsic_api/models/raw18013_request_input.rb +259 -0
- data/lib/trinsic_api/models/recommend_providers_response.rb +33 -4
- data/lib/trinsic_api/models/samsung_wallet_input.rb +222 -0
- data/lib/trinsic_api/models/uk_evisa_lookup_input.rb +283 -0
- data/lib/trinsic_api/models/united_kingdom_evisa_provider_output.rb +333 -0
- data/lib/trinsic_api/models/verification_profile_response.rb +28 -1
- data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +344 -0
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +27 -0
- data/spec/api/providers_api_spec.rb +12 -0
- data/spec/api/verification_profiles_api_spec.rb +2 -0
- data/spec/models/aadhaar_claims_spec.rb +120 -0
- data/spec/models/aadhaar_language_spec.rb +42 -0
- data/spec/models/aadhaar_localized_claims_spec.rb +102 -0
- data/spec/models/apple_wallet_input_spec.rb +6 -0
- data/spec/models/connect_id_address_spec.rb +60 -0
- data/spec/models/connect_id_age_verification_spec.rb +42 -0
- data/spec/models/connect_id_beneficiary_account_spec.rb +54 -0
- data/spec/models/connect_id_provider_output_spec.rb +96 -0
- data/spec/models/czech_moje_id_address_output_spec.rb +66 -0
- data/spec/models/czech_moje_id_provider_output_spec.rb +168 -0
- data/spec/models/digilocker_aadhaar_provider_output_spec.rb +72 -0
- data/spec/models/fayda_provider_output_spec.rb +18 -0
- data/spec/models/finnish_trust_network_provider_output_spec.rb +96 -0
- data/spec/models/france_identite_input_spec.rb +36 -0
- data/spec/models/france_identite_provider_output_spec.rb +36 -0
- data/spec/models/freja_indirect_provider_output_spec.rb +54 -0
- data/spec/models/freja_provider_output_spec.rb +88 -4
- data/spec/models/get_provider_response_spec.rb +36 -0
- data/spec/models/google_wallet_input_spec.rb +6 -0
- data/spec/models/nigeria_nin_lookup2_provider_output_spec.rb +102 -0
- data/spec/models/norwegian_bank_id_provider_output_spec.rb +78 -0
- data/spec/models/one_id_provider_address_spec.rb +60 -0
- data/spec/models/one_id_provider_output_spec.rb +66 -0
- data/spec/models/output_freja_address_spec.rb +54 -0
- data/spec/models/output_freja_document_spec.rb +54 -0
- data/spec/models/philippines_digital_nid_provider_output_spec.rb +60 -0
- data/spec/models/philippines_physical_nid_provider_output_spec.rb +48 -0
- data/spec/models/provider_input_spec.rb +18 -0
- data/spec/models/provider_output_spec.rb +66 -0
- data/spec/models/raw18013_document_request_spec.rb +42 -0
- data/spec/models/raw18013_request_input_spec.rb +36 -0
- data/spec/models/recommend_providers_response_spec.rb +6 -0
- data/spec/models/samsung_wallet_input_spec.rb +36 -0
- data/spec/models/uk_evisa_lookup_input_spec.rb +42 -0
- data/spec/models/united_kingdom_evisa_provider_output_spec.rb +96 -0
- data/spec/models/verification_profile_response_spec.rb +6 -0
- data/spec/models/yoti_deeplink_provider_output_spec.rb +102 -0
- metadata +230 -122
|
@@ -0,0 +1,305 @@
|
|
|
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.13.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module TrinsicApi
|
|
17
|
+
# Exposed properties for the `india-digilocker-aadhaar` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
+
class DigilockerAadhaarProviderOutput
|
|
19
|
+
# The document type from which the identity data was retrieved from. Possible values: - ADHAR - PANCR
|
|
20
|
+
attr_accessor :document_type
|
|
21
|
+
|
|
22
|
+
# Whether the downloaded Aadhaar document signature and certificate chain validation succeeded. In some cases, the document may not be returned, but the data is. When the document is received, a certificate validation is performed. When it is not, the signature can not be validated.
|
|
23
|
+
attr_accessor :document_signature_validated
|
|
24
|
+
|
|
25
|
+
# The timestamp when the signed document was generated and verified. This is parsed as a date-time value. Aadhaar may omit timezone information.
|
|
26
|
+
attr_accessor :timestamp
|
|
27
|
+
|
|
28
|
+
# The validity expiration timestamp for the verification document. This is parsed as a date-time value. Aadhaar may omit timezone information.
|
|
29
|
+
attr_accessor :time_to_live
|
|
30
|
+
|
|
31
|
+
# The Aadhaar number (UID) value for the individual. This is only the last four digits of the Aadhaar number.
|
|
32
|
+
attr_accessor :aadhaar_number_last_four
|
|
33
|
+
|
|
34
|
+
# The claims extracted from the signed Aadhaar document.
|
|
35
|
+
attr_accessor :claims
|
|
36
|
+
|
|
37
|
+
# The localized claims extracted from the signed Aadhaar document.
|
|
38
|
+
attr_accessor :localized_claims
|
|
39
|
+
|
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
|
+
def self.attribute_map
|
|
42
|
+
{
|
|
43
|
+
:'document_type' => :'documentType',
|
|
44
|
+
:'document_signature_validated' => :'documentSignatureValidated',
|
|
45
|
+
:'timestamp' => :'timestamp',
|
|
46
|
+
:'time_to_live' => :'timeToLive',
|
|
47
|
+
:'aadhaar_number_last_four' => :'aadhaarNumberLastFour',
|
|
48
|
+
:'claims' => :'claims',
|
|
49
|
+
:'localized_claims' => :'localizedClaims'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns attribute mapping this model knows about
|
|
54
|
+
def self.acceptable_attribute_map
|
|
55
|
+
attribute_map
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns all the JSON keys this model knows about
|
|
59
|
+
def self.acceptable_attributes
|
|
60
|
+
acceptable_attribute_map.values
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Attribute type mapping.
|
|
64
|
+
def self.openapi_types
|
|
65
|
+
{
|
|
66
|
+
:'document_type' => :'String',
|
|
67
|
+
:'document_signature_validated' => :'Boolean',
|
|
68
|
+
:'timestamp' => :'Time',
|
|
69
|
+
:'time_to_live' => :'Time',
|
|
70
|
+
:'aadhaar_number_last_four' => :'String',
|
|
71
|
+
:'claims' => :'AadhaarClaims',
|
|
72
|
+
:'localized_claims' => :'AadhaarLocalizedClaims'
|
|
73
|
+
}
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# List of attributes with nullable: true
|
|
77
|
+
def self.openapi_nullable
|
|
78
|
+
Set.new([
|
|
79
|
+
:'document_type',
|
|
80
|
+
:'timestamp',
|
|
81
|
+
:'time_to_live',
|
|
82
|
+
:'aadhaar_number_last_four',
|
|
83
|
+
:'claims',
|
|
84
|
+
:'localized_claims'
|
|
85
|
+
])
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Initializes the object
|
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
|
+
def initialize(attributes = {})
|
|
91
|
+
if (!attributes.is_a?(Hash))
|
|
92
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::DigilockerAadhaarProviderOutput` initialize method"
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
96
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
97
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
98
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
99
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::DigilockerAadhaarProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
100
|
+
end
|
|
101
|
+
h[k.to_sym] = v
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'document_type')
|
|
105
|
+
self.document_type = attributes[:'document_type']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'document_signature_validated')
|
|
109
|
+
self.document_signature_validated = attributes[:'document_signature_validated']
|
|
110
|
+
else
|
|
111
|
+
self.document_signature_validated = nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'timestamp')
|
|
115
|
+
self.timestamp = attributes[:'timestamp']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'time_to_live')
|
|
119
|
+
self.time_to_live = attributes[:'time_to_live']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'aadhaar_number_last_four')
|
|
123
|
+
self.aadhaar_number_last_four = attributes[:'aadhaar_number_last_four']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'claims')
|
|
127
|
+
self.claims = attributes[:'claims']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'localized_claims')
|
|
131
|
+
self.localized_claims = attributes[:'localized_claims']
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
136
|
+
# @return Array for valid properties with the reasons
|
|
137
|
+
def list_invalid_properties
|
|
138
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
139
|
+
invalid_properties = Array.new
|
|
140
|
+
if @document_signature_validated.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "document_signature_validated", document_signature_validated cannot be nil.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
invalid_properties
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Check to see if the all the properties in the model are valid
|
|
148
|
+
# @return true if the model is valid
|
|
149
|
+
def valid?
|
|
150
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
|
+
return false if @document_signature_validated.nil?
|
|
152
|
+
true
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Custom attribute writer method with validation
|
|
156
|
+
# @param [Object] document_signature_validated Value to be assigned
|
|
157
|
+
def document_signature_validated=(document_signature_validated)
|
|
158
|
+
if document_signature_validated.nil?
|
|
159
|
+
fail ArgumentError, 'document_signature_validated cannot be nil'
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
@document_signature_validated = document_signature_validated
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Checks equality by comparing each attribute.
|
|
166
|
+
# @param [Object] Object to be compared
|
|
167
|
+
def ==(o)
|
|
168
|
+
return true if self.equal?(o)
|
|
169
|
+
self.class == o.class &&
|
|
170
|
+
document_type == o.document_type &&
|
|
171
|
+
document_signature_validated == o.document_signature_validated &&
|
|
172
|
+
timestamp == o.timestamp &&
|
|
173
|
+
time_to_live == o.time_to_live &&
|
|
174
|
+
aadhaar_number_last_four == o.aadhaar_number_last_four &&
|
|
175
|
+
claims == o.claims &&
|
|
176
|
+
localized_claims == o.localized_claims
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# @see the `==` method
|
|
180
|
+
# @param [Object] Object to be compared
|
|
181
|
+
def eql?(o)
|
|
182
|
+
self == o
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Calculates hash code according to all attributes.
|
|
186
|
+
# @return [Integer] Hash code
|
|
187
|
+
def hash
|
|
188
|
+
[document_type, document_signature_validated, timestamp, time_to_live, aadhaar_number_last_four, claims, localized_claims].hash
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Builds the object from hash
|
|
192
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
193
|
+
# @return [Object] Returns the model itself
|
|
194
|
+
def self.build_from_hash(attributes)
|
|
195
|
+
return nil unless attributes.is_a?(Hash)
|
|
196
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
197
|
+
transformed_hash = {}
|
|
198
|
+
openapi_types.each_pair do |key, type|
|
|
199
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
200
|
+
transformed_hash["#{key}"] = nil
|
|
201
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
202
|
+
# check to ensure the input is an array given that the attribute
|
|
203
|
+
# is documented as an array but the input is not
|
|
204
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
205
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
206
|
+
end
|
|
207
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
208
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
new(transformed_hash)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Deserializes the data based on type
|
|
215
|
+
# @param string type Data type
|
|
216
|
+
# @param string value Value to be deserialized
|
|
217
|
+
# @return [Object] Deserialized data
|
|
218
|
+
def self._deserialize(type, value)
|
|
219
|
+
case type.to_sym
|
|
220
|
+
when :Time
|
|
221
|
+
Time.parse(value)
|
|
222
|
+
when :Date
|
|
223
|
+
Date.parse(value)
|
|
224
|
+
when :String
|
|
225
|
+
value.to_s
|
|
226
|
+
when :Integer
|
|
227
|
+
value.to_i
|
|
228
|
+
when :Float
|
|
229
|
+
value.to_f
|
|
230
|
+
when :Boolean
|
|
231
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
232
|
+
true
|
|
233
|
+
else
|
|
234
|
+
false
|
|
235
|
+
end
|
|
236
|
+
when :Object
|
|
237
|
+
# generic object (usually a Hash), return directly
|
|
238
|
+
value
|
|
239
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
240
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
241
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
242
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
243
|
+
k_type = Regexp.last_match[:k_type]
|
|
244
|
+
v_type = Regexp.last_match[:v_type]
|
|
245
|
+
{}.tap do |hash|
|
|
246
|
+
value.each do |k, v|
|
|
247
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
else # model
|
|
251
|
+
# models (e.g. Pet) or oneOf
|
|
252
|
+
klass = TrinsicApi.const_get(type)
|
|
253
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Returns the string representation of the object
|
|
258
|
+
# @return [String] String presentation of the object
|
|
259
|
+
def to_s
|
|
260
|
+
to_hash.to_s
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
264
|
+
# @return [Hash] Returns the object in the form of hash
|
|
265
|
+
def to_body
|
|
266
|
+
to_hash
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Returns the object in the form of hash
|
|
270
|
+
# @return [Hash] Returns the object in the form of hash
|
|
271
|
+
def to_hash
|
|
272
|
+
hash = {}
|
|
273
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
274
|
+
value = self.send(attr)
|
|
275
|
+
if value.nil?
|
|
276
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
277
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
hash[param] = _to_hash(value)
|
|
281
|
+
end
|
|
282
|
+
hash
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Outputs non-array value in the form of hash
|
|
286
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
287
|
+
# @param [Object] value Any valid value
|
|
288
|
+
# @return [Hash] Returns the value in the form of hash
|
|
289
|
+
def _to_hash(value)
|
|
290
|
+
if value.is_a?(Array)
|
|
291
|
+
value.compact.map { |v| _to_hash(v) }
|
|
292
|
+
elsif value.is_a?(Hash)
|
|
293
|
+
{}.tap do |hash|
|
|
294
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
295
|
+
end
|
|
296
|
+
elsif value.respond_to? :to_hash
|
|
297
|
+
value.to_hash
|
|
298
|
+
else
|
|
299
|
+
value
|
|
300
|
+
end
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
end
|
|
@@ -19,10 +19,22 @@ module TrinsicApi
|
|
|
19
19
|
# A unique eKYC identifying token used to match the original eKYC token received from the provider when the user was initially registered. Since Fayda does not return identifying data, it is the responsibility of the relying party to keep the unique user token received from Fayda when the user was initially registered to do a comparison of the subs to verify that it is the same person.
|
|
20
20
|
attr_accessor :sub
|
|
21
21
|
|
|
22
|
+
# The full name of the verified individual. This may be an English or Arabic name if the individual only has it one language, otherwise this will be null and the other names will be populated.
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
# The full English name of the verified individual.
|
|
26
|
+
attr_accessor :english_name
|
|
27
|
+
|
|
28
|
+
# The full Arabic name of the verified individual.
|
|
29
|
+
attr_accessor :arabic_name
|
|
30
|
+
|
|
22
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
32
|
def self.attribute_map
|
|
24
33
|
{
|
|
25
|
-
:'sub' => :'sub'
|
|
34
|
+
:'sub' => :'sub',
|
|
35
|
+
:'name' => :'name',
|
|
36
|
+
:'english_name' => :'englishName',
|
|
37
|
+
:'arabic_name' => :'arabicName'
|
|
26
38
|
}
|
|
27
39
|
end
|
|
28
40
|
|
|
@@ -39,14 +51,20 @@ module TrinsicApi
|
|
|
39
51
|
# Attribute type mapping.
|
|
40
52
|
def self.openapi_types
|
|
41
53
|
{
|
|
42
|
-
:'sub' => :'String'
|
|
54
|
+
:'sub' => :'String',
|
|
55
|
+
:'name' => :'String',
|
|
56
|
+
:'english_name' => :'String',
|
|
57
|
+
:'arabic_name' => :'String'
|
|
43
58
|
}
|
|
44
59
|
end
|
|
45
60
|
|
|
46
61
|
# List of attributes with nullable: true
|
|
47
62
|
def self.openapi_nullable
|
|
48
63
|
Set.new([
|
|
49
|
-
:'sub'
|
|
64
|
+
:'sub',
|
|
65
|
+
:'name',
|
|
66
|
+
:'english_name',
|
|
67
|
+
:'arabic_name'
|
|
50
68
|
])
|
|
51
69
|
end
|
|
52
70
|
|
|
@@ -69,6 +87,18 @@ module TrinsicApi
|
|
|
69
87
|
if attributes.key?(:'sub')
|
|
70
88
|
self.sub = attributes[:'sub']
|
|
71
89
|
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'name')
|
|
92
|
+
self.name = attributes[:'name']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'english_name')
|
|
96
|
+
self.english_name = attributes[:'english_name']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'arabic_name')
|
|
100
|
+
self.arabic_name = attributes[:'arabic_name']
|
|
101
|
+
end
|
|
72
102
|
end
|
|
73
103
|
|
|
74
104
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -91,7 +121,10 @@ module TrinsicApi
|
|
|
91
121
|
def ==(o)
|
|
92
122
|
return true if self.equal?(o)
|
|
93
123
|
self.class == o.class &&
|
|
94
|
-
sub == o.sub
|
|
124
|
+
sub == o.sub &&
|
|
125
|
+
name == o.name &&
|
|
126
|
+
english_name == o.english_name &&
|
|
127
|
+
arabic_name == o.arabic_name
|
|
95
128
|
end
|
|
96
129
|
|
|
97
130
|
# @see the `==` method
|
|
@@ -103,7 +136,7 @@ module TrinsicApi
|
|
|
103
136
|
# Calculates hash code according to all attributes.
|
|
104
137
|
# @return [Integer] Hash code
|
|
105
138
|
def hash
|
|
106
|
-
[sub].hash
|
|
139
|
+
[sub, name, english_name, arabic_name].hash
|
|
107
140
|
end
|
|
108
141
|
|
|
109
142
|
# Builds the object from hash
|