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,353 +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 KenyaNidInput < 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 middle name as it appears in their National ID (optional)
25
- attr_accessor :last_name
26
-
27
- # The user's date of birth, in `YYYY-MM-DD` format
28
- attr_accessor :date_of_birth
29
-
30
- # The user's gender as it appears in their National ID (e.g., male, female)
31
- attr_accessor :gender
32
-
33
- # The user's Kenya National ID number
34
- attr_accessor :national_id_number
35
-
36
- # Attribute mapping from ruby-style variable name to JSON key.
37
- def self.attribute_map
38
- {
39
- :'first_name' => :'firstName',
40
- :'middle_name' => :'middleName',
41
- :'last_name' => :'lastName',
42
- :'date_of_birth' => :'dateOfBirth',
43
- :'gender' => :'gender',
44
- :'national_id_number' => :'nationalIdNumber'
45
- }
46
- end
47
-
48
- # Returns attribute mapping this model knows about
49
- def self.acceptable_attribute_map
50
- attribute_map
51
- end
52
-
53
- # Returns all the JSON keys this model knows about
54
- def self.acceptable_attributes
55
- acceptable_attribute_map.values
56
- end
57
-
58
- # Attribute type mapping.
59
- def self.openapi_types
60
- {
61
- :'first_name' => :'String',
62
- :'middle_name' => :'String',
63
- :'last_name' => :'String',
64
- :'date_of_birth' => :'Date',
65
- :'gender' => :'String',
66
- :'national_id_number' => :'String'
67
- }
68
- end
69
-
70
- # List of attributes with nullable: true
71
- def self.openapi_nullable
72
- Set.new([
73
- :'middle_name',
74
- ])
75
- end
76
-
77
- # Returns attribute type mapping
78
- def self.acceptable_openapi_types
79
- openapi_types
80
- end
81
-
82
- # Returns the nullable attributes
83
- def self.acceptable_openapi_nullable
84
- openapi_nullable
85
- end
86
-
87
- # Initializes the object
88
- # @param [Hash] attributes Model attributes in the form of hash
89
- def initialize(attributes = {})
90
- if (!attributes.is_a?(Hash))
91
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::KenyaNidInput` initialize method"
92
- end
93
-
94
- # check to see if the attribute exists and convert string to symbol for hash key
95
- acceptable_attribute_map = self.class.acceptable_attribute_map
96
- attributes = attributes.each_with_object({}) { |(k, v), h|
97
- if (!acceptable_attribute_map.key?(k.to_sym))
98
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::KenyaNidInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
99
- end
100
- h[k.to_sym] = v
101
- }
102
-
103
- if attributes.key?(:'first_name')
104
- self.first_name = attributes[:'first_name']
105
- else
106
- self.first_name = nil
107
- end
108
-
109
- if attributes.key?(:'middle_name')
110
- self.middle_name = attributes[:'middle_name']
111
- end
112
-
113
- if attributes.key?(:'last_name')
114
- self.last_name = attributes[:'last_name']
115
- else
116
- self.last_name = nil
117
- end
118
-
119
- if attributes.key?(:'date_of_birth')
120
- self.date_of_birth = attributes[:'date_of_birth']
121
- else
122
- self.date_of_birth = nil
123
- end
124
-
125
- if attributes.key?(:'gender')
126
- self.gender = attributes[:'gender']
127
- else
128
- self.gender = nil
129
- end
130
-
131
- if attributes.key?(:'national_id_number')
132
- self.national_id_number = attributes[:'national_id_number']
133
- else
134
- self.national_id_number = nil
135
- end
136
- end
137
-
138
- # Show invalid properties with the reasons. Usually used together with valid?
139
- # @return Array for valid properties with the reasons
140
- def list_invalid_properties
141
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
142
- invalid_properties = Array.new
143
- if @first_name.nil?
144
- invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
145
- end
146
-
147
- if @first_name.to_s.length < 1
148
- invalid_properties.push('invalid value for "first_name", the character length must be greater than or equal to 1.')
149
- end
150
-
151
- if @last_name.nil?
152
- invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
153
- end
154
-
155
- if @last_name.to_s.length < 1
156
- invalid_properties.push('invalid value for "last_name", the character length must be greater than or equal to 1.')
157
- end
158
-
159
- if @date_of_birth.nil?
160
- invalid_properties.push('invalid value for "date_of_birth", date_of_birth cannot be nil.')
161
- end
162
-
163
- if @gender.nil?
164
- invalid_properties.push('invalid value for "gender", gender cannot be nil.')
165
- end
166
-
167
- if @gender.to_s.length < 1
168
- invalid_properties.push('invalid value for "gender", the character length must be greater than or equal to 1.')
169
- end
170
-
171
- if @national_id_number.nil?
172
- invalid_properties.push('invalid value for "national_id_number", national_id_number cannot be nil.')
173
- end
174
-
175
- if @national_id_number.to_s.length > 8
176
- invalid_properties.push('invalid value for "national_id_number", the character length must be smaller than or equal to 8.')
177
- end
178
-
179
- if @national_id_number.to_s.length < 8
180
- invalid_properties.push('invalid value for "national_id_number", the character length must be greater than or equal to 8.')
181
- end
182
-
183
- pattern = Regexp.new(/^\d*$/)
184
- if @national_id_number !~ pattern
185
- invalid_properties.push("invalid value for \"national_id_number\", must conform to the pattern #{pattern}.")
186
- end
187
-
188
- invalid_properties
189
- end
190
-
191
- # Check to see if the all the properties in the model are valid
192
- # @return true if the model is valid
193
- def valid?
194
- warn '[DEPRECATED] the `valid?` method is obsolete'
195
- return false if @first_name.nil?
196
- return false if @first_name.to_s.length < 1
197
- return false if @last_name.nil?
198
- return false if @last_name.to_s.length < 1
199
- return false if @date_of_birth.nil?
200
- return false if @gender.nil?
201
- return false if @gender.to_s.length < 1
202
- return false if @national_id_number.nil?
203
- return false if @national_id_number.to_s.length > 8
204
- return false if @national_id_number.to_s.length < 8
205
- return false if @national_id_number !~ Regexp.new(/^\d*$/)
206
- true
207
- end
208
-
209
- # Custom attribute writer method with validation
210
- # @param [Object] first_name Value to be assigned
211
- def first_name=(first_name)
212
- if first_name.nil?
213
- fail ArgumentError, 'first_name cannot be nil'
214
- end
215
-
216
- if first_name.to_s.length < 1
217
- fail ArgumentError, 'invalid value for "first_name", the character length must be greater than or equal to 1.'
218
- end
219
-
220
- @first_name = first_name
221
- end
222
-
223
- # Custom attribute writer method with validation
224
- # @param [Object] last_name Value to be assigned
225
- def last_name=(last_name)
226
- if last_name.nil?
227
- fail ArgumentError, 'last_name cannot be nil'
228
- end
229
-
230
- if last_name.to_s.length < 1
231
- fail ArgumentError, 'invalid value for "last_name", the character length must be greater than or equal to 1.'
232
- end
233
-
234
- @last_name = last_name
235
- end
236
-
237
- # Custom attribute writer method with validation
238
- # @param [Object] date_of_birth Value to be assigned
239
- def date_of_birth=(date_of_birth)
240
- if date_of_birth.nil?
241
- fail ArgumentError, 'date_of_birth cannot be nil'
242
- end
243
-
244
- @date_of_birth = date_of_birth
245
- end
246
-
247
- # Custom attribute writer method with validation
248
- # @param [Object] gender Value to be assigned
249
- def gender=(gender)
250
- if gender.nil?
251
- fail ArgumentError, 'gender cannot be nil'
252
- end
253
-
254
- if gender.to_s.length < 1
255
- fail ArgumentError, 'invalid value for "gender", the character length must be greater than or equal to 1.'
256
- end
257
-
258
- @gender = gender
259
- end
260
-
261
- # Custom attribute writer method with validation
262
- # @param [Object] national_id_number Value to be assigned
263
- def national_id_number=(national_id_number)
264
- if national_id_number.nil?
265
- fail ArgumentError, 'national_id_number cannot be nil'
266
- end
267
-
268
- if national_id_number.to_s.length > 8
269
- fail ArgumentError, 'invalid value for "national_id_number", the character length must be smaller than or equal to 8.'
270
- end
271
-
272
- if national_id_number.to_s.length < 8
273
- fail ArgumentError, 'invalid value for "national_id_number", the character length must be greater than or equal to 8.'
274
- end
275
-
276
- pattern = Regexp.new(/^\d*$/)
277
- if national_id_number !~ pattern
278
- fail ArgumentError, "invalid value for \"national_id_number\", must conform to the pattern #{pattern}."
279
- end
280
-
281
- @national_id_number = national_id_number
282
- end
283
-
284
- # Checks equality by comparing each attribute.
285
- # @param [Object] Object to be compared
286
- def ==(o)
287
- return true if self.equal?(o)
288
- self.class == o.class &&
289
- first_name == o.first_name &&
290
- middle_name == o.middle_name &&
291
- last_name == o.last_name &&
292
- date_of_birth == o.date_of_birth &&
293
- gender == o.gender &&
294
- national_id_number == o.national_id_number
295
- end
296
-
297
- # @see the `==` method
298
- # @param [Object] Object to be compared
299
- def eql?(o)
300
- self == o
301
- end
302
-
303
- # Calculates hash code according to all attributes.
304
- # @return [Integer] Hash code
305
- def hash
306
- [first_name, middle_name, last_name, date_of_birth, gender, national_id_number].hash
307
- end
308
-
309
- # Builds the object from hash
310
- # @param [Hash] attributes Model attributes in the form of hash
311
- # @return [Object] Returns the model itself
312
- def self.build_from_hash(attributes)
313
- return nil unless attributes.is_a?(Hash)
314
- attributes = attributes.transform_keys(&:to_sym)
315
- # include attributes inherited from allOf parents (the nearest declaration wins)
316
- map = acceptable_attribute_map
317
- transformed_hash = {}
318
- acceptable_openapi_types.each_pair do |key, type|
319
- if attributes.key?(map[key]) && attributes[map[key]].nil?
320
- transformed_hash["#{key}"] = nil
321
- elsif type =~ /\AArray<(.*)>/i
322
- # check to ensure the input is an array given that the attribute
323
- # is documented as an array but the input is not
324
- if attributes[map[key]].is_a?(Array)
325
- transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
326
- end
327
- elsif !attributes[map[key]].nil?
328
- transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
329
- end
330
- end
331
- new(transformed_hash)
332
- end
333
-
334
- # Returns the object in the form of hash
335
- # @return [Hash] Returns the object in the form of hash
336
- def to_hash
337
- hash = {}
338
- # include attributes inherited from allOf parents (the nearest declaration wins)
339
- self.class.acceptable_attribute_map.each_pair do |attr, param|
340
- value = self.send(attr)
341
- if value.nil?
342
- is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
343
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
344
- end
345
-
346
- hash[param] = _to_hash(value)
347
- end
348
- hash
349
- end
350
-
351
- end
352
-
353
- end
@@ -1,173 +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 KenyaNidMatch2DateOfBirthField < ApiModelBase
18
- # The date of birth submitted for this check.
19
- attr_accessor :input_value
20
-
21
- # The outcome of comparing the submitted date of birth against the Integrated Population Registration System (IPRS). Possible values: - Exact Match - Partial Match - Transposed - No Match - Not Returned
22
- attr_accessor :outcome
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'input_value' => :'inputValue',
28
- :'outcome' => :'outcome'
29
- }
30
- end
31
-
32
- # Returns attribute mapping this model knows about
33
- def self.acceptable_attribute_map
34
- attribute_map
35
- end
36
-
37
- # Returns all the JSON keys this model knows about
38
- def self.acceptable_attributes
39
- acceptable_attribute_map.values
40
- end
41
-
42
- # Attribute type mapping.
43
- def self.openapi_types
44
- {
45
- :'input_value' => :'Date',
46
- :'outcome' => :'String'
47
- }
48
- end
49
-
50
- # List of attributes with nullable: true
51
- def self.openapi_nullable
52
- Set.new([
53
- :'input_value',
54
- :'outcome'
55
- ])
56
- end
57
-
58
- # Returns attribute type mapping
59
- def self.acceptable_openapi_types
60
- openapi_types
61
- end
62
-
63
- # Returns the nullable attributes
64
- def self.acceptable_openapi_nullable
65
- openapi_nullable
66
- end
67
-
68
- # Initializes the object
69
- # @param [Hash] attributes Model attributes in the form of hash
70
- def initialize(attributes = {})
71
- if (!attributes.is_a?(Hash))
72
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::KenyaNidMatch2DateOfBirthField` initialize method"
73
- end
74
-
75
- # check to see if the attribute exists and convert string to symbol for hash key
76
- acceptable_attribute_map = self.class.acceptable_attribute_map
77
- attributes = attributes.each_with_object({}) { |(k, v), h|
78
- if (!acceptable_attribute_map.key?(k.to_sym))
79
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::KenyaNidMatch2DateOfBirthField`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
80
- end
81
- h[k.to_sym] = v
82
- }
83
-
84
- if attributes.key?(:'input_value')
85
- self.input_value = attributes[:'input_value']
86
- end
87
-
88
- if attributes.key?(:'outcome')
89
- self.outcome = attributes[:'outcome']
90
- end
91
- end
92
-
93
- # Show invalid properties with the reasons. Usually used together with valid?
94
- # @return Array for valid properties with the reasons
95
- def list_invalid_properties
96
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
97
- invalid_properties = Array.new
98
- invalid_properties
99
- end
100
-
101
- # Check to see if the all the properties in the model are valid
102
- # @return true if the model is valid
103
- def valid?
104
- warn '[DEPRECATED] the `valid?` method is obsolete'
105
- true
106
- end
107
-
108
- # Checks equality by comparing each attribute.
109
- # @param [Object] Object to be compared
110
- def ==(o)
111
- return true if self.equal?(o)
112
- self.class == o.class &&
113
- input_value == o.input_value &&
114
- outcome == o.outcome
115
- end
116
-
117
- # @see the `==` method
118
- # @param [Object] Object to be compared
119
- def eql?(o)
120
- self == o
121
- end
122
-
123
- # Calculates hash code according to all attributes.
124
- # @return [Integer] Hash code
125
- def hash
126
- [input_value, outcome].hash
127
- end
128
-
129
- # Builds the object from hash
130
- # @param [Hash] attributes Model attributes in the form of hash
131
- # @return [Object] Returns the model itself
132
- def self.build_from_hash(attributes)
133
- return nil unless attributes.is_a?(Hash)
134
- attributes = attributes.transform_keys(&:to_sym)
135
- # include attributes inherited from allOf parents (the nearest declaration wins)
136
- map = acceptable_attribute_map
137
- transformed_hash = {}
138
- acceptable_openapi_types.each_pair do |key, type|
139
- if attributes.key?(map[key]) && attributes[map[key]].nil?
140
- transformed_hash["#{key}"] = nil
141
- elsif type =~ /\AArray<(.*)>/i
142
- # check to ensure the input is an array given that the attribute
143
- # is documented as an array but the input is not
144
- if attributes[map[key]].is_a?(Array)
145
- transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
146
- end
147
- elsif !attributes[map[key]].nil?
148
- transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
149
- end
150
- end
151
- new(transformed_hash)
152
- end
153
-
154
- # Returns the object in the form of hash
155
- # @return [Hash] Returns the object in the form of hash
156
- def to_hash
157
- hash = {}
158
- # include attributes inherited from allOf parents (the nearest declaration wins)
159
- self.class.acceptable_attribute_map.each_pair do |attr, param|
160
- value = self.send(attr)
161
- if value.nil?
162
- is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
163
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
164
- end
165
-
166
- hash[param] = _to_hash(value)
167
- end
168
- hash
169
- end
170
-
171
- end
172
-
173
- end
@@ -1,173 +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 KenyaNidMatch2FullNameField < ApiModelBase
18
- # The full name string submitted for this check (as provided in the match input).
19
- attr_accessor :input_value
20
-
21
- # The outcome of comparing the submitted full name against the Integrated Population Registration System (IPRS). Possible values: - Exact Match - Partial Match - Transposed - No Match - Not Returned
22
- attr_accessor :outcome
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'input_value' => :'inputValue',
28
- :'outcome' => :'outcome'
29
- }
30
- end
31
-
32
- # Returns attribute mapping this model knows about
33
- def self.acceptable_attribute_map
34
- attribute_map
35
- end
36
-
37
- # Returns all the JSON keys this model knows about
38
- def self.acceptable_attributes
39
- acceptable_attribute_map.values
40
- end
41
-
42
- # Attribute type mapping.
43
- def self.openapi_types
44
- {
45
- :'input_value' => :'String',
46
- :'outcome' => :'String'
47
- }
48
- end
49
-
50
- # List of attributes with nullable: true
51
- def self.openapi_nullable
52
- Set.new([
53
- :'input_value',
54
- :'outcome'
55
- ])
56
- end
57
-
58
- # Returns attribute type mapping
59
- def self.acceptable_openapi_types
60
- openapi_types
61
- end
62
-
63
- # Returns the nullable attributes
64
- def self.acceptable_openapi_nullable
65
- openapi_nullable
66
- end
67
-
68
- # Initializes the object
69
- # @param [Hash] attributes Model attributes in the form of hash
70
- def initialize(attributes = {})
71
- if (!attributes.is_a?(Hash))
72
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::KenyaNidMatch2FullNameField` initialize method"
73
- end
74
-
75
- # check to see if the attribute exists and convert string to symbol for hash key
76
- acceptable_attribute_map = self.class.acceptable_attribute_map
77
- attributes = attributes.each_with_object({}) { |(k, v), h|
78
- if (!acceptable_attribute_map.key?(k.to_sym))
79
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::KenyaNidMatch2FullNameField`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
80
- end
81
- h[k.to_sym] = v
82
- }
83
-
84
- if attributes.key?(:'input_value')
85
- self.input_value = attributes[:'input_value']
86
- end
87
-
88
- if attributes.key?(:'outcome')
89
- self.outcome = attributes[:'outcome']
90
- end
91
- end
92
-
93
- # Show invalid properties with the reasons. Usually used together with valid?
94
- # @return Array for valid properties with the reasons
95
- def list_invalid_properties
96
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
97
- invalid_properties = Array.new
98
- invalid_properties
99
- end
100
-
101
- # Check to see if the all the properties in the model are valid
102
- # @return true if the model is valid
103
- def valid?
104
- warn '[DEPRECATED] the `valid?` method is obsolete'
105
- true
106
- end
107
-
108
- # Checks equality by comparing each attribute.
109
- # @param [Object] Object to be compared
110
- def ==(o)
111
- return true if self.equal?(o)
112
- self.class == o.class &&
113
- input_value == o.input_value &&
114
- outcome == o.outcome
115
- end
116
-
117
- # @see the `==` method
118
- # @param [Object] Object to be compared
119
- def eql?(o)
120
- self == o
121
- end
122
-
123
- # Calculates hash code according to all attributes.
124
- # @return [Integer] Hash code
125
- def hash
126
- [input_value, outcome].hash
127
- end
128
-
129
- # Builds the object from hash
130
- # @param [Hash] attributes Model attributes in the form of hash
131
- # @return [Object] Returns the model itself
132
- def self.build_from_hash(attributes)
133
- return nil unless attributes.is_a?(Hash)
134
- attributes = attributes.transform_keys(&:to_sym)
135
- # include attributes inherited from allOf parents (the nearest declaration wins)
136
- map = acceptable_attribute_map
137
- transformed_hash = {}
138
- acceptable_openapi_types.each_pair do |key, type|
139
- if attributes.key?(map[key]) && attributes[map[key]].nil?
140
- transformed_hash["#{key}"] = nil
141
- elsif type =~ /\AArray<(.*)>/i
142
- # check to ensure the input is an array given that the attribute
143
- # is documented as an array but the input is not
144
- if attributes[map[key]].is_a?(Array)
145
- transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
146
- end
147
- elsif !attributes[map[key]].nil?
148
- transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
149
- end
150
- end
151
- new(transformed_hash)
152
- end
153
-
154
- # Returns the object in the form of hash
155
- # @return [Hash] Returns the object in the form of hash
156
- def to_hash
157
- hash = {}
158
- # include attributes inherited from allOf parents (the nearest declaration wins)
159
- self.class.acceptable_attribute_map.each_pair do |attr, param|
160
- value = self.send(attr)
161
- if value.nil?
162
- is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
163
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
164
- end
165
-
166
- hash[param] = _to_hash(value)
167
- end
168
- hash
169
- end
170
-
171
- end
172
-
173
- end