trinsic_api 2.3.0.pre.alpha1 → 2.3.0.pre.alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AttachmentAccessKeys.md +2 -0
  3. data/docs/CreateHostedProviderSessionResponse.md +1 -1
  4. data/docs/CreateWidgetSessionResponse.md +1 -1
  5. data/docs/IntegrationStep.md +1 -1
  6. data/docs/KenyaNidBiometric2Input.md +22 -0
  7. data/docs/KenyaNidInput.md +1 -1
  8. data/docs/KenyaNidLookup2Input.md +18 -0
  9. data/docs/KenyaNidMatch2Input.md +28 -0
  10. data/docs/NigeriaNinInput.md +1 -1
  11. data/docs/PhilippinesDigitalNidProviderOutput.md +18 -0
  12. data/docs/PhilippinesPhysicalNidProviderOutput.md +18 -0
  13. data/docs/ProviderInput.md +8 -0
  14. data/docs/ProviderOutput.md +5 -1
  15. data/docs/SexV1.md +15 -0
  16. data/docs/SouthAfricaNidInput.md +1 -1
  17. data/docs/SouthAfricaNidLookup2Input.md +18 -0
  18. data/docs/SpidProviderOutput.md +22 -4
  19. data/lib/trinsic_api/models/attachment_access_keys.rb +11 -1
  20. data/lib/trinsic_api/models/kenya_nid_biometric2_input.rb +246 -0
  21. data/lib/trinsic_api/models/kenya_nid_input.rb +1 -1
  22. data/lib/trinsic_api/models/kenya_nid_lookup2_input.rb +222 -0
  23. data/lib/trinsic_api/models/kenya_nid_match2_input.rb +299 -0
  24. data/lib/trinsic_api/models/nigeria_nin_input.rb +1 -1
  25. data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +238 -0
  26. data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +238 -0
  27. data/lib/trinsic_api/models/provider_input.rb +45 -1
  28. data/lib/trinsic_api/models/provider_output.rb +25 -5
  29. data/lib/trinsic_api/models/sex_v1.rb +42 -0
  30. data/lib/trinsic_api/models/south_africa_nid_input.rb +1 -1
  31. data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +222 -0
  32. data/lib/trinsic_api/models/spid_provider_output.rb +149 -18
  33. data/lib/trinsic_api/version.rb +1 -1
  34. data/lib/trinsic_api.rb +7 -0
  35. data/spec/models/attachment_access_keys_spec.rb +6 -0
  36. data/spec/models/kenya_nid_biometric2_input_spec.rb +48 -0
  37. data/spec/models/kenya_nid_lookup2_input_spec.rb +36 -0
  38. data/spec/models/kenya_nid_match2_input_spec.rb +66 -0
  39. data/spec/models/philippines_digital_nid_provider_output_spec.rb +36 -0
  40. data/spec/models/philippines_physical_nid_provider_output_spec.rb +36 -0
  41. data/spec/models/provider_input_spec.rb +24 -0
  42. data/spec/models/provider_output_spec.rb +12 -0
  43. data/spec/models/sex_v1_spec.rb +30 -0
  44. data/spec/models/south_africa_nid_lookup2_input_spec.rb +36 -0
  45. data/spec/models/spid_provider_output_spec.rb +56 -2
  46. metadata +30 -2
