trinsic_api 3.0.0 → 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/KenyaNidLookup2Address.md +26 -0
- data/docs/KenyaNidLookup2ProviderOutput.md +38 -0
- 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 +26 -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/kenya_nid_lookup2_address.rb +269 -0
- data/lib/trinsic_api/models/kenya_nid_lookup2_provider_output.rb +429 -0
- 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 +138 -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 +29 -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/kenya_nid_lookup2_address_spec.rb +60 -0
- data/spec/models/kenya_nid_lookup2_provider_output_spec.rb +96 -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 +72 -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 +236 -120
|
@@ -14,27 +14,83 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
# Exposed properties for the `
|
|
17
|
+
# Exposed properties for the `freja` Provider which do not directly map to the normalized IdentityData model.
|
|
18
18
|
class FrejaProviderOutput
|
|
19
|
-
# The
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# The individual's full name.
|
|
20
|
+
attr_accessor :name
|
|
21
21
|
|
|
22
|
-
# The
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# The individual's first name.
|
|
23
|
+
attr_accessor :given_name
|
|
24
24
|
|
|
25
|
-
# The
|
|
26
|
-
attr_accessor :
|
|
25
|
+
# The individual's last name.
|
|
26
|
+
attr_accessor :family_name
|
|
27
27
|
|
|
28
|
-
# The
|
|
29
|
-
attr_accessor :
|
|
28
|
+
# The date of birth of the individual. Formatted as an ISO 8601 Date.
|
|
29
|
+
attr_accessor :date_of_birth
|
|
30
|
+
|
|
31
|
+
# The individual's primary email address within Freja.
|
|
32
|
+
attr_accessor :email
|
|
33
|
+
|
|
34
|
+
# A boolean which indicates whether the individual's primary email address has been verified by Freja.
|
|
35
|
+
attr_accessor :email_verified
|
|
36
|
+
|
|
37
|
+
# An array of all associated email addresses of the individual.
|
|
38
|
+
attr_accessor :all_email_addresses
|
|
39
|
+
|
|
40
|
+
# The individual's primary address on file.
|
|
41
|
+
attr_accessor :primary_physical_address
|
|
42
|
+
|
|
43
|
+
# A list of all associated addresses of the individual.
|
|
44
|
+
attr_accessor :all_physical_addresses
|
|
45
|
+
|
|
46
|
+
# The individual's age in years.
|
|
47
|
+
attr_accessor :age
|
|
48
|
+
|
|
49
|
+
# The individual's phone number in the E.164 format.
|
|
50
|
+
attr_accessor :phone_number
|
|
51
|
+
|
|
52
|
+
# Whether the individual's phone number has been verified by Freja.
|
|
53
|
+
attr_accessor :phone_number_verified
|
|
54
|
+
|
|
55
|
+
# The individual's personal identity number. The actual value of this field depends on the country of origin used to create the Freja credential. It is typically a Social Security Number, National Identification Number, or equivalent personal identifier.
|
|
56
|
+
attr_accessor :personal_identity_number
|
|
57
|
+
|
|
58
|
+
# The ISO 3166-1 alpha-2 country code associated with the individual's country of origin.
|
|
59
|
+
attr_accessor :country
|
|
60
|
+
|
|
61
|
+
# The underlying document, such as a passport, used to create the Freja credential.
|
|
62
|
+
attr_accessor :document
|
|
63
|
+
|
|
64
|
+
# The Freja registration level associated with this individual. This can be BASIC, EXTENDED, or PLUS. * BASIC: Individual has a registered account with Freja. * EXTENDED: Individual has an official identity document verified by Freja. * PLUS: Individual has undergone in-person verification with Freja.
|
|
65
|
+
attr_accessor :registration_level
|
|
66
|
+
|
|
67
|
+
# The relying party user identifier for this individual. This is an identifier specific to the individual and the relying party (your service).
|
|
68
|
+
attr_accessor :relying_party_user_id
|
|
69
|
+
|
|
70
|
+
# The Freja transaction reference for this verification. This is an identifier specific to the verification transaction.
|
|
71
|
+
attr_accessor :transaction_reference
|
|
30
72
|
|
|
31
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
74
|
def self.attribute_map
|
|
33
75
|
{
|
|
34
|
-
:'
|
|
35
|
-
:'
|
|
36
|
-
:'
|
|
37
|
-
:'
|
|
76
|
+
:'name' => :'name',
|
|
77
|
+
:'given_name' => :'givenName',
|
|
78
|
+
:'family_name' => :'familyName',
|
|
79
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
80
|
+
:'email' => :'email',
|
|
81
|
+
:'email_verified' => :'emailVerified',
|
|
82
|
+
:'all_email_addresses' => :'allEmailAddresses',
|
|
83
|
+
:'primary_physical_address' => :'primaryPhysicalAddress',
|
|
84
|
+
:'all_physical_addresses' => :'allPhysicalAddresses',
|
|
85
|
+
:'age' => :'age',
|
|
86
|
+
:'phone_number' => :'phoneNumber',
|
|
87
|
+
:'phone_number_verified' => :'phoneNumberVerified',
|
|
88
|
+
:'personal_identity_number' => :'personalIdentityNumber',
|
|
89
|
+
:'country' => :'country',
|
|
90
|
+
:'document' => :'document',
|
|
91
|
+
:'registration_level' => :'registrationLevel',
|
|
92
|
+
:'relying_party_user_id' => :'relyingPartyUserId',
|
|
93
|
+
:'transaction_reference' => :'transactionReference'
|
|
38
94
|
}
|
|
39
95
|
end
|
|
40
96
|
|
|
@@ -51,16 +107,48 @@ module TrinsicApi
|
|
|
51
107
|
# Attribute type mapping.
|
|
52
108
|
def self.openapi_types
|
|
53
109
|
{
|
|
54
|
-
:'
|
|
55
|
-
:'
|
|
56
|
-
:'
|
|
57
|
-
:'
|
|
110
|
+
:'name' => :'String',
|
|
111
|
+
:'given_name' => :'String',
|
|
112
|
+
:'family_name' => :'String',
|
|
113
|
+
:'date_of_birth' => :'Date',
|
|
114
|
+
:'email' => :'String',
|
|
115
|
+
:'email_verified' => :'Boolean',
|
|
116
|
+
:'all_email_addresses' => :'Array<String>',
|
|
117
|
+
:'primary_physical_address' => :'OutputFrejaAddress',
|
|
118
|
+
:'all_physical_addresses' => :'Array<OutputFrejaAddress>',
|
|
119
|
+
:'age' => :'Integer',
|
|
120
|
+
:'phone_number' => :'String',
|
|
121
|
+
:'phone_number_verified' => :'Boolean',
|
|
122
|
+
:'personal_identity_number' => :'String',
|
|
123
|
+
:'country' => :'String',
|
|
124
|
+
:'document' => :'OutputFrejaDocument',
|
|
125
|
+
:'registration_level' => :'String',
|
|
126
|
+
:'relying_party_user_id' => :'String',
|
|
127
|
+
:'transaction_reference' => :'String'
|
|
58
128
|
}
|
|
59
129
|
end
|
|
60
130
|
|
|
61
131
|
# List of attributes with nullable: true
|
|
62
132
|
def self.openapi_nullable
|
|
63
133
|
Set.new([
|
|
134
|
+
:'name',
|
|
135
|
+
:'given_name',
|
|
136
|
+
:'family_name',
|
|
137
|
+
:'date_of_birth',
|
|
138
|
+
:'email',
|
|
139
|
+
:'email_verified',
|
|
140
|
+
:'all_email_addresses',
|
|
141
|
+
:'primary_physical_address',
|
|
142
|
+
:'all_physical_addresses',
|
|
143
|
+
:'age',
|
|
144
|
+
:'phone_number',
|
|
145
|
+
:'phone_number_verified',
|
|
146
|
+
:'personal_identity_number',
|
|
147
|
+
:'country',
|
|
148
|
+
:'document',
|
|
149
|
+
:'registration_level',
|
|
150
|
+
:'relying_party_user_id',
|
|
151
|
+
:'transaction_reference'
|
|
64
152
|
])
|
|
65
153
|
end
|
|
66
154
|
|
|
@@ -80,104 +168,96 @@ module TrinsicApi
|
|
|
80
168
|
h[k.to_sym] = v
|
|
81
169
|
}
|
|
82
170
|
|
|
83
|
-
if attributes.key?(:'
|
|
84
|
-
self.
|
|
85
|
-
else
|
|
86
|
-
self.first_name = nil
|
|
171
|
+
if attributes.key?(:'name')
|
|
172
|
+
self.name = attributes[:'name']
|
|
87
173
|
end
|
|
88
174
|
|
|
89
|
-
if attributes.key?(:'
|
|
90
|
-
self.
|
|
91
|
-
else
|
|
92
|
-
self.last_name = nil
|
|
175
|
+
if attributes.key?(:'given_name')
|
|
176
|
+
self.given_name = attributes[:'given_name']
|
|
93
177
|
end
|
|
94
178
|
|
|
95
|
-
if attributes.key?(:'
|
|
96
|
-
self.
|
|
97
|
-
else
|
|
98
|
-
self.personal_number = nil
|
|
179
|
+
if attributes.key?(:'family_name')
|
|
180
|
+
self.family_name = attributes[:'family_name']
|
|
99
181
|
end
|
|
100
182
|
|
|
101
|
-
if attributes.key?(:'
|
|
102
|
-
self.
|
|
103
|
-
else
|
|
104
|
-
self.personal_number_country = nil
|
|
183
|
+
if attributes.key?(:'date_of_birth')
|
|
184
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
105
185
|
end
|
|
106
|
-
end
|
|
107
186
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
def list_invalid_properties
|
|
111
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
112
|
-
invalid_properties = Array.new
|
|
113
|
-
if @first_name.nil?
|
|
114
|
-
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
|
187
|
+
if attributes.key?(:'email')
|
|
188
|
+
self.email = attributes[:'email']
|
|
115
189
|
end
|
|
116
190
|
|
|
117
|
-
if
|
|
118
|
-
|
|
191
|
+
if attributes.key?(:'email_verified')
|
|
192
|
+
self.email_verified = attributes[:'email_verified']
|
|
119
193
|
end
|
|
120
194
|
|
|
121
|
-
if
|
|
122
|
-
|
|
195
|
+
if attributes.key?(:'all_email_addresses')
|
|
196
|
+
if (value = attributes[:'all_email_addresses']).is_a?(Array)
|
|
197
|
+
self.all_email_addresses = value
|
|
198
|
+
end
|
|
123
199
|
end
|
|
124
200
|
|
|
125
|
-
if
|
|
126
|
-
|
|
201
|
+
if attributes.key?(:'primary_physical_address')
|
|
202
|
+
self.primary_physical_address = attributes[:'primary_physical_address']
|
|
127
203
|
end
|
|
128
204
|
|
|
129
|
-
|
|
130
|
-
|
|
205
|
+
if attributes.key?(:'all_physical_addresses')
|
|
206
|
+
if (value = attributes[:'all_physical_addresses']).is_a?(Array)
|
|
207
|
+
self.all_physical_addresses = value
|
|
208
|
+
end
|
|
209
|
+
end
|
|
131
210
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
136
|
-
return false if @first_name.nil?
|
|
137
|
-
return false if @last_name.nil?
|
|
138
|
-
return false if @personal_number.nil?
|
|
139
|
-
return false if @personal_number_country.nil?
|
|
140
|
-
true
|
|
141
|
-
end
|
|
211
|
+
if attributes.key?(:'age')
|
|
212
|
+
self.age = attributes[:'age']
|
|
213
|
+
end
|
|
142
214
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
def first_name=(first_name)
|
|
146
|
-
if first_name.nil?
|
|
147
|
-
fail ArgumentError, 'first_name cannot be nil'
|
|
215
|
+
if attributes.key?(:'phone_number')
|
|
216
|
+
self.phone_number = attributes[:'phone_number']
|
|
148
217
|
end
|
|
149
218
|
|
|
150
|
-
|
|
151
|
-
|
|
219
|
+
if attributes.key?(:'phone_number_verified')
|
|
220
|
+
self.phone_number_verified = attributes[:'phone_number_verified']
|
|
221
|
+
end
|
|
152
222
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
def last_name=(last_name)
|
|
156
|
-
if last_name.nil?
|
|
157
|
-
fail ArgumentError, 'last_name cannot be nil'
|
|
223
|
+
if attributes.key?(:'personal_identity_number')
|
|
224
|
+
self.personal_identity_number = attributes[:'personal_identity_number']
|
|
158
225
|
end
|
|
159
226
|
|
|
160
|
-
|
|
161
|
-
|
|
227
|
+
if attributes.key?(:'country')
|
|
228
|
+
self.country = attributes[:'country']
|
|
229
|
+
end
|
|
162
230
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
def personal_number=(personal_number)
|
|
166
|
-
if personal_number.nil?
|
|
167
|
-
fail ArgumentError, 'personal_number cannot be nil'
|
|
231
|
+
if attributes.key?(:'document')
|
|
232
|
+
self.document = attributes[:'document']
|
|
168
233
|
end
|
|
169
234
|
|
|
170
|
-
|
|
171
|
-
|
|
235
|
+
if attributes.key?(:'registration_level')
|
|
236
|
+
self.registration_level = attributes[:'registration_level']
|
|
237
|
+
end
|
|
172
238
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
def personal_number_country=(personal_number_country)
|
|
176
|
-
if personal_number_country.nil?
|
|
177
|
-
fail ArgumentError, 'personal_number_country cannot be nil'
|
|
239
|
+
if attributes.key?(:'relying_party_user_id')
|
|
240
|
+
self.relying_party_user_id = attributes[:'relying_party_user_id']
|
|
178
241
|
end
|
|
179
242
|
|
|
180
|
-
|
|
243
|
+
if attributes.key?(:'transaction_reference')
|
|
244
|
+
self.transaction_reference = attributes[:'transaction_reference']
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
249
|
+
# @return Array for valid properties with the reasons
|
|
250
|
+
def list_invalid_properties
|
|
251
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
252
|
+
invalid_properties = Array.new
|
|
253
|
+
invalid_properties
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Check to see if the all the properties in the model are valid
|
|
257
|
+
# @return true if the model is valid
|
|
258
|
+
def valid?
|
|
259
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
260
|
+
true
|
|
181
261
|
end
|
|
182
262
|
|
|
183
263
|
# Checks equality by comparing each attribute.
|
|
@@ -185,10 +265,24 @@ module TrinsicApi
|
|
|
185
265
|
def ==(o)
|
|
186
266
|
return true if self.equal?(o)
|
|
187
267
|
self.class == o.class &&
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
268
|
+
name == o.name &&
|
|
269
|
+
given_name == o.given_name &&
|
|
270
|
+
family_name == o.family_name &&
|
|
271
|
+
date_of_birth == o.date_of_birth &&
|
|
272
|
+
email == o.email &&
|
|
273
|
+
email_verified == o.email_verified &&
|
|
274
|
+
all_email_addresses == o.all_email_addresses &&
|
|
275
|
+
primary_physical_address == o.primary_physical_address &&
|
|
276
|
+
all_physical_addresses == o.all_physical_addresses &&
|
|
277
|
+
age == o.age &&
|
|
278
|
+
phone_number == o.phone_number &&
|
|
279
|
+
phone_number_verified == o.phone_number_verified &&
|
|
280
|
+
personal_identity_number == o.personal_identity_number &&
|
|
281
|
+
country == o.country &&
|
|
282
|
+
document == o.document &&
|
|
283
|
+
registration_level == o.registration_level &&
|
|
284
|
+
relying_party_user_id == o.relying_party_user_id &&
|
|
285
|
+
transaction_reference == o.transaction_reference
|
|
192
286
|
end
|
|
193
287
|
|
|
194
288
|
# @see the `==` method
|
|
@@ -200,7 +294,7 @@ module TrinsicApi
|
|
|
200
294
|
# Calculates hash code according to all attributes.
|
|
201
295
|
# @return [Integer] Hash code
|
|
202
296
|
def hash
|
|
203
|
-
[
|
|
297
|
+
[name, given_name, family_name, date_of_birth, email, email_verified, all_email_addresses, primary_physical_address, all_physical_addresses, age, phone_number, phone_number_verified, personal_identity_number, country, document, registration_level, relying_party_user_id, transaction_reference].hash
|
|
204
298
|
end
|
|
205
299
|
|
|
206
300
|
# Builds the object from hash
|
|
@@ -0,0 +1,238 @@
|
|
|
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
|
+
class GetProviderResponse
|
|
18
|
+
# The provider available to this organization
|
|
19
|
+
attr_accessor :provider
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'provider' => :'provider'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Returns attribute mapping this model knows about
|
|
29
|
+
def self.acceptable_attribute_map
|
|
30
|
+
attribute_map
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
|
34
|
+
def self.acceptable_attributes
|
|
35
|
+
acceptable_attribute_map.values
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'provider' => :'Provider'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# List of attributes with nullable: true
|
|
46
|
+
def self.openapi_nullable
|
|
47
|
+
Set.new([
|
|
48
|
+
])
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Initializes the object
|
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::GetProviderResponse` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::GetProviderResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
|
+
end
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'provider')
|
|
68
|
+
self.provider = attributes[:'provider']
|
|
69
|
+
else
|
|
70
|
+
self.provider = nil
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
75
|
+
# @return Array for valid properties with the reasons
|
|
76
|
+
def list_invalid_properties
|
|
77
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
|
+
invalid_properties = Array.new
|
|
79
|
+
if @provider.nil?
|
|
80
|
+
invalid_properties.push('invalid value for "provider", provider cannot be nil.')
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
invalid_properties
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Check to see if the all the properties in the model are valid
|
|
87
|
+
# @return true if the model is valid
|
|
88
|
+
def valid?
|
|
89
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
90
|
+
return false if @provider.nil?
|
|
91
|
+
true
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Custom attribute writer method with validation
|
|
95
|
+
# @param [Object] provider Value to be assigned
|
|
96
|
+
def provider=(provider)
|
|
97
|
+
if provider.nil?
|
|
98
|
+
fail ArgumentError, 'provider cannot be nil'
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
@provider = provider
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Checks equality by comparing each attribute.
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def ==(o)
|
|
107
|
+
return true if self.equal?(o)
|
|
108
|
+
self.class == o.class &&
|
|
109
|
+
provider == o.provider
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# @see the `==` method
|
|
113
|
+
# @param [Object] Object to be compared
|
|
114
|
+
def eql?(o)
|
|
115
|
+
self == o
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
def hash
|
|
121
|
+
[provider].hash
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Builds the object from hash
|
|
125
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
126
|
+
# @return [Object] Returns the model itself
|
|
127
|
+
def self.build_from_hash(attributes)
|
|
128
|
+
return nil unless attributes.is_a?(Hash)
|
|
129
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
130
|
+
transformed_hash = {}
|
|
131
|
+
openapi_types.each_pair do |key, type|
|
|
132
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
133
|
+
transformed_hash["#{key}"] = nil
|
|
134
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
135
|
+
# check to ensure the input is an array given that the attribute
|
|
136
|
+
# is documented as an array but the input is not
|
|
137
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
138
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
139
|
+
end
|
|
140
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
141
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
new(transformed_hash)
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Deserializes the data based on type
|
|
148
|
+
# @param string type Data type
|
|
149
|
+
# @param string value Value to be deserialized
|
|
150
|
+
# @return [Object] Deserialized data
|
|
151
|
+
def self._deserialize(type, value)
|
|
152
|
+
case type.to_sym
|
|
153
|
+
when :Time
|
|
154
|
+
Time.parse(value)
|
|
155
|
+
when :Date
|
|
156
|
+
Date.parse(value)
|
|
157
|
+
when :String
|
|
158
|
+
value.to_s
|
|
159
|
+
when :Integer
|
|
160
|
+
value.to_i
|
|
161
|
+
when :Float
|
|
162
|
+
value.to_f
|
|
163
|
+
when :Boolean
|
|
164
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
165
|
+
true
|
|
166
|
+
else
|
|
167
|
+
false
|
|
168
|
+
end
|
|
169
|
+
when :Object
|
|
170
|
+
# generic object (usually a Hash), return directly
|
|
171
|
+
value
|
|
172
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
173
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
174
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
175
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
176
|
+
k_type = Regexp.last_match[:k_type]
|
|
177
|
+
v_type = Regexp.last_match[:v_type]
|
|
178
|
+
{}.tap do |hash|
|
|
179
|
+
value.each do |k, v|
|
|
180
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
else # model
|
|
184
|
+
# models (e.g. Pet) or oneOf
|
|
185
|
+
klass = TrinsicApi.const_get(type)
|
|
186
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the string representation of the object
|
|
191
|
+
# @return [String] String presentation of the object
|
|
192
|
+
def to_s
|
|
193
|
+
to_hash.to_s
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
197
|
+
# @return [Hash] Returns the object in the form of hash
|
|
198
|
+
def to_body
|
|
199
|
+
to_hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the object in the form of hash
|
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
|
204
|
+
def to_hash
|
|
205
|
+
hash = {}
|
|
206
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
207
|
+
value = self.send(attr)
|
|
208
|
+
if value.nil?
|
|
209
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
210
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
hash[param] = _to_hash(value)
|
|
214
|
+
end
|
|
215
|
+
hash
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Outputs non-array value in the form of hash
|
|
219
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
220
|
+
# @param [Object] value Any valid value
|
|
221
|
+
# @return [Hash] Returns the value in the form of hash
|
|
222
|
+
def _to_hash(value)
|
|
223
|
+
if value.is_a?(Array)
|
|
224
|
+
value.compact.map { |v| _to_hash(v) }
|
|
225
|
+
elsif value.is_a?(Hash)
|
|
226
|
+
{}.tap do |hash|
|
|
227
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
228
|
+
end
|
|
229
|
+
elsif value.respond_to? :to_hash
|
|
230
|
+
value.to_hash
|
|
231
|
+
else
|
|
232
|
+
value
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
end
|
|
@@ -18,6 +18,9 @@ module TrinsicApi
|
|
|
18
18
|
# The exchange mechanism to use for this Google Wallet verification. Use `DigitalCredentialsApi` for Digital Credentials API on web, or `NativeApp` for a native Android app.
|
|
19
19
|
attr_accessor :exchange_mechanism
|
|
20
20
|
|
|
21
|
+
# **Preview feature: not suitable for production use cases** The raw 18013-7 exchange request to use for this verification. If set, this overrides any default configuration on your Verification Profile.
|
|
22
|
+
attr_accessor :preview_raw18013_request
|
|
23
|
+
|
|
21
24
|
class EnumAttributeValidator
|
|
22
25
|
attr_reader :datatype
|
|
23
26
|
attr_reader :allowable_values
|
|
@@ -43,7 +46,8 @@ module TrinsicApi
|
|
|
43
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
47
|
def self.attribute_map
|
|
45
48
|
{
|
|
46
|
-
:'exchange_mechanism' => :'exchangeMechanism'
|
|
49
|
+
:'exchange_mechanism' => :'exchangeMechanism',
|
|
50
|
+
:'preview_raw18013_request' => :'preview_raw18013Request'
|
|
47
51
|
}
|
|
48
52
|
end
|
|
49
53
|
|
|
@@ -60,14 +64,16 @@ module TrinsicApi
|
|
|
60
64
|
# Attribute type mapping.
|
|
61
65
|
def self.openapi_types
|
|
62
66
|
{
|
|
63
|
-
:'exchange_mechanism' => :'MdlExchangeMechanism'
|
|
67
|
+
:'exchange_mechanism' => :'MdlExchangeMechanism',
|
|
68
|
+
:'preview_raw18013_request' => :'Raw18013RequestInput'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
66
71
|
|
|
67
72
|
# List of attributes with nullable: true
|
|
68
73
|
def self.openapi_nullable
|
|
69
74
|
Set.new([
|
|
70
|
-
:'exchange_mechanism'
|
|
75
|
+
:'exchange_mechanism',
|
|
76
|
+
:'preview_raw18013_request'
|
|
71
77
|
])
|
|
72
78
|
end
|
|
73
79
|
|
|
@@ -90,6 +96,10 @@ module TrinsicApi
|
|
|
90
96
|
if attributes.key?(:'exchange_mechanism')
|
|
91
97
|
self.exchange_mechanism = attributes[:'exchange_mechanism']
|
|
92
98
|
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'preview_raw18013_request')
|
|
101
|
+
self.preview_raw18013_request = attributes[:'preview_raw18013_request']
|
|
102
|
+
end
|
|
93
103
|
end
|
|
94
104
|
|
|
95
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -112,7 +122,8 @@ module TrinsicApi
|
|
|
112
122
|
def ==(o)
|
|
113
123
|
return true if self.equal?(o)
|
|
114
124
|
self.class == o.class &&
|
|
115
|
-
exchange_mechanism == o.exchange_mechanism
|
|
125
|
+
exchange_mechanism == o.exchange_mechanism &&
|
|
126
|
+
preview_raw18013_request == o.preview_raw18013_request
|
|
116
127
|
end
|
|
117
128
|
|
|
118
129
|
# @see the `==` method
|
|
@@ -124,7 +135,7 @@ module TrinsicApi
|
|
|
124
135
|
# Calculates hash code according to all attributes.
|
|
125
136
|
# @return [Integer] Hash code
|
|
126
137
|
def hash
|
|
127
|
-
[exchange_mechanism].hash
|
|
138
|
+
[exchange_mechanism, preview_raw18013_request].hash
|
|
128
139
|
end
|
|
129
140
|
|
|
130
141
|
# Builds the object from hash
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
# A step to perform in the process of executing
|
|
17
|
+
# A step to perform in the process of executing a Direct Provider Session
|
|
18
18
|
class IntegrationStep
|
|
19
19
|
# The launch method to perform
|
|
20
20
|
attr_accessor :method
|