trinsic_api 2.3.0.pre.alpha2 → 3.0.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/{EnvironmentRedirectUrisAddRequest.md → AddRedirectUriRequest.md} +2 -2
- data/docs/Address.md +2 -2
- data/docs/AppleWalletProviderOutput.md +18 -0
- data/docs/AttachmentInfo.md +24 -0
- data/docs/{MdlFieldDataType.md → AttributeAvailability.md} +2 -2
- data/docs/AustriaHandySignaturProviderOutput.md +20 -0
- data/docs/BelgiumIdCardProviderOutput.md +24 -0
- data/docs/ContractAttachment.md +20 -0
- data/docs/ContractAttribute.md +20 -0
- data/docs/CoteDIvoireNidLookup2Input.md +18 -0
- data/docs/CzechiaMojeIdProviderOutput.md +24 -0
- data/docs/DocumentData.md +12 -10
- data/docs/EstoniaIdCardProviderOutput.md +24 -0
- data/docs/FaydaProviderOutput.md +1 -1
- data/docs/FinlandIdCardProviderOutput.md +24 -0
- data/docs/FrejaProviderOutput.md +24 -0
- data/docs/FrenchNumeriqueGivenName.md +22 -0
- data/docs/FrenchNumeriqueNationality.md +20 -0
- data/docs/FrenchNumeriquePhone.md +22 -0
- data/docs/FrenchNumeriqueProviderOutput.md +66 -0
- data/docs/GetAttachmentRequest.md +2 -4
- data/docs/GoogleWalletProviderOutput.md +18 -0
- data/docs/IdentityData.md +9 -11
- data/docs/ItsmeProviderOutput.md +26 -0
- data/docs/KenyaNidMatch2Input.md +1 -1
- data/docs/{Language.md → KenyaNidMatch2InputSex.md} +2 -2
- data/docs/LaWalletProviderOutput.md +52 -0
- data/docs/LatviaEparakstsMobileProviderOutput.md +22 -0
- data/docs/LatviaEparakstsProviderOutput.md +22 -0
- data/docs/ListProvidersResponse.md +1 -1
- data/docs/{ListEnvironmentRedirectUrisResponse.md → ListRedirectUrisResponse.md} +2 -2
- data/docs/LithuaniaIdCardProviderOutput.md +24 -0
- data/docs/LloydsSmartIdProviderOutput.md +40 -0
- data/docs/Match.md +2 -2
- data/docs/MatchData.md +12 -10
- data/docs/MdlOutput.md +24 -0
- data/docs/MdlOutputCertificateData.md +26 -0
- data/docs/{ExternalMdlFieldData.md → MdlOutputFieldData.md} +3 -3
- data/docs/{FieldAvailability.md → MdlOutputFieldDataType.md} +2 -2
- data/docs/MexicoCurpProviderOutput.md +1 -1
- data/docs/MitIdProviderOutput.md +38 -0
- data/docs/MobileIdInput.md +1 -1
- data/docs/{SexV1.md → MobileIdLanguage.md} +2 -2
- data/docs/MobileIdProviderOutput.md +34 -0
- data/docs/NigeriaNinBiometric2Input.md +22 -0
- data/docs/NigeriaNinLookup2Input.md +18 -0
- data/docs/NigeriaNinMatch2Input.md +30 -0
- data/docs/NigeriaNinMatch2InputSex.md +15 -0
- data/docs/PersonData.md +10 -10
- data/docs/PeruDniAddress.md +22 -0
- data/docs/PeruDniLookupInput.md +18 -0
- data/docs/PeruDniProviderOutput.md +48 -0
- data/docs/PhilippinesDigitalNidProviderOutput.md +2 -2
- data/docs/PhilippinesPhysicalNidProviderOutput.md +2 -2
- data/docs/PolandEdoAppProviderOutput.md +24 -0
- data/docs/PolandMojeIdProviderOutput.md +22 -0
- data/docs/PortugalIdCardProviderOutput.md +24 -0
- data/docs/PostOfficeEasyIdProviderOutput.md +40 -0
- data/docs/{ProviderContract.md → Provider.md} +29 -25
- data/docs/ProviderInput.md +50 -32
- data/docs/ProviderOutput.md +61 -7
- data/docs/ProvidersApi.md +79 -0
- data/docs/RecommendProviderHealthOption.md +15 -0
- data/docs/{ProviderInformation.md → RecommendProviderInformation.md} +14 -14
- data/docs/{RecommendRequest.md → RecommendProvidersRequest.md} +3 -3
- data/docs/RecommendProvidersResponse.md +18 -0
- data/docs/{EnvironmentRedirectUrisApi.md → RedirectUrisApi.md} +21 -21
- data/docs/SamsungWalletProviderOutput.md +18 -0
- data/docs/SerbiaIdCardProviderOutput.md +24 -0
- data/docs/SessionsApi.md +149 -1
- data/docs/SmartIdInput.md +0 -2
- data/docs/SmartIdProviderOutput.md +42 -0
- data/docs/SouthAfricaNidBiometric2Input.md +22 -0
- data/docs/SouthAfricaNidMatch2Input.md +30 -0
- data/docs/SouthAfricaNidMatch2InputSex.md +15 -0
- data/docs/SpidProviderOutput.md +45 -25
- data/docs/SubProviderMetadata.md +0 -2
- data/docs/SwedenBankIdProviderOutput.md +42 -0
- data/docs/UgandaNidMatch2Input.md +22 -0
- data/docs/VerificationProfileResponse.md +3 -1
- data/docs/VerificationProfilesApi.md +3 -1
- data/docs/YotiDocumentDetails.md +26 -0
- data/docs/YotiProviderOutput.md +40 -0
- data/docs/YotiStructuredPostalAddress.md +56 -0
- data/docs/ZimbabweNidLookup2Input.md +18 -0
- data/lib/trinsic_api/api/providers_api.rb +82 -0
- data/lib/trinsic_api/api/{environment_redirect_uris_api.rb → redirect_uris_api.rb} +28 -28
- data/lib/trinsic_api/api/sessions_api.rb +142 -2
- data/lib/trinsic_api/api/verification_profiles_api.rb +3 -0
- data/lib/trinsic_api/models/{environment_redirect_uris_add_request.rb → add_redirect_uri_request.rb} +12 -3
- data/lib/trinsic_api/models/address.rb +3 -0
- data/lib/trinsic_api/models/apple_wallet_provider_output.rb +239 -0
- data/lib/trinsic_api/models/attachment_info.rb +319 -0
- data/lib/trinsic_api/models/{field_availability.rb → attribute_availability.rb} +3 -3
- data/lib/trinsic_api/models/austria_handy_signatur_provider_output.rb +266 -0
- data/lib/trinsic_api/models/{bangladesh_nid_input.rb → belgium_id_card_provider_output.rb} +60 -90
- data/lib/trinsic_api/models/{contract_identifier_field.rb → contract_attachment.rb} +25 -52
- data/lib/trinsic_api/models/{contract_field.rb → contract_attribute.rb} +8 -35
- data/lib/trinsic_api/models/cote_d_ivoire_nid_lookup2_input.rb +222 -0
- data/lib/trinsic_api/models/{finalize_mdl_exchange_response.rb → czechia_moje_id_provider_output.rb} +85 -52
- data/lib/trinsic_api/models/document_data.rb +18 -1
- data/lib/trinsic_api/models/estonia_id_card_provider_output.rb +320 -0
- data/lib/trinsic_api/models/fayda_provider_output.rb +1 -0
- data/lib/trinsic_api/models/finland_id_card_provider_output.rb +320 -0
- data/lib/trinsic_api/models/freja_provider_output.rb +320 -0
- data/lib/trinsic_api/models/french_numerique_given_name.rb +245 -0
- data/lib/trinsic_api/models/french_numerique_nationality.rb +234 -0
- data/lib/trinsic_api/models/french_numerique_phone.rb +245 -0
- data/lib/trinsic_api/models/french_numerique_provider_output.rb +487 -0
- data/lib/trinsic_api/models/get_attachment_request.rb +22 -49
- data/lib/trinsic_api/models/google_wallet_provider_output.rb +239 -0
- data/lib/trinsic_api/models/identity_data.rb +30 -33
- data/lib/trinsic_api/models/itsme_provider_output.rb +315 -0
- data/lib/trinsic_api/models/kenya_nid_match2_input.rb +1 -1
- data/lib/trinsic_api/models/{sex_v1.rb → kenya_nid_match2_input_sex.rb} +4 -6
- data/lib/trinsic_api/models/la_wallet_provider_output.rb +682 -0
- data/lib/trinsic_api/models/latvia_eparaksts_mobile_provider_output.rb +293 -0
- data/lib/trinsic_api/models/{create_mdl_exchange_response.rb → latvia_eparaksts_provider_output.rb} +53 -52
- data/lib/trinsic_api/models/list_providers_response.rb +2 -2
- data/lib/trinsic_api/models/{list_environment_redirect_uris_response.rb → list_redirect_uris_response.rb} +3 -3
- data/lib/trinsic_api/models/lithuania_id_card_provider_output.rb +320 -0
- data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +344 -0
- data/lib/trinsic_api/models/match.rb +2 -0
- data/lib/trinsic_api/models/match_data.rb +23 -1
- data/lib/trinsic_api/models/{mdl_identity_data.rb → mdl_output.rb} +35 -8
- data/lib/trinsic_api/models/{mdl_certificate_data.rb → mdl_output_certificate_data.rb} +4 -4
- data/lib/trinsic_api/models/{external_mdl_field_data.rb → mdl_output_field_data.rb} +4 -4
- data/lib/trinsic_api/models/{mdl_field_data_type.rb → mdl_output_field_data_type.rb} +5 -4
- data/lib/trinsic_api/models/mexico_curp_provider_output.rb +1 -0
- data/lib/trinsic_api/models/mit_id_provider_output.rb +333 -0
- data/lib/trinsic_api/models/mobile_id_input.rb +1 -1
- data/lib/trinsic_api/models/{language.rb → mobile_id_language.rb} +3 -3
- data/lib/trinsic_api/models/mobile_id_provider_output.rb +311 -0
- data/lib/trinsic_api/models/nigeria_nin_biometric2_input.rb +246 -0
- data/lib/trinsic_api/models/{provider_attachments.rb → nigeria_nin_lookup2_input.rb} +12 -11
- data/lib/trinsic_api/models/{recommend_response.rb → nigeria_nin_match2_input.rb} +94 -82
- data/lib/trinsic_api/models/nigeria_nin_match2_input_sex.rb +40 -0
- data/lib/trinsic_api/models/person_data.rb +7 -0
- data/lib/trinsic_api/models/{identifier.rb → peru_dni_address.rb} +53 -49
- data/lib/trinsic_api/models/peru_dni_lookup_input.rb +222 -0
- data/lib/trinsic_api/models/peru_dni_provider_output.rb +518 -0
- data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +2 -1
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +2 -1
- data/lib/trinsic_api/models/poland_edo_app_provider_output.rb +320 -0
- data/lib/trinsic_api/models/poland_moje_id_provider_output.rb +293 -0
- data/lib/trinsic_api/models/{finalize_mdl_exchange_request.rb → portugal_id_card_provider_output.rb} +69 -68
- data/lib/trinsic_api/models/post_office_easy_id_provider_output.rb +344 -0
- data/lib/trinsic_api/models/{provider_contract.rb → provider.rb} +183 -125
- data/lib/trinsic_api/models/provider_input.rb +223 -124
- data/lib/trinsic_api/models/provider_output.rb +317 -15
- data/lib/trinsic_api/models/recommend_provider_health_option.rb +41 -0
- data/lib/trinsic_api/models/{provider_information.rb → recommend_provider_information.rb} +79 -73
- data/lib/trinsic_api/models/{recommend_request.rb → recommend_providers_request.rb} +27 -5
- data/lib/trinsic_api/models/{list_provider_contracts_response.rb → recommend_providers_response.rb} +20 -21
- data/lib/trinsic_api/models/redirect_uri_response.rb +9 -0
- data/lib/trinsic_api/models/samsung_wallet_provider_output.rb +239 -0
- data/lib/trinsic_api/models/serbia_id_card_provider_output.rb +320 -0
- data/lib/trinsic_api/models/smart_id_input.rb +1 -12
- data/lib/trinsic_api/models/smart_id_provider_output.rb +355 -0
- data/lib/trinsic_api/models/south_africa_nid_biometric2_input.rb +246 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +310 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_input_sex.rb +40 -0
- data/lib/trinsic_api/models/spid_provider_output.rb +131 -20
- data/lib/trinsic_api/models/sub_provider_metadata.rb +1 -28
- data/lib/trinsic_api/models/{provider_info.rb → sweden_bank_id_provider_output.rb} +121 -153
- data/lib/trinsic_api/models/uganda_nid_match2_input.rb +244 -0
- data/lib/trinsic_api/models/verification_profile_response.rb +31 -4
- data/lib/trinsic_api/models/yoti_document_details.rb +266 -0
- data/lib/trinsic_api/models/yoti_provider_output.rb +344 -0
- data/lib/trinsic_api/models/yoti_structured_postal_address.rb +431 -0
- data/lib/trinsic_api/models/{document_scan_attachments.rb → zimbabwe_nid_lookup2_input.rb} +12 -11
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +63 -30
- data/spec/api/providers_api_spec.rb +47 -0
- data/spec/api/{environment_redirect_uris_api_spec.rb → redirect_uris_api_spec.rb} +10 -10
- data/spec/api/sessions_api_spec.rb +27 -1
- data/spec/api/verification_profiles_api_spec.rb +1 -0
- data/spec/models/{environment_redirect_uris_add_request_spec.rb → add_redirect_uri_request_spec.rb} +6 -6
- data/spec/models/{list_provider_contracts_response_spec.rb → apple_wallet_provider_output_spec.rb} +7 -7
- data/spec/models/attachment_info_spec.rb +54 -0
- data/spec/models/{mdl_field_data_type_spec.rb → attribute_availability_spec.rb} +6 -6
- data/spec/models/austria_handy_signatur_provider_output_spec.rb +42 -0
- data/spec/models/{finalize_mdl_exchange_response_spec.rb → belgium_id_card_provider_output_spec.rb} +10 -10
- data/spec/models/contract_attachment_spec.rb +42 -0
- data/spec/models/contract_attribute_spec.rb +42 -0
- data/spec/models/cote_d_ivoire_nid_lookup2_input_spec.rb +36 -0
- data/spec/models/czechia_moje_id_provider_output_spec.rb +54 -0
- data/spec/models/document_data_spec.rb +6 -0
- data/spec/models/estonia_id_card_provider_output_spec.rb +54 -0
- data/spec/models/finland_id_card_provider_output_spec.rb +54 -0
- data/spec/models/freja_provider_output_spec.rb +54 -0
- data/spec/models/french_numerique_given_name_spec.rb +48 -0
- data/spec/models/french_numerique_nationality_spec.rb +42 -0
- data/spec/models/{contract_identifier_field_spec.rb → french_numerique_phone_spec.rb} +9 -9
- data/spec/models/french_numerique_provider_output_spec.rb +180 -0
- data/spec/models/get_attachment_request_spec.rb +1 -7
- data/spec/models/google_wallet_provider_output_spec.rb +36 -0
- data/spec/models/identity_data_spec.rb +1 -7
- data/spec/models/{bangladesh_nid_input_spec.rb → itsme_provider_output_spec.rb} +11 -11
- data/spec/models/{sex_v1_spec.rb → kenya_nid_match2_input_sex_spec.rb} +6 -6
- data/spec/models/la_wallet_provider_output_spec.rb +138 -0
- data/spec/models/latvia_eparaksts_mobile_provider_output_spec.rb +48 -0
- data/spec/models/latvia_eparaksts_provider_output_spec.rb +48 -0
- data/spec/models/{list_environment_redirect_uris_response_spec.rb → list_redirect_uris_response_spec.rb} +6 -6
- data/spec/models/lithuania_id_card_provider_output_spec.rb +54 -0
- data/spec/models/lloyds_smart_id_provider_output_spec.rb +102 -0
- data/spec/models/match_data_spec.rb +6 -0
- data/spec/models/{mdl_certificate_data_spec.rb → mdl_output_certificate_data_spec.rb} +6 -6
- data/spec/models/{external_mdl_field_data_spec.rb → mdl_output_field_data_spec.rb} +6 -6
- data/spec/models/{field_availability_spec.rb → mdl_output_field_data_type_spec.rb} +6 -6
- data/spec/models/{mdl_identity_data_spec.rb → mdl_output_spec.rb} +12 -6
- data/spec/models/mit_id_provider_output_spec.rb +96 -0
- data/spec/models/{language_spec.rb → mobile_id_language_spec.rb} +6 -6
- data/spec/models/{create_mdl_exchange_request_spec.rb → mobile_id_provider_output_spec.rb} +20 -14
- data/spec/models/nigeria_nin_biometric2_input_spec.rb +48 -0
- data/spec/models/{document_scan_attachments_spec.rb → nigeria_nin_lookup2_input_spec.rb} +7 -7
- data/spec/models/nigeria_nin_match2_input_sex_spec.rb +30 -0
- data/spec/models/{provider_info_spec.rb → nigeria_nin_match2_input_spec.rb} +13 -13
- data/spec/models/{identifier_spec.rb → peru_dni_address_spec.rb} +9 -9
- data/spec/models/{provider_attachments_spec.rb → peru_dni_lookup_input_spec.rb} +7 -7
- data/spec/models/peru_dni_provider_output_spec.rb +126 -0
- data/spec/models/{finalize_mdl_exchange_request_spec.rb → poland_edo_app_provider_output_spec.rb} +10 -10
- data/spec/models/{create_mdl_exchange_response_spec.rb → poland_moje_id_provider_output_spec.rb} +9 -9
- data/spec/models/portugal_id_card_provider_output_spec.rb +54 -0
- data/spec/models/post_office_easy_id_provider_output_spec.rb +102 -0
- data/spec/models/provider_input_spec.rb +70 -16
- data/spec/models/provider_output_spec.rb +164 -2
- data/spec/models/{provider_contract_spec.rb → provider_spec.rb} +28 -16
- data/spec/models/recommend_provider_health_option_spec.rb +30 -0
- data/spec/models/{provider_information_spec.rb → recommend_provider_information_spec.rb} +11 -11
- data/spec/models/{recommend_request_spec.rb → recommend_providers_request_spec.rb} +6 -6
- data/spec/models/recommend_providers_response_spec.rb +36 -0
- data/spec/models/samsung_wallet_provider_output_spec.rb +36 -0
- data/spec/models/serbia_id_card_provider_output_spec.rb +54 -0
- data/spec/models/smart_id_input_spec.rb +0 -6
- data/spec/models/smart_id_provider_output_spec.rb +108 -0
- data/spec/models/south_africa_nid_biometric2_input_spec.rb +48 -0
- data/spec/models/south_africa_nid_match2_input_sex_spec.rb +30 -0
- data/spec/models/{attachment_access_keys_spec.rb → south_africa_nid_match2_input_spec.rb} +18 -12
- data/spec/models/spid_provider_output_spec.rb +61 -1
- data/spec/models/sub_provider_metadata_spec.rb +0 -6
- data/spec/models/sweden_bank_id_provider_output_spec.rb +108 -0
- data/spec/models/{contract_field_spec.rb → uganda_nid_match2_input_spec.rb} +9 -9
- data/spec/models/verification_profile_response_spec.rb +6 -0
- data/spec/models/yoti_document_details_spec.rb +60 -0
- data/spec/models/yoti_provider_output_spec.rb +102 -0
- data/spec/models/yoti_structured_postal_address_spec.rb +150 -0
- data/spec/models/zimbabwe_nid_lookup2_input_spec.rb +36 -0
- metadata +254 -122
- data/docs/AttachmentAccessKeys.md +0 -28
- data/docs/AttachmentsApi.md +0 -79
- data/docs/BangladeshNidInput.md +0 -26
- data/docs/ContractField.md +0 -22
- data/docs/ContractIdentifierField.md +0 -22
- data/docs/CreateMdlExchangeRequest.md +0 -32
- data/docs/CreateMdlExchangeResponse.md +0 -22
- data/docs/DocumentScanAttachments.md +0 -18
- data/docs/FinalizeMdlExchangeRequest.md +0 -24
- data/docs/FinalizeMdlExchangeResponse.md +0 -24
- data/docs/Identifier.md +0 -22
- data/docs/ListProviderContractsResponse.md +0 -18
- data/docs/MdlApi.md +0 -151
- data/docs/MdlCertificateData.md +0 -26
- data/docs/MdlIdentityData.md +0 -22
- data/docs/NetworkApi.md +0 -223
- data/docs/ProviderAttachments.md +0 -18
- data/docs/ProviderInfo.md +0 -30
- data/docs/RecommendResponse.md +0 -22
- data/lib/trinsic_api/api/attachments_api.rb +0 -86
- data/lib/trinsic_api/api/mdl_api.rb +0 -150
- data/lib/trinsic_api/api/network_api.rb +0 -215
- data/lib/trinsic_api/models/attachment_access_keys.rb +0 -287
- data/lib/trinsic_api/models/create_mdl_exchange_request.rb +0 -404
- data/spec/api/attachments_api_spec.rb +0 -47
- data/spec/api/mdl_api_spec.rb +0 -59
- data/spec/api/network_api_spec.rb +0 -72
- data/spec/models/recommend_response_spec.rb +0 -48
|
@@ -14,25 +14,39 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
+
# Match results for the data being matched against. This applies to Providers which operate based on matching data / biometrics against a government database, returning match scores or results as opposed to the data itself.
|
|
17
18
|
class MatchData
|
|
19
|
+
# Whether the provided National ID Number matched the information on file for the individual
|
|
18
20
|
attr_accessor :national_id_number
|
|
19
21
|
|
|
22
|
+
# The match score for the full name of the individual. Higher values indicate a closer match.
|
|
20
23
|
attr_accessor :full_name
|
|
21
24
|
|
|
25
|
+
# The match score for the given (first) name of the individual. Higher values indicate a closer match.
|
|
22
26
|
attr_accessor :given_name
|
|
23
27
|
|
|
28
|
+
# The match score for the middle name(s) of the individual. Higher values indicate a closer match.
|
|
24
29
|
attr_accessor :middle_name
|
|
25
30
|
|
|
31
|
+
# The match score for the family (last) name of the individual. Higher values indicate a closer match.
|
|
26
32
|
attr_accessor :family_name
|
|
27
33
|
|
|
34
|
+
# Whether the provided sex of the individual matched the information on file for the individual
|
|
28
35
|
attr_accessor :sex
|
|
29
36
|
|
|
37
|
+
# Whether the provided date of birth matched the information on file for the individual
|
|
30
38
|
attr_accessor :date_of_birth
|
|
31
39
|
|
|
40
|
+
# Whether the provided phone number matched the information on file for the individual
|
|
41
|
+
attr_accessor :phone_number
|
|
42
|
+
|
|
43
|
+
# The match score for the face match between the provided selfie image and the biometrics on file for the individual. Higher values indicate greater match confidence.
|
|
32
44
|
attr_accessor :face_match
|
|
33
45
|
|
|
46
|
+
# The confidence score for the liveness check performed against the selfie image of the individual. Higher values indicate lower suspicion.
|
|
34
47
|
attr_accessor :liveness
|
|
35
48
|
|
|
49
|
+
# The confidence score for the image manipulation check performed against the selfie image of the individual. Higher values indicate lower suspicion of image manipulation.
|
|
36
50
|
attr_accessor :image_authenticity
|
|
37
51
|
|
|
38
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -45,6 +59,7 @@ module TrinsicApi
|
|
|
45
59
|
:'family_name' => :'familyName',
|
|
46
60
|
:'sex' => :'sex',
|
|
47
61
|
:'date_of_birth' => :'dateOfBirth',
|
|
62
|
+
:'phone_number' => :'phoneNumber',
|
|
48
63
|
:'face_match' => :'faceMatch',
|
|
49
64
|
:'liveness' => :'liveness',
|
|
50
65
|
:'image_authenticity' => :'imageAuthenticity'
|
|
@@ -71,6 +86,7 @@ module TrinsicApi
|
|
|
71
86
|
:'family_name' => :'Match',
|
|
72
87
|
:'sex' => :'Match',
|
|
73
88
|
:'date_of_birth' => :'Match',
|
|
89
|
+
:'phone_number' => :'Match',
|
|
74
90
|
:'face_match' => :'Match',
|
|
75
91
|
:'liveness' => :'Match',
|
|
76
92
|
:'image_authenticity' => :'Match'
|
|
@@ -87,6 +103,7 @@ module TrinsicApi
|
|
|
87
103
|
:'family_name',
|
|
88
104
|
:'sex',
|
|
89
105
|
:'date_of_birth',
|
|
106
|
+
:'phone_number',
|
|
90
107
|
:'face_match',
|
|
91
108
|
:'liveness',
|
|
92
109
|
:'image_authenticity'
|
|
@@ -137,6 +154,10 @@ module TrinsicApi
|
|
|
137
154
|
self.date_of_birth = attributes[:'date_of_birth']
|
|
138
155
|
end
|
|
139
156
|
|
|
157
|
+
if attributes.key?(:'phone_number')
|
|
158
|
+
self.phone_number = attributes[:'phone_number']
|
|
159
|
+
end
|
|
160
|
+
|
|
140
161
|
if attributes.key?(:'face_match')
|
|
141
162
|
self.face_match = attributes[:'face_match']
|
|
142
163
|
end
|
|
@@ -177,6 +198,7 @@ module TrinsicApi
|
|
|
177
198
|
family_name == o.family_name &&
|
|
178
199
|
sex == o.sex &&
|
|
179
200
|
date_of_birth == o.date_of_birth &&
|
|
201
|
+
phone_number == o.phone_number &&
|
|
180
202
|
face_match == o.face_match &&
|
|
181
203
|
liveness == o.liveness &&
|
|
182
204
|
image_authenticity == o.image_authenticity
|
|
@@ -191,7 +213,7 @@ module TrinsicApi
|
|
|
191
213
|
# Calculates hash code according to all attributes.
|
|
192
214
|
# @return [Integer] Hash code
|
|
193
215
|
def hash
|
|
194
|
-
[national_id_number, full_name, given_name, middle_name, family_name, sex, date_of_birth, face_match, liveness, image_authenticity].hash
|
|
216
|
+
[national_id_number, full_name, given_name, middle_name, family_name, sex, date_of_birth, phone_number, face_match, liveness, image_authenticity].hash
|
|
195
217
|
end
|
|
196
218
|
|
|
197
219
|
# Builds the object from hash
|
|
@@ -14,13 +14,16 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class
|
|
18
|
-
# Information about the IACA Root Certificate which signed the
|
|
17
|
+
class MdlOutput
|
|
18
|
+
# Information about the IACA Root Certificate which signed (directly or indirectly) the Document Signer Certificate for this mDL.
|
|
19
19
|
attr_accessor :iaca_root_certificate
|
|
20
20
|
|
|
21
21
|
# Information about the Document Signer Certificate which signed the mDL presented by the user.
|
|
22
22
|
attr_accessor :document_signer_certificate
|
|
23
23
|
|
|
24
|
+
# The document type of the mDL presented by the user. Common values: - \"org.iso.18013.5.1.mDL\" for ISO 18013-5 mDLs - \"com.google.wallet.idcard.1\" for Google Wallet ID Cards
|
|
25
|
+
attr_accessor :document_type
|
|
26
|
+
|
|
24
27
|
# The namespaces, and fields within those namespaces, which were present in the processed mDL.
|
|
25
28
|
attr_accessor :name_spaces
|
|
26
29
|
|
|
@@ -29,6 +32,7 @@ module TrinsicApi
|
|
|
29
32
|
{
|
|
30
33
|
:'iaca_root_certificate' => :'iacaRootCertificate',
|
|
31
34
|
:'document_signer_certificate' => :'documentSignerCertificate',
|
|
35
|
+
:'document_type' => :'documentType',
|
|
32
36
|
:'name_spaces' => :'nameSpaces'
|
|
33
37
|
}
|
|
34
38
|
end
|
|
@@ -46,9 +50,10 @@ module TrinsicApi
|
|
|
46
50
|
# Attribute type mapping.
|
|
47
51
|
def self.openapi_types
|
|
48
52
|
{
|
|
49
|
-
:'iaca_root_certificate' => :'
|
|
50
|
-
:'document_signer_certificate' => :'
|
|
51
|
-
:'
|
|
53
|
+
:'iaca_root_certificate' => :'MdlOutputCertificateData',
|
|
54
|
+
:'document_signer_certificate' => :'MdlOutputCertificateData',
|
|
55
|
+
:'document_type' => :'String',
|
|
56
|
+
:'name_spaces' => :'Hash<String, Hash<String, MdlOutputFieldData>>'
|
|
52
57
|
}
|
|
53
58
|
end
|
|
54
59
|
|
|
@@ -62,14 +67,14 @@ module TrinsicApi
|
|
|
62
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
68
|
def initialize(attributes = {})
|
|
64
69
|
if (!attributes.is_a?(Hash))
|
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::MdlOutput` initialize method"
|
|
66
71
|
end
|
|
67
72
|
|
|
68
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
74
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
76
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::MdlOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
78
|
end
|
|
74
79
|
h[k.to_sym] = v
|
|
75
80
|
}
|
|
@@ -86,6 +91,12 @@ module TrinsicApi
|
|
|
86
91
|
self.document_signer_certificate = nil
|
|
87
92
|
end
|
|
88
93
|
|
|
94
|
+
if attributes.key?(:'document_type')
|
|
95
|
+
self.document_type = attributes[:'document_type']
|
|
96
|
+
else
|
|
97
|
+
self.document_type = nil
|
|
98
|
+
end
|
|
99
|
+
|
|
89
100
|
if attributes.key?(:'name_spaces')
|
|
90
101
|
if (value = attributes[:'name_spaces']).is_a?(Hash)
|
|
91
102
|
self.name_spaces = value
|
|
@@ -108,6 +119,10 @@ module TrinsicApi
|
|
|
108
119
|
invalid_properties.push('invalid value for "document_signer_certificate", document_signer_certificate cannot be nil.')
|
|
109
120
|
end
|
|
110
121
|
|
|
122
|
+
if @document_type.nil?
|
|
123
|
+
invalid_properties.push('invalid value for "document_type", document_type cannot be nil.')
|
|
124
|
+
end
|
|
125
|
+
|
|
111
126
|
if @name_spaces.nil?
|
|
112
127
|
invalid_properties.push('invalid value for "name_spaces", name_spaces cannot be nil.')
|
|
113
128
|
end
|
|
@@ -121,6 +136,7 @@ module TrinsicApi
|
|
|
121
136
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
122
137
|
return false if @iaca_root_certificate.nil?
|
|
123
138
|
return false if @document_signer_certificate.nil?
|
|
139
|
+
return false if @document_type.nil?
|
|
124
140
|
return false if @name_spaces.nil?
|
|
125
141
|
true
|
|
126
142
|
end
|
|
@@ -145,6 +161,16 @@ module TrinsicApi
|
|
|
145
161
|
@document_signer_certificate = document_signer_certificate
|
|
146
162
|
end
|
|
147
163
|
|
|
164
|
+
# Custom attribute writer method with validation
|
|
165
|
+
# @param [Object] document_type Value to be assigned
|
|
166
|
+
def document_type=(document_type)
|
|
167
|
+
if document_type.nil?
|
|
168
|
+
fail ArgumentError, 'document_type cannot be nil'
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
@document_type = document_type
|
|
172
|
+
end
|
|
173
|
+
|
|
148
174
|
# Custom attribute writer method with validation
|
|
149
175
|
# @param [Object] name_spaces Value to be assigned
|
|
150
176
|
def name_spaces=(name_spaces)
|
|
@@ -162,6 +188,7 @@ module TrinsicApi
|
|
|
162
188
|
self.class == o.class &&
|
|
163
189
|
iaca_root_certificate == o.iaca_root_certificate &&
|
|
164
190
|
document_signer_certificate == o.document_signer_certificate &&
|
|
191
|
+
document_type == o.document_type &&
|
|
165
192
|
name_spaces == o.name_spaces
|
|
166
193
|
end
|
|
167
194
|
|
|
@@ -174,7 +201,7 @@ module TrinsicApi
|
|
|
174
201
|
# Calculates hash code according to all attributes.
|
|
175
202
|
# @return [Integer] Hash code
|
|
176
203
|
def hash
|
|
177
|
-
[iaca_root_certificate, document_signer_certificate, name_spaces].hash
|
|
204
|
+
[iaca_root_certificate, document_signer_certificate, document_type, name_spaces].hash
|
|
178
205
|
end
|
|
179
206
|
|
|
180
207
|
# Builds the object from hash
|
|
@@ -14,14 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class
|
|
17
|
+
class MdlOutputCertificateData
|
|
18
18
|
# The serial number of the certificate
|
|
19
19
|
attr_accessor :serial_number
|
|
20
20
|
|
|
21
21
|
# The common name (CN) of the certificate
|
|
22
22
|
attr_accessor :common_name
|
|
23
23
|
|
|
24
|
-
# The
|
|
24
|
+
# The stateOrProvinceName field from the signing certificate. Per the ISO 18013-5 (mDL) spec, this is an ISO 3166-2:2020 country subdivision code (e.g., \"US-CA\" for California, USA). May be an empty string for certificates which are not state-specific (e.g., Google Wallet's ID Pass certificates).
|
|
25
25
|
attr_accessor :state_or_province_name
|
|
26
26
|
|
|
27
27
|
# The date before which this certificate is not valid.
|
|
@@ -72,14 +72,14 @@ module TrinsicApi
|
|
|
72
72
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
73
73
|
def initialize(attributes = {})
|
|
74
74
|
if (!attributes.is_a?(Hash))
|
|
75
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::MdlOutputCertificateData` initialize method"
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
79
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
80
80
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
81
81
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
82
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::MdlOutputCertificateData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
83
83
|
end
|
|
84
84
|
h[k.to_sym] = v
|
|
85
85
|
}
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class
|
|
17
|
+
class MdlOutputFieldData
|
|
18
18
|
# The type of data contained in `value`.
|
|
19
19
|
attr_accessor :type
|
|
20
20
|
|
|
@@ -64,7 +64,7 @@ module TrinsicApi
|
|
|
64
64
|
# Attribute type mapping.
|
|
65
65
|
def self.openapi_types
|
|
66
66
|
{
|
|
67
|
-
:'type' => :'
|
|
67
|
+
:'type' => :'MdlOutputFieldDataType',
|
|
68
68
|
:'value' => :'String'
|
|
69
69
|
}
|
|
70
70
|
end
|
|
@@ -79,14 +79,14 @@ module TrinsicApi
|
|
|
79
79
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
80
80
|
def initialize(attributes = {})
|
|
81
81
|
if (!attributes.is_a?(Hash))
|
|
82
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::MdlOutputFieldData` initialize method"
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
86
86
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
87
87
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
88
88
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
89
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::MdlOutputFieldData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
90
90
|
end
|
|
91
91
|
h[k.to_sym] = v
|
|
92
92
|
}
|
|
@@ -14,15 +14,16 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class
|
|
17
|
+
class MdlOutputFieldDataType
|
|
18
18
|
STRING = "String".freeze
|
|
19
19
|
BOOLEAN = "Boolean".freeze
|
|
20
20
|
NUMBER = "Number".freeze
|
|
21
21
|
BASE64_URL = "Base64Url".freeze
|
|
22
22
|
ENCODED_CBOR = "EncodedCbor".freeze
|
|
23
|
+
INTENTIONALLY_OMITTED = "IntentionallyOmitted".freeze
|
|
23
24
|
|
|
24
25
|
def self.all_vars
|
|
25
|
-
@all_vars ||= [STRING, BOOLEAN, NUMBER, BASE64_URL, ENCODED_CBOR].freeze
|
|
26
|
+
@all_vars ||= [STRING, BOOLEAN, NUMBER, BASE64_URL, ENCODED_CBOR, INTENTIONALLY_OMITTED].freeze
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
# Builds the enum from string
|
|
@@ -36,8 +37,8 @@ module TrinsicApi
|
|
|
36
37
|
# @param [String] The enum value in the form of the string
|
|
37
38
|
# @return [String] The enum value
|
|
38
39
|
def build_from_hash(value)
|
|
39
|
-
return value if
|
|
40
|
-
raise "Invalid ENUM value #{value} for class #
|
|
40
|
+
return value if MdlOutputFieldDataType.all_vars.include?(value)
|
|
41
|
+
raise "Invalid ENUM value #{value} for class #MdlOutputFieldDataType"
|
|
41
42
|
end
|
|
42
43
|
end
|
|
43
44
|
end
|
|
@@ -14,6 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
+
# Exposed properties for the `mexico-curp-lookup` Provider which do not directly map to the normalized IdentityData model.
|
|
17
18
|
class MexicoCurpProviderOutput
|
|
18
19
|
# Curp status for the subject. Possible values: - AN: Alta Normal (Normal registration) - Active - AH: Alta con Homonimia (Registration with homonymy) - Active - RCC: Registro de cambio afectando a CURP (Change affecting CURP) - Active - RCN: Registro de cambio no afectando a CURP (Change not affecting CURP) - Active - BAP: Baja por documento apócrifo (Low due to apocryphal document) - Inactive - BSU: Baja sin uso (Low curp without use) - Inactive - BD: Baja por defunción (Low curp due to death) - Inactive - BDM: Baja administrativa (Low, due to administrative process) - Inactive - BDP: Baja por adopción (Low, due to adoption) - Inactive - BJD: Baja Judicial (Low for judicial reasons) - Inactive
|
|
19
20
|
attr_accessor :curp_status
|
|
@@ -0,0 +1,333 @@
|
|
|
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 `denmark-mitid` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
+
class MitIdProviderOutput
|
|
19
|
+
# The full name of the individual.
|
|
20
|
+
attr_accessor :full_name
|
|
21
|
+
|
|
22
|
+
# The date of birth of the individual.
|
|
23
|
+
attr_accessor :date_of_birth
|
|
24
|
+
|
|
25
|
+
# A stable unique identifier representing the user in MitID's system. It is recommended to use this identifier instead of using the civil registration number (CPR number) directly.
|
|
26
|
+
attr_accessor :unique_identifier
|
|
27
|
+
|
|
28
|
+
# The authentication assurance level (AAL) for the verification. The National Institute of Standards and Technology (NIST) measures the confidence in a digital identity's authentication strength set by a set of requirements for different levels. More information can be found here: https://pages.nist.gov/800-63-4/sp800-63b/aal/#AAL_SEC4 Possible values: - https://data.gov.dk/concept/core/nsis/Low - (Level 1) Provides basic confidence that the authenticator is either single factor or multifactor authentication. - https://data.gov.dk/concept/core/nsis/Substantial - (Level 2) Provides high confidence that the authenticator uses two distinct authentication factors that use secure authentication protocols. - https://data.gov.dk/concept/core/nsis/High - (Level 3) Provides very high confidence that the authenticator uses an non-exportable private key and another authentication factor. **Note**: These urls are not valid anymore, but they still contain the level of assurance name.
|
|
29
|
+
attr_accessor :authentication_assurance_level
|
|
30
|
+
|
|
31
|
+
# The identity assurance level (IAL) for the verification. The National Institute of Standards and Technology (NIST) measures the confidence of the digital identity's verification set by a set of requirements for different levels. More information can be found here: https://pages.nist.gov/800-63-4/sp800-63b/aal/#AAL_SEC4 Possible values: - https://data.gov.dk/concept/core/nsis/Low - (Level 1) The user has self asserted their identity and is neither verified nor validated. - https://data.gov.dk/concept/core/nsis/Substantial - (Level 2) The user has performed either a remote or in-person identity proofing. - https://data.gov.dk/concept/core/nsis/High - (Level 3) The user has performed an in person identity proofing with an authorized representative. **Note**: These urls are not valid anymore, but they still contain the level of assurance name.
|
|
32
|
+
attr_accessor :identity_authentication_level
|
|
33
|
+
|
|
34
|
+
# The level of assurance (LOA) for the verification. This is an older retired model that is a combination of Identity Assurance Level and Authentication Assurance Level. The National Institute of Standards and Technology (NIST) measures the confidence of the digital identity's verification and authentication strength by a set of requirements for different levels. Possible values: - https://data.gov.dk/concept/core/nsis/Low - (Level 1) The user has self asserted their identity and multifactor authentication is not required. - https://data.gov.dk/concept/core/nsis/Substantial - (Level 3) The user has performed either a remote or in-person identity proofing and multifactor authentication is required. - https://data.gov.dk/concept/core/nsis/High - (Level 4) The user has performed an in person identity proofing with an authorized representative and has strong cryptographic authentication requirements. **Note**: These urls are not valid anymore, but they still contain the level of assurance name. MitID only returns three of the four potential levels and does not include level 2. More information can be found here: - https://pages.nist.gov/800-63-3/sp800-63-3.html - https://pages.nist.gov/800-63-3/
|
|
35
|
+
attr_accessor :level_of_assurance
|
|
36
|
+
|
|
37
|
+
# The source of the identification for the verification Possible values: - private - The verification is from a private individual. - professional - The verification is a user in behalf of a organization.
|
|
38
|
+
attr_accessor :identification_source
|
|
39
|
+
|
|
40
|
+
# The civil registration number (CPR number) of the individual for the verification. The CPR number is a 10-digit number in the format DDMMYYY-XXXX, where: - DDMMYYY represents the individual's date of birth (day, month, year). - XXXX is a unique identifier. If XXXX is even, the individual is female. If XXXX is odd, the individual is male. More information can be found here: https://international.kk.dk/live/cpr-registration-and-documents/cpr-number
|
|
41
|
+
attr_accessor :civil_registration_number
|
|
42
|
+
|
|
43
|
+
# The name of the organization for the verification
|
|
44
|
+
attr_accessor :organization_name
|
|
45
|
+
|
|
46
|
+
# The organization number (CVR number). This is an 8-digit unique identifier for the organization. This will be prefixed with \"DK\" for VAT numbers.
|
|
47
|
+
attr_accessor :organization_number
|
|
48
|
+
|
|
49
|
+
# The organization number (CVR number) of the organization the user is authorized to represent. This is only returned if the requested scope is for an organization verification and the user provides a private source in behalf of a company.
|
|
50
|
+
attr_accessor :authorized_representative_number
|
|
51
|
+
|
|
52
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
|
+
def self.attribute_map
|
|
54
|
+
{
|
|
55
|
+
:'full_name' => :'fullName',
|
|
56
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
57
|
+
:'unique_identifier' => :'uniqueIdentifier',
|
|
58
|
+
:'authentication_assurance_level' => :'authenticationAssuranceLevel',
|
|
59
|
+
:'identity_authentication_level' => :'identityAuthenticationLevel',
|
|
60
|
+
:'level_of_assurance' => :'levelOfAssurance',
|
|
61
|
+
:'identification_source' => :'identificationSource',
|
|
62
|
+
:'civil_registration_number' => :'civilRegistrationNumber',
|
|
63
|
+
:'organization_name' => :'organizationName',
|
|
64
|
+
:'organization_number' => :'organizationNumber',
|
|
65
|
+
:'authorized_representative_number' => :'authorizedRepresentativeNumber'
|
|
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
|
+
:'full_name' => :'String',
|
|
83
|
+
:'date_of_birth' => :'Date',
|
|
84
|
+
:'unique_identifier' => :'String',
|
|
85
|
+
:'authentication_assurance_level' => :'String',
|
|
86
|
+
:'identity_authentication_level' => :'String',
|
|
87
|
+
:'level_of_assurance' => :'String',
|
|
88
|
+
:'identification_source' => :'String',
|
|
89
|
+
:'civil_registration_number' => :'String',
|
|
90
|
+
:'organization_name' => :'String',
|
|
91
|
+
:'organization_number' => :'String',
|
|
92
|
+
:'authorized_representative_number' => :'String'
|
|
93
|
+
}
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# List of attributes with nullable: true
|
|
97
|
+
def self.openapi_nullable
|
|
98
|
+
Set.new([
|
|
99
|
+
:'full_name',
|
|
100
|
+
:'date_of_birth',
|
|
101
|
+
:'unique_identifier',
|
|
102
|
+
:'authentication_assurance_level',
|
|
103
|
+
:'identity_authentication_level',
|
|
104
|
+
:'level_of_assurance',
|
|
105
|
+
:'identification_source',
|
|
106
|
+
:'civil_registration_number',
|
|
107
|
+
:'organization_name',
|
|
108
|
+
:'organization_number',
|
|
109
|
+
:'authorized_representative_number'
|
|
110
|
+
])
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Initializes the object
|
|
114
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
115
|
+
def initialize(attributes = {})
|
|
116
|
+
if (!attributes.is_a?(Hash))
|
|
117
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::MitIdProviderOutput` initialize method"
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
121
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
122
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
123
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
124
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::MitIdProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
125
|
+
end
|
|
126
|
+
h[k.to_sym] = v
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'full_name')
|
|
130
|
+
self.full_name = attributes[:'full_name']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'date_of_birth')
|
|
134
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'unique_identifier')
|
|
138
|
+
self.unique_identifier = attributes[:'unique_identifier']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'authentication_assurance_level')
|
|
142
|
+
self.authentication_assurance_level = attributes[:'authentication_assurance_level']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'identity_authentication_level')
|
|
146
|
+
self.identity_authentication_level = attributes[:'identity_authentication_level']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'level_of_assurance')
|
|
150
|
+
self.level_of_assurance = attributes[:'level_of_assurance']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'identification_source')
|
|
154
|
+
self.identification_source = attributes[:'identification_source']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'civil_registration_number')
|
|
158
|
+
self.civil_registration_number = attributes[:'civil_registration_number']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'organization_name')
|
|
162
|
+
self.organization_name = attributes[:'organization_name']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'organization_number')
|
|
166
|
+
self.organization_number = attributes[:'organization_number']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.key?(:'authorized_representative_number')
|
|
170
|
+
self.authorized_representative_number = attributes[:'authorized_representative_number']
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
175
|
+
# @return Array for valid properties with the reasons
|
|
176
|
+
def list_invalid_properties
|
|
177
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
178
|
+
invalid_properties = Array.new
|
|
179
|
+
invalid_properties
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Check to see if the all the properties in the model are valid
|
|
183
|
+
# @return true if the model is valid
|
|
184
|
+
def valid?
|
|
185
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
186
|
+
true
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Checks equality by comparing each attribute.
|
|
190
|
+
# @param [Object] Object to be compared
|
|
191
|
+
def ==(o)
|
|
192
|
+
return true if self.equal?(o)
|
|
193
|
+
self.class == o.class &&
|
|
194
|
+
full_name == o.full_name &&
|
|
195
|
+
date_of_birth == o.date_of_birth &&
|
|
196
|
+
unique_identifier == o.unique_identifier &&
|
|
197
|
+
authentication_assurance_level == o.authentication_assurance_level &&
|
|
198
|
+
identity_authentication_level == o.identity_authentication_level &&
|
|
199
|
+
level_of_assurance == o.level_of_assurance &&
|
|
200
|
+
identification_source == o.identification_source &&
|
|
201
|
+
civil_registration_number == o.civil_registration_number &&
|
|
202
|
+
organization_name == o.organization_name &&
|
|
203
|
+
organization_number == o.organization_number &&
|
|
204
|
+
authorized_representative_number == o.authorized_representative_number
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# @see the `==` method
|
|
208
|
+
# @param [Object] Object to be compared
|
|
209
|
+
def eql?(o)
|
|
210
|
+
self == o
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Calculates hash code according to all attributes.
|
|
214
|
+
# @return [Integer] Hash code
|
|
215
|
+
def hash
|
|
216
|
+
[full_name, date_of_birth, unique_identifier, authentication_assurance_level, identity_authentication_level, level_of_assurance, identification_source, civil_registration_number, organization_name, organization_number, authorized_representative_number].hash
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Builds the object from hash
|
|
220
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
221
|
+
# @return [Object] Returns the model itself
|
|
222
|
+
def self.build_from_hash(attributes)
|
|
223
|
+
return nil unless attributes.is_a?(Hash)
|
|
224
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
225
|
+
transformed_hash = {}
|
|
226
|
+
openapi_types.each_pair do |key, type|
|
|
227
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
228
|
+
transformed_hash["#{key}"] = nil
|
|
229
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
230
|
+
# check to ensure the input is an array given that the attribute
|
|
231
|
+
# is documented as an array but the input is not
|
|
232
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
233
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
234
|
+
end
|
|
235
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
236
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
new(transformed_hash)
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Deserializes the data based on type
|
|
243
|
+
# @param string type Data type
|
|
244
|
+
# @param string value Value to be deserialized
|
|
245
|
+
# @return [Object] Deserialized data
|
|
246
|
+
def self._deserialize(type, value)
|
|
247
|
+
case type.to_sym
|
|
248
|
+
when :Time
|
|
249
|
+
Time.parse(value)
|
|
250
|
+
when :Date
|
|
251
|
+
Date.parse(value)
|
|
252
|
+
when :String
|
|
253
|
+
value.to_s
|
|
254
|
+
when :Integer
|
|
255
|
+
value.to_i
|
|
256
|
+
when :Float
|
|
257
|
+
value.to_f
|
|
258
|
+
when :Boolean
|
|
259
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
260
|
+
true
|
|
261
|
+
else
|
|
262
|
+
false
|
|
263
|
+
end
|
|
264
|
+
when :Object
|
|
265
|
+
# generic object (usually a Hash), return directly
|
|
266
|
+
value
|
|
267
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
268
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
269
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
270
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
271
|
+
k_type = Regexp.last_match[:k_type]
|
|
272
|
+
v_type = Regexp.last_match[:v_type]
|
|
273
|
+
{}.tap do |hash|
|
|
274
|
+
value.each do |k, v|
|
|
275
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
else # model
|
|
279
|
+
# models (e.g. Pet) or oneOf
|
|
280
|
+
klass = TrinsicApi.const_get(type)
|
|
281
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Returns the string representation of the object
|
|
286
|
+
# @return [String] String presentation of the object
|
|
287
|
+
def to_s
|
|
288
|
+
to_hash.to_s
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
292
|
+
# @return [Hash] Returns the object in the form of hash
|
|
293
|
+
def to_body
|
|
294
|
+
to_hash
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Returns the object in the form of hash
|
|
298
|
+
# @return [Hash] Returns the object in the form of hash
|
|
299
|
+
def to_hash
|
|
300
|
+
hash = {}
|
|
301
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
302
|
+
value = self.send(attr)
|
|
303
|
+
if value.nil?
|
|
304
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
305
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
hash[param] = _to_hash(value)
|
|
309
|
+
end
|
|
310
|
+
hash
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# Outputs non-array value in the form of hash
|
|
314
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
315
|
+
# @param [Object] value Any valid value
|
|
316
|
+
# @return [Hash] Returns the value in the form of hash
|
|
317
|
+
def _to_hash(value)
|
|
318
|
+
if value.is_a?(Array)
|
|
319
|
+
value.compact.map { |v| _to_hash(v) }
|
|
320
|
+
elsif value.is_a?(Hash)
|
|
321
|
+
{}.tap do |hash|
|
|
322
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
323
|
+
end
|
|
324
|
+
elsif value.respond_to? :to_hash
|
|
325
|
+
value.to_hash
|
|
326
|
+
else
|
|
327
|
+
value
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
end
|