trinsic_api 3.1.0.pre.preview1 → 3.1.0

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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AgeOverOutput.md +20 -0
  3. data/docs/AppleWalletProviderOutput.md +2 -0
  4. data/docs/EudiAgeVerificationCredential.md +22 -0
  5. data/docs/EudiPidCredential.md +70 -0
  6. data/docs/FranceIdentiteProviderOutput.md +4 -0
  7. data/docs/GoogleWalletIdPassCredential.md +40 -0
  8. data/docs/GoogleWalletProviderOutput.md +4 -0
  9. data/docs/Iso180132BiometricDataBlockProduct.md +20 -0
  10. data/docs/Iso180132BiometricGroupTemplate.md +18 -0
  11. data/docs/Iso180132BiometricTemplate.md +24 -0
  12. data/docs/Iso180132BiometricTemplateHeader.md +36 -0
  13. data/docs/Iso180132BiometricValidityPeriod.md +20 -0
  14. data/docs/Iso180135AamvaDomesticDrivingPrivilege.md +22 -0
  15. data/docs/Iso180135AamvaDomesticVehicleClass.md +24 -0
  16. data/docs/Iso180135AamvaDomesticVehicleEndorsement.md +20 -0
  17. data/docs/Iso180135AamvaDomesticVehicleRestriction.md +20 -0
  18. data/docs/Iso180135AamvaNamespaceOutput.md +70 -0
  19. data/docs/Iso180135AamvaWeightRange.md +20 -0
  20. data/docs/Iso180135DrivingPrivilege.md +24 -0
  21. data/docs/Iso180135DrivingPrivilegeCode.md +22 -0
  22. data/docs/Iso180135MobileDriversLicenseCredential.md +20 -0
  23. data/docs/Iso180135StandardNamespaceOutput.md +86 -0
  24. data/docs/SamsungWalletProviderOutput.md +2 -0
  25. data/lib/trinsic_api/models/age_over_output.rb +193 -0
  26. data/lib/trinsic_api/models/apple_wallet_provider_output.rb +12 -1
  27. data/lib/trinsic_api/models/eudi_age_verification_credential.rb +174 -0
  28. data/lib/trinsic_api/models/eudi_pid_credential.rb +438 -0
  29. data/lib/trinsic_api/models/france_identite_provider_output.rb +23 -1
  30. data/lib/trinsic_api/models/google_wallet_id_pass_credential.rb +273 -0
  31. data/lib/trinsic_api/models/google_wallet_provider_output.rb +23 -1
  32. data/lib/trinsic_api/models/iso180132_biometric_data_block_product.rb +193 -0
  33. data/lib/trinsic_api/models/iso180132_biometric_group_template.rb +168 -0
  34. data/lib/trinsic_api/models/iso180132_biometric_template.rb +231 -0
  35. data/lib/trinsic_api/models/iso180132_biometric_template_header.rb +297 -0
  36. data/lib/trinsic_api/models/iso180132_biometric_validity_period.rb +193 -0
  37. data/lib/trinsic_api/models/iso180135_aamva_domestic_driving_privilege.rb +176 -0
  38. data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_class.rb +215 -0
  39. data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_endorsement.rb +177 -0
  40. data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_restriction.rb +177 -0
  41. data/lib/trinsic_api/models/iso180135_aamva_namespace_output.rb +438 -0
  42. data/lib/trinsic_api/models/iso180135_aamva_weight_range.rb +177 -0
  43. data/lib/trinsic_api/models/iso180135_driving_privilege.rb +201 -0
  44. data/lib/trinsic_api/models/iso180135_driving_privilege_code.rb +188 -0
  45. data/lib/trinsic_api/models/iso180135_mobile_drivers_license_credential.rb +161 -0
  46. data/lib/trinsic_api/models/iso180135_standard_namespace_output.rb +528 -0
  47. data/lib/trinsic_api/models/samsung_wallet_provider_output.rb +12 -1
  48. data/lib/trinsic_api/version.rb +1 -1
  49. data/lib/trinsic_api.rb +19 -0
  50. data/spec/models/age_over_output_spec.rb +42 -0
  51. data/spec/models/apple_wallet_provider_output_spec.rb +6 -0
  52. data/spec/models/eudi_age_verification_credential_spec.rb +48 -0
  53. data/spec/models/eudi_pid_credential_spec.rb +192 -0
  54. data/spec/models/france_identite_provider_output_spec.rb +12 -0
  55. data/spec/models/google_wallet_id_pass_credential_spec.rb +102 -0
  56. data/spec/models/google_wallet_provider_output_spec.rb +12 -0
  57. data/spec/models/iso180132_biometric_data_block_product_spec.rb +42 -0
  58. data/spec/models/iso180132_biometric_group_template_spec.rb +36 -0
  59. data/spec/models/iso180132_biometric_template_header_spec.rb +90 -0
  60. data/spec/models/iso180132_biometric_template_spec.rb +54 -0
  61. data/spec/models/iso180132_biometric_validity_period_spec.rb +42 -0
  62. data/spec/models/iso180135_aamva_domestic_driving_privilege_spec.rb +48 -0
  63. data/spec/models/iso180135_aamva_domestic_vehicle_class_spec.rb +54 -0
  64. data/spec/models/iso180135_aamva_domestic_vehicle_endorsement_spec.rb +42 -0
  65. data/spec/models/iso180135_aamva_domestic_vehicle_restriction_spec.rb +42 -0
  66. data/spec/models/iso180135_aamva_namespace_output_spec.rb +192 -0
  67. data/spec/models/iso180135_aamva_weight_range_spec.rb +42 -0
  68. data/spec/models/iso180135_driving_privilege_code_spec.rb +48 -0
  69. data/spec/models/iso180135_driving_privilege_spec.rb +54 -0
  70. data/spec/models/iso180135_mobile_drivers_license_credential_spec.rb +42 -0
  71. data/spec/models/iso180135_standard_namespace_output_spec.rb +240 -0
  72. data/spec/models/samsung_wallet_provider_output_spec.rb +6 -0
  73. metadata +78 -2
