trinsic_api 3.0.1 → 3.1.0.pre.preview1
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/README.md +0 -2
- data/docs/AadhaarAddress.md +40 -0
- data/docs/AadhaarClaims.md +24 -0
- data/docs/AadhaarLanguage.md +20 -0
- data/docs/AadhaarLocalizedClaims.md +22 -0
- data/docs/AppleWalletInput.md +3 -1
- data/docs/AudkenniProviderOutput.md +24 -0
- data/docs/BoliviaCiLookupInput.md +20 -0
- data/docs/BoliviaCiProviderOutput.md +26 -0
- data/docs/BrazilCpfCheckInput.md +5 -1
- data/docs/ChinaResidentIdMatchInput.md +24 -0
- data/docs/ChinaResidentIdMatchOutput.md +22 -0
- data/docs/ColombiaCcLookupInput.md +20 -0
- data/docs/ColombiaCcProviderOutput.md +36 -0
- data/docs/ColombiaExpeditionPlace.md +20 -0
- data/docs/ConnectIdAddress.md +26 -0
- data/docs/ConnectIdAgeVerification.md +20 -0
- data/docs/ConnectIdProviderOutput.md +36 -0
- data/docs/CoteDIvoireNidLookup2ProviderOutput.md +34 -0
- data/docs/CreateDirectProviderSessionRequest.md +2 -0
- data/docs/CreateHostedProviderSessionRequest.md +2 -0
- data/docs/CzechMojeIdAddressOutput.md +28 -0
- data/docs/CzechMojeIdProviderOutput.md +66 -0
- data/docs/CzechiaMojeIdProviderOutput.md +1 -1
- data/docs/DigilockerAadhaarProviderOutput.md +30 -0
- data/docs/ElSalvadorDuiLookupInput.md +20 -0
- data/docs/ElSalvadorDuiProviderOutput.md +22 -0
- data/docs/FaydaProviderAddress.md +22 -0
- data/docs/FaydaProviderOutput.md +20 -2
- data/docs/FinnishTrustNetworkProviderOutput.md +38 -0
- data/docs/FranceIdentiteInput.md +18 -0
- data/docs/FranceIdentiteProviderOutput.md +18 -0
- data/docs/FrejaIndirectProviderOutput.md +24 -0
- data/docs/FrejaProviderOutput.md +36 -8
- data/docs/FrenchNumeriqueGivenName.md +1 -1
- data/docs/FrenchNumeriqueProviderOutput.md +7 -7
- data/docs/GetProviderResponse.md +18 -0
- data/docs/GoogleWalletInput.md +3 -1
- data/docs/GuatemalaCuiLookupInput.md +18 -0
- data/docs/GuatemalaCuiProviderOutput.md +36 -0
- data/docs/IndiaPanLookupInput.md +18 -0
- data/docs/IndiaPanLookupProviderOutput.md +32 -0
- data/docs/IndiaPanStructuredNumber.md +28 -0
- data/docs/KenyaNidBiometric2Input.md +1 -1
- data/docs/KenyaNidLookup2Input.md +1 -1
- data/docs/KenyaNidLookup2ProviderOutput.md +1 -1
- data/docs/KenyaNidMatch2Input.md +1 -1
- data/docs/KoreaTelcoMatchInput.md +28 -0
- data/docs/KoreaTelcoMatchProviderOutput.md +22 -0
- data/docs/KoreaTelcoMatchSex.md +15 -0
- data/docs/LloydsSmartIdProviderOutput.md +2 -2
- data/docs/MdlOutput.md +2 -2
- data/docs/MitIdProviderOutput.md +5 -5
- data/docs/MobileCarrier.md +15 -0
- data/docs/MobileOperatingSystem.md +15 -0
- data/docs/NetherlandsIdinAddress.md +26 -0
- data/docs/NetherlandsIdinProviderOutput.md +36 -0
- data/docs/NigeriaNinLookup2ProviderOutput.md +40 -0
- data/docs/NorwegianBankIdProviderOutput.md +32 -0
- data/docs/OneIdProviderAddress.md +26 -0
- data/docs/OneIdProviderOutput.md +28 -0
- data/docs/OutputFrejaAddress.md +24 -0
- data/docs/OutputFrejaDocument.md +24 -0
- data/docs/PanamaCedulaLookupInput.md +20 -0
- data/docs/PanamaCedulaProviderOutput.md +32 -0
- data/docs/PeruDniProviderOutput.md +1 -1
- data/docs/PhilippinesDigitalNidProviderOutput.md +21 -1
- data/docs/PhilippinesPhysicalNidProviderOutput.md +17 -1
- data/docs/PolandMobywatelMatchInput.md +32 -0
- data/docs/PolandMobywatelMatchProviderOutput.md +56 -0
- data/docs/PostOfficeEasyIdProviderOutput.md +2 -2
- data/docs/Provider.md +2 -0
- data/docs/ProviderInput.md +26 -0
- data/docs/ProviderOutput.md +54 -2
- data/docs/ProviderSupportedLanguage.md +20 -0
- data/docs/ProvidersApi.md +70 -0
- data/docs/Raw18013DocumentRequest.md +20 -0
- data/docs/Raw18013RequestInput.md +18 -0
- data/docs/RecommendProviderInformation.md +3 -3
- data/docs/RecommendProvidersResponse.md +3 -1
- data/docs/SamsungWalletInput.md +18 -0
- data/docs/SessionsApi.md +0 -72
- data/docs/SignzyIndiaAadhaarFetchProviderOutput.md +40 -0
- data/docs/SingpassLoginProviderOutput.md +30 -0
- data/docs/SingpassMyInfoDescription.md +20 -0
- data/docs/SingpassMyInfoProviderOutput.md +20 -0
- data/docs/SingpassMyInfoRegisteredAddressOutput.md +36 -0
- data/docs/SingpassPersonalCatalog.md +64 -0
- data/docs/SingpassPhoneNumber.md +22 -0
- data/docs/SmartIdProviderOutput.md +1 -1
- data/docs/SwedenBankIdProviderOutput.md +3 -3
- data/docs/UkEvisaLookupInput.md +20 -0
- data/docs/UnitedKingdomEvisaProviderOutput.md +38 -0
- data/docs/UsaCaliforniaDmvInput.md +18 -0
- data/docs/VerificationProfileResponse.md +4 -0
- data/docs/VerificationProfilesApi.md +76 -0
- data/docs/YotiDeeplinkProviderOutput.md +40 -0
- data/docs/YotiProviderOutput.md +2 -2
- data/lib/trinsic_api/api/providers_api.rb +64 -1
- data/lib/trinsic_api/api/redirect_uris_api.rb +1 -1
- data/lib/trinsic_api/api/sessions_api.rb +1 -65
- data/lib/trinsic_api/api/verification_profiles_api.rb +80 -4
- data/lib/trinsic_api/api_client.rb +7 -3
- data/lib/trinsic_api/api_error.rb +1 -1
- data/lib/trinsic_api/api_model_base.rb +88 -0
- data/lib/trinsic_api/configuration.rb +1 -1
- data/lib/trinsic_api/models/aadhaar_address.rb +271 -0
- data/lib/trinsic_api/models/aadhaar_claims.rb +182 -0
- data/lib/trinsic_api/models/aadhaar_input.rb +2 -75
- data/lib/trinsic_api/models/aadhaar_language.rb +177 -0
- data/lib/trinsic_api/models/aadhaar_localized_claims.rb +171 -0
- data/lib/trinsic_api/models/add_redirect_uri_request.rb +4 -77
- data/lib/trinsic_api/models/add_redirect_uri_response.rb +2 -75
- data/lib/trinsic_api/models/address.rb +2 -75
- data/lib/trinsic_api/models/apple_wallet_input.rb +18 -80
- data/lib/trinsic_api/models/apple_wallet_provider_output.rb +2 -75
- data/lib/trinsic_api/models/attachment_info.rb +2 -75
- data/lib/trinsic_api/models/attribute_availability.rb +1 -1
- data/lib/trinsic_api/models/audkenni_provider_output.rb +231 -0
- data/lib/trinsic_api/models/austria_handy_signatur_provider_output.rb +2 -75
- data/lib/trinsic_api/models/belgium_id_card_provider_output.rb +2 -75
- data/lib/trinsic_api/models/bolivia_ci_lookup_input.rb +160 -0
- data/lib/trinsic_api/models/bolivia_ci_provider_output.rb +258 -0
- data/lib/trinsic_api/models/brazil_cpf_check_input.rb +30 -81
- data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +4 -77
- data/lib/trinsic_api/models/cancel_session_response.rb +2 -75
- data/lib/trinsic_api/models/china_resident_id_match_input.rb +284 -0
- data/lib/trinsic_api/models/china_resident_id_match_output.rb +172 -0
- data/lib/trinsic_api/models/colombia_cc_lookup_input.rb +160 -0
- data/lib/trinsic_api/models/colombia_cc_provider_output.rb +411 -0
- data/lib/trinsic_api/models/colombia_expedition_place.rb +161 -0
- data/lib/trinsic_api/models/connect_id_address.rb +193 -0
- data/lib/trinsic_api/models/connect_id_age_verification.rb +160 -0
- data/lib/trinsic_api/models/connect_id_provider_output.rb +249 -0
- data/lib/trinsic_api/models/contract_attachment.rb +2 -75
- data/lib/trinsic_api/models/contract_attribute.rb +2 -75
- data/lib/trinsic_api/models/cote_d_ivoire_nid_lookup2_input.rb +2 -75
- data/lib/trinsic_api/models/cote_d_ivoire_nid_lookup2_provider_output.rb +334 -0
- data/lib/trinsic_api/models/create_direct_provider_session_request.rb +18 -78
- data/lib/trinsic_api/models/create_direct_provider_session_response.rb +2 -75
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +20 -80
- data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +2 -75
- data/lib/trinsic_api/models/create_verification_profile_response.rb +2 -75
- data/lib/trinsic_api/models/czech_moje_id_address_output.rb +204 -0
- data/lib/trinsic_api/models/czech_moje_id_provider_output.rb +414 -0
- data/lib/trinsic_api/models/czechia_moje_id_provider_output.rb +3 -76
- data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +232 -0
- data/lib/trinsic_api/models/document_data.rb +2 -75
- data/lib/trinsic_api/models/document_type.rb +1 -1
- data/lib/trinsic_api/models/el_salvador_dui_lookup_input.rb +160 -0
- data/lib/trinsic_api/models/el_salvador_dui_provider_output.rb +220 -0
- data/lib/trinsic_api/models/estonia_id_card_provider_output.rb +2 -75
- data/lib/trinsic_api/models/fayda_provider_address.rb +171 -0
- data/lib/trinsic_api/models/fayda_provider_output.rb +107 -81
- data/lib/trinsic_api/models/finland_id_card_provider_output.rb +2 -75
- data/lib/trinsic_api/models/finnish_trust_network_provider_output.rb +260 -0
- data/lib/trinsic_api/models/france_identite_input.rb +149 -0
- data/lib/trinsic_api/models/france_identite_provider_output.rb +166 -0
- data/lib/trinsic_api/models/freja_indirect_provider_output.rb +247 -0
- data/lib/trinsic_api/models/freja_provider_output.rb +187 -166
- data/lib/trinsic_api/models/french_numerique_given_name.rb +3 -76
- data/lib/trinsic_api/models/french_numerique_nationality.rb +2 -75
- data/lib/trinsic_api/models/french_numerique_phone.rb +2 -75
- data/lib/trinsic_api/models/french_numerique_provider_output.rb +9 -82
- data/lib/trinsic_api/models/get_attachment_request.rb +4 -77
- data/lib/trinsic_api/models/get_attachment_response.rb +2 -75
- data/lib/trinsic_api/models/get_provider_response.rb +165 -0
- data/lib/trinsic_api/models/get_session_response.rb +2 -75
- data/lib/trinsic_api/models/get_session_result_request.rb +2 -75
- data/lib/trinsic_api/models/get_session_result_response.rb +2 -75
- data/lib/trinsic_api/models/google_wallet_input.rb +18 -80
- data/lib/trinsic_api/models/google_wallet_provider_output.rb +2 -75
- data/lib/trinsic_api/models/guatemala_cui_lookup_input.rb +149 -0
- data/lib/trinsic_api/models/guatemala_cui_provider_output.rb +395 -0
- data/lib/trinsic_api/models/identity_data.rb +2 -75
- data/lib/trinsic_api/models/idin_input.rb +2 -75
- data/lib/trinsic_api/models/india_pan_lookup_input.rb +174 -0
- data/lib/trinsic_api/models/india_pan_lookup_provider_output.rb +227 -0
- data/lib/trinsic_api/models/india_pan_structured_number.rb +284 -0
- data/lib/trinsic_api/models/indonesia_dukcapil_match_input.rb +2 -75
- data/lib/trinsic_api/models/indonesia_nik_input.rb +6 -79
- data/lib/trinsic_api/models/integration_capability.rb +1 -1
- data/lib/trinsic_api/models/integration_launch_method.rb +1 -1
- data/lib/trinsic_api/models/integration_step.rb +3 -76
- data/lib/trinsic_api/models/itsme_provider_output.rb +2 -75
- data/lib/trinsic_api/models/kenya_nid_biometric2_input.rb +3 -76
- data/lib/trinsic_api/models/kenya_nid_input.rb +10 -83
- data/lib/trinsic_api/models/kenya_nid_lookup2_address.rb +2 -75
- data/lib/trinsic_api/models/kenya_nid_lookup2_input.rb +3 -76
- data/lib/trinsic_api/models/kenya_nid_lookup2_provider_output.rb +3 -76
- data/lib/trinsic_api/models/kenya_nid_match2_input.rb +3 -76
- data/lib/trinsic_api/models/kenya_nid_match2_input_sex.rb +1 -1
- data/lib/trinsic_api/models/korea_telco_match_input.rb +340 -0
- data/lib/trinsic_api/models/korea_telco_match_provider_output.rb +220 -0
- data/lib/trinsic_api/models/korea_telco_match_sex.rb +40 -0
- data/lib/trinsic_api/models/la_wallet_provider_output.rb +2 -75
- data/lib/trinsic_api/models/latvia_eparaksts_mobile_provider_output.rb +2 -75
- data/lib/trinsic_api/models/latvia_eparaksts_provider_output.rb +2 -75
- data/lib/trinsic_api/models/list_providers_response.rb +2 -75
- data/lib/trinsic_api/models/list_redirect_uris_response.rb +2 -75
- data/lib/trinsic_api/models/list_sessions_response.rb +2 -75
- data/lib/trinsic_api/models/list_verification_profiles_response.rb +2 -75
- data/lib/trinsic_api/models/lithuania_id_card_provider_output.rb +2 -75
- data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +4 -77
- data/lib/trinsic_api/models/match.rb +2 -75
- data/lib/trinsic_api/models/match_data.rb +2 -75
- data/lib/trinsic_api/models/mdl_exchange_mechanism.rb +1 -1
- data/lib/trinsic_api/models/mdl_output.rb +4 -77
- data/lib/trinsic_api/models/mdl_output_certificate_data.rb +2 -75
- data/lib/trinsic_api/models/mdl_output_field_data.rb +2 -75
- data/lib/trinsic_api/models/mdl_output_field_data_type.rb +1 -1
- data/lib/trinsic_api/models/mexico_curp_input.rb +4 -77
- data/lib/trinsic_api/models/mexico_curp_provider_output.rb +2 -75
- data/lib/trinsic_api/models/mit_id_provider_output.rb +7 -80
- data/lib/trinsic_api/models/mobile_carrier.rb +41 -0
- data/lib/trinsic_api/models/mobile_id_input.rb +2 -75
- data/lib/trinsic_api/models/mobile_id_language.rb +1 -1
- data/lib/trinsic_api/models/mobile_id_provider_output.rb +2 -75
- data/lib/trinsic_api/models/mobile_operating_system.rb +41 -0
- data/lib/trinsic_api/models/netherlands_idin_address.rb +273 -0
- data/lib/trinsic_api/models/netherlands_idin_provider_output.rb +377 -0
- data/lib/trinsic_api/models/nigeria_nin_biometric2_input.rb +2 -75
- data/lib/trinsic_api/models/nigeria_nin_input.rb +8 -81
- data/lib/trinsic_api/models/nigeria_nin_lookup2_input.rb +2 -75
- data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +319 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_input.rb +2 -75
- data/lib/trinsic_api/models/nigeria_nin_match2_input_sex.rb +1 -1
- data/lib/trinsic_api/models/norwegian_bank_id_provider_output.rb +227 -0
- data/lib/trinsic_api/models/one_id_provider_address.rb +193 -0
- data/lib/trinsic_api/models/one_id_provider_output.rb +205 -0
- data/lib/trinsic_api/models/order_direction.rb +1 -1
- data/lib/trinsic_api/models/output_freja_address.rb +182 -0
- data/lib/trinsic_api/models/output_freja_document.rb +182 -0
- data/lib/trinsic_api/models/panama_cedula_lookup_input.rb +160 -0
- data/lib/trinsic_api/models/panama_cedula_provider_output.rb +307 -0
- data/lib/trinsic_api/models/person_data.rb +2 -75
- data/lib/trinsic_api/models/peru_dni_address.rb +2 -75
- data/lib/trinsic_api/models/peru_dni_lookup_input.rb +2 -75
- data/lib/trinsic_api/models/peru_dni_provider_output.rb +3 -76
- data/lib/trinsic_api/models/philippine_match_input.rb +2 -75
- data/lib/trinsic_api/models/philippine_qr_input.rb +2 -75
- data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +116 -79
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +94 -79
- data/lib/trinsic_api/models/poland_edo_app_provider_output.rb +2 -75
- data/lib/trinsic_api/models/poland_mobywatel_match_input.rb +226 -0
- data/lib/trinsic_api/models/poland_mobywatel_match_provider_output.rb +359 -0
- data/lib/trinsic_api/models/poland_moje_id_provider_output.rb +2 -75
- data/lib/trinsic_api/models/portugal_id_card_provider_output.rb +2 -75
- data/lib/trinsic_api/models/post_office_easy_id_provider_output.rb +4 -77
- data/lib/trinsic_api/models/problem_details.rb +2 -75
- data/lib/trinsic_api/models/provider.rb +16 -76
- data/lib/trinsic_api/models/provider_health.rb +1 -1
- data/lib/trinsic_api/models/provider_input.rb +146 -76
- data/lib/trinsic_api/models/provider_output.rb +294 -81
- data/lib/trinsic_api/models/provider_supported_language.rb +176 -0
- data/lib/trinsic_api/models/raw18013_document_request.rb +203 -0
- data/lib/trinsic_api/models/raw18013_request_input.rb +186 -0
- data/lib/trinsic_api/models/recommend_provider_health_option.rb +1 -1
- data/lib/trinsic_api/models/recommend_provider_information.rb +2 -75
- data/lib/trinsic_api/models/recommend_providers_request.rb +2 -75
- data/lib/trinsic_api/models/recommend_providers_response.rb +35 -79
- data/lib/trinsic_api/models/recommendation_info.rb +2 -75
- data/lib/trinsic_api/models/redirect_uri_response.rb +4 -77
- data/lib/trinsic_api/models/refresh_step_content_request.rb +4 -77
- data/lib/trinsic_api/models/refresh_step_content_response.rb +2 -75
- data/lib/trinsic_api/models/result_collection.rb +2 -75
- data/lib/trinsic_api/models/result_collection_method.rb +1 -1
- data/lib/trinsic_api/models/samsung_wallet_input.rb +149 -0
- data/lib/trinsic_api/models/samsung_wallet_provider_output.rb +2 -75
- data/lib/trinsic_api/models/serbia_id_card_provider_output.rb +2 -75
- data/lib/trinsic_api/models/session.rb +2 -75
- data/lib/trinsic_api/models/session_error_code.rb +1 -1
- data/lib/trinsic_api/models/session_ordering.rb +1 -1
- data/lib/trinsic_api/models/sex.rb +1 -1
- data/lib/trinsic_api/models/signzy_india_aadhaar_fetch_provider_output.rb +305 -0
- data/lib/trinsic_api/models/singpass_login_provider_output.rb +216 -0
- data/lib/trinsic_api/models/singpass_my_info_description.rb +160 -0
- data/lib/trinsic_api/models/singpass_my_info_provider_output.rb +161 -0
- data/lib/trinsic_api/models/{http_validation_problem_details.rb → singpass_my_info_registered_address_output.rb} +91 -126
- data/lib/trinsic_api/models/singpass_personal_catalog.rb +403 -0
- data/lib/trinsic_api/models/singpass_phone_number.rb +172 -0
- data/lib/trinsic_api/models/smart_id_input.rb +2 -75
- data/lib/trinsic_api/models/smart_id_provider_output.rb +3 -76
- data/lib/trinsic_api/models/south_africa_nid_biometric2_input.rb +2 -75
- data/lib/trinsic_api/models/south_africa_nid_input.rb +8 -81
- data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +2 -75
- data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +2 -75
- data/lib/trinsic_api/models/south_africa_nid_match2_input_sex.rb +1 -1
- data/lib/trinsic_api/models/spid_billing_information.rb +2 -75
- data/lib/trinsic_api/models/spid_input.rb +2 -75
- data/lib/trinsic_api/models/spid_provider_output.rb +2 -75
- data/lib/trinsic_api/models/step_refresh_info.rb +2 -75
- data/lib/trinsic_api/models/sub_provider_metadata.rb +2 -75
- data/lib/trinsic_api/models/submit_native_challenge_response_request.rb +6 -79
- data/lib/trinsic_api/models/submit_native_challenge_response_response.rb +2 -75
- data/lib/trinsic_api/models/sweden_bank_id_provider_output.rb +5 -78
- data/lib/trinsic_api/models/trinsic_test_database_lookup_input.rb +2 -75
- data/lib/trinsic_api/models/trinsic_test_sub_providers_input.rb +2 -75
- data/lib/trinsic_api/models/uganda_nid_match2_input.rb +2 -75
- data/lib/trinsic_api/models/uk_evisa_lookup_input.rb +210 -0
- data/lib/trinsic_api/models/united_kingdom_evisa_provider_output.rb +260 -0
- data/lib/trinsic_api/models/usa_california_dmv_input.rb +149 -0
- data/lib/trinsic_api/models/verification_profile_response.rb +41 -76
- data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +271 -0
- data/lib/trinsic_api/models/yoti_document_details.rb +2 -75
- data/lib/trinsic_api/models/yoti_provider_output.rb +4 -77
- data/lib/trinsic_api/models/yoti_structured_postal_address.rb +2 -75
- data/lib/trinsic_api/models/zimbabwe_nid_lookup2_input.rb +2 -75
- data/lib/trinsic_api/version.rb +2 -2
- data/lib/trinsic_api.rb +66 -4
- data/spec/api/providers_api_spec.rb +13 -1
- data/spec/api/redirect_uris_api_spec.rb +1 -1
- data/spec/api/sessions_api_spec.rb +1 -13
- data/spec/api/verification_profiles_api_spec.rb +16 -1
- data/spec/models/aadhaar_address_spec.rb +102 -0
- data/spec/models/{create_widget_session_request_spec.rb → aadhaar_claims_spec.rb} +11 -11
- data/spec/models/aadhaar_input_spec.rb +2 -2
- data/spec/models/aadhaar_language_spec.rb +42 -0
- data/spec/models/aadhaar_localized_claims_spec.rb +48 -0
- data/spec/models/add_redirect_uri_request_spec.rb +2 -2
- data/spec/models/add_redirect_uri_response_spec.rb +2 -2
- data/spec/models/address_spec.rb +2 -2
- data/spec/models/apple_wallet_input_spec.rb +8 -2
- data/spec/models/apple_wallet_provider_output_spec.rb +2 -2
- data/spec/models/attachment_info_spec.rb +2 -2
- data/spec/models/attribute_availability_spec.rb +2 -2
- data/spec/models/audkenni_provider_output_spec.rb +54 -0
- data/spec/models/austria_handy_signatur_provider_output_spec.rb +2 -2
- data/spec/models/belgium_id_card_provider_output_spec.rb +2 -2
- data/spec/models/bolivia_ci_lookup_input_spec.rb +42 -0
- data/spec/models/bolivia_ci_provider_output_spec.rb +60 -0
- data/spec/models/brazil_cpf_check_input_spec.rb +14 -2
- data/spec/models/brazil_digital_cnh_input_spec.rb +2 -2
- data/spec/models/cancel_session_response_spec.rb +2 -2
- data/spec/models/china_resident_id_match_input_spec.rb +54 -0
- data/spec/models/china_resident_id_match_output_spec.rb +48 -0
- data/spec/models/colombia_cc_lookup_input_spec.rb +42 -0
- data/spec/models/colombia_cc_provider_output_spec.rb +90 -0
- data/spec/models/colombia_expedition_place_spec.rb +42 -0
- data/spec/models/connect_id_address_spec.rb +60 -0
- data/spec/models/connect_id_age_verification_spec.rb +42 -0
- data/spec/models/connect_id_provider_output_spec.rb +90 -0
- data/spec/models/contract_attachment_spec.rb +2 -2
- data/spec/models/contract_attribute_spec.rb +2 -2
- data/spec/models/cote_d_ivoire_nid_lookup2_input_spec.rb +2 -2
- data/spec/models/cote_d_ivoire_nid_lookup2_provider_output_spec.rb +84 -0
- data/spec/models/create_direct_provider_session_request_spec.rb +8 -2
- data/spec/models/create_direct_provider_session_response_spec.rb +2 -2
- data/spec/models/create_hosted_provider_session_request_spec.rb +8 -2
- data/spec/models/create_hosted_provider_session_response_spec.rb +2 -2
- data/spec/models/create_verification_profile_response_spec.rb +2 -2
- data/spec/models/czech_moje_id_address_output_spec.rb +66 -0
- data/spec/models/czech_moje_id_provider_output_spec.rb +180 -0
- data/spec/models/czechia_moje_id_provider_output_spec.rb +2 -2
- data/spec/models/digilocker_aadhaar_provider_output_spec.rb +72 -0
- data/spec/models/document_data_spec.rb +2 -2
- data/spec/models/document_type_spec.rb +2 -2
- data/spec/models/el_salvador_dui_lookup_input_spec.rb +42 -0
- data/spec/models/{create_widget_session_response_spec.rb → el_salvador_dui_provider_output_spec.rb} +10 -10
- data/spec/models/estonia_id_card_provider_output_spec.rb +2 -2
- data/spec/models/fayda_provider_address_spec.rb +48 -0
- data/spec/models/fayda_provider_output_spec.rb +56 -2
- data/spec/models/finland_id_card_provider_output_spec.rb +2 -2
- data/spec/models/finnish_trust_network_provider_output_spec.rb +96 -0
- data/spec/models/france_identite_input_spec.rb +36 -0
- data/spec/models/france_identite_provider_output_spec.rb +36 -0
- data/spec/models/freja_indirect_provider_output_spec.rb +54 -0
- data/spec/models/freja_provider_output_spec.rb +90 -6
- data/spec/models/french_numerique_given_name_spec.rb +2 -2
- data/spec/models/french_numerique_nationality_spec.rb +2 -2
- data/spec/models/french_numerique_phone_spec.rb +2 -2
- data/spec/models/french_numerique_provider_output_spec.rb +2 -2
- data/spec/models/get_attachment_request_spec.rb +2 -2
- data/spec/models/get_attachment_response_spec.rb +2 -2
- data/spec/models/get_provider_response_spec.rb +36 -0
- data/spec/models/get_session_response_spec.rb +2 -2
- data/spec/models/get_session_result_request_spec.rb +2 -2
- data/spec/models/get_session_result_response_spec.rb +2 -2
- data/spec/models/google_wallet_input_spec.rb +8 -2
- data/spec/models/google_wallet_provider_output_spec.rb +2 -2
- data/spec/models/guatemala_cui_lookup_input_spec.rb +36 -0
- data/spec/models/guatemala_cui_provider_output_spec.rb +90 -0
- data/spec/models/identity_data_spec.rb +2 -2
- data/spec/models/idin_input_spec.rb +2 -2
- data/spec/models/india_pan_lookup_input_spec.rb +36 -0
- data/spec/models/india_pan_lookup_provider_output_spec.rb +78 -0
- data/spec/models/india_pan_structured_number_spec.rb +66 -0
- data/spec/models/indonesia_dukcapil_match_input_spec.rb +2 -2
- data/spec/models/indonesia_nik_input_spec.rb +2 -2
- data/spec/models/integration_capability_spec.rb +2 -2
- data/spec/models/integration_launch_method_spec.rb +2 -2
- data/spec/models/integration_step_spec.rb +2 -2
- data/spec/models/itsme_provider_output_spec.rb +2 -2
- data/spec/models/kenya_nid_biometric2_input_spec.rb +2 -2
- data/spec/models/kenya_nid_input_spec.rb +2 -2
- data/spec/models/kenya_nid_lookup2_address_spec.rb +2 -2
- data/spec/models/kenya_nid_lookup2_input_spec.rb +2 -2
- data/spec/models/kenya_nid_lookup2_provider_output_spec.rb +2 -2
- data/spec/models/kenya_nid_match2_input_sex_spec.rb +2 -2
- data/spec/models/kenya_nid_match2_input_spec.rb +2 -2
- data/spec/models/{http_validation_problem_details_spec.rb → korea_telco_match_input_spec.rb} +13 -13
- data/spec/models/korea_telco_match_provider_output_spec.rb +48 -0
- data/spec/models/korea_telco_match_sex_spec.rb +30 -0
- data/spec/models/la_wallet_provider_output_spec.rb +2 -2
- data/spec/models/latvia_eparaksts_mobile_provider_output_spec.rb +2 -2
- data/spec/models/latvia_eparaksts_provider_output_spec.rb +2 -2
- data/spec/models/list_providers_response_spec.rb +2 -2
- data/spec/models/list_redirect_uris_response_spec.rb +2 -2
- data/spec/models/list_sessions_response_spec.rb +2 -2
- data/spec/models/list_verification_profiles_response_spec.rb +2 -2
- data/spec/models/lithuania_id_card_provider_output_spec.rb +2 -2
- data/spec/models/lloyds_smart_id_provider_output_spec.rb +2 -2
- data/spec/models/match_data_spec.rb +2 -2
- data/spec/models/match_spec.rb +2 -2
- data/spec/models/mdl_exchange_mechanism_spec.rb +2 -2
- data/spec/models/mdl_output_certificate_data_spec.rb +2 -2
- data/spec/models/mdl_output_field_data_spec.rb +2 -2
- data/spec/models/mdl_output_field_data_type_spec.rb +2 -2
- data/spec/models/mdl_output_spec.rb +2 -2
- data/spec/models/mexico_curp_input_spec.rb +2 -2
- data/spec/models/mexico_curp_provider_output_spec.rb +2 -2
- data/spec/models/mit_id_provider_output_spec.rb +2 -2
- data/spec/models/mobile_carrier_spec.rb +30 -0
- data/spec/models/mobile_id_input_spec.rb +2 -2
- data/spec/models/mobile_id_language_spec.rb +2 -2
- data/spec/models/mobile_id_provider_output_spec.rb +2 -2
- data/spec/models/mobile_operating_system_spec.rb +30 -0
- data/spec/models/netherlands_idin_address_spec.rb +60 -0
- data/spec/models/netherlands_idin_provider_output_spec.rb +90 -0
- data/spec/models/nigeria_nin_biometric2_input_spec.rb +2 -2
- data/spec/models/nigeria_nin_input_spec.rb +2 -2
- data/spec/models/nigeria_nin_lookup2_input_spec.rb +2 -2
- data/spec/models/nigeria_nin_lookup2_provider_output_spec.rb +102 -0
- data/spec/models/nigeria_nin_match2_input_sex_spec.rb +2 -2
- data/spec/models/nigeria_nin_match2_input_spec.rb +2 -2
- data/spec/models/norwegian_bank_id_provider_output_spec.rb +78 -0
- data/spec/models/one_id_provider_address_spec.rb +60 -0
- data/spec/models/one_id_provider_output_spec.rb +66 -0
- data/spec/models/order_direction_spec.rb +2 -2
- data/spec/models/output_freja_address_spec.rb +54 -0
- data/spec/models/output_freja_document_spec.rb +54 -0
- data/spec/models/panama_cedula_lookup_input_spec.rb +42 -0
- data/spec/models/panama_cedula_provider_output_spec.rb +78 -0
- data/spec/models/person_data_spec.rb +2 -2
- data/spec/models/peru_dni_address_spec.rb +2 -2
- data/spec/models/peru_dni_lookup_input_spec.rb +2 -2
- data/spec/models/peru_dni_provider_output_spec.rb +2 -2
- data/spec/models/philippine_match_input_spec.rb +2 -2
- data/spec/models/philippine_qr_input_spec.rb +2 -2
- data/spec/models/philippines_digital_nid_provider_output_spec.rb +62 -2
- data/spec/models/philippines_physical_nid_provider_output_spec.rb +50 -2
- data/spec/models/poland_edo_app_provider_output_spec.rb +2 -2
- data/spec/models/poland_mobywatel_match_input_spec.rb +78 -0
- data/spec/models/poland_mobywatel_match_provider_output_spec.rb +150 -0
- data/spec/models/poland_moje_id_provider_output_spec.rb +2 -2
- data/spec/models/portugal_id_card_provider_output_spec.rb +2 -2
- data/spec/models/post_office_easy_id_provider_output_spec.rb +2 -2
- data/spec/models/problem_details_spec.rb +2 -2
- data/spec/models/provider_health_spec.rb +2 -2
- data/spec/models/provider_input_spec.rb +80 -2
- data/spec/models/provider_output_spec.rb +158 -2
- data/spec/models/provider_spec.rb +8 -2
- data/spec/models/provider_supported_language_spec.rb +42 -0
- data/spec/models/raw18013_document_request_spec.rb +42 -0
- data/spec/models/raw18013_request_input_spec.rb +36 -0
- data/spec/models/recommend_provider_health_option_spec.rb +2 -2
- data/spec/models/recommend_provider_information_spec.rb +2 -2
- data/spec/models/recommend_providers_request_spec.rb +2 -2
- data/spec/models/recommend_providers_response_spec.rb +8 -2
- data/spec/models/recommendation_info_spec.rb +2 -2
- data/spec/models/redirect_uri_response_spec.rb +2 -2
- data/spec/models/refresh_step_content_request_spec.rb +2 -2
- data/spec/models/refresh_step_content_response_spec.rb +2 -2
- data/spec/models/result_collection_method_spec.rb +2 -2
- data/spec/models/result_collection_spec.rb +2 -2
- data/spec/models/samsung_wallet_input_spec.rb +36 -0
- data/spec/models/samsung_wallet_provider_output_spec.rb +2 -2
- data/spec/models/serbia_id_card_provider_output_spec.rb +2 -2
- data/spec/models/session_error_code_spec.rb +2 -2
- data/spec/models/session_ordering_spec.rb +2 -2
- data/spec/models/session_spec.rb +2 -2
- data/spec/models/sex_spec.rb +2 -2
- data/spec/models/signzy_india_aadhaar_fetch_provider_output_spec.rb +102 -0
- data/spec/models/singpass_login_provider_output_spec.rb +72 -0
- data/spec/models/singpass_my_info_description_spec.rb +42 -0
- data/spec/models/singpass_my_info_provider_output_spec.rb +42 -0
- data/spec/models/singpass_my_info_registered_address_output_spec.rb +90 -0
- data/spec/models/singpass_personal_catalog_spec.rb +174 -0
- data/spec/models/singpass_phone_number_spec.rb +48 -0
- data/spec/models/smart_id_input_spec.rb +2 -2
- data/spec/models/smart_id_provider_output_spec.rb +2 -2
- data/spec/models/south_africa_nid_biometric2_input_spec.rb +2 -2
- data/spec/models/south_africa_nid_input_spec.rb +2 -2
- data/spec/models/south_africa_nid_lookup2_input_spec.rb +2 -2
- data/spec/models/south_africa_nid_match2_input_sex_spec.rb +2 -2
- data/spec/models/south_africa_nid_match2_input_spec.rb +2 -2
- data/spec/models/spid_billing_information_spec.rb +2 -2
- data/spec/models/spid_input_spec.rb +2 -2
- data/spec/models/spid_provider_output_spec.rb +2 -2
- data/spec/models/step_refresh_info_spec.rb +2 -2
- data/spec/models/sub_provider_metadata_spec.rb +2 -2
- data/spec/models/submit_native_challenge_response_request_spec.rb +2 -2
- data/spec/models/submit_native_challenge_response_response_spec.rb +2 -2
- data/spec/models/sweden_bank_id_provider_output_spec.rb +2 -2
- data/spec/models/trinsic_test_database_lookup_input_spec.rb +2 -2
- data/spec/models/trinsic_test_sub_providers_input_spec.rb +2 -2
- data/spec/models/uganda_nid_match2_input_spec.rb +2 -2
- data/spec/models/uk_evisa_lookup_input_spec.rb +42 -0
- data/spec/models/united_kingdom_evisa_provider_output_spec.rb +96 -0
- data/spec/models/usa_california_dmv_input_spec.rb +36 -0
- data/spec/models/verification_profile_response_spec.rb +14 -2
- data/spec/models/yoti_deeplink_provider_output_spec.rb +102 -0
- data/spec/models/yoti_document_details_spec.rb +2 -2
- data/spec/models/yoti_provider_output_spec.rb +2 -2
- data/spec/models/yoti_structured_postal_address_spec.rb +2 -2
- data/spec/models/zimbabwe_nid_lookup2_input_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- data/trinsic_api.gemspec +1 -1
- metadata +381 -136
- data/docs/CreateWidgetSessionRequest.md +0 -24
- data/docs/CreateWidgetSessionResponse.md +0 -22
- data/docs/HttpValidationProblemDetails.md +0 -28
- data/lib/trinsic_api/models/create_widget_session_request.rb +0 -273
- data/lib/trinsic_api/models/create_widget_session_response.rb +0 -292
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class NigeriaNinBiometric2Input
|
|
17
|
+
class NigeriaNinBiometric2Input < ApiModelBase
|
|
18
18
|
# The user's Nigerian National ID number (NIN)
|
|
19
19
|
attr_accessor :id_number
|
|
20
20
|
|
|
@@ -152,61 +152,6 @@ module TrinsicApi
|
|
|
152
152
|
new(transformed_hash)
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
-
# Deserializes the data based on type
|
|
156
|
-
# @param string type Data type
|
|
157
|
-
# @param string value Value to be deserialized
|
|
158
|
-
# @return [Object] Deserialized data
|
|
159
|
-
def self._deserialize(type, value)
|
|
160
|
-
case type.to_sym
|
|
161
|
-
when :Time
|
|
162
|
-
Time.parse(value)
|
|
163
|
-
when :Date
|
|
164
|
-
Date.parse(value)
|
|
165
|
-
when :String
|
|
166
|
-
value.to_s
|
|
167
|
-
when :Integer
|
|
168
|
-
value.to_i
|
|
169
|
-
when :Float
|
|
170
|
-
value.to_f
|
|
171
|
-
when :Boolean
|
|
172
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
173
|
-
true
|
|
174
|
-
else
|
|
175
|
-
false
|
|
176
|
-
end
|
|
177
|
-
when :Object
|
|
178
|
-
# generic object (usually a Hash), return directly
|
|
179
|
-
value
|
|
180
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
181
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
182
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
183
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
184
|
-
k_type = Regexp.last_match[:k_type]
|
|
185
|
-
v_type = Regexp.last_match[:v_type]
|
|
186
|
-
{}.tap do |hash|
|
|
187
|
-
value.each do |k, v|
|
|
188
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
else # model
|
|
192
|
-
# models (e.g. Pet) or oneOf
|
|
193
|
-
klass = TrinsicApi.const_get(type)
|
|
194
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
195
|
-
end
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
# Returns the string representation of the object
|
|
199
|
-
# @return [String] String presentation of the object
|
|
200
|
-
def to_s
|
|
201
|
-
to_hash.to_s
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
205
|
-
# @return [Hash] Returns the object in the form of hash
|
|
206
|
-
def to_body
|
|
207
|
-
to_hash
|
|
208
|
-
end
|
|
209
|
-
|
|
210
155
|
# Returns the object in the form of hash
|
|
211
156
|
# @return [Hash] Returns the object in the form of hash
|
|
212
157
|
def to_hash
|
|
@@ -223,24 +168,6 @@ module TrinsicApi
|
|
|
223
168
|
hash
|
|
224
169
|
end
|
|
225
170
|
|
|
226
|
-
# Outputs non-array value in the form of hash
|
|
227
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
228
|
-
# @param [Object] value Any valid value
|
|
229
|
-
# @return [Hash] Returns the value in the form of hash
|
|
230
|
-
def _to_hash(value)
|
|
231
|
-
if value.is_a?(Array)
|
|
232
|
-
value.compact.map { |v| _to_hash(v) }
|
|
233
|
-
elsif value.is_a?(Hash)
|
|
234
|
-
{}.tap do |hash|
|
|
235
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
236
|
-
end
|
|
237
|
-
elsif value.respond_to? :to_hash
|
|
238
|
-
value.to_hash
|
|
239
|
-
else
|
|
240
|
-
value
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
|
|
244
171
|
end
|
|
245
172
|
|
|
246
173
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class NigeriaNinInput
|
|
17
|
+
class NigeriaNinInput < ApiModelBase
|
|
18
18
|
# The user's first name as it appears in their National ID
|
|
19
19
|
attr_accessor :first_name
|
|
20
20
|
|
|
@@ -144,7 +144,7 @@ module TrinsicApi
|
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
if @first_name.to_s.length < 1
|
|
147
|
-
invalid_properties.push('invalid value for "first_name", the character length must be
|
|
147
|
+
invalid_properties.push('invalid value for "first_name", the character length must be greater than or equal to 1.')
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
if @last_name.nil?
|
|
@@ -152,7 +152,7 @@ module TrinsicApi
|
|
|
152
152
|
end
|
|
153
153
|
|
|
154
154
|
if @last_name.to_s.length < 1
|
|
155
|
-
invalid_properties.push('invalid value for "last_name", the character length must be
|
|
155
|
+
invalid_properties.push('invalid value for "last_name", the character length must be greater than or equal to 1.')
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
if @date_of_birth.nil?
|
|
@@ -168,7 +168,7 @@ module TrinsicApi
|
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
if @national_id_number.to_s.length < 11
|
|
171
|
-
invalid_properties.push('invalid value for "national_id_number", the character length must be
|
|
171
|
+
invalid_properties.push('invalid value for "national_id_number", the character length must be greater than or equal to 11.')
|
|
172
172
|
end
|
|
173
173
|
|
|
174
174
|
pattern = Regexp.new(/^\d*$/)
|
|
@@ -203,7 +203,7 @@ module TrinsicApi
|
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
if first_name.to_s.length < 1
|
|
206
|
-
fail ArgumentError, 'invalid value for "first_name", the character length must be
|
|
206
|
+
fail ArgumentError, 'invalid value for "first_name", the character length must be greater than or equal to 1.'
|
|
207
207
|
end
|
|
208
208
|
|
|
209
209
|
@first_name = first_name
|
|
@@ -217,7 +217,7 @@ module TrinsicApi
|
|
|
217
217
|
end
|
|
218
218
|
|
|
219
219
|
if last_name.to_s.length < 1
|
|
220
|
-
fail ArgumentError, 'invalid value for "last_name", the character length must be
|
|
220
|
+
fail ArgumentError, 'invalid value for "last_name", the character length must be greater than or equal to 1.'
|
|
221
221
|
end
|
|
222
222
|
|
|
223
223
|
@last_name = last_name
|
|
@@ -245,7 +245,7 @@ module TrinsicApi
|
|
|
245
245
|
end
|
|
246
246
|
|
|
247
247
|
if national_id_number.to_s.length < 11
|
|
248
|
-
fail ArgumentError, 'invalid value for "national_id_number", the character length must be
|
|
248
|
+
fail ArgumentError, 'invalid value for "national_id_number", the character length must be greater than or equal to 11.'
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
pattern = Regexp.new(/^\d*$/)
|
|
@@ -305,61 +305,6 @@ module TrinsicApi
|
|
|
305
305
|
new(transformed_hash)
|
|
306
306
|
end
|
|
307
307
|
|
|
308
|
-
# Deserializes the data based on type
|
|
309
|
-
# @param string type Data type
|
|
310
|
-
# @param string value Value to be deserialized
|
|
311
|
-
# @return [Object] Deserialized data
|
|
312
|
-
def self._deserialize(type, value)
|
|
313
|
-
case type.to_sym
|
|
314
|
-
when :Time
|
|
315
|
-
Time.parse(value)
|
|
316
|
-
when :Date
|
|
317
|
-
Date.parse(value)
|
|
318
|
-
when :String
|
|
319
|
-
value.to_s
|
|
320
|
-
when :Integer
|
|
321
|
-
value.to_i
|
|
322
|
-
when :Float
|
|
323
|
-
value.to_f
|
|
324
|
-
when :Boolean
|
|
325
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
326
|
-
true
|
|
327
|
-
else
|
|
328
|
-
false
|
|
329
|
-
end
|
|
330
|
-
when :Object
|
|
331
|
-
# generic object (usually a Hash), return directly
|
|
332
|
-
value
|
|
333
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
334
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
335
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
336
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
337
|
-
k_type = Regexp.last_match[:k_type]
|
|
338
|
-
v_type = Regexp.last_match[:v_type]
|
|
339
|
-
{}.tap do |hash|
|
|
340
|
-
value.each do |k, v|
|
|
341
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
342
|
-
end
|
|
343
|
-
end
|
|
344
|
-
else # model
|
|
345
|
-
# models (e.g. Pet) or oneOf
|
|
346
|
-
klass = TrinsicApi.const_get(type)
|
|
347
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
348
|
-
end
|
|
349
|
-
end
|
|
350
|
-
|
|
351
|
-
# Returns the string representation of the object
|
|
352
|
-
# @return [String] String presentation of the object
|
|
353
|
-
def to_s
|
|
354
|
-
to_hash.to_s
|
|
355
|
-
end
|
|
356
|
-
|
|
357
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
358
|
-
# @return [Hash] Returns the object in the form of hash
|
|
359
|
-
def to_body
|
|
360
|
-
to_hash
|
|
361
|
-
end
|
|
362
|
-
|
|
363
308
|
# Returns the object in the form of hash
|
|
364
309
|
# @return [Hash] Returns the object in the form of hash
|
|
365
310
|
def to_hash
|
|
@@ -376,24 +321,6 @@ module TrinsicApi
|
|
|
376
321
|
hash
|
|
377
322
|
end
|
|
378
323
|
|
|
379
|
-
# Outputs non-array value in the form of hash
|
|
380
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
381
|
-
# @param [Object] value Any valid value
|
|
382
|
-
# @return [Hash] Returns the value in the form of hash
|
|
383
|
-
def _to_hash(value)
|
|
384
|
-
if value.is_a?(Array)
|
|
385
|
-
value.compact.map { |v| _to_hash(v) }
|
|
386
|
-
elsif value.is_a?(Hash)
|
|
387
|
-
{}.tap do |hash|
|
|
388
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
389
|
-
end
|
|
390
|
-
elsif value.respond_to? :to_hash
|
|
391
|
-
value.to_hash
|
|
392
|
-
else
|
|
393
|
-
value
|
|
394
|
-
end
|
|
395
|
-
end
|
|
396
|
-
|
|
397
324
|
end
|
|
398
325
|
|
|
399
326
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class NigeriaNinLookup2Input
|
|
17
|
+
class NigeriaNinLookup2Input < ApiModelBase
|
|
18
18
|
# The user's National ID number (NIN)
|
|
19
19
|
attr_accessor :id_number
|
|
20
20
|
|
|
@@ -128,61 +128,6 @@ module TrinsicApi
|
|
|
128
128
|
new(transformed_hash)
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
# Deserializes the data based on type
|
|
132
|
-
# @param string type Data type
|
|
133
|
-
# @param string value Value to be deserialized
|
|
134
|
-
# @return [Object] Deserialized data
|
|
135
|
-
def self._deserialize(type, value)
|
|
136
|
-
case type.to_sym
|
|
137
|
-
when :Time
|
|
138
|
-
Time.parse(value)
|
|
139
|
-
when :Date
|
|
140
|
-
Date.parse(value)
|
|
141
|
-
when :String
|
|
142
|
-
value.to_s
|
|
143
|
-
when :Integer
|
|
144
|
-
value.to_i
|
|
145
|
-
when :Float
|
|
146
|
-
value.to_f
|
|
147
|
-
when :Boolean
|
|
148
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
149
|
-
true
|
|
150
|
-
else
|
|
151
|
-
false
|
|
152
|
-
end
|
|
153
|
-
when :Object
|
|
154
|
-
# generic object (usually a Hash), return directly
|
|
155
|
-
value
|
|
156
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
157
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
158
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
159
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
160
|
-
k_type = Regexp.last_match[:k_type]
|
|
161
|
-
v_type = Regexp.last_match[:v_type]
|
|
162
|
-
{}.tap do |hash|
|
|
163
|
-
value.each do |k, v|
|
|
164
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
165
|
-
end
|
|
166
|
-
end
|
|
167
|
-
else # model
|
|
168
|
-
# models (e.g. Pet) or oneOf
|
|
169
|
-
klass = TrinsicApi.const_get(type)
|
|
170
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
# Returns the string representation of the object
|
|
175
|
-
# @return [String] String presentation of the object
|
|
176
|
-
def to_s
|
|
177
|
-
to_hash.to_s
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
181
|
-
# @return [Hash] Returns the object in the form of hash
|
|
182
|
-
def to_body
|
|
183
|
-
to_hash
|
|
184
|
-
end
|
|
185
|
-
|
|
186
131
|
# Returns the object in the form of hash
|
|
187
132
|
# @return [Hash] Returns the object in the form of hash
|
|
188
133
|
def to_hash
|
|
@@ -199,24 +144,6 @@ module TrinsicApi
|
|
|
199
144
|
hash
|
|
200
145
|
end
|
|
201
146
|
|
|
202
|
-
# Outputs non-array value in the form of hash
|
|
203
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
204
|
-
# @param [Object] value Any valid value
|
|
205
|
-
# @return [Hash] Returns the value in the form of hash
|
|
206
|
-
def _to_hash(value)
|
|
207
|
-
if value.is_a?(Array)
|
|
208
|
-
value.compact.map { |v| _to_hash(v) }
|
|
209
|
-
elsif value.is_a?(Hash)
|
|
210
|
-
{}.tap do |hash|
|
|
211
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
212
|
-
end
|
|
213
|
-
elsif value.respond_to? :to_hash
|
|
214
|
-
value.to_hash
|
|
215
|
-
else
|
|
216
|
-
value
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
|
-
|
|
220
147
|
end
|
|
221
148
|
|
|
222
149
|
end
|
|
@@ -0,0 +1,319 @@
|
|
|
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.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module TrinsicApi
|
|
17
|
+
# Exposed properties for the `nigeria-nin-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
+
class NigeriaNinLookup2ProviderOutput < ApiModelBase
|
|
19
|
+
# The first name (given name) of the ID holder.
|
|
20
|
+
attr_accessor :first_name
|
|
21
|
+
|
|
22
|
+
# The middle name of the ID holder.
|
|
23
|
+
attr_accessor :middle_name
|
|
24
|
+
|
|
25
|
+
# The surname (family name) of the ID holder.
|
|
26
|
+
attr_accessor :surname
|
|
27
|
+
|
|
28
|
+
# The sex of the ID holder. Possible values: - Male - Female
|
|
29
|
+
attr_accessor :sex
|
|
30
|
+
|
|
31
|
+
# The date of birth of the ID holder.
|
|
32
|
+
attr_accessor :date_of_birth
|
|
33
|
+
|
|
34
|
+
# Country of birth as an ISO 3166-1 alpha-2 code.
|
|
35
|
+
attr_accessor :birth_country
|
|
36
|
+
|
|
37
|
+
# National Identification Number (NIN). This is a unique, permanent identifier assigned by the National Identity Management Commission upon enrollment. Format: 11 numeric digits (regex: /^[0-9]{11}$/). The digits are validated using the Verhoeff algorithm, meaning the last digit serves as a check digit.
|
|
38
|
+
attr_accessor :national_identity_number
|
|
39
|
+
|
|
40
|
+
# Phone number registered with the National Identity Management Commission.
|
|
41
|
+
attr_accessor :phone_number
|
|
42
|
+
|
|
43
|
+
# Email address registered with the National Identity Management Commission.
|
|
44
|
+
attr_accessor :email
|
|
45
|
+
|
|
46
|
+
# Full residential address as a single string, normalized to lowercase without delimiters.
|
|
47
|
+
attr_accessor :address
|
|
48
|
+
|
|
49
|
+
# Local Government Area of residence. Nigeria is divided into 774 Local Government Areas (LGAs), which are the third-tier administrative divisions below states and the Federal Capital Territory. LGAs are roughly equivalent to counties or municipalities in other countries.
|
|
50
|
+
attr_accessor :local_government_area
|
|
51
|
+
|
|
52
|
+
# State of residence.
|
|
53
|
+
attr_accessor :state
|
|
54
|
+
|
|
55
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
|
+
def self.attribute_map
|
|
57
|
+
{
|
|
58
|
+
:'first_name' => :'firstName',
|
|
59
|
+
:'middle_name' => :'middleName',
|
|
60
|
+
:'surname' => :'surname',
|
|
61
|
+
:'sex' => :'sex',
|
|
62
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
63
|
+
:'birth_country' => :'birthCountry',
|
|
64
|
+
:'national_identity_number' => :'nationalIdentityNumber',
|
|
65
|
+
:'phone_number' => :'phoneNumber',
|
|
66
|
+
:'email' => :'email',
|
|
67
|
+
:'address' => :'address',
|
|
68
|
+
:'local_government_area' => :'localGovernmentArea',
|
|
69
|
+
:'state' => :'state'
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Returns attribute mapping this model knows about
|
|
74
|
+
def self.acceptable_attribute_map
|
|
75
|
+
attribute_map
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Returns all the JSON keys this model knows about
|
|
79
|
+
def self.acceptable_attributes
|
|
80
|
+
acceptable_attribute_map.values
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Attribute type mapping.
|
|
84
|
+
def self.openapi_types
|
|
85
|
+
{
|
|
86
|
+
:'first_name' => :'String',
|
|
87
|
+
:'middle_name' => :'String',
|
|
88
|
+
:'surname' => :'String',
|
|
89
|
+
:'sex' => :'String',
|
|
90
|
+
:'date_of_birth' => :'Date',
|
|
91
|
+
:'birth_country' => :'String',
|
|
92
|
+
:'national_identity_number' => :'String',
|
|
93
|
+
:'phone_number' => :'String',
|
|
94
|
+
:'email' => :'String',
|
|
95
|
+
:'address' => :'String',
|
|
96
|
+
:'local_government_area' => :'String',
|
|
97
|
+
:'state' => :'String'
|
|
98
|
+
}
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# List of attributes with nullable: true
|
|
102
|
+
def self.openapi_nullable
|
|
103
|
+
Set.new([
|
|
104
|
+
:'middle_name',
|
|
105
|
+
:'sex',
|
|
106
|
+
:'date_of_birth',
|
|
107
|
+
:'birth_country',
|
|
108
|
+
:'phone_number',
|
|
109
|
+
:'email',
|
|
110
|
+
:'address',
|
|
111
|
+
:'local_government_area',
|
|
112
|
+
:'state'
|
|
113
|
+
])
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Initializes the object
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
def initialize(attributes = {})
|
|
119
|
+
if (!attributes.is_a?(Hash))
|
|
120
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::NigeriaNinLookup2ProviderOutput` initialize method"
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
124
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
125
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
126
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
127
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::NigeriaNinLookup2ProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
128
|
+
end
|
|
129
|
+
h[k.to_sym] = v
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'first_name')
|
|
133
|
+
self.first_name = attributes[:'first_name']
|
|
134
|
+
else
|
|
135
|
+
self.first_name = nil
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'middle_name')
|
|
139
|
+
self.middle_name = attributes[:'middle_name']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'surname')
|
|
143
|
+
self.surname = attributes[:'surname']
|
|
144
|
+
else
|
|
145
|
+
self.surname = nil
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if attributes.key?(:'sex')
|
|
149
|
+
self.sex = attributes[:'sex']
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if attributes.key?(:'date_of_birth')
|
|
153
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'birth_country')
|
|
157
|
+
self.birth_country = attributes[:'birth_country']
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'national_identity_number')
|
|
161
|
+
self.national_identity_number = attributes[:'national_identity_number']
|
|
162
|
+
else
|
|
163
|
+
self.national_identity_number = nil
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if attributes.key?(:'phone_number')
|
|
167
|
+
self.phone_number = attributes[:'phone_number']
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'email')
|
|
171
|
+
self.email = attributes[:'email']
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.key?(:'address')
|
|
175
|
+
self.address = attributes[:'address']
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'local_government_area')
|
|
179
|
+
self.local_government_area = attributes[:'local_government_area']
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'state')
|
|
183
|
+
self.state = attributes[:'state']
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
188
|
+
# @return Array for valid properties with the reasons
|
|
189
|
+
def list_invalid_properties
|
|
190
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
191
|
+
invalid_properties = Array.new
|
|
192
|
+
if @first_name.nil?
|
|
193
|
+
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if @surname.nil?
|
|
197
|
+
invalid_properties.push('invalid value for "surname", surname cannot be nil.')
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if @national_identity_number.nil?
|
|
201
|
+
invalid_properties.push('invalid value for "national_identity_number", national_identity_number cannot be nil.')
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
invalid_properties
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Check to see if the all the properties in the model are valid
|
|
208
|
+
# @return true if the model is valid
|
|
209
|
+
def valid?
|
|
210
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
211
|
+
return false if @first_name.nil?
|
|
212
|
+
return false if @surname.nil?
|
|
213
|
+
return false if @national_identity_number.nil?
|
|
214
|
+
true
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Custom attribute writer method with validation
|
|
218
|
+
# @param [Object] first_name Value to be assigned
|
|
219
|
+
def first_name=(first_name)
|
|
220
|
+
if first_name.nil?
|
|
221
|
+
fail ArgumentError, 'first_name cannot be nil'
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
@first_name = first_name
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Custom attribute writer method with validation
|
|
228
|
+
# @param [Object] surname Value to be assigned
|
|
229
|
+
def surname=(surname)
|
|
230
|
+
if surname.nil?
|
|
231
|
+
fail ArgumentError, 'surname cannot be nil'
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
@surname = surname
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Custom attribute writer method with validation
|
|
238
|
+
# @param [Object] national_identity_number Value to be assigned
|
|
239
|
+
def national_identity_number=(national_identity_number)
|
|
240
|
+
if national_identity_number.nil?
|
|
241
|
+
fail ArgumentError, 'national_identity_number cannot be nil'
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
@national_identity_number = national_identity_number
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# Checks equality by comparing each attribute.
|
|
248
|
+
# @param [Object] Object to be compared
|
|
249
|
+
def ==(o)
|
|
250
|
+
return true if self.equal?(o)
|
|
251
|
+
self.class == o.class &&
|
|
252
|
+
first_name == o.first_name &&
|
|
253
|
+
middle_name == o.middle_name &&
|
|
254
|
+
surname == o.surname &&
|
|
255
|
+
sex == o.sex &&
|
|
256
|
+
date_of_birth == o.date_of_birth &&
|
|
257
|
+
birth_country == o.birth_country &&
|
|
258
|
+
national_identity_number == o.national_identity_number &&
|
|
259
|
+
phone_number == o.phone_number &&
|
|
260
|
+
email == o.email &&
|
|
261
|
+
address == o.address &&
|
|
262
|
+
local_government_area == o.local_government_area &&
|
|
263
|
+
state == o.state
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# @see the `==` method
|
|
267
|
+
# @param [Object] Object to be compared
|
|
268
|
+
def eql?(o)
|
|
269
|
+
self == o
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Calculates hash code according to all attributes.
|
|
273
|
+
# @return [Integer] Hash code
|
|
274
|
+
def hash
|
|
275
|
+
[first_name, middle_name, surname, sex, date_of_birth, birth_country, national_identity_number, phone_number, email, address, local_government_area, state].hash
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Builds the object from hash
|
|
279
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
280
|
+
# @return [Object] Returns the model itself
|
|
281
|
+
def self.build_from_hash(attributes)
|
|
282
|
+
return nil unless attributes.is_a?(Hash)
|
|
283
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
284
|
+
transformed_hash = {}
|
|
285
|
+
openapi_types.each_pair do |key, type|
|
|
286
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
287
|
+
transformed_hash["#{key}"] = nil
|
|
288
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
289
|
+
# check to ensure the input is an array given that the attribute
|
|
290
|
+
# is documented as an array but the input is not
|
|
291
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
292
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
293
|
+
end
|
|
294
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
295
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
new(transformed_hash)
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# Returns the object in the form of hash
|
|
302
|
+
# @return [Hash] Returns the object in the form of hash
|
|
303
|
+
def to_hash
|
|
304
|
+
hash = {}
|
|
305
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
306
|
+
value = self.send(attr)
|
|
307
|
+
if value.nil?
|
|
308
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
309
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
hash[param] = _to_hash(value)
|
|
313
|
+
end
|
|
314
|
+
hash
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
end
|