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.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/docs/BrazilCnhProviderOutput.md +2 -0
  3. data/docs/BrazilCpfCheckInput.md +3 -3
  4. data/docs/BrazilCpfProviderOutput.md +1 -1
  5. data/docs/BrazilDigitalCnhInput.md +1 -1
  6. data/docs/ConnectIdAgeVerification.md +9 -1
  7. data/docs/ConnectIdInput.md +18 -0
  8. data/docs/CreateDirectProviderSessionRequest.md +2 -0
  9. data/docs/CreateHostedProviderSessionRequest.md +2 -0
  10. data/docs/CzechBankIdInput.md +18 -0
  11. data/docs/DeveloperApi.md +153 -0
  12. data/docs/DigilockerAadhaarProviderOutput.md +1 -1
  13. data/docs/FinnishTrustNetworkAddressOutput.md +22 -0
  14. data/docs/FinnishTrustNetworkInput.md +18 -0
  15. data/docs/FinnishTrustNetworkProviderOutput.md +2 -0
  16. data/docs/GetAttachmentResponse.md +2 -0
  17. data/docs/GetSessionResultRequest.md +3 -1
  18. data/docs/GetSessionResultResponse.md +3 -1
  19. data/docs/HPKETestRequest.md +22 -0
  20. data/docs/HPKETestVPRequest.md +20 -0
  21. data/docs/IdemiaMobileIdProviderOutput.md +1 -5
  22. data/docs/IndiaPanLookupProviderOutput.md +1 -1
  23. data/docs/IndonesiaDukcapilMatchInput.md +1 -1
  24. data/docs/JapanMyNumberProviderOutput.md +24 -0
  25. data/docs/JordanSanadInput.md +18 -0
  26. data/docs/MitIdAddressOutput.md +28 -0
  27. data/docs/MitIdProviderOutput.md +3 -1
  28. data/docs/PolandMobywatelMatchInput.md +1 -1
  29. data/docs/Provider.md +2 -0
  30. data/docs/ProviderInput.md +10 -0
  31. data/docs/ProviderOutput.md +8 -0
  32. data/docs/RecommendProviderInformation.md +2 -0
  33. data/docs/RecommendProvidersRequest.md +1 -1
  34. data/docs/RevolutProviderOutput.md +28 -0
  35. data/docs/SanadProviderOutput.md +28 -0
  36. data/docs/SaudiArabiaNafathAddress.md +50 -0
  37. data/docs/SaudiArabiaNafathCitizenAttributes.md +68 -0
  38. data/docs/SaudiArabiaNafathHeadOfHousehold.md +26 -0
  39. data/docs/SaudiArabiaNafathProviderOutput.md +38 -0
  40. data/docs/SaudiArabiaNafathResidentAttributes.md +68 -0
  41. data/docs/SaudiArabiaNafathVisitorAttributes.md +72 -0
  42. data/docs/SessionsApi.md +2 -2
  43. data/docs/SignzyIndiaAadhaarFetchProviderOutput.md +1 -1
  44. data/docs/SingpassPersonalCatalog.md +2 -2
  45. data/docs/SwedenBankIdProviderOutput.md +7 -3
  46. data/docs/TrinsicHPKEBundle.md +24 -0
  47. data/docs/TrinsicHPKEMetadata.md +30 -0
  48. data/docs/TrinsicTestDatabaseLookupInput.md +1 -1
  49. data/docs/UkEvisaLookupInput.md +1 -1
  50. data/docs/UsaArizonaWalletInput.md +18 -0
  51. data/docs/VerificationProfileResponse.md +2 -0
  52. data/docs/VerificationProfilesApi.md +3 -1
  53. data/docs/YotiStructuredPostalAddress.md +1 -1
  54. data/lib/trinsic_api/api/developer_api.rb +156 -0
  55. data/lib/trinsic_api/api/verification_profiles_api.rb +3 -0
  56. data/lib/trinsic_api/api_client.rb +1 -0
  57. data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +12 -1
  58. data/lib/trinsic_api/models/brazil_cpf_check_input.rb +12 -22
  59. data/lib/trinsic_api/models/brazil_cpf_provider_output.rb +1 -1
  60. data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +1 -1
  61. data/lib/trinsic_api/models/connect_id_age_verification.rb +46 -2
  62. data/lib/trinsic_api/models/connect_id_input.rb +149 -0
  63. data/lib/trinsic_api/models/create_direct_provider_session_request.rb +28 -1
  64. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +28 -1
  65. data/lib/trinsic_api/models/czech_bank_id_input.rb +149 -0
  66. data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +1 -1
  67. data/lib/trinsic_api/models/finnish_trust_network_address_output.rb +171 -0
  68. data/lib/trinsic_api/models/finnish_trust_network_input.rb +149 -0
  69. data/lib/trinsic_api/models/finnish_trust_network_provider_output.rb +12 -1
  70. data/lib/trinsic_api/models/get_attachment_response.rb +12 -1
  71. data/lib/trinsic_api/models/get_session_result_request.rb +15 -4
  72. data/lib/trinsic_api/models/get_session_result_response.rb +16 -5
  73. data/lib/trinsic_api/models/hpke_test_request.rb +219 -0
  74. data/lib/trinsic_api/models/hpke_test_vp_request.rb +192 -0
  75. data/lib/trinsic_api/models/idemia_mobile_id_provider_output.rb +1 -23
  76. data/lib/trinsic_api/models/india_pan_lookup_provider_output.rb +1 -1
  77. data/lib/trinsic_api/models/indonesia_dukcapil_match_input.rb +1 -1
  78. data/lib/trinsic_api/models/japan_my_number_provider_output.rb +183 -0
  79. data/lib/trinsic_api/models/jordan_sanad_input.rb +164 -0
  80. data/lib/trinsic_api/models/mit_id_address_output.rb +204 -0
  81. data/lib/trinsic_api/models/mit_id_provider_output.rb +16 -5
  82. data/lib/trinsic_api/models/poland_mobywatel_match_input.rb +1 -1
  83. data/lib/trinsic_api/models/provider.rb +14 -1
  84. data/lib/trinsic_api/models/provider_input.rb +56 -1
  85. data/lib/trinsic_api/models/provider_output.rb +45 -1
  86. data/lib/trinsic_api/models/recommend_provider_information.rb +14 -1
  87. data/lib/trinsic_api/models/recommend_providers_request.rb +1 -1
  88. data/lib/trinsic_api/models/revolut_provider_output.rb +204 -0
  89. data/lib/trinsic_api/models/sanad_provider_output.rb +205 -0
  90. data/lib/trinsic_api/models/saudi_arabia_nafath_address.rb +325 -0
  91. data/lib/trinsic_api/models/saudi_arabia_nafath_citizen_attributes.rb +426 -0
  92. data/lib/trinsic_api/models/saudi_arabia_nafath_head_of_household.rb +193 -0
  93. data/lib/trinsic_api/models/saudi_arabia_nafath_provider_output.rb +260 -0
  94. data/lib/trinsic_api/models/saudi_arabia_nafath_resident_attributes.rb +426 -0
  95. data/lib/trinsic_api/models/saudi_arabia_nafath_visitor_attributes.rb +446 -0
  96. data/lib/trinsic_api/models/signzy_india_aadhaar_fetch_provider_output.rb +1 -1
  97. data/lib/trinsic_api/models/singpass_personal_catalog.rb +9 -9
  98. data/lib/trinsic_api/models/sweden_bank_id_provider_output.rb +24 -2
  99. data/lib/trinsic_api/models/trinsic_hpke_bundle.rb +246 -0
  100. data/lib/trinsic_api/models/trinsic_hpke_metadata.rb +327 -0
  101. data/lib/trinsic_api/models/trinsic_test_database_lookup_input.rb +1 -1
  102. data/lib/trinsic_api/models/uk_evisa_lookup_input.rb +1 -1
  103. data/lib/trinsic_api/models/usa_arizona_wallet_input.rb +149 -0
  104. data/lib/trinsic_api/models/verification_profile_response.rb +28 -1
  105. data/lib/trinsic_api/version.rb +1 -1
  106. data/lib/trinsic_api.rb +21 -0
  107. data/spec/api/developer_api_spec.rb +60 -0
  108. data/spec/api/verification_profiles_api_spec.rb +1 -0
  109. data/spec/models/brazil_cnh_provider_output_spec.rb +6 -0
  110. data/spec/models/connect_id_age_verification_spec.rb +24 -0
  111. data/spec/models/connect_id_input_spec.rb +36 -0
  112. data/spec/models/create_direct_provider_session_request_spec.rb +6 -0
  113. data/spec/models/create_hosted_provider_session_request_spec.rb +6 -0
  114. data/spec/models/czech_bank_id_input_spec.rb +36 -0
  115. data/spec/models/finnish_trust_network_address_output_spec.rb +48 -0
  116. data/spec/models/finnish_trust_network_input_spec.rb +36 -0
  117. data/spec/models/finnish_trust_network_provider_output_spec.rb +6 -0
  118. data/spec/models/get_attachment_response_spec.rb +6 -0
  119. data/spec/models/get_session_result_request_spec.rb +6 -0
  120. data/spec/models/get_session_result_response_spec.rb +6 -0
  121. data/spec/models/hpke_test_request_spec.rb +48 -0
  122. data/spec/models/hpke_test_vp_request_spec.rb +42 -0
  123. data/spec/models/idemia_mobile_id_provider_output_spec.rb +0 -12
  124. data/spec/models/japan_my_number_provider_output_spec.rb +54 -0
  125. data/spec/models/jordan_sanad_input_spec.rb +36 -0
  126. data/spec/models/mit_id_address_output_spec.rb +66 -0
  127. data/spec/models/mit_id_provider_output_spec.rb +6 -0
  128. data/spec/models/provider_input_spec.rb +30 -0
  129. data/spec/models/provider_output_spec.rb +24 -0
  130. data/spec/models/provider_spec.rb +6 -0
  131. data/spec/models/recommend_provider_information_spec.rb +6 -0
  132. data/spec/models/revolut_provider_output_spec.rb +66 -0
  133. data/spec/models/sanad_provider_output_spec.rb +66 -0
  134. data/spec/models/saudi_arabia_nafath_address_spec.rb +132 -0
  135. data/spec/models/saudi_arabia_nafath_citizen_attributes_spec.rb +186 -0
  136. data/spec/models/saudi_arabia_nafath_head_of_household_spec.rb +60 -0
  137. data/spec/models/saudi_arabia_nafath_provider_output_spec.rb +96 -0
  138. data/spec/models/saudi_arabia_nafath_resident_attributes_spec.rb +186 -0
  139. data/spec/models/saudi_arabia_nafath_visitor_attributes_spec.rb +198 -0
  140. data/spec/models/singpass_personal_catalog_spec.rb +1 -1
  141. data/spec/models/sweden_bank_id_provider_output_spec.rb +12 -0
  142. data/spec/models/trinsic_hpke_bundle_spec.rb +54 -0
  143. data/spec/models/trinsic_hpke_metadata_spec.rb +72 -0
  144. data/spec/models/usa_arizona_wallet_input_spec.rb +36 -0
  145. data/spec/models/verification_profile_response_spec.rb +6 -0
  146. metadata +375 -291