@@ -0,0 +1,438 @@
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.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ # An EUDI Person Identification Data (PID) credential, with document type `eu.europa.ec.eudi.pid.1`. This is the primary identity credential type defined in the EUDI Wallet framework.
18
+ class EudiPidCredential < ApiModelBase
19
+ # Current first name(s), including middle name(s) where applicable, of the individual to whom the PID relates.
20
+ attr_accessor :given_name
21
+
22
+ # First name(s), including middle name(s), of the individual at the time of birth.
23
+ attr_accessor :given_name_birth
24
+
25
+ # Current last name(s) or surname(s) of the individuals.
26
+ attr_accessor :family_name
27
+
28
+ # Last name(s) or surname(s) of the individual at the time of birth.
29
+ attr_accessor :family_name_birth
30
+
31
+ # The date of birth of the individual.
32
+ attr_accessor :date_of_birth
33
+
34
+ # Country (ISO 3166-1 alpha-2), state, province, district, local area, municipality, city, town, or village where the individual was born.
35
+ attr_accessor :birth_place
36
+
37
+ # One or more ISO 3166-1 alpha-2 country codes representing the nationality of the individual.
38
+ attr_accessor :nationality
39
+
40
+ # Date when the PID expires. Because PIDs are not necessarily backed by a physical document, this does not correspond to the expiration date of such.
41
+ attr_accessor :expiry_date
42
+
43
+ # Name of the administrative authority that issued the PID, or the ISO 3166 alpha-2 country code of the respective Member State if there is no separate authority entitled to issue PIDs.
44
+ attr_accessor :issuing_authority
45
+
46
+ # ISO 3166-1 alpha-2 country code of the country or territory of the issuer of the PID.
47
+ attr_accessor :issuing_country
48
+
49
+ # Date when the PID was issued and/or the administrative validity period began.
50
+ attr_accessor :issuance_date
51
+
52
+ # URL where a machine-readable trust anchor for verifying the PID can be found.
53
+ attr_accessor :trust_anchor
54
+
55
+ # Indicator that this credential has been issued specifically as PID. When present, typically equal to \"PID\".
56
+ attr_accessor :attestation_legal_category
57
+
58
+ # A number assigned to the PID by the issuer. This does not correspond to the document number of a physical document.
59
+ attr_accessor :document_number
60
+
61
+ # ISO 3166-2 country-subdivision code for the jurisdiction that issued the PID.
62
+ attr_accessor :issuing_jurisdiction
63
+
64
+ # Location of validity status information for the PID, where revocation information is published.
65
+ attr_accessor :location_status
66
+
67
+ # Sex of the individual. This is a superset of the ISO/IEC 5218 sex code standard, defining additional \"other\", \"inter\", \"diverse\", and \"open\" values. Possible values: - 0: Unknown - 1: Male - 2: Female - 3: Other - 4: Inter - 5: Diverse - 6: Open - 9: Not Applicable For values 0, 1, 2, and 9, ISO/IEC 5218 applies.
68
+ attr_accessor :sex
69
+
70
+ # The individual's email address.
71
+ attr_accessor :email_address
72
+
73
+ # The mobile phone number of the individual, in international format.
74
+ attr_accessor :mobile_phone_number
75
+
76
+ # A value assigned to the individual that is unique among all personal administrative numbers issued by the provider.
77
+ attr_accessor :personal_administrative_number
78
+
79
+ # The full address of the individual's permanent residence.
80
+ attr_accessor :resident_address
81
+
82
+ # The street name of the individual's permanent residence.
83
+ attr_accessor :resident_street
84
+
85
+ # The house number of the individual's permanent residence.
86
+ attr_accessor :resident_house_number
87
+
88
+ # The municipality, city, town, or village of the individual's permanent residence.
89
+ attr_accessor :resident_city
90
+
91
+ # The state, province, district, or local area of the individual's permanent residence.
92
+ attr_accessor :resident_state
93
+
94
+ # The postal code of the individual's permanent residence.
95
+ attr_accessor :resident_postal_code
96
+
97
+ # The ISO 3166-1 alpha-2 country code of the individual's permanent residence.
98
+ attr_accessor :resident_country
99
+
100
+ # Attribute mapping from ruby-style variable name to JSON key.
101
+ def self.attribute_map
102
+ {
103
+ :'given_name' => :'givenName',
104
+ :'given_name_birth' => :'givenNameBirth',
105
+ :'family_name' => :'familyName',
106
+ :'family_name_birth' => :'familyNameBirth',
107
+ :'date_of_birth' => :'dateOfBirth',
108
+ :'birth_place' => :'birthPlace',
109
+ :'nationality' => :'nationality',
110
+ :'expiry_date' => :'expiryDate',
111
+ :'issuing_authority' => :'issuingAuthority',
112
+ :'issuing_country' => :'issuingCountry',
113
+ :'issuance_date' => :'issuanceDate',
114
+ :'trust_anchor' => :'trustAnchor',
115
+ :'attestation_legal_category' => :'attestationLegalCategory',
116
+ :'document_number' => :'documentNumber',
117
+ :'issuing_jurisdiction' => :'issuingJurisdiction',
118
+ :'location_status' => :'locationStatus',
119
+ :'sex' => :'sex',
120
+ :'email_address' => :'emailAddress',
121
+ :'mobile_phone_number' => :'mobilePhoneNumber',
122
+ :'personal_administrative_number' => :'personalAdministrativeNumber',
123
+ :'resident_address' => :'residentAddress',
124
+ :'resident_street' => :'residentStreet',
125
+ :'resident_house_number' => :'residentHouseNumber',
126
+ :'resident_city' => :'residentCity',
127
+ :'resident_state' => :'residentState',
128
+ :'resident_postal_code' => :'residentPostalCode',
129
+ :'resident_country' => :'residentCountry'
130
+ }
131
+ end
132
+
133
+ # Returns attribute mapping this model knows about
134
+ def self.acceptable_attribute_map
135
+ attribute_map
136
+ end
137
+
138
+ # Returns all the JSON keys this model knows about
139
+ def self.acceptable_attributes
140
+ acceptable_attribute_map.values
141
+ end
142
+
143
+ # Attribute type mapping.
144
+ def self.openapi_types
145
+ {
146
+ :'given_name' => :'String',
147
+ :'given_name_birth' => :'String',
148
+ :'family_name' => :'String',
149
+ :'family_name_birth' => :'String',
150
+ :'date_of_birth' => :'Date',
151
+ :'birth_place' => :'String',
152
+ :'nationality' => :'Array<String>',
153
+ :'expiry_date' => :'Date',
154
+ :'issuing_authority' => :'String',
155
+ :'issuing_country' => :'String',
156
+ :'issuance_date' => :'Date',
157
+ :'trust_anchor' => :'String',
158
+ :'attestation_legal_category' => :'String',
159
+ :'document_number' => :'String',
160
+ :'issuing_jurisdiction' => :'String',
161
+ :'location_status' => :'String',
162
+ :'sex' => :'Integer',
163
+ :'email_address' => :'String',
164
+ :'mobile_phone_number' => :'String',
165
+ :'personal_administrative_number' => :'String',
166
+ :'resident_address' => :'String',
167
+ :'resident_street' => :'String',
168
+ :'resident_house_number' => :'String',
169
+ :'resident_city' => :'String',
170
+ :'resident_state' => :'String',
171
+ :'resident_postal_code' => :'String',
172
+ :'resident_country' => :'String'
173
+ }
174
+ end
175
+
176
+ # List of attributes with nullable: true
177
+ def self.openapi_nullable
178
+ Set.new([
179
+ :'given_name',
180
+ :'given_name_birth',
181
+ :'family_name',
182
+ :'family_name_birth',
183
+ :'date_of_birth',
184
+ :'birth_place',
185
+ :'nationality',
186
+ :'expiry_date',
187
+ :'issuing_authority',
188
+ :'issuing_country',
189
+ :'issuance_date',
190
+ :'trust_anchor',
191
+ :'attestation_legal_category',
192
+ :'document_number',
193
+ :'issuing_jurisdiction',
194
+ :'location_status',
195
+ :'sex',
196
+ :'email_address',
197
+ :'mobile_phone_number',
198
+ :'personal_administrative_number',
199
+ :'resident_address',
200
+ :'resident_street',
201
+ :'resident_house_number',
202
+ :'resident_city',
203
+ :'resident_state',
204
+ :'resident_postal_code',
205
+ :'resident_country'
206
+ ])
207
+ end
208
+
209
+ # Initializes the object
210
+ # @param [Hash] attributes Model attributes in the form of hash
211
+ def initialize(attributes = {})
212
+ if (!attributes.is_a?(Hash))
213
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::EudiPidCredential` initialize method"
214
+ end
215
+
216
+ # check to see if the attribute exists and convert string to symbol for hash key
217
+ acceptable_attribute_map = self.class.acceptable_attribute_map
218
+ attributes = attributes.each_with_object({}) { |(k, v), h|
219
+ if (!acceptable_attribute_map.key?(k.to_sym))
220
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::EudiPidCredential`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
221
+ end
222
+ h[k.to_sym] = v
223
+ }
224
+
225
+ if attributes.key?(:'given_name')
226
+ self.given_name = attributes[:'given_name']
227
+ end
228
+
229
+ if attributes.key?(:'given_name_birth')
230
+ self.given_name_birth = attributes[:'given_name_birth']
231
+ end
232
+
233
+ if attributes.key?(:'family_name')
234
+ self.family_name = attributes[:'family_name']
235
+ end
236
+
237
+ if attributes.key?(:'family_name_birth')
238
+ self.family_name_birth = attributes[:'family_name_birth']
239
+ end
240
+
241
+ if attributes.key?(:'date_of_birth')
242
+ self.date_of_birth = attributes[:'date_of_birth']
243
+ end
244
+
245
+ if attributes.key?(:'birth_place')
246
+ self.birth_place = attributes[:'birth_place']
247
+ end
248
+
249
+ if attributes.key?(:'nationality')
250
+ if (value = attributes[:'nationality']).is_a?(Array)
251
+ self.nationality = value
252
+ end
253
+ end
254
+
255
+ if attributes.key?(:'expiry_date')
256
+ self.expiry_date = attributes[:'expiry_date']
257
+ end
258
+
259
+ if attributes.key?(:'issuing_authority')
260
+ self.issuing_authority = attributes[:'issuing_authority']
261
+ end
262
+
263
+ if attributes.key?(:'issuing_country')
264
+ self.issuing_country = attributes[:'issuing_country']
265
+ end
266
+
267
+ if attributes.key?(:'issuance_date')
268
+ self.issuance_date = attributes[:'issuance_date']
269
+ end
270
+
271
+ if attributes.key?(:'trust_anchor')
272
+ self.trust_anchor = attributes[:'trust_anchor']
273
+ end
274
+
275
+ if attributes.key?(:'attestation_legal_category')
276
+ self.attestation_legal_category = attributes[:'attestation_legal_category']
277
+ end
278
+
279
+ if attributes.key?(:'document_number')
280
+ self.document_number = attributes[:'document_number']
281
+ end
282
+
283
+ if attributes.key?(:'issuing_jurisdiction')
284
+ self.issuing_jurisdiction = attributes[:'issuing_jurisdiction']
285
+ end
286
+
287
+ if attributes.key?(:'location_status')
288
+ self.location_status = attributes[:'location_status']
289
+ end
290
+
291
+ if attributes.key?(:'sex')
292
+ self.sex = attributes[:'sex']
293
+ end
294
+
295
+ if attributes.key?(:'email_address')
296
+ self.email_address = attributes[:'email_address']
297
+ end
298
+
299
+ if attributes.key?(:'mobile_phone_number')
300
+ self.mobile_phone_number = attributes[:'mobile_phone_number']
301
+ end
302
+
303
+ if attributes.key?(:'personal_administrative_number')
304
+ self.personal_administrative_number = attributes[:'personal_administrative_number']
305
+ end
306
+
307
+ if attributes.key?(:'resident_address')
308
+ self.resident_address = attributes[:'resident_address']
309
+ end
310
+
311
+ if attributes.key?(:'resident_street')
312
+ self.resident_street = attributes[:'resident_street']
313
+ end
314
+
315
+ if attributes.key?(:'resident_house_number')
316
+ self.resident_house_number = attributes[:'resident_house_number']
317
+ end
318
+
319
+ if attributes.key?(:'resident_city')
320
+ self.resident_city = attributes[:'resident_city']
321
+ end
322
+
323
+ if attributes.key?(:'resident_state')
324
+ self.resident_state = attributes[:'resident_state']
325
+ end
326
+
327
+ if attributes.key?(:'resident_postal_code')
328
+ self.resident_postal_code = attributes[:'resident_postal_code']
329
+ end
330
+
331
+ if attributes.key?(:'resident_country')
332
+ self.resident_country = attributes[:'resident_country']
333
+ end
334
+ end
335
+
336
+ # Show invalid properties with the reasons. Usually used together with valid?
337
+ # @return Array for valid properties with the reasons
338
+ def list_invalid_properties
339
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
340
+ invalid_properties = Array.new
341
+ invalid_properties
342
+ end
343
+
344
+ # Check to see if the all the properties in the model are valid
345
+ # @return true if the model is valid
346
+ def valid?
347
+ warn '[DEPRECATED] the `valid?` method is obsolete'
348
+ true
349
+ end
350
+
351
+ # Checks equality by comparing each attribute.
352
+ # @param [Object] Object to be compared
353
+ def ==(o)
354
+ return true if self.equal?(o)
355
+ self.class == o.class &&
356
+ given_name == o.given_name &&
357
+ given_name_birth == o.given_name_birth &&
358
+ family_name == o.family_name &&
359
+ family_name_birth == o.family_name_birth &&
360
+ date_of_birth == o.date_of_birth &&
361
+ birth_place == o.birth_place &&
362
+ nationality == o.nationality &&
363
+ expiry_date == o.expiry_date &&
364
+ issuing_authority == o.issuing_authority &&
365
+ issuing_country == o.issuing_country &&
366
+ issuance_date == o.issuance_date &&
367
+ trust_anchor == o.trust_anchor &&
368
+ attestation_legal_category == o.attestation_legal_category &&
369
+ document_number == o.document_number &&
370
+ issuing_jurisdiction == o.issuing_jurisdiction &&
371
+ location_status == o.location_status &&
372
+ sex == o.sex &&
373
+ email_address == o.email_address &&
374
+ mobile_phone_number == o.mobile_phone_number &&
375
+ personal_administrative_number == o.personal_administrative_number &&
376
+ resident_address == o.resident_address &&
377
+ resident_street == o.resident_street &&
378
+ resident_house_number == o.resident_house_number &&
379
+ resident_city == o.resident_city &&
380
+ resident_state == o.resident_state &&
381
+ resident_postal_code == o.resident_postal_code &&
382
+ resident_country == o.resident_country
383
+ end
384
+
385
+ # @see the `==` method
386
+ # @param [Object] Object to be compared
387
+ def eql?(o)
388
+ self == o
389
+ end
390
+
391
+ # Calculates hash code according to all attributes.
392
+ # @return [Integer] Hash code
393
+ def hash
394
+ [given_name, given_name_birth, family_name, family_name_birth, date_of_birth, birth_place, nationality, expiry_date, issuing_authority, issuing_country, issuance_date, trust_anchor, attestation_legal_category, document_number, issuing_jurisdiction, location_status, sex, email_address, mobile_phone_number, personal_administrative_number, resident_address, resident_street, resident_house_number, resident_city, resident_state, resident_postal_code, resident_country].hash
395
+ end
396
+
397
+ # Builds the object from hash
398
+ # @param [Hash] attributes Model attributes in the form of hash
399
+ # @return [Object] Returns the model itself
400
+ def self.build_from_hash(attributes)
401
+ return nil unless attributes.is_a?(Hash)
402
+ attributes = attributes.transform_keys(&:to_sym)
403
+ transformed_hash = {}
404
+ openapi_types.each_pair do |key, type|
405
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
406
+ transformed_hash["#{key}"] = nil
407
+ elsif type =~ /\AArray<(.*)>/i
408
+ # check to ensure the input is an array given that the attribute
409
+ # is documented as an array but the input is not
410
+ if attributes[attribute_map[key]].is_a?(Array)
411
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
412
+ end
413
+ elsif !attributes[attribute_map[key]].nil?
414
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
415
+ end
416
+ end
417
+ new(transformed_hash)
418
+ end
419
+
420
+ # Returns the object in the form of hash
421
+ # @return [Hash] Returns the object in the form of hash
422
+ def to_hash
423
+ hash = {}
424
+ self.class.attribute_map.each_pair do |attr, param|
425
+ value = self.send(attr)
426
+ if value.nil?
427
+ is_nullable = self.class.openapi_nullable.include?(attr)
428
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
429
+ end
430
+
431
+ hash[param] = _to_hash(value)
432
+ end
433
+ hash
434
+ end
435
+
436
+ end
437
+
438
+ end
@@ -16,12 +16,20 @@ require 'time'
16
16
  module TrinsicApi
