trinsic_api 3.1.0 → 3.2.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 (215) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AppleWalletDigitalIdBirthDate.md +20 -0
  3. data/docs/AppleWalletDigitalIdCredential.md +54 -0
  4. data/docs/AppleWalletProviderOutput.md +2 -0
  5. data/docs/BrazilCnhFacialBiometryOutput.md +24 -0
  6. data/docs/BrazilCnhMatchFieldDateOnly.md +20 -0
  7. data/docs/BrazilCnhMatchFieldString.md +20 -0
  8. data/docs/BrazilCnhProviderOutput.md +48 -0
  9. data/docs/CreateDirectProviderSessionRequest.md +1 -1
  10. data/docs/CreateHostedProviderSessionRequest.md +1 -1
  11. data/docs/CzechBankIdAddress.md +36 -0
  12. data/docs/CzechBankIdCard.md +30 -0
  13. data/docs/CzechBankIdProviderOutput.md +78 -0
  14. data/docs/CzechBankIdTitle.md +20 -0
  15. data/docs/CzechBankIdVerification.md +22 -0
  16. data/docs/DiiaIssuerOutput.md +28 -0
  17. data/docs/DiiaProviderOutput.md +20 -0
  18. data/docs/DiiaSubjectOutput.md +26 -0
  19. data/docs/IdemiaPreviewProviderAddress.md +32 -0
  20. data/docs/IdemiaPreviewProviderOutput.md +76 -0
  21. data/docs/IndiaDigilockerAadhaarMatchDateOfBirthField.md +20 -0
  22. data/docs/IndiaDigilockerAadhaarMatchFullNameField.md +20 -0
  23. data/docs/IndiaDigilockerAadhaarMatchProviderOutput.md +20 -0
  24. data/docs/IndonesiaDukcapilMatchDateOfBirthField.md +20 -0
  25. data/docs/IndonesiaDukcapilMatchFullNameField.md +20 -0
  26. data/docs/IndonesiaDukcapilMatchNationalIdNumberField.md +20 -0
  27. data/docs/IndonesiaDukcapilMatchProviderOutput.md +38 -0
  28. data/docs/IndonesiaNikMatch.md +34 -0
  29. data/docs/IndonesiaNikMatchField.md +20 -0
  30. data/docs/InteracAddress.md +26 -0
  31. data/docs/InteracProviderOutput.md +34 -0
  32. data/docs/ItsmeAddress.md +28 -0
  33. data/docs/ItsmeProviderOutput.md +19 -1
  34. data/docs/KenyaNidMatch2DateOfBirthField.md +20 -0
  35. data/docs/KenyaNidMatch2FullNameField.md +20 -0
  36. data/docs/KenyaNidMatch2NationalIdNumberField.md +20 -0
  37. data/docs/KenyaNidMatch2ProviderOutput.md +24 -0
  38. data/docs/KenyaNidMatch2SexField.md +20 -0
  39. data/docs/LloydsSmartIdProviderOutput.md +2 -2
  40. data/docs/MexicoCurpProviderOutput.md +23 -1
  41. data/docs/NigeriaNinLookup2Input.md +1 -1
  42. data/docs/NigeriaNinLookup2ProviderOutput.md +2 -2
  43. data/docs/NigeriaNinMatch2DateOfBirthField.md +20 -0
  44. data/docs/NigeriaNinMatch2FullNameField.md +20 -0
  45. data/docs/NigeriaNinMatch2Input.md +1 -1
  46. data/docs/NigeriaNinMatch2NationalIdNumberField.md +20 -0
  47. data/docs/NigeriaNinMatch2PhoneNumberField.md +20 -0
  48. data/docs/NigeriaNinMatch2ProviderOutput.md +26 -0
  49. data/docs/NigeriaNinMatch2SexField.md +20 -0
  50. data/docs/PhilippinesPhilsysMatchProviderOutput.md +26 -0
  51. data/docs/PostOfficeEasyIdProviderOutput.md +2 -2
  52. data/docs/ProviderInput.md +0 -6
  53. data/docs/ProviderOutput.md +37 -3
  54. data/docs/SouthAfricaNidLookup2Input.md +1 -1
  55. data/docs/SouthAfricaNidLookup2ProviderOutput.md +36 -0
  56. data/docs/SouthAfricaNidMatch2DateOfBirthField.md +20 -0
  57. data/docs/SouthAfricaNidMatch2FullNameField.md +20 -0
  58. data/docs/SouthAfricaNidMatch2Input.md +2 -4
  59. data/docs/SouthAfricaNidMatch2NationalIdNumberField.md +20 -0
  60. data/docs/SouthAfricaNidMatch2ProviderOutput.md +26 -0
  61. data/docs/SouthAfricaNidMatch2SexField.md +20 -0
  62. data/docs/UAEPassProviderOutput.md +62 -0
  63. data/docs/UgandaNidMatch2DateOfBirthField.md +20 -0
  64. data/docs/UgandaNidMatch2Input.md +1 -1
  65. data/docs/UgandaNidMatch2NationalIdNumberField.md +20 -0
  66. data/docs/UgandaNidMatch2ProviderOutput.md +22 -0
  67. data/docs/UgandaNidMatch2SecondaryIdNumberField.md +20 -0
  68. data/docs/VerimiAddressOutput.md +28 -0
  69. data/docs/VerimiProviderOutput.md +68 -0
  70. data/docs/YotiDeeplinkProviderOutput.md +2 -2
  71. data/docs/YotiProviderOutput.md +2 -2
  72. data/docs/ZimbabweNidLookup2Input.md +1 -1
  73. data/docs/ZimbabweNidLookup2ProviderOutput.md +34 -0
  74. data/lib/trinsic_api/models/apple_wallet_digital_id_birth_date.rb +177 -0
  75. data/lib/trinsic_api/models/apple_wallet_digital_id_credential.rb +350 -0
  76. data/lib/trinsic_api/models/apple_wallet_provider_output.rb +12 -1
  77. data/lib/trinsic_api/models/brazil_cnh_facial_biometry_output.rb +198 -0
  78. data/lib/trinsic_api/models/{south_africa_nid_biometric2_input.rb → brazil_cnh_match_field_date_only.rb} +36 -33
  79. data/lib/trinsic_api/models/{nigeria_nin_biometric2_input.rb → brazil_cnh_match_field_string.rb} +20 -33
  80. data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +315 -0
  81. data/lib/trinsic_api/models/create_direct_provider_session_request.rb +1 -1
  82. data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +1 -1
  83. data/lib/trinsic_api/models/czech_bank_id_address.rb +296 -0
  84. data/lib/trinsic_api/models/czech_bank_id_card.rb +279 -0
  85. data/lib/trinsic_api/models/czech_bank_id_provider_output.rb +504 -0
  86. data/lib/trinsic_api/models/czech_bank_id_title.rb +160 -0
  87. data/lib/trinsic_api/models/czech_bank_id_verification.rb +203 -0
  88. data/lib/trinsic_api/models/diia_issuer_output.rb +204 -0
  89. data/lib/trinsic_api/models/diia_provider_output.rb +193 -0
  90. data/lib/trinsic_api/models/diia_subject_output.rb +193 -0
  91. data/lib/trinsic_api/models/idemia_preview_provider_address.rb +226 -0
  92. data/lib/trinsic_api/models/idemia_preview_provider_output.rb +469 -0
  93. data/lib/trinsic_api/models/india_digilocker_aadhaar_match_date_of_birth_field.rb +192 -0
  94. data/lib/trinsic_api/models/india_digilocker_aadhaar_match_full_name_field.rb +192 -0
  95. data/lib/trinsic_api/models/india_digilocker_aadhaar_match_provider_output.rb +161 -0
  96. data/lib/trinsic_api/models/indonesia_dukcapil_match_date_of_birth_field.rb +192 -0
  97. data/lib/trinsic_api/models/indonesia_dukcapil_match_full_name_field.rb +192 -0
  98. data/lib/trinsic_api/models/indonesia_dukcapil_match_national_id_number_field.rb +192 -0
  99. data/lib/trinsic_api/models/indonesia_dukcapil_match_provider_output.rb +404 -0
  100. data/lib/trinsic_api/models/indonesia_nik_match.rb +238 -0
  101. data/lib/trinsic_api/models/indonesia_nik_match_field.rb +192 -0
  102. data/lib/trinsic_api/models/{kenya_nid_biometric2_input.rb → interac_address.rb} +50 -30
  103. data/lib/trinsic_api/models/interac_provider_output.rb +237 -0
  104. data/lib/trinsic_api/models/itsme_address.rb +204 -0
  105. data/lib/trinsic_api/models/itsme_provider_output.rb +104 -5
  106. data/lib/trinsic_api/models/kenya_nid_match2_date_of_birth_field.rb +192 -0
  107. data/lib/trinsic_api/models/kenya_nid_match2_full_name_field.rb +192 -0
  108. data/lib/trinsic_api/models/kenya_nid_match2_national_id_number_field.rb +192 -0
  109. data/lib/trinsic_api/models/kenya_nid_match2_provider_output.rb +215 -0
  110. data/lib/trinsic_api/models/kenya_nid_match2_sex_field.rb +192 -0
  111. data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +8 -8
  112. data/lib/trinsic_api/models/mexico_curp_provider_output.rb +126 -5
  113. data/lib/trinsic_api/models/nigeria_nin_lookup2_input.rb +1 -1
  114. data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +1 -1
  115. data/lib/trinsic_api/models/nigeria_nin_match2_date_of_birth_field.rb +192 -0
  116. data/lib/trinsic_api/models/nigeria_nin_match2_full_name_field.rb +192 -0
  117. data/lib/trinsic_api/models/nigeria_nin_match2_input.rb +1 -1
  118. data/lib/trinsic_api/models/nigeria_nin_match2_national_id_number_field.rb +192 -0
  119. data/lib/trinsic_api/models/nigeria_nin_match2_phone_number_field.rb +192 -0
  120. data/lib/trinsic_api/models/nigeria_nin_match2_provider_output.rb +226 -0
  121. data/lib/trinsic_api/models/nigeria_nin_match2_sex_field.rb +192 -0
  122. data/lib/trinsic_api/models/philippines_philsys_match_provider_output.rb +226 -0
  123. data/lib/trinsic_api/models/post_office_easy_id_provider_output.rb +8 -8
  124. data/lib/trinsic_api/models/provider_input.rb +1 -34
  125. data/lib/trinsic_api/models/provider_output.rb +203 -16
  126. data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +1 -1
  127. data/lib/trinsic_api/models/south_africa_nid_lookup2_provider_output.rb +377 -0
  128. data/lib/trinsic_api/models/south_africa_nid_match2_date_of_birth_field.rb +192 -0
  129. data/lib/trinsic_api/models/south_africa_nid_match2_full_name_field.rb +192 -0
  130. data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +6 -17
  131. data/lib/trinsic_api/models/south_africa_nid_match2_national_id_number_field.rb +192 -0
  132. data/lib/trinsic_api/models/south_africa_nid_match2_provider_output.rb +226 -0
  133. data/lib/trinsic_api/models/south_africa_nid_match2_sex_field.rb +192 -0
  134. data/lib/trinsic_api/models/uae_pass_provider_output.rb +394 -0
  135. data/lib/trinsic_api/models/uganda_nid_match2_date_of_birth_field.rb +192 -0
  136. data/lib/trinsic_api/models/uganda_nid_match2_input.rb +1 -1
  137. data/lib/trinsic_api/models/uganda_nid_match2_national_id_number_field.rb +192 -0
  138. data/lib/trinsic_api/models/uganda_nid_match2_provider_output.rb +220 -0
  139. data/lib/trinsic_api/models/uganda_nid_match2_secondary_id_number_field.rb +192 -0
  140. data/lib/trinsic_api/models/verimi_address_output.rb +204 -0
  141. data/lib/trinsic_api/models/verimi_provider_output.rb +425 -0
  142. data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +8 -8
  143. data/lib/trinsic_api/models/yoti_provider_output.rb +8 -8
  144. data/lib/trinsic_api/models/zimbabwe_nid_lookup2_input.rb +1 -1
  145. data/lib/trinsic_api/models/zimbabwe_nid_lookup2_provider_output.rb +334 -0
  146. data/lib/trinsic_api/version.rb +1 -1
  147. data/lib/trinsic_api.rb +54 -3
  148. data/spec/models/apple_wallet_digital_id_birth_date_spec.rb +42 -0
  149. data/spec/models/apple_wallet_digital_id_credential_spec.rb +144 -0
  150. data/spec/models/apple_wallet_provider_output_spec.rb +6 -0
  151. data/spec/models/brazil_cnh_facial_biometry_output_spec.rb +54 -0
  152. data/spec/models/brazil_cnh_match_field_date_only_spec.rb +42 -0
  153. data/spec/models/brazil_cnh_match_field_string_spec.rb +42 -0
  154. data/spec/models/brazil_cnh_provider_output_spec.rb +126 -0
  155. data/spec/models/czech_bank_id_address_spec.rb +90 -0
  156. data/spec/models/czech_bank_id_card_spec.rb +72 -0
  157. data/spec/models/czech_bank_id_provider_output_spec.rb +216 -0
  158. data/spec/models/czech_bank_id_title_spec.rb +42 -0
  159. data/spec/models/{kenya_nid_biometric2_input_spec.rb → czech_bank_id_verification_spec.rb} +9 -9
  160. data/spec/models/diia_issuer_output_spec.rb +66 -0
  161. data/spec/models/diia_provider_output_spec.rb +42 -0
  162. data/spec/models/diia_subject_output_spec.rb +60 -0
  163. data/spec/models/idemia_preview_provider_address_spec.rb +78 -0
  164. data/spec/models/idemia_preview_provider_output_spec.rb +210 -0
  165. data/spec/models/india_digilocker_aadhaar_match_date_of_birth_field_spec.rb +42 -0
  166. data/spec/models/india_digilocker_aadhaar_match_full_name_field_spec.rb +42 -0
  167. data/spec/models/india_digilocker_aadhaar_match_provider_output_spec.rb +42 -0
  168. data/spec/models/indonesia_dukcapil_match_date_of_birth_field_spec.rb +42 -0
  169. data/spec/models/indonesia_dukcapil_match_full_name_field_spec.rb +42 -0
  170. data/spec/models/indonesia_dukcapil_match_national_id_number_field_spec.rb +42 -0
  171. data/spec/models/indonesia_dukcapil_match_provider_output_spec.rb +96 -0
  172. data/spec/models/indonesia_nik_match_field_spec.rb +42 -0
  173. data/spec/models/indonesia_nik_match_spec.rb +84 -0
  174. data/spec/models/interac_address_spec.rb +60 -0
  175. data/spec/models/interac_provider_output_spec.rb +84 -0
  176. data/spec/models/itsme_address_spec.rb +66 -0
  177. data/spec/models/itsme_provider_output_spec.rb +54 -0
  178. data/spec/models/kenya_nid_match2_date_of_birth_field_spec.rb +42 -0
  179. data/spec/models/kenya_nid_match2_full_name_field_spec.rb +42 -0
  180. data/spec/models/kenya_nid_match2_national_id_number_field_spec.rb +42 -0
  181. data/spec/models/kenya_nid_match2_provider_output_spec.rb +54 -0
  182. data/spec/models/kenya_nid_match2_sex_field_spec.rb +42 -0
  183. data/spec/models/lloyds_smart_id_provider_output_spec.rb +1 -1
  184. data/spec/models/mexico_curp_provider_output_spec.rb +66 -0
  185. data/spec/models/{nigeria_nin_biometric2_input_spec.rb → nigeria_nin_match2_date_of_birth_field_spec.rb} +8 -14
  186. data/spec/models/nigeria_nin_match2_full_name_field_spec.rb +42 -0
  187. data/spec/models/nigeria_nin_match2_national_id_number_field_spec.rb +42 -0
  188. data/spec/models/nigeria_nin_match2_phone_number_field_spec.rb +42 -0
  189. data/spec/models/nigeria_nin_match2_provider_output_spec.rb +60 -0
  190. data/spec/models/nigeria_nin_match2_sex_field_spec.rb +42 -0
  191. data/spec/models/philippines_philsys_match_provider_output_spec.rb +60 -0
  192. data/spec/models/post_office_easy_id_provider_output_spec.rb +1 -1
  193. data/spec/models/provider_input_spec.rb +0 -18
  194. data/spec/models/provider_output_spec.rb +108 -6
  195. data/spec/models/south_africa_nid_lookup2_provider_output_spec.rb +90 -0
  196. data/spec/models/south_africa_nid_match2_date_of_birth_field_spec.rb +42 -0
  197. data/spec/models/south_africa_nid_match2_full_name_field_spec.rb +42 -0
  198. data/spec/models/south_africa_nid_match2_input_spec.rb +0 -6
  199. data/spec/models/south_africa_nid_match2_national_id_number_field_spec.rb +42 -0
  200. data/spec/models/south_africa_nid_match2_provider_output_spec.rb +60 -0
  201. data/spec/models/south_africa_nid_match2_sex_field_spec.rb +42 -0
  202. data/spec/models/uae_pass_provider_output_spec.rb +168 -0
  203. data/spec/models/uganda_nid_match2_date_of_birth_field_spec.rb +42 -0
  204. data/spec/models/uganda_nid_match2_national_id_number_field_spec.rb +42 -0
  205. data/spec/models/{south_africa_nid_biometric2_input_spec.rb → uganda_nid_match2_provider_output_spec.rb} +9 -9
  206. data/spec/models/uganda_nid_match2_secondary_id_number_field_spec.rb +42 -0
  207. data/spec/models/verimi_address_output_spec.rb +66 -0
  208. data/spec/models/verimi_provider_output_spec.rb +186 -0
  209. data/spec/models/yoti_deeplink_provider_output_spec.rb +1 -1
  210. data/spec/models/yoti_provider_output_spec.rb +1 -1
  211. data/spec/models/zimbabwe_nid_lookup2_provider_output_spec.rb +84 -0
  212. metadata +408 -204
  213. data/docs/KenyaNidBiometric2Input.md +0 -22
  214. data/docs/NigeriaNinBiometric2Input.md +0 -22
  215. data/docs/SouthAfricaNidBiometric2Input.md +0 -22
