trinsic_api 3.3.0.pre.alpha3 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AadhaarDocumentOutput.md +28 -0
  3. data/docs/BrazilCnhProviderOutput.md +4 -0
  4. data/docs/BrazilCpfProviderOutput.md +0 -2
  5. data/docs/ChinaResidentIdMatchOutput.md +7 -1
  6. data/docs/CoteDIvoireNidLookup2ProviderOutput.md +4 -0
  7. data/docs/CzechBankIdProviderOutput.md +2 -2
  8. data/docs/CzechMojeIdProviderOutput.md +2 -0
  9. data/docs/DigidentityAddressOutput.md +22 -0
  10. data/docs/DigidentityProviderOutput.md +40 -0
  11. data/docs/DigilockerAadhaarProviderOutput.md +5 -1
  12. data/docs/ElSalvadorDuiProviderOutput.md +2 -2
  13. data/docs/FinnishTrustNetworkAddressOutput.md +3 -1
  14. data/docs/FinnishTrustNetworkProviderOutput.md +1 -1
  15. data/docs/{SignzyIndiaAadhaarFetchProviderOutput.md → IndiaDigilockerAadhaarFetchProviderOutput.md} +6 -2
  16. data/docs/IndonesiaDukcapilMatchProviderOutput.md +6 -0
  17. data/docs/ItsmeProviderOutput.md +2 -0
  18. data/docs/KenyaNidLookup2ProviderOutput.md +4 -0
  19. data/docs/KoreaTelcoMatchProviderOutput.md +6 -0
  20. data/docs/NigeriaNinLookup2ProviderOutput.md +4 -0
  21. data/docs/PhilippinesPhysicalNidProviderOutput.md +5 -1
  22. data/docs/PolandMobywatelMatchProviderOutput.md +4 -0
  23. data/docs/Provider.md +6 -2
  24. data/docs/ProviderInput.md +0 -12
  25. data/docs/ProviderOutput.md +9 -29
  26. data/docs/RecommendProviderInformation.md +6 -2
  27. data/docs/SouthAfricaNidLookup2ProviderOutput.md +2 -0
  28. data/docs/SubProviderMetadata.md +6 -4
  29. data/docs/SubmitNativeChallengeResponseRequest.md +1 -1
  30. data/docs/ZimbabweNidLookup2ProviderOutput.md +2 -0
  31. data/lib/trinsic_api/api_client.rb +2 -1
  32. data/lib/trinsic_api/api_model_base.rb +2 -0
  33. data/lib/trinsic_api/models/{belgium_id_card_provider_output.rb → aadhaar_document_output.rb} +52 -30
  34. data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +23 -1
  35. data/lib/trinsic_api/models/brazil_cpf_provider_output.rb +1 -12
  36. data/lib/trinsic_api/models/china_resident_id_match_output.rb +38 -5
  37. data/lib/trinsic_api/models/cote_d_ivoire_nid_lookup2_provider_output.rb +23 -1
  38. data/lib/trinsic_api/models/czech_bank_id_provider_output.rb +2 -2
  39. data/lib/trinsic_api/models/czech_moje_id_provider_output.rb +12 -1
  40. data/lib/trinsic_api/models/{nigeria_nin_match2_sex_field.rb → digidentity_address_output.rb} +31 -20
  41. data/lib/trinsic_api/models/{nigeria_nin_match2_input.rb → digidentity_provider_output.rb} +101 -67
  42. data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +27 -5
  43. data/lib/trinsic_api/models/el_salvador_dui_provider_output.rb +2 -2
  44. data/lib/trinsic_api/models/finnish_trust_network_address_output.rb +16 -5
  45. data/lib/trinsic_api/models/{signzy_india_aadhaar_fetch_provider_output.rb → india_digilocker_aadhaar_fetch_provider_output.rb} +26 -4
  46. data/lib/trinsic_api/models/indonesia_dukcapil_match_provider_output.rb +34 -1
  47. data/lib/trinsic_api/models/itsme_provider_output.rb +12 -1
  48. data/lib/trinsic_api/models/kenya_nid_lookup2_provider_output.rb +23 -1
  49. data/lib/trinsic_api/models/korea_telco_match_provider_output.rb +34 -1
  50. data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +23 -1
  51. data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +27 -5
  52. data/lib/trinsic_api/models/poland_mobywatel_match_provider_output.rb +23 -1
  53. data/lib/trinsic_api/models/provider.rb +71 -17
  54. data/lib/trinsic_api/models/provider_input.rb +1 -67
  55. data/lib/trinsic_api/models/provider_output.rb +46 -156
  56. data/lib/trinsic_api/models/recommend_provider_information.rb +71 -17
  57. data/lib/trinsic_api/models/south_africa_nid_lookup2_provider_output.rb +12 -1
  58. data/lib/trinsic_api/models/sub_provider_metadata.rb +68 -25
  59. data/lib/trinsic_api/models/submit_native_challenge_response_request.rb +1 -1
  60. data/lib/trinsic_api/models/zimbabwe_nid_lookup2_provider_output.rb +12 -1
  61. data/lib/trinsic_api/version.rb +1 -1
  62. data/lib/trinsic_api.rb +4 -37
  63. data/spec/models/{kenya_nid_input_spec.rb → aadhaar_document_output_spec.rb} +12 -12
  64. data/spec/models/brazil_cnh_provider_output_spec.rb +12 -0
  65. data/spec/models/brazil_cpf_provider_output_spec.rb +0 -6
  66. data/spec/models/china_resident_id_match_output_spec.rb +18 -0
  67. data/spec/models/cote_d_ivoire_nid_lookup2_provider_output_spec.rb +12 -0
  68. data/spec/models/czech_moje_id_provider_output_spec.rb +6 -0
  69. data/spec/models/{latvia_eparaksts_provider_output_spec.rb → digidentity_address_output_spec.rb} +9 -9
  70. data/spec/models/{yoti_deeplink_provider_output_spec.rb → digidentity_provider_output_spec.rb} +18 -18
  71. data/spec/models/digilocker_aadhaar_provider_output_spec.rb +12 -0
  72. data/spec/models/finnish_trust_network_address_output_spec.rb +6 -0
  73. data/spec/models/{signzy_india_aadhaar_fetch_provider_output_spec.rb → india_digilocker_aadhaar_fetch_provider_output_spec.rb} +18 -6
  74. data/spec/models/indonesia_dukcapil_match_provider_output_spec.rb +18 -0
  75. data/spec/models/itsme_provider_output_spec.rb +6 -0
  76. data/spec/models/kenya_nid_lookup2_provider_output_spec.rb +12 -0
  77. data/spec/models/korea_telco_match_provider_output_spec.rb +18 -0
  78. data/spec/models/nigeria_nin_lookup2_provider_output_spec.rb +12 -0
  79. data/spec/models/philippines_physical_nid_provider_output_spec.rb +12 -0
  80. data/spec/models/poland_mobywatel_match_provider_output_spec.rb +12 -0
  81. data/spec/models/provider_input_spec.rb +0 -36
  82. data/spec/models/provider_output_spec.rb +21 -81
  83. data/spec/models/provider_spec.rb +13 -1
  84. data/spec/models/recommend_provider_information_spec.rb +13 -1
  85. data/spec/models/south_africa_nid_lookup2_provider_output_spec.rb +6 -0
  86. data/spec/models/sub_provider_metadata_spec.rb +8 -2
  87. data/spec/models/zimbabwe_nid_lookup2_provider_output_spec.rb +6 -0
  88. metadata +293 -425
  89. data/docs/BelgiumIdCardProviderOutput.md +0 -24
  90. data/docs/CzechiaMojeIdProviderOutput.md +0 -24
  91. data/docs/EstoniaIdCardProviderOutput.md +0 -24
  92. data/docs/FinlandIdCardProviderOutput.md +0 -24
  93. data/docs/FrejaIndirectProviderOutput.md +0 -24
  94. data/docs/KenyaNidInput.md +0 -28
  95. data/docs/KenyaNidMatch2DateOfBirthField.md +0 -20
  96. data/docs/KenyaNidMatch2FullNameField.md +0 -20
  97. data/docs/KenyaNidMatch2Input.md +0 -28
  98. data/docs/KenyaNidMatch2InputSex.md +0 -15
  99. data/docs/KenyaNidMatch2NationalIdNumberField.md +0 -20
  100. data/docs/KenyaNidMatch2ProviderOutput.md +0 -24
  101. data/docs/KenyaNidMatch2SexField.md +0 -20
  102. data/docs/LatviaEparakstsProviderOutput.md +0 -22
  103. data/docs/LithuaniaIdCardProviderOutput.md +0 -24
  104. data/docs/LloydsSmartIdProviderOutput.md +0 -40
  105. data/docs/NigeriaNinInput.md +0 -30
  106. data/docs/NigeriaNinMatch2DateOfBirthField.md +0 -20
  107. data/docs/NigeriaNinMatch2FullNameField.md +0 -20
  108. data/docs/NigeriaNinMatch2Input.md +0 -30
  109. data/docs/NigeriaNinMatch2InputSex.md +0 -15
  110. data/docs/NigeriaNinMatch2NationalIdNumberField.md +0 -20
  111. data/docs/NigeriaNinMatch2PhoneNumberField.md +0 -20
  112. data/docs/NigeriaNinMatch2ProviderOutput.md +0 -26
  113. data/docs/NigeriaNinMatch2SexField.md +0 -20
  114. data/docs/PortugalIdCardProviderOutput.md +0 -24
  115. data/docs/SerbiaIdCardProviderOutput.md +0 -24
  116. data/docs/SouthAfricaNidInput.md +0 -24
  117. data/docs/SouthAfricaNidMatch2DateOfBirthField.md +0 -20
  118. data/docs/SouthAfricaNidMatch2FullNameField.md +0 -20
  119. data/docs/SouthAfricaNidMatch2Input.md +0 -28
  120. data/docs/SouthAfricaNidMatch2InputSex.md +0 -15
  121. data/docs/SouthAfricaNidMatch2NationalIdNumberField.md +0 -20
  122. data/docs/SouthAfricaNidMatch2ProviderOutput.md +0 -26
  123. data/docs/SouthAfricaNidMatch2SexField.md +0 -20
  124. data/docs/YotiDeeplinkProviderOutput.md +0 -40
  125. data/lib/trinsic_api/models/czechia_moje_id_provider_output.rb +0 -196
  126. data/lib/trinsic_api/models/estonia_id_card_provider_output.rb +0 -196
  127. data/lib/trinsic_api/models/finland_id_card_provider_output.rb +0 -196
  128. data/lib/trinsic_api/models/freja_indirect_provider_output.rb +0 -196
  129. data/lib/trinsic_api/models/kenya_nid_input.rb +0 -353
  130. data/lib/trinsic_api/models/kenya_nid_match2_date_of_birth_field.rb +0 -173
  131. data/lib/trinsic_api/models/kenya_nid_match2_full_name_field.rb +0 -173
  132. data/lib/trinsic_api/models/kenya_nid_match2_input.rb +0 -239
  133. data/lib/trinsic_api/models/kenya_nid_match2_input_sex.rb +0 -41
  134. data/lib/trinsic_api/models/kenya_nid_match2_national_id_number_field.rb +0 -173
  135. data/lib/trinsic_api/models/kenya_nid_match2_provider_output.rb +0 -196
  136. data/lib/trinsic_api/models/kenya_nid_match2_sex_field.rb +0 -173
  137. data/lib/trinsic_api/models/latvia_eparaksts_provider_output.rb +0 -185
  138. data/lib/trinsic_api/models/lithuania_id_card_provider_output.rb +0 -196
  139. data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +0 -284
  140. data/lib/trinsic_api/models/nigeria_nin_input.rb +0 -339
  141. data/lib/trinsic_api/models/nigeria_nin_match2_date_of_birth_field.rb +0 -173
  142. data/lib/trinsic_api/models/nigeria_nin_match2_full_name_field.rb +0 -173
  143. data/lib/trinsic_api/models/nigeria_nin_match2_input_sex.rb +0 -41
  144. data/lib/trinsic_api/models/nigeria_nin_match2_national_id_number_field.rb +0 -173
  145. data/lib/trinsic_api/models/nigeria_nin_match2_phone_number_field.rb +0 -173
  146. data/lib/trinsic_api/models/nigeria_nin_match2_provider_output.rb +0 -207
  147. data/lib/trinsic_api/models/portugal_id_card_provider_output.rb +0 -196
  148. data/lib/trinsic_api/models/serbia_id_card_provider_output.rb +0 -196
  149. data/lib/trinsic_api/models/south_africa_nid_input.rb +0 -306
  150. data/lib/trinsic_api/models/south_africa_nid_match2_date_of_birth_field.rb +0 -173
  151. data/lib/trinsic_api/models/south_africa_nid_match2_full_name_field.rb +0 -173
  152. data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +0 -239
  153. data/lib/trinsic_api/models/south_africa_nid_match2_input_sex.rb +0 -41
  154. data/lib/trinsic_api/models/south_africa_nid_match2_national_id_number_field.rb +0 -173
  155. data/lib/trinsic_api/models/south_africa_nid_match2_provider_output.rb +0 -207
  156. data/lib/trinsic_api/models/south_africa_nid_match2_sex_field.rb +0 -173
  157. data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +0 -284
  158. data/spec/models/belgium_id_card_provider_output_spec.rb +0 -54
  159. data/spec/models/czechia_moje_id_provider_output_spec.rb +0 -54
  160. data/spec/models/estonia_id_card_provider_output_spec.rb +0 -54
  161. data/spec/models/finland_id_card_provider_output_spec.rb +0 -54
  162. data/spec/models/freja_indirect_provider_output_spec.rb +0 -54
  163. data/spec/models/kenya_nid_match2_date_of_birth_field_spec.rb +0 -42
  164. data/spec/models/kenya_nid_match2_full_name_field_spec.rb +0 -42
  165. data/spec/models/kenya_nid_match2_input_sex_spec.rb +0 -30
  166. data/spec/models/kenya_nid_match2_input_spec.rb +0 -66
  167. data/spec/models/kenya_nid_match2_national_id_number_field_spec.rb +0 -42
  168. data/spec/models/kenya_nid_match2_provider_output_spec.rb +0 -54
  169. data/spec/models/kenya_nid_match2_sex_field_spec.rb +0 -42
  170. data/spec/models/lithuania_id_card_provider_output_spec.rb +0 -54
  171. data/spec/models/lloyds_smart_id_provider_output_spec.rb +0 -102
  172. data/spec/models/nigeria_nin_input_spec.rb +0 -72
  173. data/spec/models/nigeria_nin_match2_date_of_birth_field_spec.rb +0 -42
  174. data/spec/models/nigeria_nin_match2_full_name_field_spec.rb +0 -42
  175. data/spec/models/nigeria_nin_match2_input_sex_spec.rb +0 -30
  176. data/spec/models/nigeria_nin_match2_input_spec.rb +0 -72
  177. data/spec/models/nigeria_nin_match2_national_id_number_field_spec.rb +0 -42
  178. data/spec/models/nigeria_nin_match2_phone_number_field_spec.rb +0 -42
  179. data/spec/models/nigeria_nin_match2_provider_output_spec.rb +0 -60
  180. data/spec/models/nigeria_nin_match2_sex_field_spec.rb +0 -42
  181. data/spec/models/portugal_id_card_provider_output_spec.rb +0 -54
  182. data/spec/models/serbia_id_card_provider_output_spec.rb +0 -54
  183. data/spec/models/south_africa_nid_input_spec.rb +0 -54
  184. data/spec/models/south_africa_nid_match2_date_of_birth_field_spec.rb +0 -42
  185. data/spec/models/south_africa_nid_match2_full_name_field_spec.rb +0 -42
  186. data/spec/models/south_africa_nid_match2_input_sex_spec.rb +0 -30
  187. data/spec/models/south_africa_nid_match2_input_spec.rb +0 -66
  188. data/spec/models/south_africa_nid_match2_national_id_number_field_spec.rb +0 -42
  189. data/spec/models/south_africa_nid_match2_provider_output_spec.rb +0 -60
  190. data/spec/models/south_africa_nid_match2_sex_field_spec.rb +0 -42