17
17
  # Exposed properties for the `france-identite` Provider which do not directly map to the normalized IdentityData model.
18
18
  class FranceIdentiteProviderOutput < ApiModelBase
19
+ # An EUDI Person Identification Data (PID) credential, retrieved from the individual's wallet.
20
+ attr_accessor :pid
21
+
22
+ # An EUDI Age Verification credential, retrieved from the individual's wallet.
23
+ attr_accessor :age_verification
24
+
19
25
  # The raw output of the 18013-7 exchange performed through France Identité.
20
26
  attr_accessor :raw18013_output
21
27
 
22
28
  # Attribute mapping from ruby-style variable name to JSON key.
23
29
  def self.attribute_map
24
30
  {
31
+ :'pid' => :'pid',
32
+ :'age_verification' => :'ageVerification',
25
33
  :'raw18013_output' => :'raw18013Output'
26
34
  }
27
35
  end
@@ -39,6 +47,8 @@ module TrinsicApi
39
47
  # Attribute type mapping.
40
48
  def self.openapi_types
41
49
  {
50
+ :'pid' => :'EudiPidCredential',
51
+ :'age_verification' => :'EudiAgeVerificationCredential',
42
52
  :'raw18013_output' => :'MdlOutput'
43
53
  }
44
54
  end