@@ -0,0 +1,192 @@
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 IndonesiaNikMatchField < ApiModelBase
18
+ # Raw value used for this match field.
19
+ attr_accessor :content
20
+
21
+ # Whether the value matched.
22
+ attr_accessor :match_value
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'content' => :'content',
28
+ :'match_value' => :'matchValue'
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
+ :'content' => :'String',
46
+ :'match_value' => :'Boolean'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::IndonesiaNikMatchField` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ acceptable_attribute_map = self.class.acceptable_attribute_map
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!acceptable_attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::IndonesiaNikMatchField`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'content')
73
+ self.content = attributes[:'content']
74
+ else
75
+ self.content = nil
76
+ end
77
+
78
+ if attributes.key?(:'match_value')
79
+ self.match_value = attributes[:'match_value']
80
+ else
81
+ self.match_value = nil
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
89
+ invalid_properties = Array.new
90
+ if @content.nil?
91
+ invalid_properties.push('invalid value for "content", content cannot be nil.')
92
+ end
93
+
94
+ if @match_value.nil?
95
+ invalid_properties.push('invalid value for "match_value", match_value cannot be nil.')
96
+ end
97
+
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
+ return false if @content.nil?
106
+ return false if @match_value.nil?
107
+ true
108
+ end
109
+
110
+ # Custom attribute writer method with validation
111
+ # @param [Object] content Value to be assigned
112
+ def content=(content)
113
+ if content.nil?
114
+ fail ArgumentError, 'content cannot be nil'
115
+ end
116
+
117
+ @content = content
118
+ end
119
+
120
+ # Custom attribute writer method with validation
121
+ # @param [Object] match_value Value to be assigned
122
+ def match_value=(match_value)
123
+ if match_value.nil?
124
+ fail ArgumentError, 'match_value cannot be nil'
125
+ end
126
+
127
+ @match_value = match_value
128
+ end
129
+
130
+ # Checks equality by comparing each attribute.
131
+ # @param [Object] Object to be compared
132
+ def ==(o)
133
+ return true if self.equal?(o)
134
+ self.class == o.class &&
135
+ content == o.content &&
136
+ match_value == o.match_value
137
+ end
138
+
139
+ # @see the `==` method
140
+ # @param [Object] Object to be compared
141
+ def eql?(o)
142
+ self == o
143
+ end
144
+
145
+ # Calculates hash code according to all attributes.
146
+ # @return [Integer] Hash code
147
+ def hash
148
+ [content, match_value].hash
149
+ end
150
+
151
+ # Builds the object from hash
152
+ # @param [Hash] attributes Model attributes in the form of hash
153
+ # @return [Object] Returns the model itself
154
+ def self.build_from_hash(attributes)
155
+ return nil unless attributes.is_a?(Hash)
156
+ attributes = attributes.transform_keys(&:to_sym)
157
+ transformed_hash = {}
158
+ openapi_types.each_pair do |key, type|
159
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
160
+ transformed_hash["#{key}"] = nil
161
+ elsif type =~ /\AArray<(.*)>/i
162
+ # check to ensure the input is an array given that the attribute
163
+ # is documented as an array but the input is not
164
+ if attributes[attribute_map[key]].is_a?(Array)
165
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
166
+ end
167
+ elsif !attributes[attribute_map[key]].nil?
168
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
169
+ end
170
+ end
171
+ new(transformed_hash)
172
+ end
173
+
174
+ # Returns the object in the form of hash
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ if value.nil?
181
+ is_nullable = self.class.openapi_nullable.include?(attr)
182
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
+ end
184
+
185
+ hash[param] = _to_hash(value)
186
+ end
187
+ hash
188
+ end
189
+
190
+ end
191
+
192
+ end
@@ -14,22 +14,30 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrinsicApi
17
- class KenyaNidBiometric2Input < ApiModelBase
18
- # The Kenya National ID Number (Nambari ya Kitambulisho) or Unique Personal Identifier (Maisha Namba). This is the primary unique identifier for Kenyan citizens in all government systems, issued by the National Registration Bureau (NRB). The format is either 8 digits for National ID or 9 digits for Maisha Namba UPI (the new format since 2023).
19
- attr_accessor :id_number
17
+ class InteracAddress < ApiModelBase
18
+ # The address line or street address.
19
+ attr_accessor :street_address
20
20
 
