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
|
@@ -0,0 +1,359 @@
|
|
|
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 `poland-mobywatel-match` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
+
class PolandMobywatelMatchProviderOutput < ApiModelBase
|
|
19
|
+
# Given name as provided by the individual.
|
|
20
|
+
attr_accessor :given_name
|
|
21
|
+
|
|
22
|
+
# Current legal family name (nazwisko) as provided by the individual. In Poland the current legal family name (nazwisko) is a separate concept from your birth family name (nazwisko rodowe). They often match, but they can differ after marriage, adoption, or a court-ordered change.
|
|
23
|
+
attr_accessor :family_name
|
|
24
|
+
|
|
25
|
+
# Nationality as provided by the individual.
|
|
26
|
+
attr_accessor :nationality
|
|
27
|
+
|
|
28
|
+
# Date of birth as provided by the individual.
|
|
29
|
+
attr_accessor :date_of_birth
|
|
30
|
+
|
|
31
|
+
# Personal number (PESEL) as provided by the individual.
|
|
32
|
+
attr_accessor :personal_number
|
|
33
|
+
|
|
34
|
+
# Expiration date as provided by the individual.
|
|
35
|
+
attr_accessor :expiration_date
|
|
36
|
+
|
|
37
|
+
# True when the provided given name matches mObywatel wallet data.
|
|
38
|
+
attr_accessor :is_match_for_given_names
|
|
39
|
+
|
|
40
|
+
# True when the provided family name matches mObywatel wallet data.
|
|
41
|
+
attr_accessor :is_match_for_family_name
|
|
42
|
+
|
|
43
|
+
# True when the provided document expiration date matches mObywatel wallet data.
|
|
44
|
+
attr_accessor :is_match_for_expiration_date
|
|
45
|
+
|
|
46
|
+
# True when the provided personal number (PESEL) matches mObywatel wallet data.
|
|
47
|
+
attr_accessor :is_match_for_personal_number
|
|
48
|
+
|
|
49
|
+
# True when the provided nationality matches mObywatel wallet data.
|
|
50
|
+
attr_accessor :is_match_for_nationality
|
|
51
|
+
|
|
52
|
+
# True when the provided birth date matches mObywatel wallet data.
|
|
53
|
+
attr_accessor :is_match_for_birth_date
|
|
54
|
+
|
|
55
|
+
# True when the face in the provided selfie matches the face in the document photo in mObywatel wallet.
|
|
56
|
+
attr_accessor :is_match_for_selfie
|
|
57
|
+
|
|
58
|
+
# True when the uploaded face and wallet portrait are not suspiciously identical. Often fails when using a document photo as a selfie.
|
|
59
|
+
attr_accessor :is_not_too_similar_to_document_portrait
|
|
60
|
+
|
|
61
|
+
# True when no other person's face has been used to verify this document (good). False when another person's face has been used to verify this document (possible fraud).
|
|
62
|
+
attr_accessor :is_not_different_face
|
|
63
|
+
|
|
64
|
+
# True when exactly one face was detected on the selfie image (good). False when multiple faces were detected on the selfie image (ambiguous result).
|
|
65
|
+
attr_accessor :is_single_face
|
|
66
|
+
|
|
67
|
+
# True when the individual's age in digital wallet is over 18.
|
|
68
|
+
attr_accessor :is_over_age
|
|
69
|
+
|
|
70
|
+
# True when the individual's age estimated from the selfie matches the individual's age in digital wallet.
|
|
71
|
+
attr_accessor :is_age_estimation_match_for_selfie
|
|
72
|
+
|
|
73
|
+
# Number of years allowed between the individual's age in digital wallet and the individual's age estimated from the selfie.
|
|
74
|
+
attr_accessor :age_estimation_threshold
|
|
75
|
+
|
|
76
|
+
# Estimated age from the selfie, if provided.
|
|
77
|
+
attr_accessor :estimated_age_from_selfie
|
|
78
|
+
|
|
79
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
80
|
+
def self.attribute_map
|
|
81
|
+
{
|
|
82
|
+
:'given_name' => :'givenName',
|
|
83
|
+
:'family_name' => :'familyName',
|
|
84
|
+
:'nationality' => :'nationality',
|
|
85
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
86
|
+
:'personal_number' => :'personalNumber',
|
|
87
|
+
:'expiration_date' => :'expirationDate',
|
|
88
|
+
:'is_match_for_given_names' => :'isMatchForGivenNames',
|
|
89
|
+
:'is_match_for_family_name' => :'isMatchForFamilyName',
|
|
90
|
+
:'is_match_for_expiration_date' => :'isMatchForExpirationDate',
|
|
91
|
+
:'is_match_for_personal_number' => :'isMatchForPersonalNumber',
|
|
92
|
+
:'is_match_for_nationality' => :'isMatchForNationality',
|
|
93
|
+
:'is_match_for_birth_date' => :'isMatchForBirthDate',
|
|
94
|
+
:'is_match_for_selfie' => :'isMatchForSelfie',
|
|
95
|
+
:'is_not_too_similar_to_document_portrait' => :'isNotTooSimilarToDocumentPortrait',
|
|
96
|
+
:'is_not_different_face' => :'isNotDifferentFace',
|
|
97
|
+
:'is_single_face' => :'isSingleFace',
|
|
98
|
+
:'is_over_age' => :'isOverAge',
|
|
99
|
+
:'is_age_estimation_match_for_selfie' => :'isAgeEstimationMatchForSelfie',
|
|
100
|
+
:'age_estimation_threshold' => :'ageEstimationThreshold',
|
|
101
|
+
:'estimated_age_from_selfie' => :'estimatedAgeFromSelfie'
|
|
102
|
+
}
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Returns attribute mapping this model knows about
|
|
106
|
+
def self.acceptable_attribute_map
|
|
107
|
+
attribute_map
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Returns all the JSON keys this model knows about
|
|
111
|
+
def self.acceptable_attributes
|
|
112
|
+
acceptable_attribute_map.values
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Attribute type mapping.
|
|
116
|
+
def self.openapi_types
|
|
117
|
+
{
|
|
118
|
+
:'given_name' => :'String',
|
|
119
|
+
:'family_name' => :'String',
|
|
120
|
+
:'nationality' => :'String',
|
|
121
|
+
:'date_of_birth' => :'Date',
|
|
122
|
+
:'personal_number' => :'String',
|
|
123
|
+
:'expiration_date' => :'Date',
|
|
124
|
+
:'is_match_for_given_names' => :'Boolean',
|
|
125
|
+
:'is_match_for_family_name' => :'Boolean',
|
|
126
|
+
:'is_match_for_expiration_date' => :'Boolean',
|
|
127
|
+
:'is_match_for_personal_number' => :'Boolean',
|
|
128
|
+
:'is_match_for_nationality' => :'Boolean',
|
|
129
|
+
:'is_match_for_birth_date' => :'Boolean',
|
|
130
|
+
:'is_match_for_selfie' => :'Boolean',
|
|
131
|
+
:'is_not_too_similar_to_document_portrait' => :'Boolean',
|
|
132
|
+
:'is_not_different_face' => :'Boolean',
|
|
133
|
+
:'is_single_face' => :'Boolean',
|
|
134
|
+
:'is_over_age' => :'Boolean',
|
|
135
|
+
:'is_age_estimation_match_for_selfie' => :'Boolean',
|
|
136
|
+
:'age_estimation_threshold' => :'Integer',
|
|
137
|
+
:'estimated_age_from_selfie' => :'Integer'
|
|
138
|
+
}
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# List of attributes with nullable: true
|
|
142
|
+
def self.openapi_nullable
|
|
143
|
+
Set.new([
|
|
144
|
+
:'given_name',
|
|
145
|
+
:'family_name',
|
|
146
|
+
:'nationality',
|
|
147
|
+
:'date_of_birth',
|
|
148
|
+
:'personal_number',
|
|
149
|
+
:'expiration_date',
|
|
150
|
+
:'is_match_for_given_names',
|
|
151
|
+
:'is_match_for_family_name',
|
|
152
|
+
:'is_match_for_expiration_date',
|
|
153
|
+
:'is_match_for_personal_number',
|
|
154
|
+
:'is_match_for_nationality',
|
|
155
|
+
:'is_match_for_birth_date',
|
|
156
|
+
:'is_match_for_selfie',
|
|
157
|
+
:'is_not_too_similar_to_document_portrait',
|
|
158
|
+
:'is_not_different_face',
|
|
159
|
+
:'is_single_face',
|
|
160
|
+
:'is_over_age',
|
|
161
|
+
:'is_age_estimation_match_for_selfie',
|
|
162
|
+
:'age_estimation_threshold',
|
|
163
|
+
:'estimated_age_from_selfie'
|
|
164
|
+
])
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Initializes the object
|
|
168
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
169
|
+
def initialize(attributes = {})
|
|
170
|
+
if (!attributes.is_a?(Hash))
|
|
171
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::PolandMobywatelMatchProviderOutput` initialize method"
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
175
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
176
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
177
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
178
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::PolandMobywatelMatchProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
179
|
+
end
|
|
180
|
+
h[k.to_sym] = v
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if attributes.key?(:'given_name')
|
|
184
|
+
self.given_name = attributes[:'given_name']
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if attributes.key?(:'family_name')
|
|
188
|
+
self.family_name = attributes[:'family_name']
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if attributes.key?(:'nationality')
|
|
192
|
+
self.nationality = attributes[:'nationality']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.key?(:'date_of_birth')
|
|
196
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if attributes.key?(:'personal_number')
|
|
200
|
+
self.personal_number = attributes[:'personal_number']
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if attributes.key?(:'expiration_date')
|
|
204
|
+
self.expiration_date = attributes[:'expiration_date']
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
if attributes.key?(:'is_match_for_given_names')
|
|
208
|
+
self.is_match_for_given_names = attributes[:'is_match_for_given_names']
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
if attributes.key?(:'is_match_for_family_name')
|
|
212
|
+
self.is_match_for_family_name = attributes[:'is_match_for_family_name']
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if attributes.key?(:'is_match_for_expiration_date')
|
|
216
|
+
self.is_match_for_expiration_date = attributes[:'is_match_for_expiration_date']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'is_match_for_personal_number')
|
|
220
|
+
self.is_match_for_personal_number = attributes[:'is_match_for_personal_number']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'is_match_for_nationality')
|
|
224
|
+
self.is_match_for_nationality = attributes[:'is_match_for_nationality']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'is_match_for_birth_date')
|
|
228
|
+
self.is_match_for_birth_date = attributes[:'is_match_for_birth_date']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'is_match_for_selfie')
|
|
232
|
+
self.is_match_for_selfie = attributes[:'is_match_for_selfie']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'is_not_too_similar_to_document_portrait')
|
|
236
|
+
self.is_not_too_similar_to_document_portrait = attributes[:'is_not_too_similar_to_document_portrait']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.key?(:'is_not_different_face')
|
|
240
|
+
self.is_not_different_face = attributes[:'is_not_different_face']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'is_single_face')
|
|
244
|
+
self.is_single_face = attributes[:'is_single_face']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'is_over_age')
|
|
248
|
+
self.is_over_age = attributes[:'is_over_age']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if attributes.key?(:'is_age_estimation_match_for_selfie')
|
|
252
|
+
self.is_age_estimation_match_for_selfie = attributes[:'is_age_estimation_match_for_selfie']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'age_estimation_threshold')
|
|
256
|
+
self.age_estimation_threshold = attributes[:'age_estimation_threshold']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.key?(:'estimated_age_from_selfie')
|
|
260
|
+
self.estimated_age_from_selfie = attributes[:'estimated_age_from_selfie']
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
265
|
+
# @return Array for valid properties with the reasons
|
|
266
|
+
def list_invalid_properties
|
|
267
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
268
|
+
invalid_properties = Array.new
|
|
269
|
+
invalid_properties
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Check to see if the all the properties in the model are valid
|
|
273
|
+
# @return true if the model is valid
|
|
274
|
+
def valid?
|
|
275
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
276
|
+
true
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# Checks equality by comparing each attribute.
|
|
280
|
+
# @param [Object] Object to be compared
|
|
281
|
+
def ==(o)
|
|
282
|
+
return true if self.equal?(o)
|
|
283
|
+
self.class == o.class &&
|
|
284
|
+
given_name == o.given_name &&
|
|
285
|
+
family_name == o.family_name &&
|
|
286
|
+
nationality == o.nationality &&
|
|
287
|
+
date_of_birth == o.date_of_birth &&
|
|
288
|
+
personal_number == o.personal_number &&
|
|
289
|
+
expiration_date == o.expiration_date &&
|
|
290
|
+
is_match_for_given_names == o.is_match_for_given_names &&
|
|
291
|
+
is_match_for_family_name == o.is_match_for_family_name &&
|
|
292
|
+
is_match_for_expiration_date == o.is_match_for_expiration_date &&
|
|
293
|
+
is_match_for_personal_number == o.is_match_for_personal_number &&
|
|
294
|
+
is_match_for_nationality == o.is_match_for_nationality &&
|
|
295
|
+
is_match_for_birth_date == o.is_match_for_birth_date &&
|
|
296
|
+
is_match_for_selfie == o.is_match_for_selfie &&
|
|
297
|
+
is_not_too_similar_to_document_portrait == o.is_not_too_similar_to_document_portrait &&
|
|
298
|
+
is_not_different_face == o.is_not_different_face &&
|
|
299
|
+
is_single_face == o.is_single_face &&
|
|
300
|
+
is_over_age == o.is_over_age &&
|
|
301
|
+
is_age_estimation_match_for_selfie == o.is_age_estimation_match_for_selfie &&
|
|
302
|
+
age_estimation_threshold == o.age_estimation_threshold &&
|
|
303
|
+
estimated_age_from_selfie == o.estimated_age_from_selfie
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# @see the `==` method
|
|
307
|
+
# @param [Object] Object to be compared
|
|
308
|
+
def eql?(o)
|
|
309
|
+
self == o
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Calculates hash code according to all attributes.
|
|
313
|
+
# @return [Integer] Hash code
|
|
314
|
+
def hash
|
|
315
|
+
[given_name, family_name, nationality, date_of_birth, personal_number, expiration_date, is_match_for_given_names, is_match_for_family_name, is_match_for_expiration_date, is_match_for_personal_number, is_match_for_nationality, is_match_for_birth_date, is_match_for_selfie, is_not_too_similar_to_document_portrait, is_not_different_face, is_single_face, is_over_age, is_age_estimation_match_for_selfie, age_estimation_threshold, estimated_age_from_selfie].hash
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Builds the object from hash
|
|
319
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
320
|
+
# @return [Object] Returns the model itself
|
|
321
|
+
def self.build_from_hash(attributes)
|
|
322
|
+
return nil unless attributes.is_a?(Hash)
|
|
323
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
324
|
+
transformed_hash = {}
|
|
325
|
+
openapi_types.each_pair do |key, type|
|
|
326
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
327
|
+
transformed_hash["#{key}"] = nil
|
|
328
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
329
|
+
# check to ensure the input is an array given that the attribute
|
|
330
|
+
# is documented as an array but the input is not
|
|
331
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
332
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
333
|
+
end
|
|
334
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
335
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
new(transformed_hash)
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# Returns the object in the form of hash
|
|
342
|
+
# @return [Hash] Returns the object in the form of hash
|
|
343
|
+
def to_hash
|
|
344
|
+
hash = {}
|
|
345
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
346
|
+
value = self.send(attr)
|
|
347
|
+
if value.nil?
|
|
348
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
349
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
hash[param] = _to_hash(value)
|
|
353
|
+
end
|
|
354
|
+
hash
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
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
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
17
|
# Exposed properties for the `a-pl-mojeid-login` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
-
class PolandMojeIdProviderOutput
|
|
18
|
+
class PolandMojeIdProviderOutput < ApiModelBase
|
|
19
19
|
# The first name of the verified individual
|
|
20
20
|
attr_accessor :first_name
|
|
21
21
|
|
|
@@ -199,61 +199,6 @@ module TrinsicApi
|
|
|
199
199
|
new(transformed_hash)
|
|
200
200
|
end
|
|
201
201
|
|
|
202
|
-
# Deserializes the data based on type
|
|
203
|
-
# @param string type Data type
|
|
204
|
-
# @param string value Value to be deserialized
|
|
205
|
-
# @return [Object] Deserialized data
|
|
206
|
-
def self._deserialize(type, value)
|
|
207
|
-
case type.to_sym
|
|
208
|
-
when :Time
|
|
209
|
-
Time.parse(value)
|
|
210
|
-
when :Date
|
|
211
|
-
Date.parse(value)
|
|
212
|
-
when :String
|
|
213
|
-
value.to_s
|
|
214
|
-
when :Integer
|
|
215
|
-
value.to_i
|
|
216
|
-
when :Float
|
|
217
|
-
value.to_f
|
|
218
|
-
when :Boolean
|
|
219
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
220
|
-
true
|
|
221
|
-
else
|
|
222
|
-
false
|
|
223
|
-
end
|
|
224
|
-
when :Object
|
|
225
|
-
# generic object (usually a Hash), return directly
|
|
226
|
-
value
|
|
227
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
228
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
229
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
230
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
231
|
-
k_type = Regexp.last_match[:k_type]
|
|
232
|
-
v_type = Regexp.last_match[:v_type]
|
|
233
|
-
{}.tap do |hash|
|
|
234
|
-
value.each do |k, v|
|
|
235
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
236
|
-
end
|
|
237
|
-
end
|
|
238
|
-
else # model
|
|
239
|
-
# models (e.g. Pet) or oneOf
|
|
240
|
-
klass = TrinsicApi.const_get(type)
|
|
241
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
# Returns the string representation of the object
|
|
246
|
-
# @return [String] String presentation of the object
|
|
247
|
-
def to_s
|
|
248
|
-
to_hash.to_s
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
252
|
-
# @return [Hash] Returns the object in the form of hash
|
|
253
|
-
def to_body
|
|
254
|
-
to_hash
|
|
255
|
-
end
|
|
256
|
-
|
|
257
202
|
# Returns the object in the form of hash
|
|
258
203
|
# @return [Hash] Returns the object in the form of hash
|
|
259
204
|
def to_hash
|
|
@@ -270,24 +215,6 @@ module TrinsicApi
|
|
|
270
215
|
hash
|
|
271
216
|
end
|
|
272
217
|
|
|
273
|
-
# Outputs non-array value in the form of hash
|
|
274
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
275
|
-
# @param [Object] value Any valid value
|
|
276
|
-
# @return [Hash] Returns the value in the form of hash
|
|
277
|
-
def _to_hash(value)
|
|
278
|
-
if value.is_a?(Array)
|
|
279
|
-
value.compact.map { |v| _to_hash(v) }
|
|
280
|
-
elsif value.is_a?(Hash)
|
|
281
|
-
{}.tap do |hash|
|
|
282
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
283
|
-
end
|
|
284
|
-
elsif value.respond_to? :to_hash
|
|
285
|
-
value.to_hash
|
|
286
|
-
else
|
|
287
|
-
value
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
|
|
291
218
|
end
|
|
292
219
|
|
|
293
220
|
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
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
17
|
# Exposed properties for the `a-pt-id-login` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
-
class PortugalIdCardProviderOutput
|
|
18
|
+
class PortugalIdCardProviderOutput < ApiModelBase
|
|
19
19
|
# The first name of the verified individual
|
|
20
20
|
attr_accessor :first_name
|
|
21
21
|
|
|
@@ -226,61 +226,6 @@ module TrinsicApi
|
|
|
226
226
|
new(transformed_hash)
|
|
227
227
|
end
|
|
228
228
|
|
|
229
|
-
# Deserializes the data based on type
|
|
230
|
-
# @param string type Data type
|
|
231
|
-
# @param string value Value to be deserialized
|
|
232
|
-
# @return [Object] Deserialized data
|
|
233
|
-
def self._deserialize(type, value)
|
|
234
|
-
case type.to_sym
|
|
235
|
-
when :Time
|
|
236
|
-
Time.parse(value)
|
|
237
|
-
when :Date
|
|
238
|
-
Date.parse(value)
|
|
239
|
-
when :String
|
|
240
|
-
value.to_s
|
|
241
|
-
when :Integer
|
|
242
|
-
value.to_i
|
|
243
|
-
when :Float
|
|
244
|
-
value.to_f
|
|
245
|
-
when :Boolean
|
|
246
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
247
|
-
true
|
|
248
|
-
else
|
|
249
|
-
false
|
|
250
|
-
end
|
|
251
|
-
when :Object
|
|
252
|
-
# generic object (usually a Hash), return directly
|
|
253
|
-
value
|
|
254
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
255
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
256
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
257
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
258
|
-
k_type = Regexp.last_match[:k_type]
|
|
259
|
-
v_type = Regexp.last_match[:v_type]
|
|
260
|
-
{}.tap do |hash|
|
|
261
|
-
value.each do |k, v|
|
|
262
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
else # model
|
|
266
|
-
# models (e.g. Pet) or oneOf
|
|
267
|
-
klass = TrinsicApi.const_get(type)
|
|
268
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
# Returns the string representation of the object
|
|
273
|
-
# @return [String] String presentation of the object
|
|
274
|
-
def to_s
|
|
275
|
-
to_hash.to_s
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
279
|
-
# @return [Hash] Returns the object in the form of hash
|
|
280
|
-
def to_body
|
|
281
|
-
to_hash
|
|
282
|
-
end
|
|
283
|
-
|
|
284
229
|
# Returns the object in the form of hash
|
|
285
230
|
# @return [Hash] Returns the object in the form of hash
|
|
286
231
|
def to_hash
|
|
@@ -297,24 +242,6 @@ module TrinsicApi
|
|
|
297
242
|
hash
|
|
298
243
|
end
|
|
299
244
|
|
|
300
|
-
# Outputs non-array value in the form of hash
|
|
301
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
302
|
-
# @param [Object] value Any valid value
|
|
303
|
-
# @return [Hash] Returns the value in the form of hash
|
|
304
|
-
def _to_hash(value)
|
|
305
|
-
if value.is_a?(Array)
|
|
306
|
-
value.compact.map { |v| _to_hash(v) }
|
|
307
|
-
elsif value.is_a?(Hash)
|
|
308
|
-
{}.tap do |hash|
|
|
309
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
310
|
-
end
|
|
311
|
-
elsif value.respond_to? :to_hash
|
|
312
|
-
value.to_hash
|
|
313
|
-
else
|
|
314
|
-
value
|
|
315
|
-
end
|
|
316
|
-
end
|
|
317
|
-
|
|
318
245
|
end
|
|
319
246
|
|
|
320
247
|
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
|
|
|
@@ -15,8 +15,8 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
17
|
# Exposed properties for the `post-office-easyid` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
-
class PostOfficeEasyIdProviderOutput
|
|
19
|
-
#
|
|
18
|
+
class PostOfficeEasyIdProviderOutput < ApiModelBase
|
|
19
|
+
# A Yoti-generated unique ID for this individual, consistent across repeat shares and different for each Relying Party.
|
|
20
20
|
attr_accessor :remember_me_id
|
|
21
21
|
|
|
22
22
|
# The email address of the individual
|
|
@@ -40,7 +40,7 @@ module TrinsicApi
|
|
|
40
40
|
# The nationality of the individual as a ISO alpha-3 code
|
|
41
41
|
attr_accessor :nationality
|
|
42
42
|
|
|
43
|
-
# The mobile phone number of the individual. This number was verified with a one time password (OTP) during the
|
|
43
|
+
# The mobile phone number of the individual. This number was verified with a one time password (OTP) during the individual's registration with Yoti. In some cases, Yoti may do additional checks against its sources to confirm the individual's identity.
|
|
44
44
|
attr_accessor :mobile_number
|
|
45
45
|
|
|
46
46
|
# A structured postal address for the individual that comes from the underlying document or can be manually added. In the case of being manually added, the address is considered \"unverified\". Unverified addresses may be safe to use. For example, Aadhaar card provides an address, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as \"unverified\".
|
|
@@ -250,61 +250,6 @@ module TrinsicApi
|
|
|
250
250
|
new(transformed_hash)
|
|
251
251
|
end
|
|
252
252
|
|
|
253
|
-
# Deserializes the data based on type
|
|
254
|
-
# @param string type Data type
|
|
255
|
-
# @param string value Value to be deserialized
|
|
256
|
-
# @return [Object] Deserialized data
|
|
257
|
-
def self._deserialize(type, value)
|
|
258
|
-
case type.to_sym
|
|
259
|
-
when :Time
|
|
260
|
-
Time.parse(value)
|
|
261
|
-
when :Date
|
|
262
|
-
Date.parse(value)
|
|
263
|
-
when :String
|
|
264
|
-
value.to_s
|
|
265
|
-
when :Integer
|
|
266
|
-
value.to_i
|
|
267
|
-
when :Float
|
|
268
|
-
value.to_f
|
|
269
|
-
when :Boolean
|
|
270
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
271
|
-
true
|
|
272
|
-
else
|
|
273
|
-
false
|
|
274
|
-
end
|
|
275
|
-
when :Object
|
|
276
|
-
# generic object (usually a Hash), return directly
|
|
277
|
-
value
|
|
278
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
279
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
280
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
281
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
282
|
-
k_type = Regexp.last_match[:k_type]
|
|
283
|
-
v_type = Regexp.last_match[:v_type]
|
|
284
|
-
{}.tap do |hash|
|
|
285
|
-
value.each do |k, v|
|
|
286
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
287
|
-
end
|
|
288
|
-
end
|
|
289
|
-
else # model
|
|
290
|
-
# models (e.g. Pet) or oneOf
|
|
291
|
-
klass = TrinsicApi.const_get(type)
|
|
292
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
293
|
-
end
|
|
294
|
-
end
|
|
295
|
-
|
|
296
|
-
# Returns the string representation of the object
|
|
297
|
-
# @return [String] String presentation of the object
|
|
298
|
-
def to_s
|
|
299
|
-
to_hash.to_s
|
|
300
|
-
end
|
|
301
|
-
|
|
302
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
303
|
-
# @return [Hash] Returns the object in the form of hash
|
|
304
|
-
def to_body
|
|
305
|
-
to_hash
|
|
306
|
-
end
|
|
307
|
-
|
|
308
253
|
# Returns the object in the form of hash
|
|
309
254
|
# @return [Hash] Returns the object in the form of hash
|
|
310
255
|
def to_hash
|
|
@@ -321,24 +266,6 @@ module TrinsicApi
|
|
|
321
266
|
hash
|
|
322
267
|
end
|
|
323
268
|
|
|
324
|
-
# Outputs non-array value in the form of hash
|
|
325
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
326
|
-
# @param [Object] value Any valid value
|
|
327
|
-
# @return [Hash] Returns the value in the form of hash
|
|
328
|
-
def _to_hash(value)
|
|
329
|
-
if value.is_a?(Array)
|
|
330
|
-
value.compact.map { |v| _to_hash(v) }
|
|
331
|
-
elsif value.is_a?(Hash)
|
|
332
|
-
{}.tap do |hash|
|
|
333
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
334
|
-
end
|
|
335
|
-
elsif value.respond_to? :to_hash
|
|
336
|
-
value.to_hash
|
|
337
|
-
else
|
|
338
|
-
value
|
|
339
|
-
end
|
|
340
|
-
end
|
|
341
|
-
|
|
342
269
|
end
|
|
343
270
|
|
|
344
271
|
end
|