trinsic_api 3.3.0.pre.alpha3 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/AadhaarDocumentOutput.md +28 -0
- data/docs/BrazilCnhProviderOutput.md +4 -0
- data/docs/BrazilCpfProviderOutput.md +0 -2
- data/docs/ChinaResidentIdMatchOutput.md +7 -1
- data/docs/CoteDIvoireNidLookup2ProviderOutput.md +4 -0
- data/docs/CzechBankIdProviderOutput.md +2 -2
- data/docs/CzechMojeIdProviderOutput.md +2 -0
- data/docs/DigidentityAddressOutput.md +22 -0
- data/docs/DigidentityProviderOutput.md +40 -0
- data/docs/DigilockerAadhaarProviderOutput.md +5 -1
- data/docs/ElSalvadorDuiProviderOutput.md +2 -2
- data/docs/FinnishTrustNetworkAddressOutput.md +3 -1
- data/docs/FinnishTrustNetworkProviderOutput.md +1 -1
- data/docs/{SignzyIndiaAadhaarFetchProviderOutput.md → IndiaDigilockerAadhaarFetchProviderOutput.md} +6 -2
- data/docs/IndonesiaDukcapilMatchProviderOutput.md +6 -0
- data/docs/ItsmeProviderOutput.md +2 -0
- data/docs/KenyaNidLookup2ProviderOutput.md +4 -0
- data/docs/KoreaTelcoMatchProviderOutput.md +6 -0
- data/docs/NigeriaNinLookup2ProviderOutput.md +4 -0
- data/docs/PhilippinesPhysicalNidProviderOutput.md +5 -1
- data/docs/PolandMobywatelMatchProviderOutput.md +4 -0
- data/docs/Provider.md +6 -2
- data/docs/ProviderInput.md +0 -12
- data/docs/ProviderOutput.md +9 -29
- data/docs/RecommendProviderInformation.md +6 -2
- data/docs/SouthAfricaNidLookup2ProviderOutput.md +2 -0
- data/docs/SubProviderMetadata.md +6 -4
- data/docs/SubmitNativeChallengeResponseRequest.md +1 -1
- data/docs/ZimbabweNidLookup2ProviderOutput.md +2 -0
- data/lib/trinsic_api/api_client.rb +2 -1
- data/lib/trinsic_api/api_model_base.rb +2 -0
- data/lib/trinsic_api/models/{belgium_id_card_provider_output.rb → aadhaar_document_output.rb} +52 -30
- data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +23 -1
- data/lib/trinsic_api/models/brazil_cpf_provider_output.rb +1 -12
- data/lib/trinsic_api/models/china_resident_id_match_output.rb +38 -5
- data/lib/trinsic_api/models/cote_d_ivoire_nid_lookup2_provider_output.rb +23 -1
- data/lib/trinsic_api/models/czech_bank_id_provider_output.rb +2 -2
- data/lib/trinsic_api/models/czech_moje_id_provider_output.rb +12 -1
- data/lib/trinsic_api/models/{nigeria_nin_match2_sex_field.rb → digidentity_address_output.rb} +31 -20
- data/lib/trinsic_api/models/{nigeria_nin_match2_input.rb → digidentity_provider_output.rb} +101 -67
- data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +27 -5
- data/lib/trinsic_api/models/el_salvador_dui_provider_output.rb +2 -2
- data/lib/trinsic_api/models/finnish_trust_network_address_output.rb +16 -5
- data/lib/trinsic_api/models/{signzy_india_aadhaar_fetch_provider_output.rb → india_digilocker_aadhaar_fetch_provider_output.rb} +26 -4
- data/lib/trinsic_api/models/indonesia_dukcapil_match_provider_output.rb +34 -1
- data/lib/trinsic_api/models/itsme_provider_output.rb +12 -1
- data/lib/trinsic_api/models/kenya_nid_lookup2_provider_output.rb +23 -1
- data/lib/trinsic_api/models/korea_telco_match_provider_output.rb +34 -1
- data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +23 -1
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +27 -5
- data/lib/trinsic_api/models/poland_mobywatel_match_provider_output.rb +23 -1
- data/lib/trinsic_api/models/provider.rb +71 -17
- data/lib/trinsic_api/models/provider_input.rb +1 -67
- data/lib/trinsic_api/models/provider_output.rb +46 -156
- data/lib/trinsic_api/models/recommend_provider_information.rb +71 -17
- data/lib/trinsic_api/models/south_africa_nid_lookup2_provider_output.rb +12 -1
- data/lib/trinsic_api/models/sub_provider_metadata.rb +68 -25
- data/lib/trinsic_api/models/submit_native_challenge_response_request.rb +1 -1
- data/lib/trinsic_api/models/zimbabwe_nid_lookup2_provider_output.rb +12 -1
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +4 -37
- data/spec/models/{kenya_nid_input_spec.rb → aadhaar_document_output_spec.rb} +12 -12
- data/spec/models/brazil_cnh_provider_output_spec.rb +12 -0
- data/spec/models/brazil_cpf_provider_output_spec.rb +0 -6
- data/spec/models/china_resident_id_match_output_spec.rb +18 -0
- data/spec/models/cote_d_ivoire_nid_lookup2_provider_output_spec.rb +12 -0
- data/spec/models/czech_moje_id_provider_output_spec.rb +6 -0
- data/spec/models/{latvia_eparaksts_provider_output_spec.rb → digidentity_address_output_spec.rb} +9 -9
- data/spec/models/{yoti_deeplink_provider_output_spec.rb → digidentity_provider_output_spec.rb} +18 -18
- data/spec/models/digilocker_aadhaar_provider_output_spec.rb +12 -0
- data/spec/models/finnish_trust_network_address_output_spec.rb +6 -0
- data/spec/models/{signzy_india_aadhaar_fetch_provider_output_spec.rb → india_digilocker_aadhaar_fetch_provider_output_spec.rb} +18 -6
- data/spec/models/indonesia_dukcapil_match_provider_output_spec.rb +18 -0
- data/spec/models/itsme_provider_output_spec.rb +6 -0
- data/spec/models/kenya_nid_lookup2_provider_output_spec.rb +12 -0
- data/spec/models/korea_telco_match_provider_output_spec.rb +18 -0
- data/spec/models/nigeria_nin_lookup2_provider_output_spec.rb +12 -0
- data/spec/models/philippines_physical_nid_provider_output_spec.rb +12 -0
- data/spec/models/poland_mobywatel_match_provider_output_spec.rb +12 -0
- data/spec/models/provider_input_spec.rb +0 -36
- data/spec/models/provider_output_spec.rb +21 -81
- data/spec/models/provider_spec.rb +13 -1
- data/spec/models/recommend_provider_information_spec.rb +13 -1
- data/spec/models/south_africa_nid_lookup2_provider_output_spec.rb +6 -0
- data/spec/models/sub_provider_metadata_spec.rb +8 -2
- data/spec/models/zimbabwe_nid_lookup2_provider_output_spec.rb +6 -0
- metadata +293 -425
- data/docs/BelgiumIdCardProviderOutput.md +0 -24
- data/docs/CzechiaMojeIdProviderOutput.md +0 -24
- data/docs/EstoniaIdCardProviderOutput.md +0 -24
- data/docs/FinlandIdCardProviderOutput.md +0 -24
- data/docs/FrejaIndirectProviderOutput.md +0 -24
- data/docs/KenyaNidInput.md +0 -28
- data/docs/KenyaNidMatch2DateOfBirthField.md +0 -20
- data/docs/KenyaNidMatch2FullNameField.md +0 -20
- data/docs/KenyaNidMatch2Input.md +0 -28
- data/docs/KenyaNidMatch2InputSex.md +0 -15
- data/docs/KenyaNidMatch2NationalIdNumberField.md +0 -20
- data/docs/KenyaNidMatch2ProviderOutput.md +0 -24
- data/docs/KenyaNidMatch2SexField.md +0 -20
- data/docs/LatviaEparakstsProviderOutput.md +0 -22
- data/docs/LithuaniaIdCardProviderOutput.md +0 -24
- data/docs/LloydsSmartIdProviderOutput.md +0 -40
- data/docs/NigeriaNinInput.md +0 -30
- data/docs/NigeriaNinMatch2DateOfBirthField.md +0 -20
- data/docs/NigeriaNinMatch2FullNameField.md +0 -20
- data/docs/NigeriaNinMatch2Input.md +0 -30
- data/docs/NigeriaNinMatch2InputSex.md +0 -15
- data/docs/NigeriaNinMatch2NationalIdNumberField.md +0 -20
- data/docs/NigeriaNinMatch2PhoneNumberField.md +0 -20
- data/docs/NigeriaNinMatch2ProviderOutput.md +0 -26
- data/docs/NigeriaNinMatch2SexField.md +0 -20
- data/docs/PortugalIdCardProviderOutput.md +0 -24
- data/docs/SerbiaIdCardProviderOutput.md +0 -24
- data/docs/SouthAfricaNidInput.md +0 -24
- data/docs/SouthAfricaNidMatch2DateOfBirthField.md +0 -20
- data/docs/SouthAfricaNidMatch2FullNameField.md +0 -20
- data/docs/SouthAfricaNidMatch2Input.md +0 -28
- data/docs/SouthAfricaNidMatch2InputSex.md +0 -15
- data/docs/SouthAfricaNidMatch2NationalIdNumberField.md +0 -20
- data/docs/SouthAfricaNidMatch2ProviderOutput.md +0 -26
- data/docs/SouthAfricaNidMatch2SexField.md +0 -20
- data/docs/YotiDeeplinkProviderOutput.md +0 -40
- data/lib/trinsic_api/models/czechia_moje_id_provider_output.rb +0 -196
- data/lib/trinsic_api/models/estonia_id_card_provider_output.rb +0 -196
- data/lib/trinsic_api/models/finland_id_card_provider_output.rb +0 -196
- data/lib/trinsic_api/models/freja_indirect_provider_output.rb +0 -196
- data/lib/trinsic_api/models/kenya_nid_input.rb +0 -353
- data/lib/trinsic_api/models/kenya_nid_match2_date_of_birth_field.rb +0 -173
- data/lib/trinsic_api/models/kenya_nid_match2_full_name_field.rb +0 -173
- data/lib/trinsic_api/models/kenya_nid_match2_input.rb +0 -239
- data/lib/trinsic_api/models/kenya_nid_match2_input_sex.rb +0 -41
- data/lib/trinsic_api/models/kenya_nid_match2_national_id_number_field.rb +0 -173
- data/lib/trinsic_api/models/kenya_nid_match2_provider_output.rb +0 -196
- data/lib/trinsic_api/models/kenya_nid_match2_sex_field.rb +0 -173
- data/lib/trinsic_api/models/latvia_eparaksts_provider_output.rb +0 -185
- data/lib/trinsic_api/models/lithuania_id_card_provider_output.rb +0 -196
- data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +0 -284
- data/lib/trinsic_api/models/nigeria_nin_input.rb +0 -339
- data/lib/trinsic_api/models/nigeria_nin_match2_date_of_birth_field.rb +0 -173
- data/lib/trinsic_api/models/nigeria_nin_match2_full_name_field.rb +0 -173
- data/lib/trinsic_api/models/nigeria_nin_match2_input_sex.rb +0 -41
- data/lib/trinsic_api/models/nigeria_nin_match2_national_id_number_field.rb +0 -173
- data/lib/trinsic_api/models/nigeria_nin_match2_phone_number_field.rb +0 -173
- data/lib/trinsic_api/models/nigeria_nin_match2_provider_output.rb +0 -207
- data/lib/trinsic_api/models/portugal_id_card_provider_output.rb +0 -196
- data/lib/trinsic_api/models/serbia_id_card_provider_output.rb +0 -196
- data/lib/trinsic_api/models/south_africa_nid_input.rb +0 -306
- data/lib/trinsic_api/models/south_africa_nid_match2_date_of_birth_field.rb +0 -173
- data/lib/trinsic_api/models/south_africa_nid_match2_full_name_field.rb +0 -173
- data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +0 -239
- data/lib/trinsic_api/models/south_africa_nid_match2_input_sex.rb +0 -41
- data/lib/trinsic_api/models/south_africa_nid_match2_national_id_number_field.rb +0 -173
- data/lib/trinsic_api/models/south_africa_nid_match2_provider_output.rb +0 -207
- data/lib/trinsic_api/models/south_africa_nid_match2_sex_field.rb +0 -173
- data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +0 -284
- data/spec/models/belgium_id_card_provider_output_spec.rb +0 -54
- data/spec/models/czechia_moje_id_provider_output_spec.rb +0 -54
- data/spec/models/estonia_id_card_provider_output_spec.rb +0 -54
- data/spec/models/finland_id_card_provider_output_spec.rb +0 -54
- data/spec/models/freja_indirect_provider_output_spec.rb +0 -54
- data/spec/models/kenya_nid_match2_date_of_birth_field_spec.rb +0 -42
- data/spec/models/kenya_nid_match2_full_name_field_spec.rb +0 -42
- data/spec/models/kenya_nid_match2_input_sex_spec.rb +0 -30
- data/spec/models/kenya_nid_match2_input_spec.rb +0 -66
- data/spec/models/kenya_nid_match2_national_id_number_field_spec.rb +0 -42
- data/spec/models/kenya_nid_match2_provider_output_spec.rb +0 -54
- data/spec/models/kenya_nid_match2_sex_field_spec.rb +0 -42
- data/spec/models/lithuania_id_card_provider_output_spec.rb +0 -54
- data/spec/models/lloyds_smart_id_provider_output_spec.rb +0 -102
- data/spec/models/nigeria_nin_input_spec.rb +0 -72
- data/spec/models/nigeria_nin_match2_date_of_birth_field_spec.rb +0 -42
- data/spec/models/nigeria_nin_match2_full_name_field_spec.rb +0 -42
- data/spec/models/nigeria_nin_match2_input_sex_spec.rb +0 -30
- data/spec/models/nigeria_nin_match2_input_spec.rb +0 -72
- data/spec/models/nigeria_nin_match2_national_id_number_field_spec.rb +0 -42
- data/spec/models/nigeria_nin_match2_phone_number_field_spec.rb +0 -42
- data/spec/models/nigeria_nin_match2_provider_output_spec.rb +0 -60
- data/spec/models/nigeria_nin_match2_sex_field_spec.rb +0 -42
- data/spec/models/portugal_id_card_provider_output_spec.rb +0 -54
- data/spec/models/serbia_id_card_provider_output_spec.rb +0 -54
- data/spec/models/south_africa_nid_input_spec.rb +0 -54
- data/spec/models/south_africa_nid_match2_date_of_birth_field_spec.rb +0 -42
- data/spec/models/south_africa_nid_match2_full_name_field_spec.rb +0 -42
- data/spec/models/south_africa_nid_match2_input_sex_spec.rb +0 -30
- data/spec/models/south_africa_nid_match2_input_spec.rb +0 -66
- data/spec/models/south_africa_nid_match2_national_id_number_field_spec.rb +0 -42
- data/spec/models/south_africa_nid_match2_provider_output_spec.rb +0 -60
- data/spec/models/south_africa_nid_match2_sex_field_spec.rb +0 -42
|
@@ -19,18 +19,30 @@ module TrinsicApi
|
|
|
19
19
|
# The fullname of the individual in Chinese.
|
|
20
20
|
attr_accessor :full_name
|
|
21
21
|
|
|
22
|
+
# Whether the submitted full name matched the authoritative record.
|
|
23
|
+
attr_accessor :full_name_match
|
|
24
|
+
|
|
22
25
|
# The birthdate of the individual.
|
|
23
26
|
attr_accessor :date_of_birth
|
|
24
27
|
|
|
28
|
+
# Whether the submitted date of birth matched the authoritative record.
|
|
29
|
+
attr_accessor :date_of_birth_match
|
|
30
|
+
|
|
25
31
|
# The Resident ID number from the People's Republic of China (PRC) ID card. The Resident ID number is an 18-digit number follows the format (AAAAAAYYYYMMDDXXX@): - Six digits (AAAAAA) are the area code of where the person was born or the area of first issuance for those who were born before the resident system was created. - Eight digits are the birthdate of the individual in YYYYMMDD format - Three digits are the order code assigned to individual. Males are assigned odd numbers and females even numbers. - Final digit is the checksum confirming the validity of the ID number's first 17 digits using ISO 7064:1983, MOD 11-2.
|
|
26
32
|
attr_accessor :resident_id_number
|
|
27
33
|
|
|
34
|
+
# Whether the submitted resident ID number matched the authoritative record.
|
|
35
|
+
attr_accessor :resident_id_number_match
|
|
36
|
+
|
|
28
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
38
|
def self.attribute_map
|
|
30
39
|
{
|
|
31
40
|
:'full_name' => :'fullName',
|
|
41
|
+
:'full_name_match' => :'fullNameMatch',
|
|
32
42
|
:'date_of_birth' => :'dateOfBirth',
|
|
33
|
-
:'
|
|
43
|
+
:'date_of_birth_match' => :'dateOfBirthMatch',
|
|
44
|
+
:'resident_id_number' => :'residentIdNumber',
|
|
45
|
+
:'resident_id_number_match' => :'residentIdNumberMatch'
|
|
34
46
|
}
|
|
35
47
|
end
|
|
36
48
|
|
|
@@ -48,8 +60,11 @@ module TrinsicApi
|
|
|
48
60
|
def self.openapi_types
|
|
49
61
|
{
|
|
50
62
|
:'full_name' => :'String',
|
|
63
|
+
:'full_name_match' => :'Boolean',
|
|
51
64
|
:'date_of_birth' => :'Date',
|
|
52
|
-
:'
|
|
65
|
+
:'date_of_birth_match' => :'Boolean',
|
|
66
|
+
:'resident_id_number' => :'String',
|
|
67
|
+
:'resident_id_number_match' => :'Boolean'
|
|
53
68
|
}
|
|
54
69
|
end
|
|
55
70
|
|
|
@@ -57,8 +72,11 @@ module TrinsicApi
|
|
|
57
72
|
def self.openapi_nullable
|
|
58
73
|
Set.new([
|
|
59
74
|
:'full_name',
|
|
75
|
+
:'full_name_match',
|
|
60
76
|
:'date_of_birth',
|
|
61
|
-
:'
|
|
77
|
+
:'date_of_birth_match',
|
|
78
|
+
:'resident_id_number',
|
|
79
|
+
:'resident_id_number_match'
|
|
62
80
|
])
|
|
63
81
|
end
|
|
64
82
|
|
|
@@ -92,13 +110,25 @@ module TrinsicApi
|
|
|
92
110
|
self.full_name = attributes[:'full_name']
|
|
93
111
|
end
|
|
94
112
|
|
|
113
|
+
if attributes.key?(:'full_name_match')
|
|
114
|
+
self.full_name_match = attributes[:'full_name_match']
|
|
115
|
+
end
|
|
116
|
+
|
|
95
117
|
if attributes.key?(:'date_of_birth')
|
|
96
118
|
self.date_of_birth = attributes[:'date_of_birth']
|
|
97
119
|
end
|
|
98
120
|
|
|
121
|
+
if attributes.key?(:'date_of_birth_match')
|
|
122
|
+
self.date_of_birth_match = attributes[:'date_of_birth_match']
|
|
123
|
+
end
|
|
124
|
+
|
|
99
125
|
if attributes.key?(:'resident_id_number')
|
|
100
126
|
self.resident_id_number = attributes[:'resident_id_number']
|
|
101
127
|
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'resident_id_number_match')
|
|
130
|
+
self.resident_id_number_match = attributes[:'resident_id_number_match']
|
|
131
|
+
end
|
|
102
132
|
end
|
|
103
133
|
|
|
104
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -122,8 +152,11 @@ module TrinsicApi
|
|
|
122
152
|
return true if self.equal?(o)
|
|
123
153
|
self.class == o.class &&
|
|
124
154
|
full_name == o.full_name &&
|
|
155
|
+
full_name_match == o.full_name_match &&
|
|
125
156
|
date_of_birth == o.date_of_birth &&
|
|
126
|
-
|
|
157
|
+
date_of_birth_match == o.date_of_birth_match &&
|
|
158
|
+
resident_id_number == o.resident_id_number &&
|
|
159
|
+
resident_id_number_match == o.resident_id_number_match
|
|
127
160
|
end
|
|
128
161
|
|
|
129
162
|
# @see the `==` method
|
|
@@ -135,7 +168,7 @@ module TrinsicApi
|
|
|
135
168
|
# Calculates hash code according to all attributes.
|
|
136
169
|
# @return [Integer] Hash code
|
|
137
170
|
def hash
|
|
138
|
-
[full_name, date_of_birth, resident_id_number].hash
|
|
171
|
+
[full_name, full_name_match, date_of_birth, date_of_birth_match, resident_id_number, resident_id_number_match].hash
|
|
139
172
|
end
|
|
140
173
|
|
|
141
174
|
# Builds the object from hash
|
|
@@ -16,6 +16,12 @@ require 'time'
|
|
|
16
16
|
module TrinsicApi
|
|
17
17
|
# Exposed properties for the `cote-divoire-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
18
18
|
class CoteDIvoireNidLookup2ProviderOutput < ApiModelBase
|
|
19
|
+
# Country of the identity registry, as an ISO 3166-1 alpha-2 code.
|
|
20
|
+
attr_accessor :issuing_country
|
|
21
|
+
|
|
22
|
+
# Primary identifier returned for the lookup; may identify the person or the document.
|
|
23
|
+
attr_accessor :lookup_id_number
|
|
24
|
+
|
|
19
25
|
# Full name as returned by ONECI (National Civil Registry and Identification Office).
|
|
20
26
|
attr_accessor :full_name
|
|
21
27
|
|
|
@@ -46,6 +52,8 @@ module TrinsicApi
|
|
|
46
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
53
|
def self.attribute_map
|
|
48
54
|
{
|
|
55
|
+
:'issuing_country' => :'issuingCountry',
|
|
56
|
+
:'lookup_id_number' => :'lookupIdNumber',
|
|
49
57
|
:'full_name' => :'fullName',
|
|
50
58
|
:'given_name' => :'givenName',
|
|
51
59
|
:'family_name' => :'familyName',
|
|
@@ -71,6 +79,8 @@ module TrinsicApi
|
|
|
71
79
|
# Attribute type mapping.
|
|
72
80
|
def self.openapi_types
|
|
73
81
|
{
|
|
82
|
+
:'issuing_country' => :'String',
|
|
83
|
+
:'lookup_id_number' => :'String',
|
|
74
84
|
:'full_name' => :'String',
|
|
75
85
|
:'given_name' => :'String',
|
|
76
86
|
:'family_name' => :'String',
|
|
@@ -86,6 +96,8 @@ module TrinsicApi
|
|
|
86
96
|
# List of attributes with nullable: true
|
|
87
97
|
def self.openapi_nullable
|
|
88
98
|
Set.new([
|
|
99
|
+
:'issuing_country',
|
|
100
|
+
:'lookup_id_number',
|
|
89
101
|
:'full_name',
|
|
90
102
|
:'given_name',
|
|
91
103
|
:'family_name',
|
|
@@ -124,6 +136,14 @@ module TrinsicApi
|
|
|
124
136
|
h[k.to_sym] = v
|
|
125
137
|
}
|
|
126
138
|
|
|
139
|
+
if attributes.key?(:'issuing_country')
|
|
140
|
+
self.issuing_country = attributes[:'issuing_country']
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'lookup_id_number')
|
|
144
|
+
self.lookup_id_number = attributes[:'lookup_id_number']
|
|
145
|
+
end
|
|
146
|
+
|
|
127
147
|
if attributes.key?(:'full_name')
|
|
128
148
|
self.full_name = attributes[:'full_name']
|
|
129
149
|
end
|
|
@@ -181,6 +201,8 @@ module TrinsicApi
|
|
|
181
201
|
def ==(o)
|
|
182
202
|
return true if self.equal?(o)
|
|
183
203
|
self.class == o.class &&
|
|
204
|
+
issuing_country == o.issuing_country &&
|
|
205
|
+
lookup_id_number == o.lookup_id_number &&
|
|
184
206
|
full_name == o.full_name &&
|
|
185
207
|
given_name == o.given_name &&
|
|
186
208
|
family_name == o.family_name &&
|
|
@@ -201,7 +223,7 @@ module TrinsicApi
|
|
|
201
223
|
# Calculates hash code according to all attributes.
|
|
202
224
|
# @return [Integer] Hash code
|
|
203
225
|
def hash
|
|
204
|
-
[full_name, given_name, family_name, date_of_birth, sex, nationality, address, document_number, national_id_number].hash
|
|
226
|
+
[issuing_country, lookup_id_number, full_name, given_name, family_name, date_of_birth, sex, nationality, address, document_number, national_id_number].hash
|
|
205
227
|
end
|
|
206
228
|
|
|
207
229
|
# Builds the object from hash
|
|
@@ -40,7 +40,7 @@ module TrinsicApi
|
|
|
40
40
|
# The individual's gender. Possible values: - Male - Female - Other Only returned for Identify verifications.
|
|
41
41
|
attr_accessor :gender
|
|
42
42
|
|
|
43
|
-
# The individual's date of birth
|
|
43
|
+
# The individual's date of birth in YYYY-MM-DD format.
|
|
44
44
|
attr_accessor :date_of_birth
|
|
45
45
|
|
|
46
46
|
# The individual's Czech birth number. This value is written without the traditional forward slash. Czech birth numbers are Czech public-authority identifiers administered through the Ministry of Interior's birth-number register. The Ministry can assign one to Czech citizens and to foreign nationals with temporary or permanent residence in the Czech Republic. For foreign nationals, this is still a Czech birth number in the Czech format, not an identity number from another country. The common current format is YYXXDDSSSC: - YY: Two digit birth year - XX: Encoded birth month, see below for encoding logic - DD: Birth day - SSS: Sequence number - C: Modulo-11 checksum digit. Not present for people born before 1954. The encoded month is MM for men, MM + 50 for women, and can be MM + 20 for men or MM + 70 for women when additional number ranges are needed. Older numbers for people born before 1954 can use YYXXDDSSS and do not use the modulo-11 checksum. Only returned for Identify verifications.
|
|
@@ -167,7 +167,7 @@ module TrinsicApi
|
|
|
167
167
|
:'nickname' => :'String',
|
|
168
168
|
:'preferred_username' => :'String',
|
|
169
169
|
:'gender' => :'String',
|
|
170
|
-
:'date_of_birth' => :'
|
|
170
|
+
:'date_of_birth' => :'Date',
|
|
171
171
|
:'birth_number' => :'String',
|
|
172
172
|
:'age' => :'Integer',
|
|
173
173
|
:'is_adult' => :'Boolean',
|
|
@@ -16,6 +16,9 @@ require 'time'
|
|
|
16
16
|
module TrinsicApi
|
|
17
17
|
# Exposed properties for the `czech-moje-id` Provider which do not directly map to the normalized IdentityData model.
|
|
18
18
|
class CzechMojeIdProviderOutput < ApiModelBase
|
|
19
|
+
# The mailing address returned in the address claim.
|
|
20
|
+
attr_accessor :mailing_address
|
|
21
|
+
|
|
19
22
|
# The subject identifier (sub) of the verified individual's MojeID account. This is a unique identifier that represents the individual within the MojeID system.
|
|
20
23
|
attr_accessor :subject_identifier
|
|
21
24
|
|
|
@@ -94,6 +97,7 @@ module TrinsicApi
|
|
|
94
97
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
95
98
|
def self.attribute_map
|
|
96
99
|
{
|
|
100
|
+
:'mailing_address' => :'mailingAddress',
|
|
97
101
|
:'subject_identifier' => :'subjectIdentifier',
|
|
98
102
|
:'name' => :'name',
|
|
99
103
|
:'given_name' => :'givenName',
|
|
@@ -135,6 +139,7 @@ module TrinsicApi
|
|
|
135
139
|
# Attribute type mapping.
|
|
136
140
|
def self.openapi_types
|
|
137
141
|
{
|
|
142
|
+
:'mailing_address' => :'CzechMojeIdAddressOutput',
|
|
138
143
|
:'subject_identifier' => :'String',
|
|
139
144
|
:'name' => :'String',
|
|
140
145
|
:'given_name' => :'String',
|
|
@@ -166,6 +171,7 @@ module TrinsicApi
|
|
|
166
171
|
# List of attributes with nullable: true
|
|
167
172
|
def self.openapi_nullable
|
|
168
173
|
Set.new([
|
|
174
|
+
:'mailing_address',
|
|
169
175
|
:'subject_identifier',
|
|
170
176
|
:'name',
|
|
171
177
|
:'given_name',
|
|
@@ -220,6 +226,10 @@ module TrinsicApi
|
|
|
220
226
|
h[k.to_sym] = v
|
|
221
227
|
}
|
|
222
228
|
|
|
229
|
+
if attributes.key?(:'mailing_address')
|
|
230
|
+
self.mailing_address = attributes[:'mailing_address']
|
|
231
|
+
end
|
|
232
|
+
|
|
223
233
|
if attributes.key?(:'subject_identifier')
|
|
224
234
|
self.subject_identifier = attributes[:'subject_identifier']
|
|
225
235
|
end
|
|
@@ -341,6 +351,7 @@ module TrinsicApi
|
|
|
341
351
|
def ==(o)
|
|
342
352
|
return true if self.equal?(o)
|
|
343
353
|
self.class == o.class &&
|
|
354
|
+
mailing_address == o.mailing_address &&
|
|
344
355
|
subject_identifier == o.subject_identifier &&
|
|
345
356
|
name == o.name &&
|
|
346
357
|
given_name == o.given_name &&
|
|
@@ -377,7 +388,7 @@ module TrinsicApi
|
|
|
377
388
|
# Calculates hash code according to all attributes.
|
|
378
389
|
# @return [Integer] Hash code
|
|
379
390
|
def hash
|
|
380
|
-
[subject_identifier, name, given_name, family_name, nickname, email, email_verified, phone_number, phone_number_verified, date_of_birth, gender, id_card_number, passport_number, social_security_number, is_adult, account_validated, isds_id, is_student, company_registration_number, tax_identification_number, nia_verified, transaction_id, home_address, billing_address, shipping_address].hash
|
|
391
|
+
[mailing_address, subject_identifier, name, given_name, family_name, nickname, email, email_verified, phone_number, phone_number_verified, date_of_birth, gender, id_card_number, passport_number, social_security_number, is_adult, account_validated, isds_id, is_student, company_registration_number, tax_identification_number, nia_verified, transaction_id, home_address, billing_address, shipping_address].hash
|
|
381
392
|
end
|
|
382
393
|
|
|
383
394
|
# Builds the object from hash
|
data/lib/trinsic_api/models/{nigeria_nin_match2_sex_field.rb → digidentity_address_output.rb}
RENAMED
|
@@ -14,18 +14,22 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
17
|
+
class DigidentityAddressOutput < ApiModelBase
|
|
18
|
+
# Street address.
|
|
19
|
+
attr_accessor :street_address
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# Postal code.
|
|
22
|
+
attr_accessor :postal_code
|
|
23
|
+
|
|
24
|
+
# Country code returned by Digidentity.
|
|
25
|
+
attr_accessor :country
|
|
23
26
|
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
28
|
def self.attribute_map
|
|
26
29
|
{
|
|
27
|
-
:'
|
|
28
|
-
:'
|
|
30
|
+
:'street_address' => :'streetAddress',
|
|
31
|
+
:'postal_code' => :'postalCode',
|
|
32
|
+
:'country' => :'country'
|
|
29
33
|
}
|
|
30
34
|
end
|
|
31
35
|
|
|
@@ -42,16 +46,18 @@ module TrinsicApi
|
|
|
42
46
|
# Attribute type mapping.
|
|
43
47
|
def self.openapi_types
|
|
44
48
|
{
|
|
45
|
-
:'
|
|
46
|
-
:'
|
|
49
|
+
:'street_address' => :'String',
|
|
50
|
+
:'postal_code' => :'String',
|
|
51
|
+
:'country' => :'String'
|
|
47
52
|
}
|
|
48
53
|
end
|
|
49
54
|
|
|
50
55
|
# List of attributes with nullable: true
|
|
51
56
|
def self.openapi_nullable
|
|
52
57
|
Set.new([
|
|
53
|
-
:'
|
|
54
|
-
:'
|
|
58
|
+
:'street_address',
|
|
59
|
+
:'postal_code',
|
|
60
|
+
:'country'
|
|
55
61
|
])
|
|
56
62
|
end
|
|
57
63
|
|
|
@@ -69,24 +75,28 @@ module TrinsicApi
|
|
|
69
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
70
76
|
def initialize(attributes = {})
|
|
71
77
|
if (!attributes.is_a?(Hash))
|
|
72
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::DigidentityAddressOutput` initialize method"
|
|
73
79
|
end
|
|
74
80
|
|
|
75
81
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
76
82
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
77
83
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
78
84
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::DigidentityAddressOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
80
86
|
end
|
|
81
87
|
h[k.to_sym] = v
|
|
82
88
|
}
|
|
83
89
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
90
|
+
if attributes.key?(:'street_address')
|
|
91
|
+
self.street_address = attributes[:'street_address']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'postal_code')
|
|
95
|
+
self.postal_code = attributes[:'postal_code']
|
|
86
96
|
end
|
|
87
97
|
|
|
88
|
-
if attributes.key?(:'
|
|
89
|
-
self.
|
|
98
|
+
if attributes.key?(:'country')
|
|
99
|
+
self.country = attributes[:'country']
|
|
90
100
|
end
|
|
91
101
|
end
|
|
92
102
|
|
|
@@ -110,8 +120,9 @@ module TrinsicApi
|
|
|
110
120
|
def ==(o)
|
|
111
121
|
return true if self.equal?(o)
|
|
112
122
|
self.class == o.class &&
|
|
113
|
-
|
|
114
|
-
|
|
123
|
+
street_address == o.street_address &&
|
|
124
|
+
postal_code == o.postal_code &&
|
|
125
|
+
country == o.country
|
|
115
126
|
end
|
|
116
127
|
|
|
117
128
|
# @see the `==` method
|
|
@@ -123,7 +134,7 @@ module TrinsicApi
|
|
|
123
134
|
# Calculates hash code according to all attributes.
|
|
124
135
|
# @return [Integer] Hash code
|
|
125
136
|
def hash
|
|
126
|
-
[
|
|
137
|
+
[street_address, postal_code, country].hash
|
|
127
138
|
end
|
|
128
139
|
|
|
129
140
|
# Builds the object from hash
|
|
@@ -14,60 +14,59 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
# Identity output for the digidentity provider.
|
|
18
|
+
class DigidentityProviderOutput < ApiModelBase
|
|
19
|
+
# Subject identifier returned by Digidentity.
|
|
20
|
+
attr_accessor :sub
|
|
20
21
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
22
|
+
# Preferred username returned by Digidentity.
|
|
23
|
+
attr_accessor :preferred_username
|
|
23
24
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
25
|
+
# Email address returned by Digidentity.
|
|
26
|
+
attr_accessor :email
|
|
27
|
+
|
|
28
|
+
# Whether Digidentity verified the email address, when reported.
|
|
29
|
+
attr_accessor :email_verified
|
|
30
|
+
|
|
31
|
+
# Whether Digidentity verified the phone number, when reported.
|
|
32
|
+
attr_accessor :phone_number_verified
|
|
33
|
+
|
|
34
|
+
# Given name returned by Digidentity.
|
|
35
|
+
attr_accessor :given_name
|
|
26
36
|
|
|
27
|
-
#
|
|
37
|
+
# Middle name returned by Digidentity.
|
|
28
38
|
attr_accessor :middle_name
|
|
29
39
|
|
|
30
|
-
#
|
|
31
|
-
attr_accessor :
|
|
40
|
+
# Family name returned by Digidentity.
|
|
41
|
+
attr_accessor :family_name
|
|
32
42
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
43
|
+
# Date of birth in YYYY-MM-DD format.
|
|
44
|
+
attr_accessor :birth_date
|
|
35
45
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
46
|
+
# Gender returned by Digidentity.
|
|
47
|
+
attr_accessor :gender
|
|
38
48
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
attr_reader :allowable_values
|
|
42
|
-
|
|
43
|
-
def initialize(datatype, allowable_values)
|
|
44
|
-
@allowable_values = allowable_values.map do |value|
|
|
45
|
-
case datatype.to_s
|
|
46
|
-
when /Integer/i
|
|
47
|
-
value.to_i
|
|
48
|
-
when /Float/i
|
|
49
|
-
value.to_f
|
|
50
|
-
else
|
|
51
|
-
value
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
49
|
+
# Phone number returned by Digidentity.
|
|
50
|
+
attr_accessor :phone_number
|
|
55
51
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
end
|
|
59
|
-
end
|
|
52
|
+
# Registered address returned by Digidentity.
|
|
53
|
+
attr_accessor :address
|
|
60
54
|
|
|
61
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
62
56
|
def self.attribute_map
|
|
63
57
|
{
|
|
64
|
-
:'
|
|
58
|
+
:'sub' => :'sub',
|
|
59
|
+
:'preferred_username' => :'preferredUsername',
|
|
60
|
+
:'email' => :'email',
|
|
61
|
+
:'email_verified' => :'emailVerified',
|
|
62
|
+
:'phone_number_verified' => :'phoneNumberVerified',
|
|
65
63
|
:'given_name' => :'givenName',
|
|
66
|
-
:'family_name' => :'familyName',
|
|
67
64
|
:'middle_name' => :'middleName',
|
|
68
|
-
:'
|
|
69
|
-
:'
|
|
70
|
-
:'
|
|
65
|
+
:'family_name' => :'familyName',
|
|
66
|
+
:'birth_date' => :'birthDate',
|
|
67
|
+
:'gender' => :'gender',
|
|
68
|
+
:'phone_number' => :'phoneNumber',
|
|
69
|
+
:'address' => :'address'
|
|
71
70
|
}
|
|
72
71
|
end
|
|
73
72
|
|
|
@@ -84,26 +83,36 @@ module TrinsicApi
|
|
|
84
83
|
# Attribute type mapping.
|
|
85
84
|
def self.openapi_types
|
|
86
85
|
{
|
|
87
|
-
:'
|
|
86
|
+
:'sub' => :'String',
|
|
87
|
+
:'preferred_username' => :'String',
|
|
88
|
+
:'email' => :'String',
|
|
89
|
+
:'email_verified' => :'Boolean',
|
|
90
|
+
:'phone_number_verified' => :'Boolean',
|
|
88
91
|
:'given_name' => :'String',
|
|
89
|
-
:'family_name' => :'String',
|
|
90
92
|
:'middle_name' => :'String',
|
|
91
|
-
:'
|
|
92
|
-
:'
|
|
93
|
-
:'
|
|
93
|
+
:'family_name' => :'String',
|
|
94
|
+
:'birth_date' => :'Date',
|
|
95
|
+
:'gender' => :'String',
|
|
96
|
+
:'phone_number' => :'String',
|
|
97
|
+
:'address' => :'DigidentityAddressOutput'
|
|
94
98
|
}
|
|
95
99
|
end
|
|
96
100
|
|
|
97
101
|
# List of attributes with nullable: true
|
|
98
102
|
def self.openapi_nullable
|
|
99
103
|
Set.new([
|
|
100
|
-
:'
|
|
104
|
+
:'sub',
|
|
105
|
+
:'preferred_username',
|
|
106
|
+
:'email',
|
|
107
|
+
:'email_verified',
|
|
108
|
+
:'phone_number_verified',
|
|
101
109
|
:'given_name',
|
|
102
|
-
:'family_name',
|
|
103
110
|
:'middle_name',
|
|
104
|
-
:'
|
|
105
|
-
:'
|
|
106
|
-
:'
|
|
111
|
+
:'family_name',
|
|
112
|
+
:'birth_date',
|
|
113
|
+
:'gender',
|
|
114
|
+
:'phone_number',
|
|
115
|
+
:'address'
|
|
107
116
|
])
|
|
108
117
|
end
|
|
109
118
|
|
|
@@ -121,45 +130,65 @@ module TrinsicApi
|
|
|
121
130
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
122
131
|
def initialize(attributes = {})
|
|
123
132
|
if (!attributes.is_a?(Hash))
|
|
124
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
133
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::DigidentityProviderOutput` initialize method"
|
|
125
134
|
end
|
|
126
135
|
|
|
127
136
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
128
137
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
129
138
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
130
139
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
131
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
140
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::DigidentityProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
132
141
|
end
|
|
133
142
|
h[k.to_sym] = v
|
|
134
143
|
}
|
|
135
144
|
|
|
136
|
-
if attributes.key?(:'
|
|
137
|
-
self.
|
|
145
|
+
if attributes.key?(:'sub')
|
|
146
|
+
self.sub = attributes[:'sub']
|
|
138
147
|
end
|
|
139
148
|
|
|
140
|
-
if attributes.key?(:'
|
|
141
|
-
self.
|
|
149
|
+
if attributes.key?(:'preferred_username')
|
|
150
|
+
self.preferred_username = attributes[:'preferred_username']
|
|
142
151
|
end
|
|
143
152
|
|
|
144
|
-
if attributes.key?(:'
|
|
145
|
-
self.
|
|
153
|
+
if attributes.key?(:'email')
|
|
154
|
+
self.email = attributes[:'email']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'email_verified')
|
|
158
|
+
self.email_verified = attributes[:'email_verified']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'phone_number_verified')
|
|
162
|
+
self.phone_number_verified = attributes[:'phone_number_verified']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'given_name')
|
|
166
|
+
self.given_name = attributes[:'given_name']
|
|
146
167
|
end
|
|
147
168
|
|
|
148
169
|
if attributes.key?(:'middle_name')
|
|
149
170
|
self.middle_name = attributes[:'middle_name']
|
|
150
171
|
end
|
|
151
172
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
173
|
+
if attributes.key?(:'family_name')
|
|
174
|
+
self.family_name = attributes[:'family_name']
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
if attributes.key?(:'birth_date')
|
|
178
|
+
self.birth_date = attributes[:'birth_date']
|
|
154
179
|
end
|
|
155
180
|
|
|
156
|
-
if attributes.key?(:'
|
|
157
|
-
self.
|
|
181
|
+
if attributes.key?(:'gender')
|
|
182
|
+
self.gender = attributes[:'gender']
|
|
158
183
|
end
|
|
159
184
|
|
|
160
185
|
if attributes.key?(:'phone_number')
|
|
161
186
|
self.phone_number = attributes[:'phone_number']
|
|
162
187
|
end
|
|
188
|
+
|
|
189
|
+
if attributes.key?(:'address')
|
|
190
|
+
self.address = attributes[:'address']
|
|
191
|
+
end
|
|
163
192
|
end
|
|
164
193
|
|
|
165
194
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -182,13 +211,18 @@ module TrinsicApi
|
|
|
182
211
|
def ==(o)
|
|
183
212
|
return true if self.equal?(o)
|
|
184
213
|
self.class == o.class &&
|
|
185
|
-
|
|
214
|
+
sub == o.sub &&
|
|
215
|
+
preferred_username == o.preferred_username &&
|
|
216
|
+
email == o.email &&
|
|
217
|
+
email_verified == o.email_verified &&
|
|
218
|
+
phone_number_verified == o.phone_number_verified &&
|
|
186
219
|
given_name == o.given_name &&
|
|
187
|
-
family_name == o.family_name &&
|
|
188
220
|
middle_name == o.middle_name &&
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
221
|
+
family_name == o.family_name &&
|
|
222
|
+
birth_date == o.birth_date &&
|
|
223
|
+
gender == o.gender &&
|
|
224
|
+
phone_number == o.phone_number &&
|
|
225
|
+
address == o.address
|
|
192
226
|
end
|
|
193
227
|
|
|
194
228
|
# @see the `==` method
|
|
@@ -200,7 +234,7 @@ module TrinsicApi
|
|
|
200
234
|
# Calculates hash code according to all attributes.
|
|
201
235
|
# @return [Integer] Hash code
|
|
202
236
|
def hash
|
|
203
|
-
[
|
|
237
|
+
[sub, preferred_username, email, email_verified, phone_number_verified, given_name, middle_name, family_name, birth_date, gender, phone_number, address].hash
|
|
204
238
|
end
|
|
205
239
|
|
|
206
240
|
# Builds the object from hash
|