trinsic_api 3.3.0.pre.alpha4 → 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 +1 -1
- 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
|
@@ -24,12 +24,16 @@ module TrinsicApi
|
|
|
24
24
|
# The street address of the individual.
|
|
25
25
|
attr_accessor :street_address
|
|
26
26
|
|
|
27
|
+
# The ISO 3166-1 alpha-2 country code of the verified individual's address.
|
|
28
|
+
attr_accessor :country
|
|
29
|
+
|
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
31
|
def self.attribute_map
|
|
29
32
|
{
|
|
30
33
|
:'locality' => :'locality',
|
|
31
34
|
:'postal_code' => :'postalCode',
|
|
32
|
-
:'street_address' => :'streetAddress'
|
|
35
|
+
:'street_address' => :'streetAddress',
|
|
36
|
+
:'country' => :'country'
|
|
33
37
|
}
|
|
34
38
|
end
|
|
35
39
|
|
|
@@ -48,7 +52,8 @@ module TrinsicApi
|
|
|
48
52
|
{
|
|
49
53
|
:'locality' => :'String',
|
|
50
54
|
:'postal_code' => :'String',
|
|
51
|
-
:'street_address' => :'String'
|
|
55
|
+
:'street_address' => :'String',
|
|
56
|
+
:'country' => :'String'
|
|
52
57
|
}
|
|
53
58
|
end
|
|
54
59
|
|
|
@@ -57,7 +62,8 @@ module TrinsicApi
|
|
|
57
62
|
Set.new([
|
|
58
63
|
:'locality',
|
|
59
64
|
:'postal_code',
|
|
60
|
-
:'street_address'
|
|
65
|
+
:'street_address',
|
|
66
|
+
:'country'
|
|
61
67
|
])
|
|
62
68
|
end
|
|
63
69
|
|
|
@@ -98,6 +104,10 @@ module TrinsicApi
|
|
|
98
104
|
if attributes.key?(:'street_address')
|
|
99
105
|
self.street_address = attributes[:'street_address']
|
|
100
106
|
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'country')
|
|
109
|
+
self.country = attributes[:'country']
|
|
110
|
+
end
|
|
101
111
|
end
|
|
102
112
|
|
|
103
113
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -122,7 +132,8 @@ module TrinsicApi
|
|
|
122
132
|
self.class == o.class &&
|
|
123
133
|
locality == o.locality &&
|
|
124
134
|
postal_code == o.postal_code &&
|
|
125
|
-
street_address == o.street_address
|
|
135
|
+
street_address == o.street_address &&
|
|
136
|
+
country == o.country
|
|
126
137
|
end
|
|
127
138
|
|
|
128
139
|
# @see the `==` method
|
|
@@ -134,7 +145,7 @@ module TrinsicApi
|
|
|
134
145
|
# Calculates hash code according to all attributes.
|
|
135
146
|
# @return [Integer] Hash code
|
|
136
147
|
def hash
|
|
137
|
-
[locality, postal_code, street_address].hash
|
|
148
|
+
[locality, postal_code, street_address, country].hash
|
|
138
149
|
end
|
|
139
150
|
|
|
140
151
|
# Builds the object from hash
|
|
@@ -15,7 +15,10 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
17
|
# Exposed properties for the `india-digilocker-aadhaar-fetch` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
-
class
|
|
18
|
+
class IndiaDigilockerAadhaarFetchProviderOutput < ApiModelBase
|
|
19
|
+
# The identity details extracted from the Aadhaar document.
|
|
20
|
+
attr_accessor :document
|
|
21
|
+
|
|
19
22
|
# The document type from which the identity data was retrieved.
|
|
20
23
|
attr_accessor :document_type
|
|
21
24
|
|
|
@@ -37,6 +40,9 @@ module TrinsicApi
|
|
|
37
40
|
# Whether our own validation of the Aadhaar document signature and certificate chain succeeded. When the signed document (e.g. Digilocker XML) is available, we validate it using the standard CCA/SafeScrypt chain. When the document is not returned, the signature cannot be validated and this is false. Some providers also supply a separate DSC validation indicator in the webhook payload; that is independent of this flag, which reflects only our validation.
|
|
38
41
|
attr_accessor :document_signature_validated
|
|
39
42
|
|
|
43
|
+
# The complete address and original gender returned with the Aadhaar details.
|
|
44
|
+
attr_accessor :details
|
|
45
|
+
|
|
40
46
|
# DigiLocker's 36-character stable account identifier. This identifier is deemed safe to use to reference the individual. *Note, the format is not guaranteed to be a UUID.
|
|
41
47
|
attr_accessor :digilocker_id
|
|
42
48
|
|
|
@@ -55,6 +61,7 @@ module TrinsicApi
|
|
|
55
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
62
|
def self.attribute_map
|
|
57
63
|
{
|
|
64
|
+
:'document' => :'document',
|
|
58
65
|
:'document_type' => :'documentType',
|
|
59
66
|
:'timestamp' => :'timestamp',
|
|
60
67
|
:'time_to_live' => :'timeToLive',
|
|
@@ -62,6 +69,7 @@ module TrinsicApi
|
|
|
62
69
|
:'claims' => :'claims',
|
|
63
70
|
:'localized_claims' => :'localizedClaims',
|
|
64
71
|
:'document_signature_validated' => :'documentSignatureValidated',
|
|
72
|
+
:'details' => :'details',
|
|
65
73
|
:'digilocker_id' => :'digilockerId',
|
|
66
74
|
:'issuer_id' => :'issuerId',
|
|
67
75
|
:'issuer' => :'issuer',
|
|
@@ -83,6 +91,7 @@ module TrinsicApi
|
|
|
83
91
|
# Attribute type mapping.
|
|
84
92
|
def self.openapi_types
|
|
85
93
|
{
|
|
94
|
+
:'document' => :'AadhaarDocumentOutput',
|
|
86
95
|
:'document_type' => :'String',
|
|
87
96
|
:'timestamp' => :'Time',
|
|
88
97
|
:'time_to_live' => :'Time',
|
|
@@ -90,6 +99,7 @@ module TrinsicApi
|
|
|
90
99
|
:'claims' => :'AadhaarClaims',
|
|
91
100
|
:'localized_claims' => :'AadhaarLocalizedClaims',
|
|
92
101
|
:'document_signature_validated' => :'Boolean',
|
|
102
|
+
:'details' => :'AadhaarDocumentOutput',
|
|
93
103
|
:'digilocker_id' => :'String',
|
|
94
104
|
:'issuer_id' => :'String',
|
|
95
105
|
:'issuer' => :'String',
|
|
@@ -101,6 +111,7 @@ module TrinsicApi
|
|
|
101
111
|
# List of attributes with nullable: true
|
|
102
112
|
def self.openapi_nullable
|
|
103
113
|
Set.new([
|
|
114
|
+
:'document',
|
|
104
115
|
:'document_type',
|
|
105
116
|
:'timestamp',
|
|
106
117
|
:'time_to_live',
|
|
@@ -108,6 +119,7 @@ module TrinsicApi
|
|
|
108
119
|
:'claims',
|
|
109
120
|
:'localized_claims',
|
|
110
121
|
:'document_signature_validated',
|
|
122
|
+
:'details',
|
|
111
123
|
:'digilocker_id',
|
|
112
124
|
:'issuer_id',
|
|
113
125
|
:'issuer',
|
|
@@ -130,18 +142,22 @@ module TrinsicApi
|
|
|
130
142
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
143
|
def initialize(attributes = {})
|
|
132
144
|
if (!attributes.is_a?(Hash))
|
|
133
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
145
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::IndiaDigilockerAadhaarFetchProviderOutput` initialize method"
|
|
134
146
|
end
|
|
135
147
|
|
|
136
148
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
137
149
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
138
150
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
139
151
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
140
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
152
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::IndiaDigilockerAadhaarFetchProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
141
153
|
end
|
|
142
154
|
h[k.to_sym] = v
|
|
143
155
|
}
|
|
144
156
|
|
|
157
|
+
if attributes.key?(:'document')
|
|
158
|
+
self.document = attributes[:'document']
|
|
159
|
+
end
|
|
160
|
+
|
|
145
161
|
if attributes.key?(:'document_type')
|
|
146
162
|
self.document_type = attributes[:'document_type']
|
|
147
163
|
end
|
|
@@ -170,6 +186,10 @@ module TrinsicApi
|
|
|
170
186
|
self.document_signature_validated = attributes[:'document_signature_validated']
|
|
171
187
|
end
|
|
172
188
|
|
|
189
|
+
if attributes.key?(:'details')
|
|
190
|
+
self.details = attributes[:'details']
|
|
191
|
+
end
|
|
192
|
+
|
|
173
193
|
if attributes.key?(:'digilocker_id')
|
|
174
194
|
self.digilocker_id = attributes[:'digilocker_id']
|
|
175
195
|
end
|
|
@@ -213,6 +233,7 @@ module TrinsicApi
|
|
|
213
233
|
def ==(o)
|
|
214
234
|
return true if self.equal?(o)
|
|
215
235
|
self.class == o.class &&
|
|
236
|
+
document == o.document &&
|
|
216
237
|
document_type == o.document_type &&
|
|
217
238
|
timestamp == o.timestamp &&
|
|
218
239
|
time_to_live == o.time_to_live &&
|
|
@@ -220,6 +241,7 @@ module TrinsicApi
|
|
|
220
241
|
claims == o.claims &&
|
|
221
242
|
localized_claims == o.localized_claims &&
|
|
222
243
|
document_signature_validated == o.document_signature_validated &&
|
|
244
|
+
details == o.details &&
|
|
223
245
|
digilocker_id == o.digilocker_id &&
|
|
224
246
|
issuer_id == o.issuer_id &&
|
|
225
247
|
issuer == o.issuer &&
|
|
@@ -236,7 +258,7 @@ module TrinsicApi
|
|
|
236
258
|
# Calculates hash code according to all attributes.
|
|
237
259
|
# @return [Integer] Hash code
|
|
238
260
|
def hash
|
|
239
|
-
[document_type, timestamp, time_to_live, aadhaar_number_last_four, claims, localized_claims, document_signature_validated, digilocker_id, issuer_id, issuer, mobile_phone, scope].hash
|
|
261
|
+
[document, document_type, timestamp, time_to_live, aadhaar_number_last_four, claims, localized_claims, document_signature_validated, details, digilocker_id, issuer_id, issuer, mobile_phone, scope].hash
|
|
240
262
|
end
|
|
241
263
|
|
|
242
264
|
# Builds the object from hash
|
|
@@ -16,6 +16,15 @@ require 'time'
|
|
|
16
16
|
module TrinsicApi
|
|
17
17
|
# Exposed properties for the `indonesia-dukcapil-match` Provider which do not directly map to the normalized IdentityData model.
|
|
18
18
|
class IndonesiaDukcapilMatchProviderOutput < ApiModelBase
|
|
19
|
+
# Liveness probability, from 0 to 1; omitted when biometrics were not performed.
|
|
20
|
+
attr_accessor :liveness
|
|
21
|
+
|
|
22
|
+
# Face match probability, from 0 to 1; omitted when biometrics were not performed.
|
|
23
|
+
attr_accessor :face_match
|
|
24
|
+
|
|
25
|
+
# Image authenticity probability, from 0 to 1; omitted when biometrics were not performed.
|
|
26
|
+
attr_accessor :image_authenticity
|
|
27
|
+
|
|
19
28
|
# NIK submitted for this Dukcapil match and the assessment result returned for that value.
|
|
20
29
|
attr_accessor :national_id_number
|
|
21
30
|
|
|
@@ -52,6 +61,9 @@ module TrinsicApi
|
|
|
52
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
62
|
def self.attribute_map
|
|
54
63
|
{
|
|
64
|
+
:'liveness' => :'liveness',
|
|
65
|
+
:'face_match' => :'faceMatch',
|
|
66
|
+
:'image_authenticity' => :'imageAuthenticity',
|
|
55
67
|
:'national_id_number' => :'nationalIdNumber',
|
|
56
68
|
:'full_name' => :'fullName',
|
|
57
69
|
:'date_of_birth' => :'dateOfBirth',
|
|
@@ -79,6 +91,9 @@ module TrinsicApi
|
|
|
79
91
|
# Attribute type mapping.
|
|
80
92
|
def self.openapi_types
|
|
81
93
|
{
|
|
94
|
+
:'liveness' => :'Float',
|
|
95
|
+
:'face_match' => :'Float',
|
|
96
|
+
:'image_authenticity' => :'Float',
|
|
82
97
|
:'national_id_number' => :'IndonesiaDukcapilMatchNationalIdNumberField',
|
|
83
98
|
:'full_name' => :'IndonesiaDukcapilMatchFullNameField',
|
|
84
99
|
:'date_of_birth' => :'IndonesiaDukcapilMatchDateOfBirthField',
|
|
@@ -96,6 +111,9 @@ module TrinsicApi
|
|
|
96
111
|
# List of attributes with nullable: true
|
|
97
112
|
def self.openapi_nullable
|
|
98
113
|
Set.new([
|
|
114
|
+
:'liveness',
|
|
115
|
+
:'face_match',
|
|
116
|
+
:'image_authenticity',
|
|
99
117
|
:'national_id_number',
|
|
100
118
|
:'full_name',
|
|
101
119
|
:'date_of_birth',
|
|
@@ -136,6 +154,18 @@ module TrinsicApi
|
|
|
136
154
|
h[k.to_sym] = v
|
|
137
155
|
}
|
|
138
156
|
|
|
157
|
+
if attributes.key?(:'liveness')
|
|
158
|
+
self.liveness = attributes[:'liveness']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'face_match')
|
|
162
|
+
self.face_match = attributes[:'face_match']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'image_authenticity')
|
|
166
|
+
self.image_authenticity = attributes[:'image_authenticity']
|
|
167
|
+
end
|
|
168
|
+
|
|
139
169
|
if attributes.key?(:'national_id_number')
|
|
140
170
|
self.national_id_number = attributes[:'national_id_number']
|
|
141
171
|
end
|
|
@@ -201,6 +231,9 @@ module TrinsicApi
|
|
|
201
231
|
def ==(o)
|
|
202
232
|
return true if self.equal?(o)
|
|
203
233
|
self.class == o.class &&
|
|
234
|
+
liveness == o.liveness &&
|
|
235
|
+
face_match == o.face_match &&
|
|
236
|
+
image_authenticity == o.image_authenticity &&
|
|
204
237
|
national_id_number == o.national_id_number &&
|
|
205
238
|
full_name == o.full_name &&
|
|
206
239
|
date_of_birth == o.date_of_birth &&
|
|
@@ -223,7 +256,7 @@ module TrinsicApi
|
|
|
223
256
|
# Calculates hash code according to all attributes.
|
|
224
257
|
# @return [Integer] Hash code
|
|
225
258
|
def hash
|
|
226
|
-
[national_id_number, full_name, date_of_birth, province_code, regency_or_city_code, district_code, sex_national_id_number, serial_number, phone_number, consent_given_at, email].hash
|
|
259
|
+
[liveness, face_match, image_authenticity, national_id_number, full_name, date_of_birth, province_code, regency_or_city_code, district_code, sex_national_id_number, serial_number, phone_number, consent_given_at, email].hash
|
|
227
260
|
end
|
|
228
261
|
|
|
229
262
|
# Builds the object from hash
|
|
@@ -25,6 +25,9 @@ module TrinsicApi
|
|
|
25
25
|
# The phone number of the verified individual, with a leading + country calling code. Availability by ID document issuing country: always returned for all supported issuing countries.
|
|
26
26
|
attr_accessor :phone_number
|
|
27
27
|
|
|
28
|
+
# Document expiration date in YYYY-MM-DD format, preserving the source date interpretation.
|
|
29
|
+
attr_accessor :document_expiration_date
|
|
30
|
+
|
|
28
31
|
# The stable OpenID Connect (OIDC) subject (sub) identifier. This should be a stable identifier, however, if a user deletes and recreates an account, this identifier will change.
|
|
29
32
|
attr_accessor :sub
|
|
30
33
|
|
|
@@ -82,6 +85,7 @@ module TrinsicApi
|
|
|
82
85
|
:'date_of_birth' => :'dateOfBirth',
|
|
83
86
|
:'email' => :'email',
|
|
84
87
|
:'phone_number' => :'phoneNumber',
|
|
88
|
+
:'document_expiration_date' => :'documentExpirationDate',
|
|
85
89
|
:'sub' => :'sub',
|
|
86
90
|
:'full_name' => :'fullName',
|
|
87
91
|
:'given_name' => :'givenName',
|
|
@@ -118,6 +122,7 @@ module TrinsicApi
|
|
|
118
122
|
:'date_of_birth' => :'Date',
|
|
119
123
|
:'email' => :'String',
|
|
120
124
|
:'phone_number' => :'String',
|
|
125
|
+
:'document_expiration_date' => :'Date',
|
|
121
126
|
:'sub' => :'String',
|
|
122
127
|
:'full_name' => :'String',
|
|
123
128
|
:'given_name' => :'String',
|
|
@@ -144,6 +149,7 @@ module TrinsicApi
|
|
|
144
149
|
:'date_of_birth',
|
|
145
150
|
:'email',
|
|
146
151
|
:'phone_number',
|
|
152
|
+
:'document_expiration_date',
|
|
147
153
|
:'sub',
|
|
148
154
|
:'full_name',
|
|
149
155
|
:'given_name',
|
|
@@ -202,6 +208,10 @@ module TrinsicApi
|
|
|
202
208
|
self.phone_number = attributes[:'phone_number']
|
|
203
209
|
end
|
|
204
210
|
|
|
211
|
+
if attributes.key?(:'document_expiration_date')
|
|
212
|
+
self.document_expiration_date = attributes[:'document_expiration_date']
|
|
213
|
+
end
|
|
214
|
+
|
|
205
215
|
if attributes.key?(:'sub')
|
|
206
216
|
self.sub = attributes[:'sub']
|
|
207
217
|
end
|
|
@@ -294,6 +304,7 @@ module TrinsicApi
|
|
|
294
304
|
date_of_birth == o.date_of_birth &&
|
|
295
305
|
email == o.email &&
|
|
296
306
|
phone_number == o.phone_number &&
|
|
307
|
+
document_expiration_date == o.document_expiration_date &&
|
|
297
308
|
sub == o.sub &&
|
|
298
309
|
full_name == o.full_name &&
|
|
299
310
|
given_name == o.given_name &&
|
|
@@ -322,7 +333,7 @@ module TrinsicApi
|
|
|
322
333
|
# Calculates hash code according to all attributes.
|
|
323
334
|
# @return [Integer] Hash code
|
|
324
335
|
def hash
|
|
325
|
-
[date_of_birth, email, phone_number, sub, full_name, given_name, family_name, date_of_birth_as_string, gender, locale, picture_url, email_verified, phone_number_verified, address, citizenship, belgian_national_number, belgian_identity_card, identity_document, place_of_birth, device].hash
|
|
336
|
+
[date_of_birth, email, phone_number, document_expiration_date, sub, full_name, given_name, family_name, date_of_birth_as_string, gender, locale, picture_url, email_verified, phone_number_verified, address, citizenship, belgian_national_number, belgian_identity_card, identity_document, place_of_birth, device].hash
|
|
326
337
|
end
|
|
327
338
|
|
|
328
339
|
# Builds the object from hash
|
|
@@ -16,6 +16,12 @@ require 'time'
|
|
|
16
16
|
module TrinsicApi
|
|
17
17
|
# Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
18
18
|
class KenyaNidLookup2ProviderOutput < ApiModelBase
|
|
19
|
+
# Country of the identity registry, as an ISO 3166-1 alpha-2 code.
|
|
20
|
+
attr_accessor :issuing_country
|
|
21
|
+
|
|
22
|
+
# Full name returned by the identity registry.
|
|
23
|
+
attr_accessor :full_name
|
|
24
|
+
|
|
19
25
|
# The first name (given name) of the ID holder as recorded in IPRS.
|
|
20
26
|
attr_accessor :first_name
|
|
21
27
|
|
|
@@ -52,6 +58,8 @@ module TrinsicApi
|
|
|
52
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
59
|
def self.attribute_map
|
|
54
60
|
{
|
|
61
|
+
:'issuing_country' => :'issuingCountry',
|
|
62
|
+
:'full_name' => :'fullName',
|
|
55
63
|
:'first_name' => :'firstName',
|
|
56
64
|
:'surname' => :'surname',
|
|
57
65
|
:'other_name' => :'otherName',
|
|
@@ -79,6 +87,8 @@ module TrinsicApi
|
|
|
79
87
|
# Attribute type mapping.
|
|
80
88
|
def self.openapi_types
|
|
81
89
|
{
|
|
90
|
+
:'issuing_country' => :'String',
|
|
91
|
+
:'full_name' => :'String',
|
|
82
92
|
:'first_name' => :'String',
|
|
83
93
|
:'surname' => :'String',
|
|
84
94
|
:'other_name' => :'String',
|
|
@@ -96,6 +106,8 @@ module TrinsicApi
|
|
|
96
106
|
# List of attributes with nullable: true
|
|
97
107
|
def self.openapi_nullable
|
|
98
108
|
Set.new([
|
|
109
|
+
:'issuing_country',
|
|
110
|
+
:'full_name',
|
|
99
111
|
:'first_name',
|
|
100
112
|
:'surname',
|
|
101
113
|
:'other_name',
|
|
@@ -136,6 +148,14 @@ module TrinsicApi
|
|
|
136
148
|
h[k.to_sym] = v
|
|
137
149
|
}
|
|
138
150
|
|
|
151
|
+
if attributes.key?(:'issuing_country')
|
|
152
|
+
self.issuing_country = attributes[:'issuing_country']
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'full_name')
|
|
156
|
+
self.full_name = attributes[:'full_name']
|
|
157
|
+
end
|
|
158
|
+
|
|
139
159
|
if attributes.key?(:'first_name')
|
|
140
160
|
self.first_name = attributes[:'first_name']
|
|
141
161
|
end
|
|
@@ -201,6 +221,8 @@ module TrinsicApi
|
|
|
201
221
|
def ==(o)
|
|
202
222
|
return true if self.equal?(o)
|
|
203
223
|
self.class == o.class &&
|
|
224
|
+
issuing_country == o.issuing_country &&
|
|
225
|
+
full_name == o.full_name &&
|
|
204
226
|
first_name == o.first_name &&
|
|
205
227
|
surname == o.surname &&
|
|
206
228
|
other_name == o.other_name &&
|
|
@@ -223,7 +245,7 @@ module TrinsicApi
|
|
|
223
245
|
# Calculates hash code according to all attributes.
|
|
224
246
|
# @return [Integer] Hash code
|
|
225
247
|
def hash
|
|
226
|
-
[first_name, surname, other_name, sex, date_of_birth, citizenship, id_number, serial_number, date_of_issue, place_of_birth, place_of_residence].hash
|
|
248
|
+
[issuing_country, full_name, first_name, surname, other_name, sex, date_of_birth, citizenship, id_number, serial_number, date_of_issue, place_of_birth, place_of_residence].hash
|
|
227
249
|
end
|
|
228
250
|
|
|
229
251
|
# Builds the object from hash
|
|
@@ -16,6 +16,15 @@ require 'time'
|
|
|
16
16
|
module TrinsicApi
|
|
17
17
|
# Exposed properties for the `korea-telco-match` Provider which do not directly map to the normalized IdentityData model.
|
|
18
18
|
class KoreaTelcoMatchProviderOutput < ApiModelBase
|
|
19
|
+
# The full legal name submitted for the successful carrier match.
|
|
20
|
+
attr_accessor :full_name
|
|
21
|
+
|
|
22
|
+
# The date of birth submitted for the successful carrier match, in YYYY-MM-DD format.
|
|
23
|
+
attr_accessor :date_of_birth
|
|
24
|
+
|
|
25
|
+
# The sex submitted for the successful carrier match. Known values: Male, Female.
|
|
26
|
+
attr_accessor :sex
|
|
27
|
+
|
|
19
28
|
# The phone number submitted for the carrier match.
|
|
20
29
|
attr_accessor :phone_number
|
|
21
30
|
|
|
@@ -28,6 +37,9 @@ module TrinsicApi
|
|
|
28
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
38
|
def self.attribute_map
|
|
30
39
|
{
|
|
40
|
+
:'full_name' => :'fullName',
|
|
41
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
42
|
+
:'sex' => :'sex',
|
|
31
43
|
:'phone_number' => :'phoneNumber',
|
|
32
44
|
:'tele_type' => :'teleType',
|
|
33
45
|
:'result_code' => :'resultCode'
|
|
@@ -47,6 +59,9 @@ module TrinsicApi
|
|
|
47
59
|
# Attribute type mapping.
|
|
48
60
|
def self.openapi_types
|
|
49
61
|
{
|
|
62
|
+
:'full_name' => :'String',
|
|
63
|
+
:'date_of_birth' => :'Date',
|
|
64
|
+
:'sex' => :'String',
|
|
50
65
|
:'phone_number' => :'String',
|
|
51
66
|
:'tele_type' => :'String',
|
|
52
67
|
:'result_code' => :'String'
|
|
@@ -56,6 +71,9 @@ module TrinsicApi
|
|
|
56
71
|
# List of attributes with nullable: true
|
|
57
72
|
def self.openapi_nullable
|
|
58
73
|
Set.new([
|
|
74
|
+
:'full_name',
|
|
75
|
+
:'date_of_birth',
|
|
76
|
+
:'sex',
|
|
59
77
|
:'phone_number',
|
|
60
78
|
:'tele_type',
|
|
61
79
|
:'result_code'
|
|
@@ -88,6 +106,18 @@ module TrinsicApi
|
|
|
88
106
|
h[k.to_sym] = v
|
|
89
107
|
}
|
|
90
108
|
|
|
109
|
+
if attributes.key?(:'full_name')
|
|
110
|
+
self.full_name = attributes[:'full_name']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'date_of_birth')
|
|
114
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'sex')
|
|
118
|
+
self.sex = attributes[:'sex']
|
|
119
|
+
end
|
|
120
|
+
|
|
91
121
|
if attributes.key?(:'phone_number')
|
|
92
122
|
self.phone_number = attributes[:'phone_number']
|
|
93
123
|
end
|
|
@@ -121,6 +151,9 @@ module TrinsicApi
|
|
|
121
151
|
def ==(o)
|
|
122
152
|
return true if self.equal?(o)
|
|
123
153
|
self.class == o.class &&
|
|
154
|
+
full_name == o.full_name &&
|
|
155
|
+
date_of_birth == o.date_of_birth &&
|
|
156
|
+
sex == o.sex &&
|
|
124
157
|
phone_number == o.phone_number &&
|
|
125
158
|
tele_type == o.tele_type &&
|
|
126
159
|
result_code == o.result_code
|
|
@@ -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
|
-
[phone_number, tele_type, result_code].hash
|
|
171
|
+
[full_name, date_of_birth, sex, phone_number, tele_type, result_code].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 `nigeria-nin-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
18
18
|
class NigeriaNinLookup2ProviderOutput < ApiModelBase
|
|
19
|
+
# Country of the identity registry, as an ISO 3166-1 alpha-2 code.
|
|
20
|
+
attr_accessor :issuing_country
|
|
21
|
+
|
|
22
|
+
# Full name returned by the identity registry.
|
|
23
|
+
attr_accessor :full_name
|
|
24
|
+
|
|
19
25
|
# The first name (given name) of the ID holder.
|
|
20
26
|
attr_accessor :first_name
|
|
21
27
|
|
|
@@ -55,6 +61,8 @@ module TrinsicApi
|
|
|
55
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
62
|
def self.attribute_map
|
|
57
63
|
{
|
|
64
|
+
:'issuing_country' => :'issuingCountry',
|
|
65
|
+
:'full_name' => :'fullName',
|
|
58
66
|
:'first_name' => :'firstName',
|
|
59
67
|
:'middle_name' => :'middleName',
|
|
60
68
|
:'surname' => :'surname',
|
|
@@ -83,6 +91,8 @@ module TrinsicApi
|
|
|
83
91
|
# Attribute type mapping.
|
|
84
92
|
def self.openapi_types
|
|
85
93
|
{
|
|
94
|
+
:'issuing_country' => :'String',
|
|
95
|
+
:'full_name' => :'String',
|
|
86
96
|
:'first_name' => :'String',
|
|
87
97
|
:'middle_name' => :'String',
|
|
88
98
|
:'surname' => :'String',
|
|
@@ -101,6 +111,8 @@ module TrinsicApi
|
|
|
101
111
|
# List of attributes with nullable: true
|
|
102
112
|
def self.openapi_nullable
|
|
103
113
|
Set.new([
|
|
114
|
+
:'issuing_country',
|
|
115
|
+
:'full_name',
|
|
104
116
|
:'first_name',
|
|
105
117
|
:'middle_name',
|
|
106
118
|
:'surname',
|
|
@@ -142,6 +154,14 @@ module TrinsicApi
|
|
|
142
154
|
h[k.to_sym] = v
|
|
143
155
|
}
|
|
144
156
|
|
|
157
|
+
if attributes.key?(:'issuing_country')
|
|
158
|
+
self.issuing_country = attributes[:'issuing_country']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'full_name')
|
|
162
|
+
self.full_name = attributes[:'full_name']
|
|
163
|
+
end
|
|
164
|
+
|
|
145
165
|
if attributes.key?(:'first_name')
|
|
146
166
|
self.first_name = attributes[:'first_name']
|
|
147
167
|
end
|
|
@@ -211,6 +231,8 @@ module TrinsicApi
|
|
|
211
231
|
def ==(o)
|
|
212
232
|
return true if self.equal?(o)
|
|
213
233
|
self.class == o.class &&
|
|
234
|
+
issuing_country == o.issuing_country &&
|
|
235
|
+
full_name == o.full_name &&
|
|
214
236
|
first_name == o.first_name &&
|
|
215
237
|
middle_name == o.middle_name &&
|
|
216
238
|
surname == o.surname &&
|
|
@@ -234,7 +256,7 @@ module TrinsicApi
|
|
|
234
256
|
# Calculates hash code according to all attributes.
|
|
235
257
|
# @return [Integer] Hash code
|
|
236
258
|
def hash
|
|
237
|
-
[first_name, middle_name, surname, sex, date_of_birth, birth_country, national_identity_number, phone_number, email, address, local_government_area, state].hash
|
|
259
|
+
[issuing_country, full_name, first_name, middle_name, surname, sex, date_of_birth, birth_country, national_identity_number, phone_number, email, address, local_government_area, state].hash
|
|
238
260
|
end
|
|
239
261
|
|
|
240
262
|
# Builds the object from hash
|
|
@@ -43,6 +43,12 @@ module TrinsicApi
|
|
|
43
43
|
# The date the document was issued.
|
|
44
44
|
attr_accessor :document_issue_date
|
|
45
45
|
|
|
46
|
+
# The document number of the digital National ID.
|
|
47
|
+
attr_accessor :document_number
|
|
48
|
+
|
|
49
|
+
# The issuing authority of the document.
|
|
50
|
+
attr_accessor :issuing_authority
|
|
51
|
+
|
|
46
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
53
|
def self.attribute_map
|
|
48
54
|
{
|
|
@@ -54,7 +60,9 @@ module TrinsicApi
|
|
|
54
60
|
:'suffix' => :'suffix',
|
|
55
61
|
:'sex' => :'sex',
|
|
56
62
|
:'place_of_birth' => :'placeOfBirth',
|
|
57
|
-
:'document_issue_date' => :'documentIssueDate'
|
|
63
|
+
:'document_issue_date' => :'documentIssueDate',
|
|
64
|
+
:'document_number' => :'documentNumber',
|
|
65
|
+
:'issuing_authority' => :'issuingAuthority'
|
|
58
66
|
}
|
|
59
67
|
end
|
|
60
68
|
|
|
@@ -79,7 +87,9 @@ module TrinsicApi
|
|
|
79
87
|
:'suffix' => :'String',
|
|
80
88
|
:'sex' => :'String',
|
|
81
89
|
:'place_of_birth' => :'String',
|
|
82
|
-
:'document_issue_date' => :'Date'
|
|
90
|
+
:'document_issue_date' => :'Date',
|
|
91
|
+
:'document_number' => :'String',
|
|
92
|
+
:'issuing_authority' => :'String'
|
|
83
93
|
}
|
|
84
94
|
end
|
|
85
95
|
|
|
@@ -94,7 +104,9 @@ module TrinsicApi
|
|
|
94
104
|
:'suffix',
|
|
95
105
|
:'sex',
|
|
96
106
|
:'place_of_birth',
|
|
97
|
-
:'document_issue_date'
|
|
107
|
+
:'document_issue_date',
|
|
108
|
+
:'document_number',
|
|
109
|
+
:'issuing_authority'
|
|
98
110
|
])
|
|
99
111
|
end
|
|
100
112
|
|
|
@@ -159,6 +171,14 @@ module TrinsicApi
|
|
|
159
171
|
if attributes.key?(:'document_issue_date')
|
|
160
172
|
self.document_issue_date = attributes[:'document_issue_date']
|
|
161
173
|
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'document_number')
|
|
176
|
+
self.document_number = attributes[:'document_number']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.key?(:'issuing_authority')
|
|
180
|
+
self.issuing_authority = attributes[:'issuing_authority']
|
|
181
|
+
end
|
|
162
182
|
end
|
|
163
183
|
|
|
164
184
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -189,7 +209,9 @@ module TrinsicApi
|
|
|
189
209
|
suffix == o.suffix &&
|
|
190
210
|
sex == o.sex &&
|
|
191
211
|
place_of_birth == o.place_of_birth &&
|
|
192
|
-
document_issue_date == o.document_issue_date
|
|
212
|
+
document_issue_date == o.document_issue_date &&
|
|
213
|
+
document_number == o.document_number &&
|
|
214
|
+
issuing_authority == o.issuing_authority
|
|
193
215
|
end
|
|
194
216
|
|
|
195
217
|
# @see the `==` method
|
|
@@ -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
|
-
[philsys_card_number, given_name, middle_name, family_name, date_of_birth, suffix, sex, place_of_birth, document_issue_date].hash
|
|
226
|
+
[philsys_card_number, given_name, middle_name, family_name, date_of_birth, suffix, sex, place_of_birth, document_issue_date, document_number, issuing_authority].hash
|
|
205
227
|
end
|
|
206
228
|
|
|
207
229
|
# Builds the object from hash
|