@@ -0,0 +1,426 @@
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 SaudiArabiaNafathCitizenAttributes < ApiModelBase
18
+ # Given name in Arabic. Nafath always returns this in Arabic. romanizedFirstName is the English form, and the session locale does not change either name.
19
+ attr_accessor :arabic_first_name
20
+
21
+ # Father's given name in Arabic. Same script as arabicFirstName.
22
+ attr_accessor :arabic_father_name
23
+
24
+ # Grandfather's given name in Arabic. Same script as arabicFirstName.
25
+ attr_accessor :arabic_grand_father_name
26
+
27
+ # Family name in Arabic. Same script as arabicFirstName.
28
+ attr_accessor :arabic_family_name
29
+
30
+ # Given name in English. Nafath always returns this in English, including when the session locale is Arabic.
31
+ attr_accessor :romanized_first_name
32
+
33
+ # Father's given name in English. Same script as romanizedFirstName.
34
+ attr_accessor :romanized_second_name
35
+
36
+ # Grandfather's given name in English. Same script as romanizedFirstName.
37
+ attr_accessor :romanized_third_name
38
+
39
+ # Family name in English. Same script as romanizedFirstName.
40
+ attr_accessor :romanized_last_name
41
+
42
+ # Date of birth in the Hijri (Umm al-Qura) calendar, in YYYY-MM-DD format.
43
+ attr_accessor :date_of_birth_hijri
44
+
45
+ # Date the national ID card was issued in the Gregorian calendar.
46
+ attr_accessor :id_issue_date_gregorian
47
+
48
+ # Date the national ID card was issued in the Hijri calendar, in YYYY-MM-DD format.
49
+ attr_accessor :id_issue_date_hijri
50
+
51
+ # Date the national ID card expires in the Gregorian calendar.
52
+ attr_accessor :id_expiry_date_gregorian
53
+
54
+ # Date the national ID card expires in the Hijri calendar, in YYYY-MM-DD format.
55
+ attr_accessor :id_expiry_date_hijri
56
+
57
+ # Version number printed on the national ID card. Represents the generation of national ID card this document was issued in.
58
+ attr_accessor :id_version_number
59
+
60
+ # City or office where the national ID card was issued, in Arabic. The session locale does not change it.
61
+ attr_accessor :id_issue_place
62
+
63
+ # Social-status (marital-status) code, from the Nafath socialStatusCode attribute. The numeric code is not unique on its own. The same code maps to different states depending on the value of the top-level sex field. Code by sex: - 0, M: Single - 1, F: Single - 1, M: One wife - 2, F: Married - 2, M: Two wives - 3, F: Divorced - 3, M: Three wives - 4, F: Widow - 4, M: Four wives - 5, F: Pending divorced Combinations not listed are not defined by Nafath.
64
+ attr_accessor :social_status_code
65
+
66
+ # Social status description in Arabic, from the Nafath socialStatusDesc attribute. The session locale does not change it. socialStatusCode is the separate numeric code.
67
+ attr_accessor :social_status
68
+
69
+ # Number of current dependents.
70
+ attr_accessor :dependent_count
71
+
72
+ # Place of birth in Arabic. The session locale does not change it.
73
+ attr_accessor :place_of_birth
74
+
75
+ # Most recent travel exit date in the Gregorian calendar.
76
+ attr_accessor :last_travel_exit_date_gregorian
77
+
78
+ # Most recent travel exit date in the Hijri calendar, in YYYY-MM-DD format.
79
+ attr_accessor :last_travel_exit_date_hijri
80
+
81
+ # Most recent travel entry date in the Gregorian calendar.
82
+ attr_accessor :last_travel_entry_date_gregorian
83
+
84
+ # Most recent travel entry date in the Hijri calendar, in YYYY-MM-DD format.
85
+ attr_accessor :last_travel_entry_date_hijri
86
+
87
+ # True when the citizen is a minor.
88
+ attr_accessor :is_minor
89
+
90
+ # Head of household information, intended for minor citizen workflows such as guardian consent for opening a bank account. The sandbox also returns it for adults, so it is included whenever present.
91
+ attr_accessor :head_of_household
92
+
93
+ # Registered Saudi national addresses, as structured fields. Saudi Post (SPL) documents how to enter a national address on checkout and international forms: Line 1 is building number, unit number, and street name. Line 2 is the additional number and district. Then city and postal code. The country is always Saudi Arabia because Nafath only ever returns Saudi national addresses. https://splonline.com.sa/en/door-step/
94
+ attr_accessor :national_addresses
95
+
96
+ # Attribute mapping from ruby-style variable name to JSON key.
97
+ def self.attribute_map
98
+ {
99
+ :'arabic_first_name' => :'arabicFirstName',
100
+ :'arabic_father_name' => :'arabicFatherName',
101
+ :'arabic_grand_father_name' => :'arabicGrandFatherName',
102
+ :'arabic_family_name' => :'arabicFamilyName',
103
+ :'romanized_first_name' => :'romanizedFirstName',
104
+ :'romanized_second_name' => :'romanizedSecondName',
105
+ :'romanized_third_name' => :'romanizedThirdName',
106
+ :'romanized_last_name' => :'romanizedLastName',
107
+ :'date_of_birth_hijri' => :'dateOfBirthHijri',
108
+ :'id_issue_date_gregorian' => :'idIssueDateGregorian',
109
+ :'id_issue_date_hijri' => :'idIssueDateHijri',
110
+ :'id_expiry_date_gregorian' => :'idExpiryDateGregorian',
111
+ :'id_expiry_date_hijri' => :'idExpiryDateHijri',
112
+ :'id_version_number' => :'idVersionNumber',
113
+ :'id_issue_place' => :'idIssuePlace',
114
+ :'social_status_code' => :'socialStatusCode',
115
+ :'social_status' => :'socialStatus',
116
+ :'dependent_count' => :'dependentCount',
117
+ :'place_of_birth' => :'placeOfBirth',
118
+ :'last_travel_exit_date_gregorian' => :'lastTravelExitDateGregorian',
119
+ :'last_travel_exit_date_hijri' => :'lastTravelExitDateHijri',
120
+ :'last_travel_entry_date_gregorian' => :'lastTravelEntryDateGregorian',
121
+ :'last_travel_entry_date_hijri' => :'lastTravelEntryDateHijri',
122
+ :'is_minor' => :'isMinor',
123
+ :'head_of_household' => :'headOfHousehold',
124
+ :'national_addresses' => :'nationalAddresses'
125
+ }
126
+ end
127
+
128
+ # Returns attribute mapping this model knows about
129
+ def self.acceptable_attribute_map
130
+ attribute_map
131
+ end
132
+
133
+ # Returns all the JSON keys this model knows about
134
+ def self.acceptable_attributes
135
+ acceptable_attribute_map.values
136
+ end
137
+
138
+ # Attribute type mapping.
139
+ def self.openapi_types
140
+ {
141
+ :'arabic_first_name' => :'String',
142
+ :'arabic_father_name' => :'String',
143
+ :'arabic_grand_father_name' => :'String',
144
+ :'arabic_family_name' => :'String',
145
+ :'romanized_first_name' => :'String',
146
+ :'romanized_second_name' => :'String',
147
+ :'romanized_third_name' => :'String',
148
+ :'romanized_last_name' => :'String',
149
+ :'date_of_birth_hijri' => :'String',
150
+ :'id_issue_date_gregorian' => :'Date',
151
+ :'id_issue_date_hijri' => :'String',
152
+ :'id_expiry_date_gregorian' => :'Date',
153
+ :'id_expiry_date_hijri' => :'String',
154
+ :'id_version_number' => :'String',
155
+ :'id_issue_place' => :'String',
156
+ :'social_status_code' => :'String',
157
+ :'social_status' => :'String',
158
+ :'dependent_count' => :'Integer',
159
+ :'place_of_birth' => :'String',
160
+ :'last_travel_exit_date_gregorian' => :'Date',
161
+ :'last_travel_exit_date_hijri' => :'String',
162
+ :'last_travel_entry_date_gregorian' => :'Date',
163
+ :'last_travel_entry_date_hijri' => :'String',
164
+ :'is_minor' => :'Boolean',
165
+ :'head_of_household' => :'SaudiArabiaNafathHeadOfHousehold',
166
+ :'national_addresses' => :'Array<SaudiArabiaNafathAddress>'
167
+ }
168
+ end
169
+
170
+ # List of attributes with nullable: true
171
+ def self.openapi_nullable
172
+ Set.new([
173
+ :'arabic_first_name',
174
+ :'arabic_father_name',
175
+ :'arabic_grand_father_name',
176
+ :'arabic_family_name',
177
+ :'romanized_first_name',
178
+ :'romanized_second_name',
179
+ :'romanized_third_name',
180
+ :'romanized_last_name',
181
+ :'date_of_birth_hijri',
182
+ :'id_issue_date_gregorian',
183
+ :'id_issue_date_hijri',
184
+ :'id_expiry_date_gregorian',
185
+ :'id_expiry_date_hijri',
186
+ :'id_version_number',
187
+ :'id_issue_place',
188
+ :'social_status_code',
189
+ :'social_status',
190
+ :'dependent_count',
191
+ :'place_of_birth',
192
+ :'last_travel_exit_date_gregorian',
193
+ :'last_travel_exit_date_hijri',
194
+ :'last_travel_entry_date_gregorian',
195
+ :'last_travel_entry_date_hijri',
196
+ :'is_minor',
197
+ :'head_of_household',
198
+ :'national_addresses'
199
+ ])
200
+ end
201
+
202
+ # Initializes the object
203
+ # @param [Hash] attributes Model attributes in the form of hash
204
+ def initialize(attributes = {})
205
+ if (!attributes.is_a?(Hash))
206
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SaudiArabiaNafathCitizenAttributes` initialize method"
207
+ end
208
+
209
+ # check to see if the attribute exists and convert string to symbol for hash key
210
+ acceptable_attribute_map = self.class.acceptable_attribute_map
211
+ attributes = attributes.each_with_object({}) { |(k, v), h|
212
+ if (!acceptable_attribute_map.key?(k.to_sym))
213
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SaudiArabiaNafathCitizenAttributes`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
214
+ end
215
+ h[k.to_sym] = v
216
+ }
217
+
218
+ if attributes.key?(:'arabic_first_name')
219
+ self.arabic_first_name = attributes[:'arabic_first_name']
220
+ end
221
+
222
+ if attributes.key?(:'arabic_father_name')
223
+ self.arabic_father_name = attributes[:'arabic_father_name']
224
+ end
225
+
226
+ if attributes.key?(:'arabic_grand_father_name')
227
+ self.arabic_grand_father_name = attributes[:'arabic_grand_father_name']
228
+ end
229
+
230
+ if attributes.key?(:'arabic_family_name')
231
+ self.arabic_family_name = attributes[:'arabic_family_name']
232
+ end
233
+
234
+ if attributes.key?(:'romanized_first_name')
235
+ self.romanized_first_name = attributes[:'romanized_first_name']
236
+ end
237
+
238
+ if attributes.key?(:'romanized_second_name')
239
+ self.romanized_second_name = attributes[:'romanized_second_name']
240
+ end
241
+
242
+ if attributes.key?(:'romanized_third_name')
243
+ self.romanized_third_name = attributes[:'romanized_third_name']
244
+ end
245
+
246
+ if attributes.key?(:'romanized_last_name')
247
+ self.romanized_last_name = attributes[:'romanized_last_name']
248
+ end
249
+
250
+ if attributes.key?(:'date_of_birth_hijri')
251
+ self.date_of_birth_hijri = attributes[:'date_of_birth_hijri']
252
+ end
253
+
254
+ if attributes.key?(:'id_issue_date_gregorian')
255
+ self.id_issue_date_gregorian = attributes[:'id_issue_date_gregorian']
256
+ end
257
+
258
+ if attributes.key?(:'id_issue_date_hijri')
259
+ self.id_issue_date_hijri = attributes[:'id_issue_date_hijri']
260
+ end
261
+
262
+ if attributes.key?(:'id_expiry_date_gregorian')
263
+ self.id_expiry_date_gregorian = attributes[:'id_expiry_date_gregorian']
264
+ end
265
+
266
+ if attributes.key?(:'id_expiry_date_hijri')
267
+ self.id_expiry_date_hijri = attributes[:'id_expiry_date_hijri']
268
+ end
269
+
270
+ if attributes.key?(:'id_version_number')
271
+ self.id_version_number = attributes[:'id_version_number']
272
+ end
273
+
274
+ if attributes.key?(:'id_issue_place')
275
+ self.id_issue_place = attributes[:'id_issue_place']
276
+ end
277
+
278
+ if attributes.key?(:'social_status_code')
279
+ self.social_status_code = attributes[:'social_status_code']
280
+ end
281
+
282
+ if attributes.key?(:'social_status')
283
+ self.social_status = attributes[:'social_status']
284
+ end
285
+
286
+ if attributes.key?(:'dependent_count')
287
+ self.dependent_count = attributes[:'dependent_count']
288
+ end
289
+
290
+ if attributes.key?(:'place_of_birth')
291
+ self.place_of_birth = attributes[:'place_of_birth']
292
+ end
293
+
294
+ if attributes.key?(:'last_travel_exit_date_gregorian')
295
+ self.last_travel_exit_date_gregorian = attributes[:'last_travel_exit_date_gregorian']
296
+ end
297
+
298
+ if attributes.key?(:'last_travel_exit_date_hijri')
299
+ self.last_travel_exit_date_hijri = attributes[:'last_travel_exit_date_hijri']
300
+ end
301
+
302
+ if attributes.key?(:'last_travel_entry_date_gregorian')
303
+ self.last_travel_entry_date_gregorian = attributes[:'last_travel_entry_date_gregorian']
304
+ end
305
+
306
+ if attributes.key?(:'last_travel_entry_date_hijri')
307
+ self.last_travel_entry_date_hijri = attributes[:'last_travel_entry_date_hijri']
308
+ end
309
+
310
+ if attributes.key?(:'is_minor')
311
+ self.is_minor = attributes[:'is_minor']
312
+ end
313
+
314
+ if attributes.key?(:'head_of_household')
315
+ self.head_of_household = attributes[:'head_of_household']
316
+ end
317
+
318
+ if attributes.key?(:'national_addresses')
319
+ if (value = attributes[:'national_addresses']).is_a?(Array)
320
+ self.national_addresses = value
321
+ end
322
+ end
323
+ end
324
+
325
+ # Show invalid properties with the reasons. Usually used together with valid?
326
+ # @return Array for valid properties with the reasons
327
+ def list_invalid_properties
328
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
329
+ invalid_properties = Array.new
330
+ invalid_properties
331
+ end
332
+
333
+ # Check to see if the all the properties in the model are valid
334
+ # @return true if the model is valid
335
+ def valid?
336
+ warn '[DEPRECATED] the `valid?` method is obsolete'
337
+ true
338
+ end
339
+
340
+ # Checks equality by comparing each attribute.
341
+ # @param [Object] Object to be compared
342
+ def ==(o)
343
+ return true if self.equal?(o)
344
+ self.class == o.class &&
345
+ arabic_first_name == o.arabic_first_name &&
346
+ arabic_father_name == o.arabic_father_name &&
347
+ arabic_grand_father_name == o.arabic_grand_father_name &&
348
+ arabic_family_name == o.arabic_family_name &&
349
+ romanized_first_name == o.romanized_first_name &&
350
+ romanized_second_name == o.romanized_second_name &&
351
+ romanized_third_name == o.romanized_third_name &&
352
+ romanized_last_name == o.romanized_last_name &&
353
+ date_of_birth_hijri == o.date_of_birth_hijri &&
354
+ id_issue_date_gregorian == o.id_issue_date_gregorian &&
355
+ id_issue_date_hijri == o.id_issue_date_hijri &&
356
+ id_expiry_date_gregorian == o.id_expiry_date_gregorian &&
357
+ id_expiry_date_hijri == o.id_expiry_date_hijri &&
358
+ id_version_number == o.id_version_number &&
359
+ id_issue_place == o.id_issue_place &&
360
+ social_status_code == o.social_status_code &&
361
+ social_status == o.social_status &&
362
+ dependent_count == o.dependent_count &&
363
+ place_of_birth == o.place_of_birth &&
364
+ last_travel_exit_date_gregorian == o.last_travel_exit_date_gregorian &&
365
+ last_travel_exit_date_hijri == o.last_travel_exit_date_hijri &&
366
+ last_travel_entry_date_gregorian == o.last_travel_entry_date_gregorian &&
367
+ last_travel_entry_date_hijri == o.last_travel_entry_date_hijri &&
368
+ is_minor == o.is_minor &&
369
+ head_of_household == o.head_of_household &&
370
+ national_addresses == o.national_addresses
371
+ end
372
+
373
+ # @see the `==` method
374
+ # @param [Object] Object to be compared
375
+ def eql?(o)
376
+ self == o
377
+ end
378
+
379
+ # Calculates hash code according to all attributes.
380
+ # @return [Integer] Hash code
381
+ def hash
382
+ [arabic_first_name, arabic_father_name, arabic_grand_father_name, arabic_family_name, romanized_first_name, romanized_second_name, romanized_third_name, romanized_last_name, date_of_birth_hijri, id_issue_date_gregorian, id_issue_date_hijri, id_expiry_date_gregorian, id_expiry_date_hijri, id_version_number, id_issue_place, social_status_code, social_status, dependent_count, place_of_birth, last_travel_exit_date_gregorian, last_travel_exit_date_hijri, last_travel_entry_date_gregorian, last_travel_entry_date_hijri, is_minor, head_of_household, national_addresses].hash
383
+ end
384
+
385
+ # Builds the object from hash
386
+ # @param [Hash] attributes Model attributes in the form of hash
387
+ # @return [Object] Returns the model itself
388
+ def self.build_from_hash(attributes)
389
+ return nil unless attributes.is_a?(Hash)
390
+ attributes = attributes.transform_keys(&:to_sym)
391
+ transformed_hash = {}
392
+ openapi_types.each_pair do |key, type|
393
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
394
+ transformed_hash["#{key}"] = nil
395
+ elsif type =~ /\AArray<(.*)>/i
396
+ # check to ensure the input is an array given that the attribute
397
+ # is documented as an array but the input is not
398
+ if attributes[attribute_map[key]].is_a?(Array)
399
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
400
+ end
401
+ elsif !attributes[attribute_map[key]].nil?
402
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
403
+ end
404
+ end
405
+ new(transformed_hash)
406
+ end
407
+
408
+ # Returns the object in the form of hash
409
+ # @return [Hash] Returns the object in the form of hash
410
+ def to_hash
411
+ hash = {}
412
+ self.class.attribute_map.each_pair do |attr, param|
413
+ value = self.send(attr)
414
+ if value.nil?
415
+ is_nullable = self.class.openapi_nullable.include?(attr)
416
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
417
+ end
418
+
419
+ hash[param] = _to_hash(value)
420
+ end
421
+ hash
422
+ end
423
+
424
+ end
425
+
426
+ end
@@ -0,0 +1,193 @@
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 SaudiArabiaNafathHeadOfHousehold < ApiModelBase
18
+ # Head of household national identity number.
19
+ attr_accessor :national_identity_number
20
+
21
+ # Head of household given name in Arabic.
22
+ attr_accessor :arabic_first_name
23
+
24
+ # Head of household father name in Arabic.
25
+ attr_accessor :arabic_father_name
26
+
27
+ # Head of household grandfather name in Arabic.
28
+ attr_accessor :arabic_grand_father_name
29
+
30
+ # Head of household family name in Arabic.
31
+ attr_accessor :arabic_family_name
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'national_identity_number' => :'nationalIdentityNumber',
37
+ :'arabic_first_name' => :'arabicFirstName',
38
+ :'arabic_father_name' => :'arabicFatherName',
39
+ :'arabic_grand_father_name' => :'arabicGrandFatherName',
40
+ :'arabic_family_name' => :'arabicFamilyName'
41
+ }
42
+ end
43
+
44
+ # Returns attribute mapping this model knows about
45
+ def self.acceptable_attribute_map
46
+ attribute_map
47
+ end
48
+
49
+ # Returns all the JSON keys this model knows about
50
+ def self.acceptable_attributes
51
+ acceptable_attribute_map.values
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.openapi_types
56
+ {
57
+ :'national_identity_number' => :'String',
58
+ :'arabic_first_name' => :'String',
59
+ :'arabic_father_name' => :'String',
60
+ :'arabic_grand_father_name' => :'String',
61
+ :'arabic_family_name' => :'String'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ :'national_identity_number',
69
+ :'arabic_first_name',
70
+ :'arabic_father_name',
71
+ :'arabic_grand_father_name',
72
+ :'arabic_family_name'
73
+ ])
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SaudiArabiaNafathHeadOfHousehold` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ acceptable_attribute_map = self.class.acceptable_attribute_map
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!acceptable_attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SaudiArabiaNafathHeadOfHousehold`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'national_identity_number')
93
+ self.national_identity_number = attributes[:'national_identity_number']
94
+ end
95
+
96
+ if attributes.key?(:'arabic_first_name')
97
+ self.arabic_first_name = attributes[:'arabic_first_name']
98
+ end
99
+
100
+ if attributes.key?(:'arabic_father_name')
101
+ self.arabic_father_name = attributes[:'arabic_father_name']
102
+ end
103
+
104
+ if attributes.key?(:'arabic_grand_father_name')
105
+ self.arabic_grand_father_name = attributes[:'arabic_grand_father_name']
106
+ end
107
+
108
+ if attributes.key?(:'arabic_family_name')
109
+ self.arabic_family_name = attributes[:'arabic_family_name']
110
+ end
111
+ end
112
+
113
+ # Show invalid properties with the reasons. Usually used together with valid?
114
+ # @return Array for valid properties with the reasons
115
+ def list_invalid_properties
116
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
117
+ invalid_properties = Array.new
118
+ invalid_properties
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ def valid?
124
+ warn '[DEPRECATED] the `valid?` method is obsolete'
125
+ true
126
+ end
127
+
128
+ # Checks equality by comparing each attribute.
129
+ # @param [Object] Object to be compared
130
+ def ==(o)
131
+ return true if self.equal?(o)
132
+ self.class == o.class &&
133
+ national_identity_number == o.national_identity_number &&
134
+ arabic_first_name == o.arabic_first_name &&
135
+ arabic_father_name == o.arabic_father_name &&
136
+ arabic_grand_father_name == o.arabic_grand_father_name &&
137
+ arabic_family_name == o.arabic_family_name
138
+ end
139
+
140
+ # @see the `==` method
141
+ # @param [Object] Object to be compared
142
+ def eql?(o)
143
+ self == o
144
+ end
145
+
146
+ # Calculates hash code according to all attributes.
147
+ # @return [Integer] Hash code
148
+ def hash
149
+ [national_identity_number, arabic_first_name, arabic_father_name, arabic_grand_father_name, arabic_family_name].hash
150
+ end
151
+
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def self.build_from_hash(attributes)
156
+ return nil unless attributes.is_a?(Hash)
157
+ attributes = attributes.transform_keys(&:to_sym)
158
+ transformed_hash = {}
159
+ openapi_types.each_pair do |key, type|
160
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
161
+ transformed_hash["#{key}"] = nil
162
+ elsif type =~ /\AArray<(.*)>/i
163
+ # check to ensure the input is an array given that the attribute
164
+ # is documented as an array but the input is not
165
+ if attributes[attribute_map[key]].is_a?(Array)
166
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
167
+ end
168
+ elsif !attributes[attribute_map[key]].nil?
169
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
170
+ end
171
+ end
172
+ new(transformed_hash)
173
+ end
174
+
175
+ # Returns the object in the form of hash
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_hash
178
+ hash = {}
179
+ self.class.attribute_map.each_pair do |attr, param|
180
+ value = self.send(attr)
181
+ if value.nil?
182
+ is_nullable = self.class.openapi_nullable.include?(attr)
183
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
184
+ end
185
+
186
+ hash[param] = _to_hash(value)
187
+ end
188
+ hash
189
+ end
190
+
191
+ end
192
+
193
+ end