21
- # An array of exactly 8 images required for biometric liveness verification. The first 7 images should be liveness frames captured during the liveness detection process, and the last image (8th) should be a selfie of the user. All images must be in JPEG format and each image must be less than 15MB in size.
22
- attr_accessor :liveness_images
21
+ # The city or locality.
22
+ attr_accessor :locality
23
23
 
24
- # Test selfie for test environment (optional, maximum 15MB). Must be JPEG format.
25
- attr_accessor :test_selfie
24
+ # The province, state, territory, or region.
25
+ attr_accessor :region
26
+
27
+ # The postal code.
28
+ attr_accessor :postal_code
29
+
30
+ # The address's ISO 3166-1 alpha-2 country code.
31
+ attr_accessor :country
26
32
 
27
33
  # Attribute mapping from ruby-style variable name to JSON key.
28
34
  def self.attribute_map
29
35
  {
30
- :'id_number' => :'idNumber',
31
- :'liveness_images' => :'livenessImages',
32
- :'test_selfie' => :'testSelfie'
36
+ :'street_address' => :'streetAddress',
37
+ :'locality' => :'locality',
38
+ :'region' => :'region',
39
+ :'postal_code' => :'postalCode',
40
+ :'country' => :'country'
33
41
  }
34
42
  end
35
43
 