@@ -1,284 +0,0 @@
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.26.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module TrinsicApi
17
- # Exposed properties for the `lloyds-smart-id` Provider which do not directly map to the normalized IdentityData model.
18
- class LloydsSmartIdProviderOutput < ApiModelBase
19
- # A Yoti-generated unique ID for this individual, consistent across repeat shares and different for each Relying Party.
20
- attr_accessor :yoti_remember_me_id
21
-
22
- # The email address of the individual
23
- attr_accessor :email
24
-
25
- # The given name of the individual. This can correspond to first and middle names in English.
26
- attr_accessor :given_name
27
-
28
- # The family name of the individual
29
- attr_accessor :family_name
30
-
31
- # Full name of the individual which is composed of the given and family name. Unverified full name may be safe to use. For example, Aadhaar card provides full name, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as \"unverified\".
32
- attr_accessor :full_name
33
-
34
- # The date of birth of the individual. Unverified date of birth may be safe to use. For example, Aadhaar card provides date of birth, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as \"unverified\".
35
- attr_accessor :date_of_birth
36
-
37
- # The gender of the individual. Depending on the source or country, gender may not be verified. This is a setting that can be configured while setting up scopes. Unverified gender may be safe to use. For example, Aadhaar card provides gender, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as \"unverified\". In some countries Possible values: - \"MALE\" - \"FEMALE\" - \"TRANSGENDER\" - \"OTHER\"
38
- attr_accessor :gender
39
-
40
- # The nationality of the individual as a ISO alpha-3 code
41
- attr_accessor :nationality
42
-
43
- # The mobile phone number of the individual. This number was verified with a one time password (OTP) during the individual's registration with Yoti. In some cases, Yoti may do additional checks against its sources to confirm the individual's identity.
44
- attr_accessor :mobile_number
45
-
46
- # A structured postal address for the individual that comes from the underlying document or can be manually added. In the case of being manually added, the address is considered \"unverified\". Unverified addresses may be safe to use. For example, Aadhaar card provides an address, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as \"unverified\".
47
- attr_accessor :structured_postal_address
48
-
49
- # The whole address for the individual that comes from the underlying document or can be manually added. In the case of being manually added, the address is considered \"unverified\". The format of this will be different for each country. Refer to `StructuredPostalAddress` for a detailed version of the address.
50
- attr_accessor :postal_address
51
-
52
- # The details of the underlying document used to help create the Yoti credential
53
- attr_accessor :document_details
54
-
55
- # Attribute mapping from ruby-style variable name to JSON key.
56
- def self.attribute_map
57
- {
58
- :'yoti_remember_me_id' => :'yotiRememberMeId',
59
- :'email' => :'email',
60
- :'given_name' => :'givenName',
61
- :'family_name' => :'familyName',
62
- :'full_name' => :'fullName',
63
- :'date_of_birth' => :'dateOfBirth',
64
- :'gender' => :'gender',
65
- :'nationality' => :'nationality',
66
- :'mobile_number' => :'mobileNumber',
67
- :'structured_postal_address' => :'structuredPostalAddress',
68
- :'postal_address' => :'postalAddress',
69
- :'document_details' => :'documentDetails'
70
- }
71
- end
72
-
73
- # Returns attribute mapping this model knows about
74
- def self.acceptable_attribute_map
75
- attribute_map
76
- end
77
-
78
- # Returns all the JSON keys this model knows about
79
- def self.acceptable_attributes
80
- acceptable_attribute_map.values
81
- end
82
-
83
- # Attribute type mapping.
84
- def self.openapi_types
85
- {
86
- :'yoti_remember_me_id' => :'String',
87
- :'email' => :'String',
88
- :'given_name' => :'String',
89
- :'family_name' => :'String',
90
- :'full_name' => :'String',
91
- :'date_of_birth' => :'Date',
92
- :'gender' => :'String',
93
- :'nationality' => :'String',
94
- :'mobile_number' => :'String',
95
- :'structured_postal_address' => :'YotiStructuredPostalAddress',
96
- :'postal_address' => :'String',
97
- :'document_details' => :'YotiDocumentDetails'
98
- }
99
- end
100
-
101
- # List of attributes with nullable: true
102
- def self.openapi_nullable
103
- Set.new([
104
- :'yoti_remember_me_id',
105
- :'email',
106
- :'given_name',
107
- :'family_name',
108
- :'full_name',
109
- :'date_of_birth',
110
- :'gender',
111
- :'nationality',
112
- :'mobile_number',
113
- :'structured_postal_address',
114
- :'postal_address',
115
- :'document_details'
116
- ])
117
- end
118
-
119
- # Returns attribute type mapping
120
- def self.acceptable_openapi_types
121
- openapi_types
122
- end
123
-
124
- # Returns the nullable attributes
125
- def self.acceptable_openapi_nullable
126
- openapi_nullable
127
- end
128
-
129
- # Initializes the object
130
- # @param [Hash] attributes Model attributes in the form of hash
131
- def initialize(attributes = {})
132
- if (!attributes.is_a?(Hash))
133
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::LloydsSmartIdProviderOutput` initialize method"
134
- end
135
-
136
- # check to see if the attribute exists and convert string to symbol for hash key
137
- acceptable_attribute_map = self.class.acceptable_attribute_map
138
- attributes = attributes.each_with_object({}) { |(k, v), h|
139
- if (!acceptable_attribute_map.key?(k.to_sym))
140
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::LloydsSmartIdProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
141
- end
142
- h[k.to_sym] = v
143
- }
144
-
145
- if attributes.key?(:'yoti_remember_me_id')
146
- self.yoti_remember_me_id = attributes[:'yoti_remember_me_id']
147
- end
148
-
149
- if attributes.key?(:'email')
150
- self.email = attributes[:'email']
151
- end
152
-
153
- if attributes.key?(:'given_name')
154
- self.given_name = attributes[:'given_name']
155
- end
156
-
157
- if attributes.key?(:'family_name')
158
- self.family_name = attributes[:'family_name']
159
- end
160
-
161
- if attributes.key?(:'full_name')
162
- self.full_name = attributes[:'full_name']
163
- end
164
-
165
- if attributes.key?(:'date_of_birth')
166
- self.date_of_birth = attributes[:'date_of_birth']
167
- end
168
-
169
- if attributes.key?(:'gender')
170
- self.gender = attributes[:'gender']
171
- end
172
-
173
- if attributes.key?(:'nationality')
174
- self.nationality = attributes[:'nationality']
175
- end
176
-
177
- if attributes.key?(:'mobile_number')
178
- self.mobile_number = attributes[:'mobile_number']
179
- end
180
-
181
- if attributes.key?(:'structured_postal_address')
182
- self.structured_postal_address = attributes[:'structured_postal_address']
183
- end
184
-
185
- if attributes.key?(:'postal_address')
186
- self.postal_address = attributes[:'postal_address']
187
- end
188
-
189
- if attributes.key?(:'document_details')
190
- self.document_details = attributes[:'document_details']
191
- end
192
- end
193
-
194
- # Show invalid properties with the reasons. Usually used together with valid?
195
- # @return Array for valid properties with the reasons
196
- def list_invalid_properties
197
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
198
- invalid_properties = Array.new
199
- invalid_properties
200
- end
201
-
202
- # Check to see if the all the properties in the model are valid
203
- # @return true if the model is valid
204
- def valid?
205
- warn '[DEPRECATED] the `valid?` method is obsolete'
206
- true
207
- end
208
-
209
- # Checks equality by comparing each attribute.
210
- # @param [Object] Object to be compared
211
- def ==(o)
212
- return true if self.equal?(o)
213
- self.class == o.class &&
214
- yoti_remember_me_id == o.yoti_remember_me_id &&
215
- email == o.email &&
216
- given_name == o.given_name &&
217
- family_name == o.family_name &&
218
- full_name == o.full_name &&
219
- date_of_birth == o.date_of_birth &&
220
- gender == o.gender &&
221
- nationality == o.nationality &&
222
- mobile_number == o.mobile_number &&
223
- structured_postal_address == o.structured_postal_address &&
224
- postal_address == o.postal_address &&
225
- document_details == o.document_details
226
- end
227
-
228
- # @see the `==` method
229
- # @param [Object] Object to be compared
230
- def eql?(o)
231
- self == o
232
- end
233
-
234
- # Calculates hash code according to all attributes.
235
- # @return [Integer] Hash code
236
- def hash
237
- [yoti_remember_me_id, email, given_name, family_name, full_name, date_of_birth, gender, nationality, mobile_number, structured_postal_address, postal_address, document_details].hash
238
- end
239
-
240
- # Builds the object from hash
241
- # @param [Hash] attributes Model attributes in the form of hash
242
- # @return [Object] Returns the model itself
243
- def self.build_from_hash(attributes)
244
- return nil unless attributes.is_a?(Hash)
245
- attributes = attributes.transform_keys(&:to_sym)
246
- # include attributes inherited from allOf parents (the nearest declaration wins)
247
- map = acceptable_attribute_map
248
- transformed_hash = {}
249
- acceptable_openapi_types.each_pair do |key, type|
250
- if attributes.key?(map[key]) && attributes[map[key]].nil?
251
- transformed_hash["#{key}"] = nil
252
- elsif type =~ /\AArray<(.*)>/i
253
- # check to ensure the input is an array given that the attribute
254
- # is documented as an array but the input is not
255
- if attributes[map[key]].is_a?(Array)
256
- transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
257
- end
258
- elsif !attributes[map[key]].nil?
259
- transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
260
- end
261
- end
262
- new(transformed_hash)
263
- end
264
-
265
- # Returns the object in the form of hash
266
- # @return [Hash] Returns the object in the form of hash
267
- def to_hash
268
- hash = {}
269
- # include attributes inherited from allOf parents (the nearest declaration wins)
270
- self.class.acceptable_attribute_map.each_pair do |attr, param|
271
- value = self.send(attr)
272
- if value.nil?
273
- is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
274
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
275
- end
276
-
277
- hash[param] = _to_hash(value)
278
- end
279
- hash
280
- end
281
-
282
- end
283
-
284
- end
@@ -1,339 +0,0 @@
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.26.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module TrinsicApi
17
- class NigeriaNinInput < ApiModelBase
18
- # The user's first name as it appears in their National ID
19
- attr_accessor :first_name
20
-
21
- # The user's middle name as it appears in their National ID (optional)
22
- attr_accessor :middle_name
23
-
24
- # The user's last name as it appears in their National ID (optional)
25
- attr_accessor :last_name
26
-
27
- # The user's phone number (optional)
28
- attr_accessor :phone_number
29
-
30
- # The user's date of birth, in `YYYY-MM-DD` format
31
- attr_accessor :date_of_birth
32
-
33
- # The user's gender as it appears in their National ID (e.g., male, female)
34
- attr_accessor :gender
35
-
36
- # The user's National ID number
37
- attr_accessor :national_id_number
38
-
39
- # Attribute mapping from ruby-style variable name to JSON key.
40
- def self.attribute_map
41
- {
42
- :'first_name' => :'firstName',
43
- :'middle_name' => :'middleName',
44
- :'last_name' => :'lastName',
45
- :'phone_number' => :'phoneNumber',
46
- :'date_of_birth' => :'dateOfBirth',
47
- :'gender' => :'gender',
48
- :'national_id_number' => :'nationalIdNumber'
49
- }
50
- end
51
-
52
- # Returns attribute mapping this model knows about
53
- def self.acceptable_attribute_map
54
- attribute_map
55
- end
56
-
57
- # Returns all the JSON keys this model knows about
58
- def self.acceptable_attributes
59
- acceptable_attribute_map.values
60
- end
61
-
62
- # Attribute type mapping.
63
- def self.openapi_types
64
- {
65
- :'first_name' => :'String',
66
- :'middle_name' => :'String',
67
- :'last_name' => :'String',
68
- :'phone_number' => :'String',
69
- :'date_of_birth' => :'Date',
70
- :'gender' => :'String',
71
- :'national_id_number' => :'String'
72
- }
73
- end
74
-
75
- # List of attributes with nullable: true
76
- def self.openapi_nullable
77
- Set.new([
78
- :'middle_name',
79
- :'phone_number',
80
- :'gender',
81
- ])
82
- end
83
-
84
- # Returns attribute type mapping
85
- def self.acceptable_openapi_types
86
- openapi_types
87
- end
88
-
89
- # Returns the nullable attributes
90
- def self.acceptable_openapi_nullable
91
- openapi_nullable
92
- end
93
-
94
- # Initializes the object
95
- # @param [Hash] attributes Model attributes in the form of hash
96
- def initialize(attributes = {})
97
- if (!attributes.is_a?(Hash))
98
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::NigeriaNinInput` initialize method"
99
- end
100
-
101
- # check to see if the attribute exists and convert string to symbol for hash key
102
- acceptable_attribute_map = self.class.acceptable_attribute_map
103
- attributes = attributes.each_with_object({}) { |(k, v), h|
104
- if (!acceptable_attribute_map.key?(k.to_sym))
105
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::NigeriaNinInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
106
- end
107
- h[k.to_sym] = v
108
- }
109
-
110
- if attributes.key?(:'first_name')
111
- self.first_name = attributes[:'first_name']
112
- else
113
- self.first_name = nil
114
- end
115
-
116
- if attributes.key?(:'middle_name')
117
- self.middle_name = attributes[:'middle_name']
118
- end
119
-
120
- if attributes.key?(:'last_name')
121
- self.last_name = attributes[:'last_name']
122
- else
123
- self.last_name = nil
124
- end
125
-
126
- if attributes.key?(:'phone_number')
127
- self.phone_number = attributes[:'phone_number']
128
- end
129
-
130
- if attributes.key?(:'date_of_birth')
131
- self.date_of_birth = attributes[:'date_of_birth']
132
- else
133
- self.date_of_birth = nil
134
- end
135
-
136
- if attributes.key?(:'gender')
137
- self.gender = attributes[:'gender']
138
- end
139
-
140
- if attributes.key?(:'national_id_number')
141
- self.national_id_number = attributes[:'national_id_number']
142
- else
143
- self.national_id_number = nil
144
- end
145
- end
146
-
147
- # Show invalid properties with the reasons. Usually used together with valid?
148
- # @return Array for valid properties with the reasons
149
- def list_invalid_properties
150
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
151
- invalid_properties = Array.new
152
- if @first_name.nil?
153
- invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
154
- end
155
-
156
- if @first_name.to_s.length < 1
157
- invalid_properties.push('invalid value for "first_name", the character length must be greater than or equal to 1.')
158
- end
159
-
160
- if @last_name.nil?
161
- invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
162
- end
163
-
164
- if @last_name.to_s.length < 1
165
- invalid_properties.push('invalid value for "last_name", the character length must be greater than or equal to 1.')
166
- end
167
-
168
- if @date_of_birth.nil?
169
- invalid_properties.push('invalid value for "date_of_birth", date_of_birth cannot be nil.')
170
- end
171
-
172
- if @national_id_number.nil?
173
- invalid_properties.push('invalid value for "national_id_number", national_id_number cannot be nil.')
174
- end
175
-
176
- if @national_id_number.to_s.length > 11
177
- invalid_properties.push('invalid value for "national_id_number", the character length must be smaller than or equal to 11.')
178
- end
179
-
180
- if @national_id_number.to_s.length < 11
181
- invalid_properties.push('invalid value for "national_id_number", the character length must be greater than or equal to 11.')
182
- end
183
-
184
- pattern = Regexp.new(/^\d*$/)
185
- if @national_id_number !~ pattern
186
- invalid_properties.push("invalid value for \"national_id_number\", must conform to the pattern #{pattern}.")
187
- end
188
-
189
- invalid_properties
190
- end
191
-
192
- # Check to see if the all the properties in the model are valid
193
- # @return true if the model is valid
194
- def valid?
195
- warn '[DEPRECATED] the `valid?` method is obsolete'
196
- return false if @first_name.nil?
197
- return false if @first_name.to_s.length < 1
198
- return false if @last_name.nil?
199
- return false if @last_name.to_s.length < 1
200
- return false if @date_of_birth.nil?
201
- return false if @national_id_number.nil?
202
- return false if @national_id_number.to_s.length > 11
203
- return false if @national_id_number.to_s.length < 11
204
- return false if @national_id_number !~ Regexp.new(/^\d*$/)
205
- true
206
- end
207
-
208
- # Custom attribute writer method with validation
209
- # @param [Object] first_name Value to be assigned
210
- def first_name=(first_name)
211
- if first_name.nil?
212
- fail ArgumentError, 'first_name cannot be nil'
213
- end
214
-
215
- if first_name.to_s.length < 1
216
- fail ArgumentError, 'invalid value for "first_name", the character length must be greater than or equal to 1.'
217
- end
218
-
219
- @first_name = first_name
220
- end
221
-
222
- # Custom attribute writer method with validation
223
- # @param [Object] last_name Value to be assigned
224
- def last_name=(last_name)
225
- if last_name.nil?
226
- fail ArgumentError, 'last_name cannot be nil'
227
- end
228
-
229
- if last_name.to_s.length < 1
230
- fail ArgumentError, 'invalid value for "last_name", the character length must be greater than or equal to 1.'
231
- end
232
-
233
- @last_name = last_name
234
- end
235
-
236
- # Custom attribute writer method with validation
237
- # @param [Object] date_of_birth Value to be assigned
238
- def date_of_birth=(date_of_birth)
239
- if date_of_birth.nil?
240
- fail ArgumentError, 'date_of_birth cannot be nil'
241
- end
242
-
243
- @date_of_birth = date_of_birth
244
- end
245
-
246
- # Custom attribute writer method with validation
247
- # @param [Object] national_id_number Value to be assigned
248
- def national_id_number=(national_id_number)
249
- if national_id_number.nil?
250
- fail ArgumentError, 'national_id_number cannot be nil'
251
- end
252
-
253
- if national_id_number.to_s.length > 11
254
- fail ArgumentError, 'invalid value for "national_id_number", the character length must be smaller than or equal to 11.'
255
- end
256
-
257
- if national_id_number.to_s.length < 11
258
- fail ArgumentError, 'invalid value for "national_id_number", the character length must be greater than or equal to 11.'
259
- end
260
-
261
- pattern = Regexp.new(/^\d*$/)
262
- if national_id_number !~ pattern
263
- fail ArgumentError, "invalid value for \"national_id_number\", must conform to the pattern #{pattern}."
264
- end
265
-
266
- @national_id_number = national_id_number
267
- end
268
-
269
- # Checks equality by comparing each attribute.
270
- # @param [Object] Object to be compared
271
- def ==(o)
272
- return true if self.equal?(o)
273
- self.class == o.class &&
274
- first_name == o.first_name &&
275
- middle_name == o.middle_name &&
276
- last_name == o.last_name &&
277
- phone_number == o.phone_number &&
278
- date_of_birth == o.date_of_birth &&
279
- gender == o.gender &&
280
- national_id_number == o.national_id_number
281
- end
282
-
283
- # @see the `==` method
284
- # @param [Object] Object to be compared
285
- def eql?(o)
286
- self == o
287
- end
288
-
289
- # Calculates hash code according to all attributes.
290
- # @return [Integer] Hash code
291
- def hash
292
- [first_name, middle_name, last_name, phone_number, date_of_birth, gender, national_id_number].hash
293
- end
294
-
295
- # Builds the object from hash
296
- # @param [Hash] attributes Model attributes in the form of hash
297
- # @return [Object] Returns the model itself
298
- def self.build_from_hash(attributes)
299
- return nil unless attributes.is_a?(Hash)
300
- attributes = attributes.transform_keys(&:to_sym)
301
- # include attributes inherited from allOf parents (the nearest declaration wins)
302
- map = acceptable_attribute_map
303
- transformed_hash = {}
304
- acceptable_openapi_types.each_pair do |key, type|
305
- if attributes.key?(map[key]) && attributes[map[key]].nil?
306
- transformed_hash["#{key}"] = nil
307
- elsif type =~ /\AArray<(.*)>/i
308
- # check to ensure the input is an array given that the attribute
309
- # is documented as an array but the input is not
310
- if attributes[map[key]].is_a?(Array)
311
- transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
312
- end
313
- elsif !attributes[map[key]].nil?
314
- transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
315
- end
316
- end
317
- new(transformed_hash)
318
- end
319
-
320
- # Returns the object in the form of hash
321
- # @return [Hash] Returns the object in the form of hash
322
- def to_hash
323
- hash = {}
324
- # include attributes inherited from allOf parents (the nearest declaration wins)
325
- self.class.acceptable_attribute_map.each_pair do |attr, param|
326
- value = self.send(attr)
327
- if value.nil?
328
- is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
329
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
330
- end
331
-
332
- hash[param] = _to_hash(value)
333
- end
334
- hash
335
- end
336
-
337
- end
338
-
339
- end