@@ -46,6 +56,8 @@ module TrinsicApi
46
56
  # List of attributes with nullable: true
47
57
  def self.openapi_nullable
48
58
  Set.new([
59
+ :'pid',
60
+ :'age_verification',
49
61
  ])
50
62
  end
51
63
 
@@ -65,6 +77,14 @@ module TrinsicApi
65
77
  h[k.to_sym] = v
66
78
  }
67
79
 
80
+ if attributes.key?(:'pid')
81
+ self.pid = attributes[:'pid']
82
+ end
83
+
84
+ if attributes.key?(:'age_verification')
85
+ self.age_verification = attributes[:'age_verification']
86
+ end
87
+
68
88
  if attributes.key?(:'raw18013_output')
69
89
  self.raw18013_output = attributes[:'raw18013_output']
70
90
  else
@@ -107,6 +127,8 @@ module TrinsicApi
107
127
  def ==(o)
108
128
  return true if self.equal?(o)
109
129
  self.class == o.class &&
130
+ pid == o.pid &&
131
+ age_verification == o.age_verification &&
110
132
  raw18013_output == o.raw18013_output
111
133
  end
112
134
 
@@ -119,7 +141,7 @@ module TrinsicApi
119
141
  # Calculates hash code according to all attributes.
120
142
  # @return [Integer] Hash code
121
143
  def hash
122
- [raw18013_output].hash
144
+ [pid, age_verification, raw18013_output].hash
123
145
  end
124
146
 
125
147
  # Builds the object from hash