@@ -0,0 +1,238 @@
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.13.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ class PhilippinesDigitalNidProviderOutput
18
+ # The PhilSys card number.
19
+ attr_accessor :philsys_card_number
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'philsys_card_number' => :'philsysCardNumber'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'philsys_card_number' => :'String'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::PhilippinesDigitalNidProviderOutput` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::PhilippinesDigitalNidProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'philsys_card_number')
68
+ self.philsys_card_number = attributes[:'philsys_card_number']
69
+ else
70
+ self.philsys_card_number = nil
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
+ invalid_properties = Array.new
79
+ if @philsys_card_number.nil?
80
+ invalid_properties.push('invalid value for "philsys_card_number", philsys_card_number cannot be nil.')
81
+ end
82
+
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ warn '[DEPRECATED] the `valid?` method is obsolete'
90
+ return false if @philsys_card_number.nil?
91
+ true
92
+ end
93
+
94
+ # Custom attribute writer method with validation
95
+ # @param [Object] philsys_card_number Value to be assigned
96
+ def philsys_card_number=(philsys_card_number)
97
+ if philsys_card_number.nil?
98
+ fail ArgumentError, 'philsys_card_number cannot be nil'
99
+ end
100
+
101
+ @philsys_card_number = philsys_card_number
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ philsys_card_number == o.philsys_card_number
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ def hash
121
+ [philsys_card_number].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def self.build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ attributes = attributes.transform_keys(&:to_sym)
130
+ transformed_hash = {}
131
+ openapi_types.each_pair do |key, type|
132
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
133
+ transformed_hash["#{key}"] = nil
134
+ elsif type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[attribute_map[key]].is_a?(Array)
138
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
139
+ end
140
+ elsif !attributes[attribute_map[key]].nil?
141
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
142
+ end
143
+ end
144
+ new(transformed_hash)
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def self._deserialize(type, value)
152
+ case type.to_sym
153
+ when :Time
154
+ Time.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :Boolean
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ # models (e.g. Pet) or oneOf
185
+ klass = TrinsicApi.const_get(type)
186
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ if value.nil?
209
+ is_nullable = self.class.openapi_nullable.include?(attr)
210
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
211
+ end
212
+
213
+ hash[param] = _to_hash(value)
214
+ end
215
+ hash
216
+ end
217
+
218
+ # Outputs non-array value in the form of hash
219
+ # For object, use to_hash. Otherwise, just return the value
220
+ # @param [Object] value Any valid value
221
+ # @return [Hash] Returns the value in the form of hash
222
+ def _to_hash(value)
223
+ if value.is_a?(Array)
224
+ value.compact.map { |v| _to_hash(v) }
225
+ elsif value.is_a?(Hash)
226
+ {}.tap do |hash|
227
+ value.each { |k, v| hash[k] = _to_hash(v) }
228
+ end
229
+ elsif value.respond_to? :to_hash
230
+ value.to_hash
231
+ else
232
+ value
233
+ end
234
+ end
235
+
236
+ end
237
+
238
+ end
@@ -0,0 +1,238 @@
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.13.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrinsicApi
17
+ class PhilippinesPhysicalNidProviderOutput
18
+ # The PhilSys card number.
19
+ attr_accessor :philsys_card_number
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'philsys_card_number' => :'philsysCardNumber'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'philsys_card_number' => :'String'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::PhilippinesPhysicalNidProviderOutput` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::PhilippinesPhysicalNidProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'philsys_card_number')
68
+ self.philsys_card_number = attributes[:'philsys_card_number']
69
+ else
70
+ self.philsys_card_number = nil
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
+ invalid_properties = Array.new
79
+ if @philsys_card_number.nil?
80
+ invalid_properties.push('invalid value for "philsys_card_number", philsys_card_number cannot be nil.')
81
+ end
82
+
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ warn '[DEPRECATED] the `valid?` method is obsolete'
90
+ return false if @philsys_card_number.nil?
91
+ true
92
+ end
93
+
94
+ # Custom attribute writer method with validation
95
+ # @param [Object] philsys_card_number Value to be assigned
96
+ def philsys_card_number=(philsys_card_number)
97
+ if philsys_card_number.nil?
98
+ fail ArgumentError, 'philsys_card_number cannot be nil'
99
+ end
100
+
101
+ @philsys_card_number = philsys_card_number
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ philsys_card_number == o.philsys_card_number
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ def hash
121
+ [philsys_card_number].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def self.build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ attributes = attributes.transform_keys(&:to_sym)
130
+ transformed_hash = {}
131
+ openapi_types.each_pair do |key, type|
132
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
133
+ transformed_hash["#{key}"] = nil
134
+ elsif type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[attribute_map[key]].is_a?(Array)
138
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
139
+ end
140
+ elsif !attributes[attribute_map[key]].nil?
141
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
142
+ end
143
+ end
144
+ new(transformed_hash)
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def self._deserialize(type, value)
152
+ case type.to_sym
153
+ when :Time
154
+ Time.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :Boolean
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ # models (e.g. Pet) or oneOf
185
+ klass = TrinsicApi.const_get(type)
186
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ if value.nil?
209
+ is_nullable = self.class.openapi_nullable.include?(attr)
210
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
211
+ end
212
+
213
+ hash[param] = _to_hash(value)
214
+ end
215
+ hash
216
+ end
217
+
218
+ # Outputs non-array value in the form of hash
219
+ # For object, use to_hash. Otherwise, just return the value
220
+ # @param [Object] value Any valid value
221
+ # @return [Hash] Returns the value in the form of hash
222
+ def _to_hash(value)
223
+ if value.is_a?(Array)
224
+ value.compact.map { |v| _to_hash(v) }
225
+ elsif value.is_a?(Hash)
226
+ {}.tap do |hash|
227
+ value.each { |k, v| hash[k] = _to_hash(v) }
228
+ end
229
+ elsif value.respond_to? :to_hash
230
+ value.to_hash
231
+ else
232
+ value
233
+ end
234
+ end
235
+
236
+ end
237
+
238
+ end
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module TrinsicApi
17
17
  class ProviderInput