@@ -46,18 +54,22 @@ module TrinsicApi
46
54
  # Attribute type mapping.
47
55
  def self.openapi_types
48
56
  {
49
- :'id_number' => :'String',
50
- :'liveness_images' => :'Array<String>',
51
- :'test_selfie' => :'String'
57
+ :'street_address' => :'String',
58
+ :'locality' => :'String',
59
+ :'region' => :'String',
60
+ :'postal_code' => :'String',
61
+ :'country' => :'String'
52
62
  }
53
63
  end
54
64
 
55
65
  # List of attributes with nullable: true
56
66
  def self.openapi_nullable
57
67
  Set.new([
58
- :'id_number',
59
- :'liveness_images',
60
- :'test_selfie'
68
+ :'street_address',
69
+ :'locality',
70
+ :'region',
71
+ :'postal_code',
72
+ :'country'
61
73
  ])
62
74
  end
63
75
 
@@ -65,30 +77,36 @@ module TrinsicApi
65
77
  # @param [Hash] attributes Model attributes in the form of hash
66
78
  def initialize(attributes = {})
67
79
  if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::KenyaNidBiometric2Input` initialize method"
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::InteracAddress` initialize method"
69
81
  end
70
82
 
71
83
  # check to see if the attribute exists and convert string to symbol for hash key
