trinsic_api 3.0.0 → 3.0.1
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.
- checksums.yaml +4 -4
- data/docs/KenyaNidLookup2Address.md +26 -0
- data/docs/KenyaNidLookup2ProviderOutput.md +38 -0
- data/docs/ProviderOutput.md +2 -0
- data/lib/trinsic_api/models/kenya_nid_lookup2_address.rb +269 -0
- data/lib/trinsic_api/models/kenya_nid_lookup2_provider_output.rb +429 -0
- data/lib/trinsic_api/models/provider_output.rb +12 -1
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +2 -0
- data/spec/models/kenya_nid_lookup2_address_spec.rb +60 -0
- data/spec/models/kenya_nid_lookup2_provider_output_spec.rb +96 -0
- data/spec/models/provider_output_spec.rb +6 -0
- metadata +10 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83467077105fa55c92aa08e8db2c7c3a9bc906f7fb81789acf2d2d10c8a5ce27
|
|
4
|
+
data.tar.gz: b33aa00ea78ed1452b030ec0667dfd73b8628f6b92ac6ea2a2592b8543a0c8dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 560fa28b166c90f13b3315708d94f2cfd76fc3bf3eba3a7c2ba0e37ee607092a9dc069b17592db7c6aab26f35981d994c26d3bc557d6f90e5edae4e4c70b12ef
|
|
7
|
+
data.tar.gz: dee11fe6651b7ea394190890278fe78a1157f99522cc0499ed323cb4b127eb3dc164e895b339fb01db27a6be13e3645a66ae42301c0435e8c52362d93b7ac1a5
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# TrinsicApi::KenyaNidLookup2Address
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **district** | **String** | The district where the person resides. This is the highest level of the pre-2010 administrative hierarchy stored in IPRS. Districts were the primary administrative units under Kenya's provincial system before the change to counties in 2010. Districts roughly correspond to sub-counties in the current administrative structure. | [optional] |
|
|
8
|
+
| **division** | **String** | The division within the district. This is the second level of the pre-2010 administrative hierarchy. Divisions were administrative units between districts and locations. | [optional] |
|
|
9
|
+
| **location** | **String** | The location within the division. This is the third level of the pre-2010 administrative hierarchy. Locations were the smallest administrative units. | [optional] |
|
|
10
|
+
| **additional_lines** | **Array<String>** | Additional address lines that appear before the structured administrative parts. May include P.O. Box (format: \"P O BOX [number] [location]\"), village names, estate names, or other informal locality information. | [optional] |
|
|
11
|
+
| **raw** | **String** | The raw, unparsed address string as returned from IPRS (Integrated Population Registration System). This preserves the original newline-separated format containing both informal address components (village, P.O. Box) and labeled administrative divisions (LOCATION, DIVISION, DISTRICT). | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'trinsic_api'
|
|
17
|
+
|
|
18
|
+
instance = TrinsicApi::KenyaNidLookup2Address.new(
|
|
19
|
+
district: NAIROBI,
|
|
20
|
+
division: CENTRAL,
|
|
21
|
+
location: CITY SQUARE,
|
|
22
|
+
additional_lines: ["P O BOX 41842 NAIROBI","PARLIAMENT BUILDINGS"],
|
|
23
|
+
raw: P O BOX 41842 NAIROBI\nPARLIAMENT BUILDINGS\nLOCATION - CITY SQUARE\nDIVISION - CENTRAL\nDISTRICT - NAIROBI
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# TrinsicApi::KenyaNidLookup2ProviderOutput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **first_name** | **String** | The first name (given name) of the ID holder as recorded in IPRS. | |
|
|
8
|
+
| **surname** | **String** | The surname (family name) of the ID holder as recorded in IPRS. | |
|
|
9
|
+
| **other_name** | **String** | The other name (middle name) of the ID holder as recorded in IPRS. | [optional] |
|
|
10
|
+
| **sex** | **String** | The sex of the ID holder as recorded on the National ID. Possible values: - Male - Female | |
|
|
11
|
+
| **date_of_birth** | **Date** | The date of birth of the ID holder as recorded in IPRS. | [optional] |
|
|
12
|
+
| **citizenship** | **String** | Citizenship status as recorded in the IPRS civil registry database. For the Kenya National ID lookup, this value will always be \"Kenyan\" as the National ID is only issued to Kenyan citizens. Non-citizens residing in Kenya are issued different identification documents (Alien ID cards, refugee documentation, etc.) which are not supported by this provider. | |
|
|
13
|
+
| **id_number** | **String** | The Kenya National ID Number (Nambari ya Kitambulisho). This is the primary unique identifier for Kenyan citizens in all government systems, issued by the National Registration Bureau (NRB). The format is 1 to 9 numeric digits (regex: /^[0-9]{1,9}$/). This number is assigned upon first registration at age 18 (or upon naturalization for new citizens) and remains constant for life. | |
|
|
14
|
+
| **serial_number** | **String** | The physical card serial number printed on the Kenya National ID card. This is distinct from the ID Number and serves as a card issuance tracking identifier maintained by IPRS. This value changes each time a new physical card is issued (loss, damage, renewal). | |
|
|
15
|
+
| **date_of_issue** | **Date** | The date the National ID was issued by the National Registration Bureau (NRB). | [optional] |
|
|
16
|
+
| **place_of_birth** | [**KenyaNidLookup2Address**](KenyaNidLookup2Address.md) | Place of birth as recorded in Kenya's civil registry (IPRS). This is structured according to Kenya's pre-2010 administrative hierarchy (District > Division > Location). | [optional] |
|
|
17
|
+
| **place_of_residence** | [**KenyaNidLookup2Address**](KenyaNidLookup2Address.md) | Current residence address as registered in IPRS. This represents the address on file at the time of ID registration or last update, structured according to Kenya's pre-2010 administrative hierarchy (District > Division > Location). | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'trinsic_api'
|
|
23
|
+
|
|
24
|
+
instance = TrinsicApi::KenyaNidLookup2ProviderOutput.new(
|
|
25
|
+
first_name: JUMA,
|
|
26
|
+
surname: ODHIAMBO,
|
|
27
|
+
other_name: OTIENO,
|
|
28
|
+
sex: Male,
|
|
29
|
+
date_of_birth: Tue Jan 01 00:00:00 UTC 1985,
|
|
30
|
+
citizenship: Kenyan,
|
|
31
|
+
id_number: 12345678,
|
|
32
|
+
serial_number: 98765432,
|
|
33
|
+
date_of_issue: Tue Jun 15 00:00:00 UTC 2010,
|
|
34
|
+
place_of_birth: null,
|
|
35
|
+
place_of_residence: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
data/docs/ProviderOutput.md
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
| **france_identite_numerique** | [**FrenchNumeriqueProviderOutput**](FrenchNumeriqueProviderOutput.md) | Exposed properties for the `france-identite-numerique` Provider which do not directly map to the normalized IdentityData model. | [optional] |
|
|
25
25
|
| **google_wallet** | [**GoogleWalletProviderOutput**](GoogleWalletProviderOutput.md) | Exposed properties for the `google-wallet` Provider which do not directly map to the normalized IdentityData model. | [optional] |
|
|
26
26
|
| **italy_spid** | [**SpidProviderOutput**](SpidProviderOutput.md) | Exposed properties for the `italy-spid` Provider which do not directly map to the normalized IdentityData model. | [optional] |
|
|
27
|
+
| **kenya_nid_lookup_2** | [**KenyaNidLookup2ProviderOutput**](KenyaNidLookup2ProviderOutput.md) | Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model. | [optional] |
|
|
27
28
|
| **lloyds_smart_id** | [**LloydsSmartIdProviderOutput**](LloydsSmartIdProviderOutput.md) | Exposed properties for the `lloyds-smart-id` Provider which do not directly map to the normalized IdentityData model. | [optional] |
|
|
28
29
|
| **mexico_curp_lookup** | [**MexicoCurpProviderOutput**](MexicoCurpProviderOutput.md) | Exposed properties for the `mexico-curp-lookup` Provider which do not directly map to the normalized IdentityData model. | [optional] |
|
|
29
30
|
| **mobile_id** | [**MobileIdProviderOutput**](MobileIdProviderOutput.md) | Exposed properties for the `mobile-id` Provider which do not directly map to the normalized IdentityData model. | [optional] |
|
|
@@ -63,6 +64,7 @@ instance = TrinsicApi::ProviderOutput.new(
|
|
|
63
64
|
france_identite_numerique: null,
|
|
64
65
|
google_wallet: null,
|
|
65
66
|
italy_spid: null,
|
|
67
|
+
kenya_nid_lookup_2: null,
|
|
66
68
|
lloyds_smart_id: null,
|
|
67
69
|
mexico_curp_lookup: null,
|
|
68
70
|
mobile_id: null,
|
|
@@ -0,0 +1,269 @@
|
|
|
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
|
+
# Represents a Kenya address as stored in the IPRS (Integrated Population Registration System) database. The structure reflects the pre-2010 provincial administration system: District > Division > Location. Since the 2010 constitutional change to counties, these legacy administrative divisions are still maintained in IPRS records for historical continuity. The raw address from IPRS is a newline-separated string with labeled administrative components. Example format: ``` P O BOX 41842 NAIROBI PARLIAMENT BUILDINGS LOCATION - CITY SQUARE DIVISION - CENTRAL DISTRICT - NAIROBI ``` The first lines contain informal address details (village, P.O. Box) while the suffixed lines contain official administrative designations prefixed with labels like \"LOCATION -\", \"DIVISION -\", \"DISTRICT -\".
|
|
18
|
+
class KenyaNidLookup2Address
|
|
19
|
+
# The district where the person resides. This is the highest level of the pre-2010 administrative hierarchy stored in IPRS. Districts were the primary administrative units under Kenya's provincial system before the change to counties in 2010. Districts roughly correspond to sub-counties in the current administrative structure.
|
|
20
|
+
attr_accessor :district
|
|
21
|
+
|
|
22
|
+
# The division within the district. This is the second level of the pre-2010 administrative hierarchy. Divisions were administrative units between districts and locations.
|
|
23
|
+
attr_accessor :division
|
|
24
|
+
|
|
25
|
+
# The location within the division. This is the third level of the pre-2010 administrative hierarchy. Locations were the smallest administrative units.
|
|
26
|
+
attr_accessor :location
|
|
27
|
+
|
|
28
|
+
# Additional address lines that appear before the structured administrative parts. May include P.O. Box (format: \"P O BOX [number] [location]\"), village names, estate names, or other informal locality information.
|
|
29
|
+
attr_accessor :additional_lines
|
|
30
|
+
|
|
31
|
+
# The raw, unparsed address string as returned from IPRS (Integrated Population Registration System). This preserves the original newline-separated format containing both informal address components (village, P.O. Box) and labeled administrative divisions (LOCATION, DIVISION, DISTRICT).
|
|
32
|
+
attr_accessor :raw
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'district' => :'district',
|
|
38
|
+
:'division' => :'division',
|
|
39
|
+
:'location' => :'location',
|
|
40
|
+
:'additional_lines' => :'additionalLines',
|
|
41
|
+
:'raw' => :'raw'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Returns attribute mapping this model knows about
|
|
46
|
+
def self.acceptable_attribute_map
|
|
47
|
+
attribute_map
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Returns all the JSON keys this model knows about
|
|
51
|
+
def self.acceptable_attributes
|
|
52
|
+
acceptable_attribute_map.values
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Attribute type mapping.
|
|
56
|
+
def self.openapi_types
|
|
57
|
+
{
|
|
58
|
+
:'district' => :'String',
|
|
59
|
+
:'division' => :'String',
|
|
60
|
+
:'location' => :'String',
|
|
61
|
+
:'additional_lines' => :'Array<String>',
|
|
62
|
+
:'raw' => :'String'
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# List of attributes with nullable: true
|
|
67
|
+
def self.openapi_nullable
|
|
68
|
+
Set.new([
|
|
69
|
+
:'district',
|
|
70
|
+
:'division',
|
|
71
|
+
:'location',
|
|
72
|
+
:'additional_lines',
|
|
73
|
+
:'raw'
|
|
74
|
+
])
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Initializes the object
|
|
78
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
79
|
+
def initialize(attributes = {})
|
|
80
|
+
if (!attributes.is_a?(Hash))
|
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::KenyaNidLookup2Address` initialize method"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
85
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
87
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
88
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::KenyaNidLookup2Address`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
89
|
+
end
|
|
90
|
+
h[k.to_sym] = v
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'district')
|
|
94
|
+
self.district = attributes[:'district']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'division')
|
|
98
|
+
self.division = attributes[:'division']
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'location')
|
|
102
|
+
self.location = attributes[:'location']
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if attributes.key?(:'additional_lines')
|
|
106
|
+
if (value = attributes[:'additional_lines']).is_a?(Array)
|
|
107
|
+
self.additional_lines = value
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'raw')
|
|
112
|
+
self.raw = attributes[:'raw']
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
117
|
+
# @return Array for valid properties with the reasons
|
|
118
|
+
def list_invalid_properties
|
|
119
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
120
|
+
invalid_properties = Array.new
|
|
121
|
+
invalid_properties
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Check to see if the all the properties in the model are valid
|
|
125
|
+
# @return true if the model is valid
|
|
126
|
+
def valid?
|
|
127
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
128
|
+
true
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Checks equality by comparing each attribute.
|
|
132
|
+
# @param [Object] Object to be compared
|
|
133
|
+
def ==(o)
|
|
134
|
+
return true if self.equal?(o)
|
|
135
|
+
self.class == o.class &&
|
|
136
|
+
district == o.district &&
|
|
137
|
+
division == o.division &&
|
|
138
|
+
location == o.location &&
|
|
139
|
+
additional_lines == o.additional_lines &&
|
|
140
|
+
raw == o.raw
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# @see the `==` method
|
|
144
|
+
# @param [Object] Object to be compared
|
|
145
|
+
def eql?(o)
|
|
146
|
+
self == o
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Calculates hash code according to all attributes.
|
|
150
|
+
# @return [Integer] Hash code
|
|
151
|
+
def hash
|
|
152
|
+
[district, division, location, additional_lines, raw].hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Builds the object from hash
|
|
156
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
157
|
+
# @return [Object] Returns the model itself
|
|
158
|
+
def self.build_from_hash(attributes)
|
|
159
|
+
return nil unless attributes.is_a?(Hash)
|
|
160
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
161
|
+
transformed_hash = {}
|
|
162
|
+
openapi_types.each_pair do |key, type|
|
|
163
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
164
|
+
transformed_hash["#{key}"] = nil
|
|
165
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
166
|
+
# check to ensure the input is an array given that the attribute
|
|
167
|
+
# is documented as an array but the input is not
|
|
168
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
169
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
170
|
+
end
|
|
171
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
172
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
new(transformed_hash)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Deserializes the data based on type
|
|
179
|
+
# @param string type Data type
|
|
180
|
+
# @param string value Value to be deserialized
|
|
181
|
+
# @return [Object] Deserialized data
|
|
182
|
+
def self._deserialize(type, value)
|
|
183
|
+
case type.to_sym
|
|
184
|
+
when :Time
|
|
185
|
+
Time.parse(value)
|
|
186
|
+
when :Date
|
|
187
|
+
Date.parse(value)
|
|
188
|
+
when :String
|
|
189
|
+
value.to_s
|
|
190
|
+
when :Integer
|
|
191
|
+
value.to_i
|
|
192
|
+
when :Float
|
|
193
|
+
value.to_f
|
|
194
|
+
when :Boolean
|
|
195
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
196
|
+
true
|
|
197
|
+
else
|
|
198
|
+
false
|
|
199
|
+
end
|
|
200
|
+
when :Object
|
|
201
|
+
# generic object (usually a Hash), return directly
|
|
202
|
+
value
|
|
203
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
204
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
205
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
206
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
207
|
+
k_type = Regexp.last_match[:k_type]
|
|
208
|
+
v_type = Regexp.last_match[:v_type]
|
|
209
|
+
{}.tap do |hash|
|
|
210
|
+
value.each do |k, v|
|
|
211
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
else # model
|
|
215
|
+
# models (e.g. Pet) or oneOf
|
|
216
|
+
klass = TrinsicApi.const_get(type)
|
|
217
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Returns the string representation of the object
|
|
222
|
+
# @return [String] String presentation of the object
|
|
223
|
+
def to_s
|
|
224
|
+
to_hash.to_s
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
|
229
|
+
def to_body
|
|
230
|
+
to_hash
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Returns the object in the form of hash
|
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
|
235
|
+
def to_hash
|
|
236
|
+
hash = {}
|
|
237
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
238
|
+
value = self.send(attr)
|
|
239
|
+
if value.nil?
|
|
240
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
241
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
hash[param] = _to_hash(value)
|
|
245
|
+
end
|
|
246
|
+
hash
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Outputs non-array value in the form of hash
|
|
250
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
251
|
+
# @param [Object] value Any valid value
|
|
252
|
+
# @return [Hash] Returns the value in the form of hash
|
|
253
|
+
def _to_hash(value)
|
|
254
|
+
if value.is_a?(Array)
|
|
255
|
+
value.compact.map { |v| _to_hash(v) }
|
|
256
|
+
elsif value.is_a?(Hash)
|
|
257
|
+
{}.tap do |hash|
|
|
258
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
259
|
+
end
|
|
260
|
+
elsif value.respond_to? :to_hash
|
|
261
|
+
value.to_hash
|
|
262
|
+
else
|
|
263
|
+
value
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
end
|
|
@@ -0,0 +1,429 @@
|
|
|
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
|
+
# Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
+
class KenyaNidLookup2ProviderOutput
|
|
19
|
+
# The first name (given name) of the ID holder as recorded in IPRS.
|
|
20
|
+
attr_accessor :first_name
|
|
21
|
+
|
|
22
|
+
# The surname (family name) of the ID holder as recorded in IPRS.
|
|
23
|
+
attr_accessor :surname
|
|
24
|
+
|
|
25
|
+
# The other name (middle name) of the ID holder as recorded in IPRS.
|
|
26
|
+
attr_accessor :other_name
|
|
27
|
+
|
|
28
|
+
# The sex of the ID holder as recorded on the National ID. Possible values: - Male - Female
|
|
29
|
+
attr_accessor :sex
|
|
30
|
+
|
|
31
|
+
# The date of birth of the ID holder as recorded in IPRS.
|
|
32
|
+
attr_accessor :date_of_birth
|
|
33
|
+
|
|
34
|
+
# Citizenship status as recorded in the IPRS civil registry database. For the Kenya National ID lookup, this value will always be \"Kenyan\" as the National ID is only issued to Kenyan citizens. Non-citizens residing in Kenya are issued different identification documents (Alien ID cards, refugee documentation, etc.) which are not supported by this provider.
|
|
35
|
+
attr_accessor :citizenship
|
|
36
|
+
|
|
37
|
+
# The Kenya National ID Number (Nambari ya Kitambulisho). This is the primary unique identifier for Kenyan citizens in all government systems, issued by the National Registration Bureau (NRB). The format is 1 to 9 numeric digits (regex: /^[0-9]{1,9}$/). This number is assigned upon first registration at age 18 (or upon naturalization for new citizens) and remains constant for life.
|
|
38
|
+
attr_accessor :id_number
|
|
39
|
+
|
|
40
|
+
# The physical card serial number printed on the Kenya National ID card. This is distinct from the ID Number and serves as a card issuance tracking identifier maintained by IPRS. This value changes each time a new physical card is issued (loss, damage, renewal).
|
|
41
|
+
attr_accessor :serial_number
|
|
42
|
+
|
|
43
|
+
# The date the National ID was issued by the National Registration Bureau (NRB).
|
|
44
|
+
attr_accessor :date_of_issue
|
|
45
|
+
|
|
46
|
+
# Place of birth as recorded in Kenya's civil registry (IPRS). This is structured according to Kenya's pre-2010 administrative hierarchy (District > Division > Location).
|
|
47
|
+
attr_accessor :place_of_birth
|
|
48
|
+
|
|
49
|
+
# Current residence address as registered in IPRS. This represents the address on file at the time of ID registration or last update, structured according to Kenya's pre-2010 administrative hierarchy (District > Division > Location).
|
|
50
|
+
attr_accessor :place_of_residence
|
|
51
|
+
|
|
52
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
|
+
def self.attribute_map
|
|
54
|
+
{
|
|
55
|
+
:'first_name' => :'firstName',
|
|
56
|
+
:'surname' => :'surname',
|
|
57
|
+
:'other_name' => :'otherName',
|
|
58
|
+
:'sex' => :'sex',
|
|
59
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
60
|
+
:'citizenship' => :'citizenship',
|
|
61
|
+
:'id_number' => :'idNumber',
|
|
62
|
+
:'serial_number' => :'serialNumber',
|
|
63
|
+
:'date_of_issue' => :'dateOfIssue',
|
|
64
|
+
:'place_of_birth' => :'placeOfBirth',
|
|
65
|
+
:'place_of_residence' => :'placeOfResidence'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Returns attribute mapping this model knows about
|
|
70
|
+
def self.acceptable_attribute_map
|
|
71
|
+
attribute_map
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Returns all the JSON keys this model knows about
|
|
75
|
+
def self.acceptable_attributes
|
|
76
|
+
acceptable_attribute_map.values
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Attribute type mapping.
|
|
80
|
+
def self.openapi_types
|
|
81
|
+
{
|
|
82
|
+
:'first_name' => :'String',
|
|
83
|
+
:'surname' => :'String',
|
|
84
|
+
:'other_name' => :'String',
|
|
85
|
+
:'sex' => :'String',
|
|
86
|
+
:'date_of_birth' => :'Date',
|
|
87
|
+
:'citizenship' => :'String',
|
|
88
|
+
:'id_number' => :'String',
|
|
89
|
+
:'serial_number' => :'String',
|
|
90
|
+
:'date_of_issue' => :'Date',
|
|
91
|
+
:'place_of_birth' => :'KenyaNidLookup2Address',
|
|
92
|
+
:'place_of_residence' => :'KenyaNidLookup2Address'
|
|
93
|
+
}
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# List of attributes with nullable: true
|
|
97
|
+
def self.openapi_nullable
|
|
98
|
+
Set.new([
|
|
99
|
+
:'other_name',
|
|
100
|
+
:'date_of_birth',
|
|
101
|
+
:'date_of_issue',
|
|
102
|
+
:'place_of_birth',
|
|
103
|
+
:'place_of_residence'
|
|
104
|
+
])
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Initializes the object
|
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
109
|
+
def initialize(attributes = {})
|
|
110
|
+
if (!attributes.is_a?(Hash))
|
|
111
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::KenyaNidLookup2ProviderOutput` initialize method"
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
115
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
116
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
117
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
118
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::KenyaNidLookup2ProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
119
|
+
end
|
|
120
|
+
h[k.to_sym] = v
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'first_name')
|
|
124
|
+
self.first_name = attributes[:'first_name']
|
|
125
|
+
else
|
|
126
|
+
self.first_name = nil
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'surname')
|
|
130
|
+
self.surname = attributes[:'surname']
|
|
131
|
+
else
|
|
132
|
+
self.surname = nil
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'other_name')
|
|
136
|
+
self.other_name = attributes[:'other_name']
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'sex')
|
|
140
|
+
self.sex = attributes[:'sex']
|
|
141
|
+
else
|
|
142
|
+
self.sex = nil
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'date_of_birth')
|
|
146
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'citizenship')
|
|
150
|
+
self.citizenship = attributes[:'citizenship']
|
|
151
|
+
else
|
|
152
|
+
self.citizenship = nil
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'id_number')
|
|
156
|
+
self.id_number = attributes[:'id_number']
|
|
157
|
+
else
|
|
158
|
+
self.id_number = nil
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'serial_number')
|
|
162
|
+
self.serial_number = attributes[:'serial_number']
|
|
163
|
+
else
|
|
164
|
+
self.serial_number = nil
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
if attributes.key?(:'date_of_issue')
|
|
168
|
+
self.date_of_issue = attributes[:'date_of_issue']
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'place_of_birth')
|
|
172
|
+
self.place_of_birth = attributes[:'place_of_birth']
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'place_of_residence')
|
|
176
|
+
self.place_of_residence = attributes[:'place_of_residence']
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
181
|
+
# @return Array for valid properties with the reasons
|
|
182
|
+
def list_invalid_properties
|
|
183
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
184
|
+
invalid_properties = Array.new
|
|
185
|
+
if @first_name.nil?
|
|
186
|
+
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if @surname.nil?
|
|
190
|
+
invalid_properties.push('invalid value for "surname", surname cannot be nil.')
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if @sex.nil?
|
|
194
|
+
invalid_properties.push('invalid value for "sex", sex cannot be nil.')
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if @citizenship.nil?
|
|
198
|
+
invalid_properties.push('invalid value for "citizenship", citizenship cannot be nil.')
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if @id_number.nil?
|
|
202
|
+
invalid_properties.push('invalid value for "id_number", id_number cannot be nil.')
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if @serial_number.nil?
|
|
206
|
+
invalid_properties.push('invalid value for "serial_number", serial_number cannot be nil.')
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
invalid_properties
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Check to see if the all the properties in the model are valid
|
|
213
|
+
# @return true if the model is valid
|
|
214
|
+
def valid?
|
|
215
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
216
|
+
return false if @first_name.nil?
|
|
217
|
+
return false if @surname.nil?
|
|
218
|
+
return false if @sex.nil?
|
|
219
|
+
return false if @citizenship.nil?
|
|
220
|
+
return false if @id_number.nil?
|
|
221
|
+
return false if @serial_number.nil?
|
|
222
|
+
true
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Custom attribute writer method with validation
|
|
226
|
+
# @param [Object] first_name Value to be assigned
|
|
227
|
+
def first_name=(first_name)
|
|
228
|
+
if first_name.nil?
|
|
229
|
+
fail ArgumentError, 'first_name cannot be nil'
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
@first_name = first_name
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Custom attribute writer method with validation
|
|
236
|
+
# @param [Object] surname Value to be assigned
|
|
237
|
+
def surname=(surname)
|
|
238
|
+
if surname.nil?
|
|
239
|
+
fail ArgumentError, 'surname cannot be nil'
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
@surname = surname
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Custom attribute writer method with validation
|
|
246
|
+
# @param [Object] sex Value to be assigned
|
|
247
|
+
def sex=(sex)
|
|
248
|
+
if sex.nil?
|
|
249
|
+
fail ArgumentError, 'sex cannot be nil'
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
@sex = sex
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Custom attribute writer method with validation
|
|
256
|
+
# @param [Object] citizenship Value to be assigned
|
|
257
|
+
def citizenship=(citizenship)
|
|
258
|
+
if citizenship.nil?
|
|
259
|
+
fail ArgumentError, 'citizenship cannot be nil'
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
@citizenship = citizenship
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Custom attribute writer method with validation
|
|
266
|
+
# @param [Object] id_number Value to be assigned
|
|
267
|
+
def id_number=(id_number)
|
|
268
|
+
if id_number.nil?
|
|
269
|
+
fail ArgumentError, 'id_number cannot be nil'
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
@id_number = id_number
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# Custom attribute writer method with validation
|
|
276
|
+
# @param [Object] serial_number Value to be assigned
|
|
277
|
+
def serial_number=(serial_number)
|
|
278
|
+
if serial_number.nil?
|
|
279
|
+
fail ArgumentError, 'serial_number cannot be nil'
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
@serial_number = serial_number
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Checks equality by comparing each attribute.
|
|
286
|
+
# @param [Object] Object to be compared
|
|
287
|
+
def ==(o)
|
|
288
|
+
return true if self.equal?(o)
|
|
289
|
+
self.class == o.class &&
|
|
290
|
+
first_name == o.first_name &&
|
|
291
|
+
surname == o.surname &&
|
|
292
|
+
other_name == o.other_name &&
|
|
293
|
+
sex == o.sex &&
|
|
294
|
+
date_of_birth == o.date_of_birth &&
|
|
295
|
+
citizenship == o.citizenship &&
|
|
296
|
+
id_number == o.id_number &&
|
|
297
|
+
serial_number == o.serial_number &&
|
|
298
|
+
date_of_issue == o.date_of_issue &&
|
|
299
|
+
place_of_birth == o.place_of_birth &&
|
|
300
|
+
place_of_residence == o.place_of_residence
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# @see the `==` method
|
|
304
|
+
# @param [Object] Object to be compared
|
|
305
|
+
def eql?(o)
|
|
306
|
+
self == o
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# Calculates hash code according to all attributes.
|
|
310
|
+
# @return [Integer] Hash code
|
|
311
|
+
def hash
|
|
312
|
+
[first_name, surname, other_name, sex, date_of_birth, citizenship, id_number, serial_number, date_of_issue, place_of_birth, place_of_residence].hash
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Builds the object from hash
|
|
316
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
317
|
+
# @return [Object] Returns the model itself
|
|
318
|
+
def self.build_from_hash(attributes)
|
|
319
|
+
return nil unless attributes.is_a?(Hash)
|
|
320
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
321
|
+
transformed_hash = {}
|
|
322
|
+
openapi_types.each_pair do |key, type|
|
|
323
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
324
|
+
transformed_hash["#{key}"] = nil
|
|
325
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
326
|
+
# check to ensure the input is an array given that the attribute
|
|
327
|
+
# is documented as an array but the input is not
|
|
328
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
329
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
330
|
+
end
|
|
331
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
332
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
new(transformed_hash)
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Deserializes the data based on type
|
|
339
|
+
# @param string type Data type
|
|
340
|
+
# @param string value Value to be deserialized
|
|
341
|
+
# @return [Object] Deserialized data
|
|
342
|
+
def self._deserialize(type, value)
|
|
343
|
+
case type.to_sym
|
|
344
|
+
when :Time
|
|
345
|
+
Time.parse(value)
|
|
346
|
+
when :Date
|
|
347
|
+
Date.parse(value)
|
|
348
|
+
when :String
|
|
349
|
+
value.to_s
|
|
350
|
+
when :Integer
|
|
351
|
+
value.to_i
|
|
352
|
+
when :Float
|
|
353
|
+
value.to_f
|
|
354
|
+
when :Boolean
|
|
355
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
356
|
+
true
|
|
357
|
+
else
|
|
358
|
+
false
|
|
359
|
+
end
|
|
360
|
+
when :Object
|
|
361
|
+
# generic object (usually a Hash), return directly
|
|
362
|
+
value
|
|
363
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
364
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
365
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
366
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
367
|
+
k_type = Regexp.last_match[:k_type]
|
|
368
|
+
v_type = Regexp.last_match[:v_type]
|
|
369
|
+
{}.tap do |hash|
|
|
370
|
+
value.each do |k, v|
|
|
371
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
else # model
|
|
375
|
+
# models (e.g. Pet) or oneOf
|
|
376
|
+
klass = TrinsicApi.const_get(type)
|
|
377
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
378
|
+
end
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# Returns the string representation of the object
|
|
382
|
+
# @return [String] String presentation of the object
|
|
383
|
+
def to_s
|
|
384
|
+
to_hash.to_s
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
388
|
+
# @return [Hash] Returns the object in the form of hash
|
|
389
|
+
def to_body
|
|
390
|
+
to_hash
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# Returns the object in the form of hash
|
|
394
|
+
# @return [Hash] Returns the object in the form of hash
|
|
395
|
+
def to_hash
|
|
396
|
+
hash = {}
|
|
397
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
398
|
+
value = self.send(attr)
|
|
399
|
+
if value.nil?
|
|
400
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
401
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
hash[param] = _to_hash(value)
|
|
405
|
+
end
|
|
406
|
+
hash
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Outputs non-array value in the form of hash
|
|
410
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
411
|
+
# @param [Object] value Any valid value
|
|
412
|
+
# @return [Hash] Returns the value in the form of hash
|
|
413
|
+
def _to_hash(value)
|
|
414
|
+
if value.is_a?(Array)
|
|
415
|
+
value.compact.map { |v| _to_hash(v) }
|
|
416
|
+
elsif value.is_a?(Hash)
|
|
417
|
+
{}.tap do |hash|
|
|
418
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
419
|
+
end
|
|
420
|
+
elsif value.respond_to? :to_hash
|
|
421
|
+
value.to_hash
|
|
422
|
+
else
|
|
423
|
+
value
|
|
424
|
+
end
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
end
|
|
@@ -75,6 +75,9 @@ module TrinsicApi
|
|
|
75
75
|
# Exposed properties for the `italy-spid` Provider which do not directly map to the normalized IdentityData model.
|
|
76
76
|
attr_accessor :italy_spid
|
|
77
77
|
|
|
78
|
+
# Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
79
|
+
attr_accessor :kenya_nid_lookup_2
|
|
80
|
+
|
|
78
81
|
# Exposed properties for the `lloyds-smart-id` Provider which do not directly map to the normalized IdentityData model.
|
|
79
82
|
attr_accessor :lloyds_smart_id
|
|
80
83
|
|
|
@@ -134,6 +137,7 @@ module TrinsicApi
|
|
|
134
137
|
:'france_identite_numerique' => :'france-identite-numerique',
|
|
135
138
|
:'google_wallet' => :'google-wallet',
|
|
136
139
|
:'italy_spid' => :'italy-spid',
|
|
140
|
+
:'kenya_nid_lookup_2' => :'kenya-nid-lookup-2',
|
|
137
141
|
:'lloyds_smart_id' => :'lloyds-smart-id',
|
|
138
142
|
:'mexico_curp_lookup' => :'mexico-curp-lookup',
|
|
139
143
|
:'mobile_id' => :'mobile-id',
|
|
@@ -182,6 +186,7 @@ module TrinsicApi
|
|
|
182
186
|
:'france_identite_numerique' => :'FrenchNumeriqueProviderOutput',
|
|
183
187
|
:'google_wallet' => :'GoogleWalletProviderOutput',
|
|
184
188
|
:'italy_spid' => :'SpidProviderOutput',
|
|
189
|
+
:'kenya_nid_lookup_2' => :'KenyaNidLookup2ProviderOutput',
|
|
185
190
|
:'lloyds_smart_id' => :'LloydsSmartIdProviderOutput',
|
|
186
191
|
:'mexico_curp_lookup' => :'MexicoCurpProviderOutput',
|
|
187
192
|
:'mobile_id' => :'MobileIdProviderOutput',
|
|
@@ -220,6 +225,7 @@ module TrinsicApi
|
|
|
220
225
|
:'france_identite_numerique',
|
|
221
226
|
:'google_wallet',
|
|
222
227
|
:'italy_spid',
|
|
228
|
+
:'kenya_nid_lookup_2',
|
|
223
229
|
:'lloyds_smart_id',
|
|
224
230
|
:'mexico_curp_lookup',
|
|
225
231
|
:'mobile_id',
|
|
@@ -331,6 +337,10 @@ module TrinsicApi
|
|
|
331
337
|
self.italy_spid = attributes[:'italy_spid']
|
|
332
338
|
end
|
|
333
339
|
|
|
340
|
+
if attributes.key?(:'kenya_nid_lookup_2')
|
|
341
|
+
self.kenya_nid_lookup_2 = attributes[:'kenya_nid_lookup_2']
|
|
342
|
+
end
|
|
343
|
+
|
|
334
344
|
if attributes.key?(:'lloyds_smart_id')
|
|
335
345
|
self.lloyds_smart_id = attributes[:'lloyds_smart_id']
|
|
336
346
|
end
|
|
@@ -420,6 +430,7 @@ module TrinsicApi
|
|
|
420
430
|
france_identite_numerique == o.france_identite_numerique &&
|
|
421
431
|
google_wallet == o.google_wallet &&
|
|
422
432
|
italy_spid == o.italy_spid &&
|
|
433
|
+
kenya_nid_lookup_2 == o.kenya_nid_lookup_2 &&
|
|
423
434
|
lloyds_smart_id == o.lloyds_smart_id &&
|
|
424
435
|
mexico_curp_lookup == o.mexico_curp_lookup &&
|
|
425
436
|
mobile_id == o.mobile_id &&
|
|
@@ -443,7 +454,7 @@ module TrinsicApi
|
|
|
443
454
|
# Calculates hash code according to all attributes.
|
|
444
455
|
# @return [Integer] Hash code
|
|
445
456
|
def hash
|
|
446
|
-
[a_at_handy_signatur_login, a_be_id_login, a_edoapp_eid_login, a_ee_web_eid_login, a_fi_id_login, a_freja_eid_login, a_itsme_login, a_lt_id_login, a_lv_eparaksts_id_login, a_lv_eparaksts_mobile_login, a_mojeid, a_pl_mojeid_login, a_pt_id_login, a_rs_id_login, apple_wallet, denmark_mitid, ethiopia_fayda, france_identite_numerique, google_wallet, italy_spid, lloyds_smart_id, mexico_curp_lookup, mobile_id, peru_dni_lookup, philippines_digital_national_id_qr, philippines_physical_national_id_qr, post_office_easyid, samsung_wallet, smart_id, sweden_bankid, usa_louisiana_wallet, yoti].hash
|
|
457
|
+
[a_at_handy_signatur_login, a_be_id_login, a_edoapp_eid_login, a_ee_web_eid_login, a_fi_id_login, a_freja_eid_login, a_itsme_login, a_lt_id_login, a_lv_eparaksts_id_login, a_lv_eparaksts_mobile_login, a_mojeid, a_pl_mojeid_login, a_pt_id_login, a_rs_id_login, apple_wallet, denmark_mitid, ethiopia_fayda, france_identite_numerique, google_wallet, italy_spid, kenya_nid_lookup_2, lloyds_smart_id, mexico_curp_lookup, mobile_id, peru_dni_lookup, philippines_digital_national_id_qr, philippines_physical_national_id_qr, post_office_easyid, samsung_wallet, smart_id, sweden_bankid, usa_louisiana_wallet, yoti].hash
|
|
447
458
|
end
|
|
448
459
|
|
|
449
460
|
# Builds the object from hash
|
data/lib/trinsic_api/version.rb
CHANGED
data/lib/trinsic_api.rb
CHANGED
|
@@ -69,7 +69,9 @@ require 'trinsic_api/models/integration_step'
|
|
|
69
69
|
require 'trinsic_api/models/itsme_provider_output'
|
|
70
70
|
require 'trinsic_api/models/kenya_nid_biometric2_input'
|
|
71
71
|
require 'trinsic_api/models/kenya_nid_input'
|
|
72
|
+
require 'trinsic_api/models/kenya_nid_lookup2_address'
|
|
72
73
|
require 'trinsic_api/models/kenya_nid_lookup2_input'
|
|
74
|
+
require 'trinsic_api/models/kenya_nid_lookup2_provider_output'
|
|
73
75
|
require 'trinsic_api/models/kenya_nid_match2_input'
|
|
74
76
|
require 'trinsic_api/models/kenya_nid_match2_input_sex'
|
|
75
77
|
require 'trinsic_api/models/la_wallet_provider_output'
|
|
@@ -0,0 +1,60 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for TrinsicApi::KenyaNidLookup2Address
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe TrinsicApi::KenyaNidLookup2Address do
|
|
21
|
+
let(:instance) { TrinsicApi::KenyaNidLookup2Address.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of KenyaNidLookup2Address' do
|
|
24
|
+
it 'should create an instance of KenyaNidLookup2Address' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::KenyaNidLookup2Address)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "district"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "division"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "location"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "additional_lines"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "raw"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for TrinsicApi::KenyaNidLookup2ProviderOutput
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe TrinsicApi::KenyaNidLookup2ProviderOutput do
|
|
21
|
+
let(:instance) { TrinsicApi::KenyaNidLookup2ProviderOutput.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of KenyaNidLookup2ProviderOutput' do
|
|
24
|
+
it 'should create an instance of KenyaNidLookup2ProviderOutput' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::KenyaNidLookup2ProviderOutput)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "first_name"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "surname"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "other_name"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "sex"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "date_of_birth"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "citizenship"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "id_number"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'test attribute "serial_number"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
describe 'test attribute "date_of_issue"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe 'test attribute "place_of_birth"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
describe 'test attribute "place_of_residence"' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
end
|
|
@@ -147,6 +147,12 @@ describe TrinsicApi::ProviderOutput do
|
|
|
147
147
|
end
|
|
148
148
|
end
|
|
149
149
|
|
|
150
|
+
describe 'test attribute "kenya_nid_lookup_2"' do
|
|
151
|
+
it 'should work' do
|
|
152
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
150
156
|
describe 'test attribute "lloyds_smart_id"' do
|
|
151
157
|
it 'should work' do
|
|
152
158
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trinsic_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trinsic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-02-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -113,7 +113,9 @@ files:
|
|
|
113
113
|
- docs/ItsmeProviderOutput.md
|
|
114
114
|
- docs/KenyaNidBiometric2Input.md
|
|
115
115
|
- docs/KenyaNidInput.md
|
|
116
|
+
- docs/KenyaNidLookup2Address.md
|
|
116
117
|
- docs/KenyaNidLookup2Input.md
|
|
118
|
+
- docs/KenyaNidLookup2ProviderOutput.md
|
|
117
119
|
- docs/KenyaNidMatch2Input.md
|
|
118
120
|
- docs/KenyaNidMatch2InputSex.md
|
|
119
121
|
- docs/LaWalletProviderOutput.md
|
|
@@ -265,7 +267,9 @@ files:
|
|
|
265
267
|
- lib/trinsic_api/models/itsme_provider_output.rb
|
|
266
268
|
- lib/trinsic_api/models/kenya_nid_biometric2_input.rb
|
|
267
269
|
- lib/trinsic_api/models/kenya_nid_input.rb
|
|
270
|
+
- lib/trinsic_api/models/kenya_nid_lookup2_address.rb
|
|
268
271
|
- lib/trinsic_api/models/kenya_nid_lookup2_input.rb
|
|
272
|
+
- lib/trinsic_api/models/kenya_nid_lookup2_provider_output.rb
|
|
269
273
|
- lib/trinsic_api/models/kenya_nid_match2_input.rb
|
|
270
274
|
- lib/trinsic_api/models/kenya_nid_match2_input_sex.rb
|
|
271
275
|
- lib/trinsic_api/models/la_wallet_provider_output.rb
|
|
@@ -409,7 +413,9 @@ files:
|
|
|
409
413
|
- spec/models/itsme_provider_output_spec.rb
|
|
410
414
|
- spec/models/kenya_nid_biometric2_input_spec.rb
|
|
411
415
|
- spec/models/kenya_nid_input_spec.rb
|
|
416
|
+
- spec/models/kenya_nid_lookup2_address_spec.rb
|
|
412
417
|
- spec/models/kenya_nid_lookup2_input_spec.rb
|
|
418
|
+
- spec/models/kenya_nid_lookup2_provider_output_spec.rb
|
|
413
419
|
- spec/models/kenya_nid_match2_input_sex_spec.rb
|
|
414
420
|
- spec/models/kenya_nid_match2_input_spec.rb
|
|
415
421
|
- spec/models/la_wallet_provider_output_spec.rb
|
|
@@ -617,7 +623,9 @@ test_files:
|
|
|
617
623
|
- spec/models/yoti_document_details_spec.rb
|
|
618
624
|
- spec/models/south_africa_nid_biometric2_input_spec.rb
|
|
619
625
|
- spec/models/add_redirect_uri_request_spec.rb
|
|
626
|
+
- spec/models/kenya_nid_lookup2_address_spec.rb
|
|
620
627
|
- spec/models/submit_native_challenge_response_response_spec.rb
|
|
628
|
+
- spec/models/kenya_nid_lookup2_provider_output_spec.rb
|
|
621
629
|
- spec/models/fayda_provider_output_spec.rb
|
|
622
630
|
- spec/models/document_type_spec.rb
|
|
623
631
|
- spec/models/finland_id_card_provider_output_spec.rb
|