trinsic_api 3.2.1 → 3.3.0.pre.alpha2
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/BrazilCnhProviderOutput.md +2 -0
- data/docs/BrazilCpfCheckInput.md +3 -3
- data/docs/BrazilCpfProviderOutput.md +1 -1
- data/docs/BrazilDigitalCnhInput.md +1 -1
- data/docs/ConnectIdAgeVerification.md +9 -1
- data/docs/ConnectIdInput.md +18 -0
- data/docs/CreateDirectProviderSessionRequest.md +2 -0
- data/docs/CreateHostedProviderSessionRequest.md +2 -0
- data/docs/CzechBankIdInput.md +18 -0
- data/docs/DeveloperApi.md +153 -0
- data/docs/DigilockerAadhaarProviderOutput.md +1 -1
- data/docs/FinnishTrustNetworkAddressOutput.md +22 -0
- data/docs/FinnishTrustNetworkInput.md +18 -0
- data/docs/FinnishTrustNetworkProviderOutput.md +2 -0
- data/docs/GetAttachmentResponse.md +2 -0
- data/docs/GetSessionResultRequest.md +3 -1
- data/docs/GetSessionResultResponse.md +3 -1
- data/docs/HPKETestRequest.md +22 -0
- data/docs/HPKETestVPRequest.md +20 -0
- data/docs/IdemiaMobileIdProviderOutput.md +1 -5
- data/docs/IndiaPanLookupProviderOutput.md +1 -1
- data/docs/IndonesiaDukcapilMatchInput.md +1 -1
- data/docs/JapanMyNumberProviderOutput.md +24 -0
- data/docs/JordanSanadInput.md +18 -0
- data/docs/MitIdAddressOutput.md +28 -0
- data/docs/MitIdProviderOutput.md +3 -1
- data/docs/PolandMobywatelMatchInput.md +1 -1
- data/docs/Provider.md +2 -0
- data/docs/ProviderInput.md +10 -0
- data/docs/ProviderOutput.md +8 -0
- data/docs/RecommendProviderInformation.md +2 -0
- data/docs/RecommendProvidersRequest.md +1 -1
- data/docs/RevolutProviderOutput.md +28 -0
- data/docs/SanadProviderOutput.md +28 -0
- data/docs/SaudiArabiaNafathAddress.md +50 -0
- data/docs/SaudiArabiaNafathCitizenAttributes.md +68 -0
- data/docs/SaudiArabiaNafathHeadOfHousehold.md +26 -0
- data/docs/SaudiArabiaNafathProviderOutput.md +38 -0
- data/docs/SaudiArabiaNafathResidentAttributes.md +68 -0
- data/docs/SaudiArabiaNafathVisitorAttributes.md +72 -0
- data/docs/SessionsApi.md +2 -2
- data/docs/SignzyIndiaAadhaarFetchProviderOutput.md +1 -1
- data/docs/SingpassPersonalCatalog.md +2 -2
- data/docs/SwedenBankIdProviderOutput.md +7 -3
- data/docs/TrinsicHPKEBundle.md +24 -0
- data/docs/TrinsicHPKEMetadata.md +30 -0
- data/docs/TrinsicTestDatabaseLookupInput.md +1 -1
- data/docs/UkEvisaLookupInput.md +1 -1
- data/docs/UsaArizonaWalletInput.md +18 -0
- data/docs/VerificationProfileResponse.md +2 -0
- data/docs/VerificationProfilesApi.md +3 -1
- data/docs/YotiStructuredPostalAddress.md +1 -1
- data/lib/trinsic_api/api/developer_api.rb +156 -0
- data/lib/trinsic_api/api/verification_profiles_api.rb +3 -0
- data/lib/trinsic_api/api_client.rb +1 -0
- data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +12 -1
- data/lib/trinsic_api/models/brazil_cpf_check_input.rb +12 -22
- data/lib/trinsic_api/models/brazil_cpf_provider_output.rb +1 -1
- data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +1 -1
- data/lib/trinsic_api/models/connect_id_age_verification.rb +46 -2
- data/lib/trinsic_api/models/connect_id_input.rb +149 -0
- data/lib/trinsic_api/models/create_direct_provider_session_request.rb +28 -1
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +28 -1
- data/lib/trinsic_api/models/czech_bank_id_input.rb +149 -0
- data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +1 -1
- data/lib/trinsic_api/models/finnish_trust_network_address_output.rb +171 -0
- data/lib/trinsic_api/models/finnish_trust_network_input.rb +149 -0
- data/lib/trinsic_api/models/finnish_trust_network_provider_output.rb +12 -1
- data/lib/trinsic_api/models/get_attachment_response.rb +12 -1
- data/lib/trinsic_api/models/get_session_result_request.rb +15 -4
- data/lib/trinsic_api/models/get_session_result_response.rb +16 -5
- data/lib/trinsic_api/models/hpke_test_request.rb +219 -0
- data/lib/trinsic_api/models/hpke_test_vp_request.rb +192 -0
- data/lib/trinsic_api/models/idemia_mobile_id_provider_output.rb +1 -23
- data/lib/trinsic_api/models/india_pan_lookup_provider_output.rb +1 -1
- data/lib/trinsic_api/models/indonesia_dukcapil_match_input.rb +1 -1
- data/lib/trinsic_api/models/japan_my_number_provider_output.rb +183 -0
- data/lib/trinsic_api/models/jordan_sanad_input.rb +164 -0
- data/lib/trinsic_api/models/mit_id_address_output.rb +204 -0
- data/lib/trinsic_api/models/mit_id_provider_output.rb +16 -5
- data/lib/trinsic_api/models/poland_mobywatel_match_input.rb +1 -1
- data/lib/trinsic_api/models/provider.rb +14 -1
- data/lib/trinsic_api/models/provider_input.rb +56 -1
- data/lib/trinsic_api/models/provider_output.rb +45 -1
- data/lib/trinsic_api/models/recommend_provider_information.rb +14 -1
- data/lib/trinsic_api/models/recommend_providers_request.rb +1 -1
- data/lib/trinsic_api/models/revolut_provider_output.rb +204 -0
- data/lib/trinsic_api/models/sanad_provider_output.rb +205 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_address.rb +325 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_citizen_attributes.rb +426 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_head_of_household.rb +193 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_provider_output.rb +260 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_resident_attributes.rb +426 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_visitor_attributes.rb +446 -0
- data/lib/trinsic_api/models/signzy_india_aadhaar_fetch_provider_output.rb +1 -1
- data/lib/trinsic_api/models/singpass_personal_catalog.rb +9 -9
- data/lib/trinsic_api/models/sweden_bank_id_provider_output.rb +24 -2
- data/lib/trinsic_api/models/trinsic_hpke_bundle.rb +246 -0
- data/lib/trinsic_api/models/trinsic_hpke_metadata.rb +327 -0
- data/lib/trinsic_api/models/trinsic_test_database_lookup_input.rb +1 -1
- data/lib/trinsic_api/models/uk_evisa_lookup_input.rb +1 -1
- data/lib/trinsic_api/models/usa_arizona_wallet_input.rb +149 -0
- data/lib/trinsic_api/models/verification_profile_response.rb +28 -1
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +21 -0
- data/spec/api/developer_api_spec.rb +60 -0
- data/spec/api/verification_profiles_api_spec.rb +1 -0
- data/spec/models/brazil_cnh_provider_output_spec.rb +6 -0
- data/spec/models/connect_id_age_verification_spec.rb +24 -0
- data/spec/models/connect_id_input_spec.rb +36 -0
- data/spec/models/create_direct_provider_session_request_spec.rb +6 -0
- data/spec/models/create_hosted_provider_session_request_spec.rb +6 -0
- data/spec/models/czech_bank_id_input_spec.rb +36 -0
- data/spec/models/finnish_trust_network_address_output_spec.rb +48 -0
- data/spec/models/finnish_trust_network_input_spec.rb +36 -0
- data/spec/models/finnish_trust_network_provider_output_spec.rb +6 -0
- data/spec/models/get_attachment_response_spec.rb +6 -0
- data/spec/models/get_session_result_request_spec.rb +6 -0
- data/spec/models/get_session_result_response_spec.rb +6 -0
- data/spec/models/hpke_test_request_spec.rb +48 -0
- data/spec/models/hpke_test_vp_request_spec.rb +42 -0
- data/spec/models/idemia_mobile_id_provider_output_spec.rb +0 -12
- data/spec/models/japan_my_number_provider_output_spec.rb +54 -0
- data/spec/models/jordan_sanad_input_spec.rb +36 -0
- data/spec/models/mit_id_address_output_spec.rb +66 -0
- data/spec/models/mit_id_provider_output_spec.rb +6 -0
- data/spec/models/provider_input_spec.rb +30 -0
- data/spec/models/provider_output_spec.rb +24 -0
- data/spec/models/provider_spec.rb +6 -0
- data/spec/models/recommend_provider_information_spec.rb +6 -0
- data/spec/models/revolut_provider_output_spec.rb +66 -0
- data/spec/models/sanad_provider_output_spec.rb +66 -0
- data/spec/models/saudi_arabia_nafath_address_spec.rb +132 -0
- data/spec/models/saudi_arabia_nafath_citizen_attributes_spec.rb +186 -0
- data/spec/models/saudi_arabia_nafath_head_of_household_spec.rb +60 -0
- data/spec/models/saudi_arabia_nafath_provider_output_spec.rb +96 -0
- data/spec/models/saudi_arabia_nafath_resident_attributes_spec.rb +186 -0
- data/spec/models/saudi_arabia_nafath_visitor_attributes_spec.rb +198 -0
- data/spec/models/singpass_personal_catalog_spec.rb +1 -1
- data/spec/models/sweden_bank_id_provider_output_spec.rb +12 -0
- data/spec/models/trinsic_hpke_bundle_spec.rb +54 -0
- data/spec/models/trinsic_hpke_metadata_spec.rb +72 -0
- data/spec/models/usa_arizona_wallet_input_spec.rb +36 -0
- data/spec/models/verification_profile_response_spec.rb +6 -0
- metadata +375 -291
|
@@ -0,0 +1,446 @@
|
|
|
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
|
+
class SaudiArabiaNafathVisitorAttributes < ApiModelBase
|
|
18
|
+
# Credential the visitor used to log in to Nafath. Possible values: - VisaNumber: the visitor authenticated with the visa number printed on their visa document. - BorderNumber: the visitor authenticated with their border number (raqam al-hudud), the ten-digit identifier the General Directorate of Passports (Jawazat) assigns to a foreign national on entry into Saudi Arabia, used as their entry-linked identifier before any residency is issued.
|
|
19
|
+
attr_accessor :login_type
|
|
20
|
+
|
|
21
|
+
# First name in English. Nafath describes firstName, secondName, thirdName, and lastName as English. translatedFirstName is the Arabic form. The session locale does not change either name.
|
|
22
|
+
attr_accessor :first_name
|
|
23
|
+
|
|
24
|
+
# Second name in English. Same script as firstName.
|
|
25
|
+
attr_accessor :second_name
|
|
26
|
+
|
|
27
|
+
# Third name, from the Nafath thirdName attribute. See firstName for the script.
|
|
28
|
+
attr_accessor :third_name
|
|
29
|
+
|
|
30
|
+
# Last name, from the Nafath lastName attribute. See firstName for the script.
|
|
31
|
+
attr_accessor :last_name
|
|
32
|
+
|
|
33
|
+
# First name in Arabic, from the Nafath translatedFirstName attribute. Nafath's descriptions of firstName, secondName, thirdName, and lastName call those fields English, so the translated names are treated as Arabic for both visa-number and border-number logins. The session locale does not change either script.
|
|
34
|
+
attr_accessor :translated_first_name
|
|
35
|
+
|
|
36
|
+
# Second name in Arabic. Same script as translatedFirstName.
|
|
37
|
+
attr_accessor :translated_second_name
|
|
38
|
+
|
|
39
|
+
# Third name in Arabic. Same script as translatedFirstName.
|
|
40
|
+
attr_accessor :translated_third_name
|
|
41
|
+
|
|
42
|
+
# Last name in Arabic. Same script as translatedFirstName.
|
|
43
|
+
attr_accessor :translated_last_name
|
|
44
|
+
|
|
45
|
+
# English nationality name, from the Nafath nationalityDesc attribute.
|
|
46
|
+
attr_accessor :nationality_description
|
|
47
|
+
|
|
48
|
+
# Date of birth in the Hijri (Umm al-Qura) calendar, in YYYY-MM-DD format, from the Nafath birthhDate attribute. Only returned for visa-number logins; the appendix defines no Hijri date of birth for border-number logins. Nafath's examples also use DD-MM-YYYY and YYYY/MM/DD; Trinsic reorders those to YYYY-MM-DD and passes any other format through unchanged.
|
|
49
|
+
attr_accessor :date_of_birth_hijri
|
|
50
|
+
|
|
51
|
+
# Visa number, from the Nafath visaNumber attribute. Can contain letters as well as digits.
|
|
52
|
+
attr_accessor :visa_number
|
|
53
|
+
|
|
54
|
+
# Count of days from visa issue to visa expiry, parsed from the Nafath duration attribute. Null when duration is absent or not a valid integer.
|
|
55
|
+
attr_accessor :visa_duration_days
|
|
56
|
+
|
|
57
|
+
# Date the visa was issued, from the Nafath visaIssueDate attribute.
|
|
58
|
+
attr_accessor :visa_issue_date
|
|
59
|
+
|
|
60
|
+
# Final date the visitor is permitted to enter Saudi Arabia, from the Nafath visaExpiryDate attribute.
|
|
61
|
+
attr_accessor :visa_expiry_date
|
|
62
|
+
|
|
63
|
+
# Last day the visitor may legally remain in Saudi Arabia, from the Nafath finalDepartureDate attribute.
|
|
64
|
+
attr_accessor :final_departure_date
|
|
65
|
+
|
|
66
|
+
# Number-of-entries code, from the Nafath numberOfEntriesCode attribute. Known values: - 1: Single entry - 9: Multiple entry
|
|
67
|
+
attr_accessor :number_of_entries_code
|
|
68
|
+
|
|
69
|
+
# Arabic description of the entries the visa allows, from the Nafath numberOfEntriesDescAr attribute.
|
|
70
|
+
attr_accessor :number_of_entries_description_arabic
|
|
71
|
+
|
|
72
|
+
# Visa type code, from the Nafath visaTypeCode attribute. The appendix publishes no lookup table; the sandbox returns BUS for a business visit visa.
|
|
73
|
+
attr_accessor :visa_type_code
|
|
74
|
+
|
|
75
|
+
# Arabic visa type description, from the Nafath visaTypeDescAr attribute.
|
|
76
|
+
attr_accessor :visa_type_description_arabic
|
|
77
|
+
|
|
78
|
+
# English visa type description, from the Nafath visaTypeDescEn attribute.
|
|
79
|
+
attr_accessor :visa_type_description_english
|
|
80
|
+
|
|
81
|
+
# Date the visitor's passport was issued, from the Nafath passportIssueDate attribute.
|
|
82
|
+
attr_accessor :passport_issue_date
|
|
83
|
+
|
|
84
|
+
# Date the visitor's passport expires, from the Nafath passportExpiryDate attribute.
|
|
85
|
+
attr_accessor :passport_expiry_date
|
|
86
|
+
|
|
87
|
+
# Arabic occupation description, from the Nafath occupationDescAr attribute.
|
|
88
|
+
attr_accessor :occupation_description_arabic
|
|
89
|
+
|
|
90
|
+
# English occupation description, from the Nafath occupationDescEn attribute.
|
|
91
|
+
attr_accessor :occupation_description_english
|
|
92
|
+
|
|
93
|
+
# Arabic name of the visitor's birth country, from the Nafath birthCountryDescAr attribute.
|
|
94
|
+
attr_accessor :birth_country_arabic
|
|
95
|
+
|
|
96
|
+
# English name of the visitor's birth country, from the Nafath birthCountryDescEn attribute.
|
|
97
|
+
attr_accessor :birth_country_english
|
|
98
|
+
|
|
99
|
+
# Date the visitor entered Saudi Arabia, from the Nafath entryDate attribute. Only returned for border-number logins.
|
|
100
|
+
attr_accessor :entry_date
|
|
101
|
+
|
|
102
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
103
|
+
def self.attribute_map
|
|
104
|
+
{
|
|
105
|
+
:'login_type' => :'loginType',
|
|
106
|
+
:'first_name' => :'firstName',
|
|
107
|
+
:'second_name' => :'secondName',
|
|
108
|
+
:'third_name' => :'thirdName',
|
|
109
|
+
:'last_name' => :'lastName',
|
|
110
|
+
:'translated_first_name' => :'translatedFirstName',
|
|
111
|
+
:'translated_second_name' => :'translatedSecondName',
|
|
112
|
+
:'translated_third_name' => :'translatedThirdName',
|
|
113
|
+
:'translated_last_name' => :'translatedLastName',
|
|
114
|
+
:'nationality_description' => :'nationalityDescription',
|
|
115
|
+
:'date_of_birth_hijri' => :'dateOfBirthHijri',
|
|
116
|
+
:'visa_number' => :'visaNumber',
|
|
117
|
+
:'visa_duration_days' => :'visaDurationDays',
|
|
118
|
+
:'visa_issue_date' => :'visaIssueDate',
|
|
119
|
+
:'visa_expiry_date' => :'visaExpiryDate',
|
|
120
|
+
:'final_departure_date' => :'finalDepartureDate',
|
|
121
|
+
:'number_of_entries_code' => :'numberOfEntriesCode',
|
|
122
|
+
:'number_of_entries_description_arabic' => :'numberOfEntriesDescriptionArabic',
|
|
123
|
+
:'visa_type_code' => :'visaTypeCode',
|
|
124
|
+
:'visa_type_description_arabic' => :'visaTypeDescriptionArabic',
|
|
125
|
+
:'visa_type_description_english' => :'visaTypeDescriptionEnglish',
|
|
126
|
+
:'passport_issue_date' => :'passportIssueDate',
|
|
127
|
+
:'passport_expiry_date' => :'passportExpiryDate',
|
|
128
|
+
:'occupation_description_arabic' => :'occupationDescriptionArabic',
|
|
129
|
+
:'occupation_description_english' => :'occupationDescriptionEnglish',
|
|
130
|
+
:'birth_country_arabic' => :'birthCountryArabic',
|
|
131
|
+
:'birth_country_english' => :'birthCountryEnglish',
|
|
132
|
+
:'entry_date' => :'entryDate'
|
|
133
|
+
}
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Returns attribute mapping this model knows about
|
|
137
|
+
def self.acceptable_attribute_map
|
|
138
|
+
attribute_map
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Returns all the JSON keys this model knows about
|
|
142
|
+
def self.acceptable_attributes
|
|
143
|
+
acceptable_attribute_map.values
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Attribute type mapping.
|
|
147
|
+
def self.openapi_types
|
|
148
|
+
{
|
|
149
|
+
:'login_type' => :'String',
|
|
150
|
+
:'first_name' => :'String',
|
|
151
|
+
:'second_name' => :'String',
|
|
152
|
+
:'third_name' => :'String',
|
|
153
|
+
:'last_name' => :'String',
|
|
154
|
+
:'translated_first_name' => :'String',
|
|
155
|
+
:'translated_second_name' => :'String',
|
|
156
|
+
:'translated_third_name' => :'String',
|
|
157
|
+
:'translated_last_name' => :'String',
|
|
158
|
+
:'nationality_description' => :'String',
|
|
159
|
+
:'date_of_birth_hijri' => :'String',
|
|
160
|
+
:'visa_number' => :'String',
|
|
161
|
+
:'visa_duration_days' => :'Integer',
|
|
162
|
+
:'visa_issue_date' => :'Date',
|
|
163
|
+
:'visa_expiry_date' => :'Date',
|
|
164
|
+
:'final_departure_date' => :'Date',
|
|
165
|
+
:'number_of_entries_code' => :'String',
|
|
166
|
+
:'number_of_entries_description_arabic' => :'String',
|
|
167
|
+
:'visa_type_code' => :'String',
|
|
168
|
+
:'visa_type_description_arabic' => :'String',
|
|
169
|
+
:'visa_type_description_english' => :'String',
|
|
170
|
+
:'passport_issue_date' => :'Date',
|
|
171
|
+
:'passport_expiry_date' => :'Date',
|
|
172
|
+
:'occupation_description_arabic' => :'String',
|
|
173
|
+
:'occupation_description_english' => :'String',
|
|
174
|
+
:'birth_country_arabic' => :'String',
|
|
175
|
+
:'birth_country_english' => :'String',
|
|
176
|
+
:'entry_date' => :'Date'
|
|
177
|
+
}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# List of attributes with nullable: true
|
|
181
|
+
def self.openapi_nullable
|
|
182
|
+
Set.new([
|
|
183
|
+
:'login_type',
|
|
184
|
+
:'first_name',
|
|
185
|
+
:'second_name',
|
|
186
|
+
:'third_name',
|
|
187
|
+
:'last_name',
|
|
188
|
+
:'translated_first_name',
|
|
189
|
+
:'translated_second_name',
|
|
190
|
+
:'translated_third_name',
|
|
191
|
+
:'translated_last_name',
|
|
192
|
+
:'nationality_description',
|
|
193
|
+
:'date_of_birth_hijri',
|
|
194
|
+
:'visa_number',
|
|
195
|
+
:'visa_duration_days',
|
|
196
|
+
:'visa_issue_date',
|
|
197
|
+
:'visa_expiry_date',
|
|
198
|
+
:'final_departure_date',
|
|
199
|
+
:'number_of_entries_code',
|
|
200
|
+
:'number_of_entries_description_arabic',
|
|
201
|
+
:'visa_type_code',
|
|
202
|
+
:'visa_type_description_arabic',
|
|
203
|
+
:'visa_type_description_english',
|
|
204
|
+
:'passport_issue_date',
|
|
205
|
+
:'passport_expiry_date',
|
|
206
|
+
:'occupation_description_arabic',
|
|
207
|
+
:'occupation_description_english',
|
|
208
|
+
:'birth_country_arabic',
|
|
209
|
+
:'birth_country_english',
|
|
210
|
+
:'entry_date'
|
|
211
|
+
])
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Initializes the object
|
|
215
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
216
|
+
def initialize(attributes = {})
|
|
217
|
+
if (!attributes.is_a?(Hash))
|
|
218
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SaudiArabiaNafathVisitorAttributes` initialize method"
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
222
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
223
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
224
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
225
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SaudiArabiaNafathVisitorAttributes`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
226
|
+
end
|
|
227
|
+
h[k.to_sym] = v
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'login_type')
|
|
231
|
+
self.login_type = attributes[:'login_type']
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'first_name')
|
|
235
|
+
self.first_name = attributes[:'first_name']
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'second_name')
|
|
239
|
+
self.second_name = attributes[:'second_name']
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'third_name')
|
|
243
|
+
self.third_name = attributes[:'third_name']
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'last_name')
|
|
247
|
+
self.last_name = attributes[:'last_name']
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if attributes.key?(:'translated_first_name')
|
|
251
|
+
self.translated_first_name = attributes[:'translated_first_name']
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'translated_second_name')
|
|
255
|
+
self.translated_second_name = attributes[:'translated_second_name']
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if attributes.key?(:'translated_third_name')
|
|
259
|
+
self.translated_third_name = attributes[:'translated_third_name']
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if attributes.key?(:'translated_last_name')
|
|
263
|
+
self.translated_last_name = attributes[:'translated_last_name']
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if attributes.key?(:'nationality_description')
|
|
267
|
+
self.nationality_description = attributes[:'nationality_description']
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if attributes.key?(:'date_of_birth_hijri')
|
|
271
|
+
self.date_of_birth_hijri = attributes[:'date_of_birth_hijri']
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
if attributes.key?(:'visa_number')
|
|
275
|
+
self.visa_number = attributes[:'visa_number']
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
if attributes.key?(:'visa_duration_days')
|
|
279
|
+
self.visa_duration_days = attributes[:'visa_duration_days']
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if attributes.key?(:'visa_issue_date')
|
|
283
|
+
self.visa_issue_date = attributes[:'visa_issue_date']
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if attributes.key?(:'visa_expiry_date')
|
|
287
|
+
self.visa_expiry_date = attributes[:'visa_expiry_date']
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if attributes.key?(:'final_departure_date')
|
|
291
|
+
self.final_departure_date = attributes[:'final_departure_date']
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if attributes.key?(:'number_of_entries_code')
|
|
295
|
+
self.number_of_entries_code = attributes[:'number_of_entries_code']
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if attributes.key?(:'number_of_entries_description_arabic')
|
|
299
|
+
self.number_of_entries_description_arabic = attributes[:'number_of_entries_description_arabic']
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if attributes.key?(:'visa_type_code')
|
|
303
|
+
self.visa_type_code = attributes[:'visa_type_code']
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if attributes.key?(:'visa_type_description_arabic')
|
|
307
|
+
self.visa_type_description_arabic = attributes[:'visa_type_description_arabic']
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if attributes.key?(:'visa_type_description_english')
|
|
311
|
+
self.visa_type_description_english = attributes[:'visa_type_description_english']
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
if attributes.key?(:'passport_issue_date')
|
|
315
|
+
self.passport_issue_date = attributes[:'passport_issue_date']
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
if attributes.key?(:'passport_expiry_date')
|
|
319
|
+
self.passport_expiry_date = attributes[:'passport_expiry_date']
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
if attributes.key?(:'occupation_description_arabic')
|
|
323
|
+
self.occupation_description_arabic = attributes[:'occupation_description_arabic']
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
if attributes.key?(:'occupation_description_english')
|
|
327
|
+
self.occupation_description_english = attributes[:'occupation_description_english']
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
if attributes.key?(:'birth_country_arabic')
|
|
331
|
+
self.birth_country_arabic = attributes[:'birth_country_arabic']
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
if attributes.key?(:'birth_country_english')
|
|
335
|
+
self.birth_country_english = attributes[:'birth_country_english']
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
if attributes.key?(:'entry_date')
|
|
339
|
+
self.entry_date = attributes[:'entry_date']
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
344
|
+
# @return Array for valid properties with the reasons
|
|
345
|
+
def list_invalid_properties
|
|
346
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
347
|
+
invalid_properties = Array.new
|
|
348
|
+
invalid_properties
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# Check to see if the all the properties in the model are valid
|
|
352
|
+
# @return true if the model is valid
|
|
353
|
+
def valid?
|
|
354
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
355
|
+
true
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Checks equality by comparing each attribute.
|
|
359
|
+
# @param [Object] Object to be compared
|
|
360
|
+
def ==(o)
|
|
361
|
+
return true if self.equal?(o)
|
|
362
|
+
self.class == o.class &&
|
|
363
|
+
login_type == o.login_type &&
|
|
364
|
+
first_name == o.first_name &&
|
|
365
|
+
second_name == o.second_name &&
|
|
366
|
+
third_name == o.third_name &&
|
|
367
|
+
last_name == o.last_name &&
|
|
368
|
+
translated_first_name == o.translated_first_name &&
|
|
369
|
+
translated_second_name == o.translated_second_name &&
|
|
370
|
+
translated_third_name == o.translated_third_name &&
|
|
371
|
+
translated_last_name == o.translated_last_name &&
|
|
372
|
+
nationality_description == o.nationality_description &&
|
|
373
|
+
date_of_birth_hijri == o.date_of_birth_hijri &&
|
|
374
|
+
visa_number == o.visa_number &&
|
|
375
|
+
visa_duration_days == o.visa_duration_days &&
|
|
376
|
+
visa_issue_date == o.visa_issue_date &&
|
|
377
|
+
visa_expiry_date == o.visa_expiry_date &&
|
|
378
|
+
final_departure_date == o.final_departure_date &&
|
|
379
|
+
number_of_entries_code == o.number_of_entries_code &&
|
|
380
|
+
number_of_entries_description_arabic == o.number_of_entries_description_arabic &&
|
|
381
|
+
visa_type_code == o.visa_type_code &&
|
|
382
|
+
visa_type_description_arabic == o.visa_type_description_arabic &&
|
|
383
|
+
visa_type_description_english == o.visa_type_description_english &&
|
|
384
|
+
passport_issue_date == o.passport_issue_date &&
|
|
385
|
+
passport_expiry_date == o.passport_expiry_date &&
|
|
386
|
+
occupation_description_arabic == o.occupation_description_arabic &&
|
|
387
|
+
occupation_description_english == o.occupation_description_english &&
|
|
388
|
+
birth_country_arabic == o.birth_country_arabic &&
|
|
389
|
+
birth_country_english == o.birth_country_english &&
|
|
390
|
+
entry_date == o.entry_date
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# @see the `==` method
|
|
394
|
+
# @param [Object] Object to be compared
|
|
395
|
+
def eql?(o)
|
|
396
|
+
self == o
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# Calculates hash code according to all attributes.
|
|
400
|
+
# @return [Integer] Hash code
|
|
401
|
+
def hash
|
|
402
|
+
[login_type, first_name, second_name, third_name, last_name, translated_first_name, translated_second_name, translated_third_name, translated_last_name, nationality_description, date_of_birth_hijri, visa_number, visa_duration_days, visa_issue_date, visa_expiry_date, final_departure_date, number_of_entries_code, number_of_entries_description_arabic, visa_type_code, visa_type_description_arabic, visa_type_description_english, passport_issue_date, passport_expiry_date, occupation_description_arabic, occupation_description_english, birth_country_arabic, birth_country_english, entry_date].hash
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Builds the object from hash
|
|
406
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
407
|
+
# @return [Object] Returns the model itself
|
|
408
|
+
def self.build_from_hash(attributes)
|
|
409
|
+
return nil unless attributes.is_a?(Hash)
|
|
410
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
411
|
+
transformed_hash = {}
|
|
412
|
+
openapi_types.each_pair do |key, type|
|
|
413
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
414
|
+
transformed_hash["#{key}"] = nil
|
|
415
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
416
|
+
# check to ensure the input is an array given that the attribute
|
|
417
|
+
# is documented as an array but the input is not
|
|
418
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
419
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
420
|
+
end
|
|
421
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
422
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
423
|
+
end
|
|
424
|
+
end
|
|
425
|
+
new(transformed_hash)
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
# Returns the object in the form of hash
|
|
429
|
+
# @return [Hash] Returns the object in the form of hash
|
|
430
|
+
def to_hash
|
|
431
|
+
hash = {}
|
|
432
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
433
|
+
value = self.send(attr)
|
|
434
|
+
if value.nil?
|
|
435
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
436
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
hash[param] = _to_hash(value)
|
|
440
|
+
end
|
|
441
|
+
hash
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
end
|
|
@@ -34,7 +34,7 @@ module TrinsicApi
|
|
|
34
34
|
# The localized claims extracted from the Aadhaar document.
|
|
35
35
|
attr_accessor :localized_claims
|
|
36
36
|
|
|
37
|
-
# Whether our own validation of the Aadhaar document signature and certificate chain succeeded. When the signed document (e.g. Digilocker XML) is available, we validate it using the standard CCA/SafeScrypt chain. When the document is not returned, the signature cannot be validated and this is false. Some providers
|
|
37
|
+
# Whether our own validation of the Aadhaar document signature and certificate chain succeeded. When the signed document (e.g. Digilocker XML) is available, we validate it using the standard CCA/SafeScrypt chain. When the document is not returned, the signature cannot be validated and this is false. Some providers also supply a separate DSC validation indicator in the webhook payload; that is independent of this flag, which reflects only our validation.
|
|
38
38
|
attr_accessor :document_signature_validated
|
|
39
39
|
|
|
40
40
|
# DigiLocker's 36-character stable account identifier. This identifier is deemed safe to use to reference the individual. *Note, the format is not guaranteed to be a UUID.
|
|
@@ -79,8 +79,8 @@ module TrinsicApi
|
|
|
79
79
|
# The user's registered address.
|
|
80
80
|
attr_accessor :registered_address
|
|
81
81
|
|
|
82
|
-
# Housing and Development Board (
|
|
83
|
-
attr_accessor :
|
|
82
|
+
# Housing and Development Board (HDB) flat type code and description. This value will be null if not HDB. Possible values (code description): - 111 1-ROOM FLAT (HDB) - 112 2-ROOM FLAT (HDB) - 113 3-ROOM FLAT (HDB) - 114 4-ROOM FLAT (HDB) - 115 5-ROOM FLAT (HDB) - 116 EXECUTIVE FLAT (HDB) - 118 STUDIO APARTMENT (HDB)
|
|
83
|
+
attr_accessor :house_development_board_type
|
|
84
84
|
|
|
85
85
|
# The user's housing type. Possible values (code description): - 121 DETACHED HOUSE - 122 SEMI-DETACHED HOUSE - 123 TERRACE HOUSE - 131 CONDOMINIUM - 132 EXECUTIVE CONDOMINIUM - 139 APARTMENT
|
|
86
86
|
attr_accessor :housing_type
|
|
@@ -112,7 +112,7 @@ module TrinsicApi
|
|
|
112
112
|
:'pass_expiry_date' => :'passExpiryDate',
|
|
113
113
|
:'employment_sector' => :'employmentSector',
|
|
114
114
|
:'registered_address' => :'registeredAddress',
|
|
115
|
-
:'
|
|
115
|
+
:'house_development_board_type' => :'houseDevelopmentBoardType',
|
|
116
116
|
:'housing_type' => :'housingType',
|
|
117
117
|
:'sex' => :'sex'
|
|
118
118
|
}
|
|
@@ -152,7 +152,7 @@ module TrinsicApi
|
|
|
152
152
|
:'pass_expiry_date' => :'Date',
|
|
153
153
|
:'employment_sector' => :'String',
|
|
154
154
|
:'registered_address' => :'SingpassMyInfoRegisteredAddressOutput',
|
|
155
|
-
:'
|
|
155
|
+
:'house_development_board_type' => :'SingpassMyInfoDescription',
|
|
156
156
|
:'housing_type' => :'SingpassMyInfoDescription',
|
|
157
157
|
:'sex' => :'String'
|
|
158
158
|
}
|
|
@@ -182,7 +182,7 @@ module TrinsicApi
|
|
|
182
182
|
:'pass_expiry_date',
|
|
183
183
|
:'employment_sector',
|
|
184
184
|
:'registered_address',
|
|
185
|
-
:'
|
|
185
|
+
:'house_development_board_type',
|
|
186
186
|
:'housing_type',
|
|
187
187
|
:'sex'
|
|
188
188
|
])
|
|
@@ -288,8 +288,8 @@ module TrinsicApi
|
|
|
288
288
|
self.registered_address = attributes[:'registered_address']
|
|
289
289
|
end
|
|
290
290
|
|
|
291
|
-
if attributes.key?(:'
|
|
292
|
-
self.
|
|
291
|
+
if attributes.key?(:'house_development_board_type')
|
|
292
|
+
self.house_development_board_type = attributes[:'house_development_board_type']
|
|
293
293
|
end
|
|
294
294
|
|
|
295
295
|
if attributes.key?(:'housing_type')
|
|
@@ -342,7 +342,7 @@ module TrinsicApi
|
|
|
342
342
|
pass_expiry_date == o.pass_expiry_date &&
|
|
343
343
|
employment_sector == o.employment_sector &&
|
|
344
344
|
registered_address == o.registered_address &&
|
|
345
|
-
|
|
345
|
+
house_development_board_type == o.house_development_board_type &&
|
|
346
346
|
housing_type == o.housing_type &&
|
|
347
347
|
sex == o.sex
|
|
348
348
|
end
|
|
@@ -356,7 +356,7 @@ module TrinsicApi
|
|
|
356
356
|
# Calculates hash code according to all attributes.
|
|
357
357
|
# @return [Integer] Hash code
|
|
358
358
|
def hash
|
|
359
|
-
[identity_number, partial_identity_number, name, alias_name, hanyu_pinyin_name, hanyu_pinyin_alias_name, married_name, email, mobile_number, dialect, date_of_birth, residential_status, nationality, birth_country, passport_number, passport_expiry_date, pass_type, pass_status, pass_expiry_date, employment_sector, registered_address,
|
|
359
|
+
[identity_number, partial_identity_number, name, alias_name, hanyu_pinyin_name, hanyu_pinyin_alias_name, married_name, email, mobile_number, dialect, date_of_birth, residential_status, nationality, birth_country, passport_number, passport_expiry_date, pass_type, pass_status, pass_expiry_date, employment_sector, registered_address, house_development_board_type, housing_type, sex].hash
|
|
360
360
|
end
|
|
361
361
|
|
|
362
362
|
# Builds the object from hash
|
|
@@ -19,9 +19,15 @@ module TrinsicApi
|
|
|
19
19
|
# The full name of the individual.
|
|
20
20
|
attr_accessor :full_name
|
|
21
21
|
|
|
22
|
-
# The date of birth
|
|
22
|
+
# The individual's date of birth in YYYY-MM-DD format.
|
|
23
23
|
attr_accessor :date_of_birth
|
|
24
24
|
|
|
25
|
+
# The individual's sex, derived from the personal identity number. Values are Male or Female.
|
|
26
|
+
attr_accessor :sex
|
|
27
|
+
|
|
28
|
+
# The OpenID Connect sub claim, when returned in the provider response. The value starts with the se_bankid: prefix followed by the subject identifier.
|
|
29
|
+
attr_accessor :sub
|
|
30
|
+
|
|
25
31
|
# The Swedish personal number (personnummer) associated with the verified individual. The value is typically a 12-digit number. This is in the format YYYYMMDDXXXX, where: - YYYYMMDD is the date of birth. - XXXX is an individual number, indicating gender. If XXXX is even, the individual is female. If XXXX is odd, the individual is male.
|
|
26
32
|
attr_accessor :personal_identity_number
|
|
27
33
|
|
|
@@ -60,6 +66,8 @@ module TrinsicApi
|
|
|
60
66
|
{
|
|
61
67
|
:'full_name' => :'fullName',
|
|
62
68
|
:'date_of_birth' => :'dateOfBirth',
|
|
69
|
+
:'sex' => :'sex',
|
|
70
|
+
:'sub' => :'sub',
|
|
63
71
|
:'personal_identity_number' => :'personalIdentityNumber',
|
|
64
72
|
:'given_name' => :'givenName',
|
|
65
73
|
:'family_name' => :'familyName',
|
|
@@ -89,6 +97,8 @@ module TrinsicApi
|
|
|
89
97
|
{
|
|
90
98
|
:'full_name' => :'String',
|
|
91
99
|
:'date_of_birth' => :'Date',
|
|
100
|
+
:'sex' => :'String',
|
|
101
|
+
:'sub' => :'String',
|
|
92
102
|
:'personal_identity_number' => :'String',
|
|
93
103
|
:'given_name' => :'String',
|
|
94
104
|
:'family_name' => :'String',
|
|
@@ -108,6 +118,8 @@ module TrinsicApi
|
|
|
108
118
|
Set.new([
|
|
109
119
|
:'full_name',
|
|
110
120
|
:'date_of_birth',
|
|
121
|
+
:'sex',
|
|
122
|
+
:'sub',
|
|
111
123
|
:'personal_identity_number',
|
|
112
124
|
:'given_name',
|
|
113
125
|
:'family_name',
|
|
@@ -146,6 +158,14 @@ module TrinsicApi
|
|
|
146
158
|
self.date_of_birth = attributes[:'date_of_birth']
|
|
147
159
|
end
|
|
148
160
|
|
|
161
|
+
if attributes.key?(:'sex')
|
|
162
|
+
self.sex = attributes[:'sex']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'sub')
|
|
166
|
+
self.sub = attributes[:'sub']
|
|
167
|
+
end
|
|
168
|
+
|
|
149
169
|
if attributes.key?(:'personal_identity_number')
|
|
150
170
|
self.personal_identity_number = attributes[:'personal_identity_number']
|
|
151
171
|
end
|
|
@@ -213,6 +233,8 @@ module TrinsicApi
|
|
|
213
233
|
self.class == o.class &&
|
|
214
234
|
full_name == o.full_name &&
|
|
215
235
|
date_of_birth == o.date_of_birth &&
|
|
236
|
+
sex == o.sex &&
|
|
237
|
+
sub == o.sub &&
|
|
216
238
|
personal_identity_number == o.personal_identity_number &&
|
|
217
239
|
given_name == o.given_name &&
|
|
218
240
|
family_name == o.family_name &&
|
|
@@ -235,7 +257,7 @@ module TrinsicApi
|
|
|
235
257
|
# Calculates hash code according to all attributes.
|
|
236
258
|
# @return [Integer] Hash code
|
|
237
259
|
def hash
|
|
238
|
-
[full_name, date_of_birth, personal_identity_number, given_name, family_name, country, certificate_policy, common_name, distinguished_name, personal_identity_number_issuing_country, authentication_device_ip, not_before, not_after].hash
|
|
260
|
+
[full_name, date_of_birth, sex, sub, personal_identity_number, given_name, family_name, country, certificate_policy, common_name, distinguished_name, personal_identity_number_issuing_country, authentication_device_ip, not_before, not_after].hash
|
|
239
261
|
end
|
|
240
262
|
|
|
241
263
|
# Builds the object from hash
|