72
84
  acceptable_attribute_map = self.class.acceptable_attribute_map
73
85
  attributes = attributes.each_with_object({}) { |(k, v), h|
74
86
  if (!acceptable_attribute_map.key?(k.to_sym))
75
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::KenyaNidBiometric2Input`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::InteracAddress`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
88
  end
77
89
  h[k.to_sym] = v
78
90
  }
79
91
 
80
- if attributes.key?(:'id_number')
81
- self.id_number = attributes[:'id_number']
92
+ if attributes.key?(:'street_address')
93
+ self.street_address = attributes[:'street_address']
82
94
  end
83
95
 
84
- if attributes.key?(:'liveness_images')
85
- if (value = attributes[:'liveness_images']).is_a?(Array)
86
- self.liveness_images = value
87
- end
96
+ if attributes.key?(:'locality')
97
+ self.locality = attributes[:'locality']
98
+ end
99
+
100
+ if attributes.key?(:'region')
101
+ self.region = attributes[:'region']
102
+ end
103
+
104
+ if attributes.key?(:'postal_code')
105
+ self.postal_code = attributes[:'postal_code']
88
106
  end
89
107
 
90
- if attributes.key?(:'test_selfie')
91
- self.test_selfie = attributes[:'test_selfie']
108
+ if attributes.key?(:'country')
109
+ self.country = attributes[:'country']
92
110
  end