18
+ # Input for the `kenya-nid-match-biometric-2` provider
19
+ attr_accessor :kenya_biometric2
20
+
18
21
  # Input for the `indonesia-nik-lookup` provider
19
22
  attr_accessor :indonesia_nik
20
23
 
@@ -30,6 +33,15 @@ module TrinsicApi
30
33
  # Input for the `kenya-nid-lookup` provider
31
34
  attr_accessor :kenya_nid
32
35
 
36
+ # Input for the `kenya-nid-match-2` provider
37
+ attr_accessor :kenya_nid_match2
38
+
39
+ # Input for the `kenya-nid-lookup-2` provider
40
+ attr_accessor :kenya_nid_lookup2
41
+
42
+ # Input for the `south-africa-nid-lookup-2` provider
43
+ attr_accessor :south_africa_nid_lookup2
44
+
33
45
  # Input for the `nigeria-nin-lookup` provider
34
46
  attr_accessor :nigeria_nin
35
47
 
@@ -78,11 +90,15 @@ module TrinsicApi
78
90
  # Attribute mapping from ruby-style variable name to JSON key.
79
91
  def self.attribute_map
80
92
  {
93
+ :'kenya_biometric2' => :'kenyaBiometric2',
81
94
  :'indonesia_nik' => :'indonesiaNik',
82
95
  :'indonesia_dukcapil_match' => :'indonesiaDukcapilMatch',
83
96
  :'mexico_curp' => :'mexicoCurp',
84
97
  :'south_africa_nid' => :'southAfricaNid',
85
98
  :'kenya_nid' => :'kenyaNid',
99
+ :'kenya_nid_match2' => :'kenyaNidMatch2',
100
+ :'kenya_nid_lookup2' => :'kenyaNidLookup2',
101
+ :'south_africa_nid_lookup2' => :'southAfricaNidLookup2',
86
102
  :'nigeria_nin' => :'nigeriaNin',
87
103
  :'aadhaar' => :'aadhaar',
88
104
  :'bangladesh_national_id' => :'bangladeshNationalId',
@@ -114,11 +130,15 @@ module TrinsicApi
114
130
  # Attribute type mapping.
115
131
  def self.openapi_types
116
132
  {
133
+ :'kenya_biometric2' => :'KenyaNidBiometric2Input',
117
134
  :'indonesia_nik' => :'IndonesiaNikInput',
118
135
  :'indonesia_dukcapil_match' => :'IndonesiaDukcapilMatchInput',
119
136
  :'mexico_curp' => :'MexicoCurpInput',
120
137
  :'south_africa_nid' => :'SouthAfricaNidInput',
121
138
  :'kenya_nid' => :'KenyaNidInput',
139
+ :'kenya_nid_match2' => :'KenyaNidMatch2Input',
140
+ :'kenya_nid_lookup2' => :'KenyaNidLookup2Input',
141
+ :'south_africa_nid_lookup2' => :'SouthAfricaNidLookup2Input',
122
142
  :'nigeria_nin' => :'NigeriaNinInput',
123
143
  :'aadhaar' => :'AadhaarInput',
124
144
  :'bangladesh_national_id' => :'BangladeshNidInput',
@@ -140,11 +160,15 @@ module TrinsicApi
140
160
  # List of attributes with nullable: true
141
161
  def self.openapi_nullable
142
162
  Set.new([
163
+ :'kenya_biometric2',
143
164
  :'indonesia_nik',
144
165
  :'indonesia_dukcapil_match',
145
166
  :'mexico_curp',
146
167
  :'south_africa_nid',
147
168
  :'kenya_nid',
169
+ :'kenya_nid_match2',
170
+ :'kenya_nid_lookup2',
171
+ :'south_africa_nid_lookup2',
148
172
  :'nigeria_nin',
149
173
  :'aadhaar',
150
174
  :'bangladesh_national_id',
@@ -179,6 +203,10 @@ module TrinsicApi
179
203
  h[k.to_sym] = v
180
204
  }
181
205
 
206
+ if attributes.key?(:'kenya_biometric2')
207
+ self.kenya_biometric2 = attributes[:'kenya_biometric2']
208
+ end
209
+
182
210
  if attributes.key?(:'indonesia_nik')
183
211
  self.indonesia_nik = attributes[:'indonesia_nik']
184
212
  end
@@ -199,6 +227,18 @@ module TrinsicApi
199
227
  self.kenya_nid = attributes[:'kenya_nid']
200
228
  end
201
229
 
230
+ if attributes.key?(:'kenya_nid_match2')
231
+ self.kenya_nid_match2 = attributes[:'kenya_nid_match2']
232
+ end
233
+
234
+ if attributes.key?(:'kenya_nid_lookup2')
235
+ self.kenya_nid_lookup2 = attributes[:'kenya_nid_lookup2']
236
+ end
237
+
238
+ if attributes.key?(:'south_africa_nid_lookup2')
239
+ self.south_africa_nid_lookup2 = attributes[:'south_africa_nid_lookup2']
240
+ end
241
+
202
242
  if attributes.key?(:'nigeria_nin')
203
243
  self.nigeria_nin = attributes[:'nigeria_nin']
204
244
  end
@@ -280,11 +320,15 @@ module TrinsicApi
280
320
  def ==(o)
281
321
  return true if self.equal?(o)
282
322
  self.class == o.class &&
323
+ kenya_biometric2 == o.kenya_biometric2 &&
283
324
  indonesia_nik == o.indonesia_nik &&
284
325
  indonesia_dukcapil_match == o.indonesia_dukcapil_match &&
285
326
  mexico_curp == o.mexico_curp &&
286
327
  south_africa_nid == o.south_africa_nid &&
287
328
  kenya_nid == o.kenya_nid &&
329
+ kenya_nid_match2 == o.kenya_nid_match2 &&
330
+ kenya_nid_lookup2 == o.kenya_nid_lookup2 &&
331
+ south_africa_nid_lookup2 == o.south_africa_nid_lookup2 &&
288
332
  nigeria_nin == o.nigeria_nin &&
289
333
  aadhaar == o.aadhaar &&
290
334
  bangladesh_national_id == o.bangladesh_national_id &&
@@ -311,7 +355,7 @@ module TrinsicApi
311
355
  # Calculates hash code according to all attributes.
312
356
  # @return [Integer] Hash code
313
357
  def hash
314
- [indonesia_nik, indonesia_dukcapil_match, mexico_curp, south_africa_nid, kenya_nid, nigeria_nin, aadhaar, bangladesh_national_id, brazil_cpf_check, brazil_digital_cnh, philippine_match, philippine_qr, smart_id, mobile_id, idin, spid, google_wallet, apple_wallet, trinsic_test_database_lookup, trinsic_test_sub_providers].hash
358
+ [kenya_biometric2, indonesia_nik, indonesia_dukcapil_match, mexico_curp, south_africa_nid, kenya_nid, kenya_nid_match2, kenya_nid_lookup2, south_africa_nid_lookup2, nigeria_nin, aadhaar, bangladesh_national_id, brazil_cpf_check, brazil_digital_cnh, philippine_match, philippine_qr, smart_id, mobile_id, idin, spid, google_wallet, apple_wallet, trinsic_test_database_lookup, trinsic_test_sub_providers].hash
315
359
  end
316
360
 
317
361
  # Builds the object from hash
@@ -21,12 +21,18 @@ module TrinsicApi
21
21
 
22
22
  attr_accessor :ethiopia_fayda
23
23
 
24
+ attr_accessor :philippines_physical_national_id_qr
25
+
26
+ attr_accessor :philippines_digital_national_id_qr
27
+
24
28
  # Attribute mapping from ruby-style variable name to JSON key.
25
29
  def self.attribute_map
26
30
  {
27
31
  :'italy_spid' => :'italy-spid',
28
32
  :'mexico_curp_lookup' => :'mexico-curp-lookup',
29
- :'ethiopia_fayda' => :'ethiopia-fayda'
33
+ :'ethiopia_fayda' => :'ethiopia-fayda',
34
+ :'philippines_physical_national_id_qr' => :'philippines-physical-national-id-qr',
35
+ :'philippines_digital_national_id_qr' => :'philippines-digital-national-id-qr'
30
36
  }
31
37
  end
32
38
 
@@ -45,7 +51,9 @@ module TrinsicApi
45
51
  {
46
52
  :'italy_spid' => :'SpidProviderOutput',
47
53
  :'mexico_curp_lookup' => :'MexicoCurpProviderOutput',
48
- :'ethiopia_fayda' => :'FaydaProviderOutput'
54
+ :'ethiopia_fayda' => :'FaydaProviderOutput',
55
+ :'philippines_physical_national_id_qr' => :'PhilippinesPhysicalNidProviderOutput',
56
+ :'philippines_digital_national_id_qr' => :'PhilippinesDigitalNidProviderOutput'
49
57
  }
50
58
  end
51
59
 
@@ -54,7 +62,9 @@ module TrinsicApi
54
62
  Set.new([
55
63
  :'italy_spid',
56
64
  :'mexico_curp_lookup',
57
- :'ethiopia_fayda'
65
+ :'ethiopia_fayda',
66
+ :'philippines_physical_national_id_qr',
67
+ :'philippines_digital_national_id_qr'
58
68
  ])
59
69
  end
60
70
 
@@ -85,6 +95,14 @@ module TrinsicApi
85
95
  if attributes.key?(:'ethiopia_fayda')
86
96
  self.ethiopia_fayda = attributes[:'ethiopia_fayda']
87
97
  end
98
+
99
+ if attributes.key?(:'philippines_physical_national_id_qr')
100
+ self.philippines_physical_national_id_qr = attributes[:'philippines_physical_national_id_qr']
101
+ end
102
+
103
+ if attributes.key?(:'philippines_digital_national_id_qr')
104
+ self.philippines_digital_national_id_qr = attributes[:'philippines_digital_national_id_qr']
105
+ end
88
106
  end
89
107
 
90
108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -109,7 +127,9 @@ module TrinsicApi
109
127
  self.class == o.class &&
110
128
  italy_spid == o.italy_spid &&
111
129
  mexico_curp_lookup == o.mexico_curp_lookup &&
112
- ethiopia_fayda == o.ethiopia_fayda
130
+ ethiopia_fayda == o.ethiopia_fayda &&
131
+ philippines_physical_national_id_qr == o.philippines_physical_national_id_qr &&
132
+ philippines_digital_national_id_qr == o.philippines_digital_national_id_qr
113
133
  end
114
134
 
115
135
  # @see the `==` method
@@ -121,7 +141,7 @@ module TrinsicApi
121
141
  # Calculates hash code according to all attributes.
122
142
  # @return [Integer] Hash code
123
143
  def hash
124
- [italy_spid, mexico_curp_lookup, ethiopia_fayda].hash
144
+ [italy_spid, mexico_curp_lookup, ethiopia_fayda, philippines_physical_national_id_qr, philippines_digital_national_id_qr].hash
125
145
  end
126
146
 
127
147
  # Builds the object from hash