93
111
  end
94
112
 
@@ -112,9 +130,11 @@ module TrinsicApi
112
130
  def ==(o)
113
131
  return true if self.equal?(o)
114
132
  self.class == o.class &&
115
- id_number == o.id_number &&
116
- liveness_images == o.liveness_images &&
117
- test_selfie == o.test_selfie
133
+ street_address == o.street_address &&
134
+ locality == o.locality &&
135
+ region == o.region &&
136
+ postal_code == o.postal_code &&
137
+ country == o.country
118
138
  end
119
139
 
120
140
  # @see the `==` method
@@ -126,7 +146,7 @@ module TrinsicApi
126
146
  # Calculates hash code according to all attributes.
127
147
  # @return [Integer] Hash code
128
148
  def hash
129
- [id_number, liveness_images, test_selfie].hash
149
+ [street_address, locality, region, postal_code, country].hash
130
150
  end
131
151
 
132
152
  # Builds the object from hash
@@ -0,0 +1,237 @@
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 InteracProviderOutput < ApiModelBase
18
+ # The OpenID Connect subject identifier for the verified individual.
19
+ attr_accessor :sub
20
+
21
+ # The given name of the verified individual.
22
+ attr_accessor :given_name
23
+
24
+ # The middle name of the verified individual.
25
+ attr_accessor :middle_name
26
+
27
+ # The family name of the verified individual.
28
+ attr_accessor :family_name
29
+
30
+ # The title or honorific of the verified individual, when supplied by the source.
31
+ attr_accessor :title
32
+
33
+ # The date of birth of the verified individual.
34
+ attr_accessor :date_of_birth
35
+
36
+ # The email address of the verified individual.
37
+ attr_accessor :email
38
+
39
+ # The phone number of the verified individual in E.164 format.
40
+ attr_accessor :phone_number
41
+
42
+ # The verified address.
43
+ attr_accessor :address
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'sub' => :'sub',
49
+ :'given_name' => :'givenName',
50
+ :'middle_name' => :'middleName',
51
+ :'family_name' => :'familyName',
52
+ :'title' => :'title',
53
+ :'date_of_birth' => :'dateOfBirth',
54
+ :'email' => :'email',
55
+ :'phone_number' => :'phoneNumber',
56
+ :'address' => :'address'
57
+ }
58
+ end
59
+
60
+ # Returns attribute mapping this model knows about
61
+ def self.acceptable_attribute_map
62
+ attribute_map
63
+ end
64
+
65
+ # Returns all the JSON keys this model knows about
66
+ def self.acceptable_attributes
67
+ acceptable_attribute_map.values
68
+ end
69
+
70
+ # Attribute type mapping.
71
+ def self.openapi_types
72
+ {
73
+ :'sub' => :'String',
74
+ :'given_name' => :'String',
75
+ :'middle_name' => :'String',
76
+ :'family_name' => :'String',
77
+ :'title' => :'String',
78
+ :'date_of_birth' => :'Date',
79
+ :'email' => :'String',
80
+ :'phone_number' => :'String',
81
+ :'address' => :'InteracAddress'
82
+ }
83
+ end
84
+
85
+ # List of attributes with nullable: true
86
+ def self.openapi_nullable
87
+ Set.new([
88
+ :'sub',
89
+ :'given_name',
90
+ :'middle_name',
91
+ :'family_name',
92
+ :'title',
93
+ :'date_of_birth',
94
+ :'email',
95
+ :'phone_number',
96
+ :'address'
97
+ ])
98
+ end
99
+
100
+ # Initializes the object
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ def initialize(attributes = {})
103
+ if (!attributes.is_a?(Hash))
104
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::InteracProviderOutput` initialize method"
105
+ end
106
+
107
+ # check to see if the attribute exists and convert string to symbol for hash key
108
+ acceptable_attribute_map = self.class.acceptable_attribute_map
109
+ attributes = attributes.each_with_object({}) { |(k, v), h|
110
+ if (!acceptable_attribute_map.key?(k.to_sym))
111
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::InteracProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
112
+ end
113
+ h[k.to_sym] = v
114
+ }
115
+
116
+ if attributes.key?(:'sub')
117
+ self.sub = attributes[:'sub']
118
+ end
119
+
120
+ if attributes.key?(:'given_name')
121
+ self.given_name = attributes[:'given_name']
122
+ end
123
+
124
+ if attributes.key?(:'middle_name')
125
+ self.middle_name = attributes[:'middle_name']
126
+ end
127
+
128
+ if attributes.key?(:'family_name')
129
+ self.family_name = attributes[:'family_name']
130
+ end
131
+
132
+ if attributes.key?(:'title')
133
+ self.title = attributes[:'title']
134
+ end
135
+
136
+ if attributes.key?(:'date_of_birth')
137
+ self.date_of_birth = attributes[:'date_of_birth']
138
+ end
139
+
140
+ if attributes.key?(:'email')
141
+ self.email = attributes[:'email']
142
+ end
143
+
144
+ if attributes.key?(:'phone_number')
145
+ self.phone_number = attributes[:'phone_number']
146
+ end
147
+
148
+ if attributes.key?(:'address')
149
+ self.address = attributes[:'address']
150
+ end
151
+ end
152
+
153
+ # Show invalid properties with the reasons. Usually used together with valid?
154
+ # @return Array for valid properties with the reasons
155
+ def list_invalid_properties
156
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
157
+ invalid_properties = Array.new
158
+ invalid_properties
159
+ end
160
+
161
+ # Check to see if the all the properties in the model are valid
162
+ # @return true if the model is valid
163
+ def valid?
164
+ warn '[DEPRECATED] the `valid?` method is obsolete'
165
+ true
166
+ end
167
+
168
+ # Checks equality by comparing each attribute.
169
+ # @param [Object] Object to be compared
170
+ def ==(o)
171
+ return true if self.equal?(o)
172
+ self.class == o.class &&
173
+ sub == o.sub &&
174
+ given_name == o.given_name &&
175
+ middle_name == o.middle_name &&
176
+ family_name == o.family_name &&
177
+ title == o.title &&
178
+ date_of_birth == o.date_of_birth &&
179
+ email == o.email &&
180
+ phone_number == o.phone_number &&
181
+ address == o.address
182
+ end
183
+
184
+ # @see the `==` method
185
+ # @param [Object] Object to be compared
186
+ def eql?(o)
187
+ self == o
188
+ end
189
+
190
+ # Calculates hash code according to all attributes.
191
+ # @return [Integer] Hash code
192
+ def hash
193
+ [sub, given_name, middle_name, family_name, title, date_of_birth, email, phone_number, address].hash
194
+ end
195
+
196
+ # Builds the object from hash
197
+ # @param [Hash] attributes Model attributes in the form of hash
198
+ # @return [Object] Returns the model itself
199
+ def self.build_from_hash(attributes)
200
+ return nil unless attributes.is_a?(Hash)
201
+ attributes = attributes.transform_keys(&:to_sym)
202
+ transformed_hash = {}
203
+ openapi_types.each_pair do |key, type|
204
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
205
+ transformed_hash["#{key}"] = nil
206
+ elsif type =~ /\AArray<(.*)>/i
207
+ # check to ensure the input is an array given that the attribute
208
+ # is documented as an array but the input is not
209
+ if attributes[attribute_map[key]].is_a?(Array)
210
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
211
+ end
212
+ elsif !attributes[attribute_map[key]].nil?
213
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
214
+ end
215
+ end
216
+ new(transformed_hash)
217
+ end
218
+
219
+ # Returns the object in the form of hash
220
+ # @return [Hash] Returns the object in the form of hash
221
+ def to_hash
222
+ hash = {}
223
+ self.class.attribute_map.each_pair do |attr, param|
224
+ value = self.send(attr)
225
+ if value.nil?
226
+ is_nullable = self.class.openapi_nullable.include?(attr)
227
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
228
+ end
229
+
230
+ hash[param] = _to_hash(value)
231
+ end
232
+ hash
233
+ end
234
+
235
+ end
236
+
237
+ end