trinsic_api 3.0.2.pre.preview → 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 +2 -24
- data/docs/AadhaarLanguage.md +1 -1
- data/docs/AadhaarLocalizedClaims.md +2 -20
- 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/ConnectIdProviderOutput.md +0 -2
- data/docs/CoteDIvoireNidLookup2ProviderOutput.md +34 -0
- data/docs/CreateDirectProviderSessionRequest.md +2 -0
- data/docs/CreateHostedProviderSessionRequest.md +2 -0
- data/docs/CzechMojeIdProviderOutput.md +5 -1
- data/docs/CzechiaMojeIdProviderOutput.md +1 -1
- data/docs/DigilockerAadhaarProviderOutput.md +8 -8
- data/docs/ElSalvadorDuiLookupInput.md +20 -0
- data/docs/ElSalvadorDuiProviderOutput.md +22 -0
- data/docs/FaydaProviderAddress.md +22 -0
- data/docs/FaydaProviderOutput.md +14 -2
- data/docs/FinnishTrustNetworkProviderOutput.md +2 -2
- data/docs/FrejaProviderOutput.md +1 -1
- data/docs/FrenchNumeriqueGivenName.md +1 -1
- data/docs/FrenchNumeriqueProviderOutput.md +7 -7
- data/docs/GoogleWalletInput.md +1 -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/NorwegianBankIdProviderOutput.md +2 -2
- data/docs/PanamaCedulaLookupInput.md +20 -0
- data/docs/PanamaCedulaProviderOutput.md +32 -0
- data/docs/PeruDniProviderOutput.md +1 -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 +20 -0
- data/docs/ProviderOutput.md +34 -4
- data/docs/ProviderSupportedLanguage.md +20 -0
- data/docs/RecommendProviderInformation.md +3 -3
- 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/UnitedKingdomEvisaProviderOutput.md +1 -1
- data/docs/UsaCaliforniaDmvInput.md +18 -0
- data/docs/VerificationProfileResponse.md +2 -0
- data/docs/VerificationProfilesApi.md +72 -0
- data/docs/YotiDeeplinkProviderOutput.md +2 -2
- data/docs/YotiProviderOutput.md +2 -2
- data/lib/trinsic_api/api/providers_api.rb +1 -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 +74 -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 +11 -205
- data/lib/trinsic_api/models/aadhaar_input.rb +2 -75
- data/lib/trinsic_api/models/aadhaar_language.rb +3 -76
- data/lib/trinsic_api/models/aadhaar_localized_claims.rb +11 -183
- 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 +2 -75
- 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 +2 -75
- data/lib/trinsic_api/models/connect_id_age_verification.rb +2 -75
- data/lib/trinsic_api/models/connect_id_provider_output.rb +3 -87
- 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 +2 -75
- data/lib/trinsic_api/models/czech_moje_id_provider_output.rb +26 -77
- data/lib/trinsic_api/models/czechia_moje_id_provider_output.rb +3 -76
- data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +24 -97
- 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 +74 -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 +4 -77
- data/lib/trinsic_api/models/france_identite_input.rb +2 -75
- data/lib/trinsic_api/models/france_identite_provider_output.rb +2 -75
- data/lib/trinsic_api/models/freja_indirect_provider_output.rb +2 -75
- data/lib/trinsic_api/models/freja_provider_output.rb +3 -76
- 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 +2 -75
- 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 +3 -76
- 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 +2 -75
- 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 +2 -75
- 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 +4 -77
- data/lib/trinsic_api/models/one_id_provider_address.rb +2 -75
- data/lib/trinsic_api/models/one_id_provider_output.rb +2 -75
- data/lib/trinsic_api/models/order_direction.rb +1 -1
- data/lib/trinsic_api/models/output_freja_address.rb +2 -75
- data/lib/trinsic_api/models/output_freja_document.rb +2 -75
- 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 +2 -75
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +2 -75
- 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 +113 -76
- data/lib/trinsic_api/models/provider_output.rb +190 -98
- data/lib/trinsic_api/models/provider_supported_language.rb +176 -0
- data/lib/trinsic_api/models/raw18013_document_request.rb +4 -77
- data/lib/trinsic_api/models/raw18013_request_input.rb +2 -75
- 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 +2 -75
- 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 +2 -75
- 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/{connect_id_beneficiary_account.rb → singpass_login_provider_output.rb} +71 -110
- 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 +4 -77
- data/lib/trinsic_api/models/united_kingdom_evisa_provider_output.rb +3 -76
- data/lib/trinsic_api/models/usa_california_dmv_input.rb +149 -0
- data/lib/trinsic_api/models/verification_profile_response.rb +14 -76
- data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +4 -77
- 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 +40 -5
- data/spec/api/providers_api_spec.rb +1 -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 +14 -1
- data/spec/models/aadhaar_address_spec.rb +102 -0
- data/spec/models/aadhaar_claims_spec.rb +3 -69
- data/spec/models/aadhaar_input_spec.rb +2 -2
- data/spec/models/aadhaar_language_spec.rb +2 -2
- data/spec/models/aadhaar_localized_claims_spec.rb +3 -57
- 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 +2 -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/{create_widget_session_request_spec.rb → audkenni_provider_output_spec.rb} +11 -11
- 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/{connect_id_beneficiary_account_spec.rb → china_resident_id_match_input_spec.rb} +11 -11
- 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 +2 -2
- data/spec/models/connect_id_age_verification_spec.rb +2 -2
- data/spec/models/connect_id_provider_output_spec.rb +2 -8
- 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 +2 -2
- data/spec/models/czech_moje_id_provider_output_spec.rb +14 -2
- data/spec/models/czechia_moje_id_provider_output_spec.rb +2 -2
- data/spec/models/digilocker_aadhaar_provider_output_spec.rb +8 -8
- 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 +38 -2
- data/spec/models/finland_id_card_provider_output_spec.rb +2 -2
- data/spec/models/finnish_trust_network_provider_output_spec.rb +2 -2
- data/spec/models/france_identite_input_spec.rb +2 -2
- data/spec/models/france_identite_provider_output_spec.rb +2 -2
- data/spec/models/freja_indirect_provider_output_spec.rb +2 -2
- data/spec/models/freja_provider_output_spec.rb +2 -2
- 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 +2 -2
- 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 +2 -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 +2 -2
- 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 +2 -2
- data/spec/models/one_id_provider_address_spec.rb +2 -2
- data/spec/models/one_id_provider_output_spec.rb +2 -2
- data/spec/models/order_direction_spec.rb +2 -2
- data/spec/models/output_freja_address_spec.rb +2 -2
- data/spec/models/output_freja_document_spec.rb +2 -2
- 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 +2 -2
- data/spec/models/philippines_physical_nid_provider_output_spec.rb +2 -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 +62 -2
- data/spec/models/provider_output_spec.rb +96 -6
- 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 +2 -2
- data/spec/models/raw18013_request_input_spec.rb +2 -2
- 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 +2 -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 +2 -2
- 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 +2 -2
- data/spec/models/united_kingdom_evisa_provider_output_spec.rb +2 -2
- data/spec/models/usa_california_dmv_input_spec.rb +36 -0
- data/spec/models/verification_profile_response_spec.rb +8 -2
- data/spec/models/yoti_deeplink_provider_output_spec.rb +2 -2
- 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 +299 -162
- data/docs/ConnectIdBeneficiaryAccount.md +0 -24
- 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,403 @@
|
|
|
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
|
+
# MyInfo Personal catalog.
|
|
18
|
+
class SingpassPersonalCatalog < ApiModelBase
|
|
19
|
+
# The Unique Identifier Number (UINFIN) for the user. The number can be either a National Registration Identity Card or a Foreign Identification Number (NRIC/FIN). Follows the format @xxxxxxx#: - @ is the status of the holder. - Singapore citizens and permanent residents born before 1 January 2000 are assigned the letter \"S\". - Singapore citizens and permanent residents born on or after 1 January 2000 are assigned the letter \"T\". - Foreigners issued with long-term passes before 1 January 2000 are assigned the letter \"F\". - Foreigners issued with long-term passes from 1 January 2000 to 31 December 2021 are assigned the letter \"G\". - Foreigners issued with long-term passes on or after 1 January 2022 are assigned the letter \"M\". - xxxxxxx is seven digit serial number. - # is the checksum letter.
|
|
20
|
+
attr_accessor :identity_number
|
|
21
|
+
|
|
22
|
+
# The partial National Registration Identity Card or Foreign Identification Number (NRIC/FIN) shown by Singpass. The value hides all but the last three digits and checksum.
|
|
23
|
+
attr_accessor :partial_identity_number
|
|
24
|
+
|
|
25
|
+
# The name of verified individual composed of all the possible names. The name is assembled in the following format (where applicable): 1. Principal Name (The first name section) 2. Hanyu Pinyin Name 3. Alias Name 4. Hanyu Pinyin Alias Name 5. Married Name (optional): Available only for females, prefixed with \"MRS\"
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
28
|
+
# The individual's alternate legally recognized name.
|
|
29
|
+
attr_accessor :alias_name
|
|
30
|
+
|
|
31
|
+
# The individual's Hanyu Pinyin name.
|
|
32
|
+
attr_accessor :hanyu_pinyin_name
|
|
33
|
+
|
|
34
|
+
# The individual's Hanyu Pinyin alias name.
|
|
35
|
+
attr_accessor :hanyu_pinyin_alias_name
|
|
36
|
+
|
|
37
|
+
# The individual's married name. This appears when Singpass has a legally recognized married surname on file.
|
|
38
|
+
attr_accessor :married_name
|
|
39
|
+
|
|
40
|
+
# The user's email address.
|
|
41
|
+
attr_accessor :email
|
|
42
|
+
|
|
43
|
+
# The user's mobile number, split into prefix, area code, and subscriber number.
|
|
44
|
+
attr_accessor :mobile_number
|
|
45
|
+
|
|
46
|
+
# The user's dialect.
|
|
47
|
+
attr_accessor :dialect
|
|
48
|
+
|
|
49
|
+
# The user's date of birth.
|
|
50
|
+
attr_accessor :date_of_birth
|
|
51
|
+
|
|
52
|
+
# The user's residential status. Possible values (code description): - A Alien - C Citizen - P PR - U Unknown - N NOT APPLICABLE
|
|
53
|
+
attr_accessor :residential_status
|
|
54
|
+
|
|
55
|
+
# The user's nationality in IS0-2 country code format.
|
|
56
|
+
attr_accessor :nationality
|
|
57
|
+
|
|
58
|
+
# The user's birth country in IS0-2 country code format.
|
|
59
|
+
attr_accessor :birth_country
|
|
60
|
+
|
|
61
|
+
# The user's passport number.
|
|
62
|
+
attr_accessor :passport_number
|
|
63
|
+
|
|
64
|
+
# The user's passport expiry date.
|
|
65
|
+
attr_accessor :passport_expiry_date
|
|
66
|
+
|
|
67
|
+
# The Pass type of the individual. Possible values: (code description) - RPass Work Permit - SPass S Pass - P1Pass Employment Pass - P2Pass Employment Pass - QPass Employment Pass - PEP Personalised Employment Pass - WHP Work Holiday Pass - TEP Training Employment Pass - Entre EntrePass - OVE Overseas Networks & Expertise Pass - DP Dependent Pass - LTVP Long-Term Visit Pass - LOC Letter of Consent - MWP Miscellaneous Work Pass - STP Student's Pass - LTVP+ Long-Term Visit Pass Plus - IEO Immigration Exemption Order Note that this only applies to a FIN holder.
|
|
68
|
+
attr_accessor :pass_type
|
|
69
|
+
|
|
70
|
+
# Pass status. Possible values: - Live - Approved (Interim status in which the FIN holder has yet to receive the pass) Note that this only applies to a FIN holder.
|
|
71
|
+
attr_accessor :pass_status
|
|
72
|
+
|
|
73
|
+
# Pass expiration date. Note that this only applies to a FIN holder.
|
|
74
|
+
attr_accessor :pass_expiry_date
|
|
75
|
+
|
|
76
|
+
# The user's employment sector.
|
|
77
|
+
attr_accessor :employment_sector
|
|
78
|
+
|
|
79
|
+
# The user's registered address.
|
|
80
|
+
attr_accessor :registered_address
|
|
81
|
+
|
|
82
|
+
# Housing and Development Board (HBD) flat type code and description. This value will be null if not HBD Possible values (code description): - 111 1-ROOM FLAT (HDB) - 112 2-ROOM FLAT (HDB) - 113 3-ROOM FLAT (HDB) - 114 4-ROOM FLAT (HDB) - 115 5-ROOM FLAT (HDB) - 116 EXECUTIVE FLAT (HDB) - 118 STUDIO APARTMENT (HDB)
|
|
83
|
+
attr_accessor :house_developmenet_board_type
|
|
84
|
+
|
|
85
|
+
# The user's housing type. Possible values (code description): - 121 DETACHED HOUSE - 122 SEMI-DETACHED HOUSE - 123 TERRACE HOUSE - 131 CONDOMINIUM - 132 EXECUTIVE CONDOMINIUM - 139 APARTMENT
|
|
86
|
+
attr_accessor :housing_type
|
|
87
|
+
|
|
88
|
+
# Sex of the individual. Possible values: - Female - Male - Unknown
|
|
89
|
+
attr_accessor :sex
|
|
90
|
+
|
|
91
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
92
|
+
def self.attribute_map
|
|
93
|
+
{
|
|
94
|
+
:'identity_number' => :'identityNumber',
|
|
95
|
+
:'partial_identity_number' => :'partialIdentityNumber',
|
|
96
|
+
:'name' => :'name',
|
|
97
|
+
:'alias_name' => :'aliasName',
|
|
98
|
+
:'hanyu_pinyin_name' => :'hanyuPinyinName',
|
|
99
|
+
:'hanyu_pinyin_alias_name' => :'hanyuPinyinAliasName',
|
|
100
|
+
:'married_name' => :'marriedName',
|
|
101
|
+
:'email' => :'email',
|
|
102
|
+
:'mobile_number' => :'mobileNumber',
|
|
103
|
+
:'dialect' => :'dialect',
|
|
104
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
105
|
+
:'residential_status' => :'residentialStatus',
|
|
106
|
+
:'nationality' => :'nationality',
|
|
107
|
+
:'birth_country' => :'birthCountry',
|
|
108
|
+
:'passport_number' => :'passportNumber',
|
|
109
|
+
:'passport_expiry_date' => :'passportExpiryDate',
|
|
110
|
+
:'pass_type' => :'passType',
|
|
111
|
+
:'pass_status' => :'passStatus',
|
|
112
|
+
:'pass_expiry_date' => :'passExpiryDate',
|
|
113
|
+
:'employment_sector' => :'employmentSector',
|
|
114
|
+
:'registered_address' => :'registeredAddress',
|
|
115
|
+
:'house_developmenet_board_type' => :'houseDevelopmenetBoardType',
|
|
116
|
+
:'housing_type' => :'housingType',
|
|
117
|
+
:'sex' => :'sex'
|
|
118
|
+
}
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Returns attribute mapping this model knows about
|
|
122
|
+
def self.acceptable_attribute_map
|
|
123
|
+
attribute_map
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Returns all the JSON keys this model knows about
|
|
127
|
+
def self.acceptable_attributes
|
|
128
|
+
acceptable_attribute_map.values
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Attribute type mapping.
|
|
132
|
+
def self.openapi_types
|
|
133
|
+
{
|
|
134
|
+
:'identity_number' => :'String',
|
|
135
|
+
:'partial_identity_number' => :'String',
|
|
136
|
+
:'name' => :'String',
|
|
137
|
+
:'alias_name' => :'String',
|
|
138
|
+
:'hanyu_pinyin_name' => :'String',
|
|
139
|
+
:'hanyu_pinyin_alias_name' => :'String',
|
|
140
|
+
:'married_name' => :'String',
|
|
141
|
+
:'email' => :'String',
|
|
142
|
+
:'mobile_number' => :'SingpassPhoneNumber',
|
|
143
|
+
:'dialect' => :'SingpassMyInfoDescription',
|
|
144
|
+
:'date_of_birth' => :'Date',
|
|
145
|
+
:'residential_status' => :'SingpassMyInfoDescription',
|
|
146
|
+
:'nationality' => :'String',
|
|
147
|
+
:'birth_country' => :'String',
|
|
148
|
+
:'passport_number' => :'String',
|
|
149
|
+
:'passport_expiry_date' => :'Date',
|
|
150
|
+
:'pass_type' => :'SingpassMyInfoDescription',
|
|
151
|
+
:'pass_status' => :'String',
|
|
152
|
+
:'pass_expiry_date' => :'Date',
|
|
153
|
+
:'employment_sector' => :'String',
|
|
154
|
+
:'registered_address' => :'SingpassMyInfoRegisteredAddressOutput',
|
|
155
|
+
:'house_developmenet_board_type' => :'SingpassMyInfoDescription',
|
|
156
|
+
:'housing_type' => :'SingpassMyInfoDescription',
|
|
157
|
+
:'sex' => :'String'
|
|
158
|
+
}
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# List of attributes with nullable: true
|
|
162
|
+
def self.openapi_nullable
|
|
163
|
+
Set.new([
|
|
164
|
+
:'identity_number',
|
|
165
|
+
:'partial_identity_number',
|
|
166
|
+
:'name',
|
|
167
|
+
:'alias_name',
|
|
168
|
+
:'hanyu_pinyin_name',
|
|
169
|
+
:'hanyu_pinyin_alias_name',
|
|
170
|
+
:'married_name',
|
|
171
|
+
:'email',
|
|
172
|
+
:'mobile_number',
|
|
173
|
+
:'dialect',
|
|
174
|
+
:'date_of_birth',
|
|
175
|
+
:'residential_status',
|
|
176
|
+
:'nationality',
|
|
177
|
+
:'birth_country',
|
|
178
|
+
:'passport_number',
|
|
179
|
+
:'passport_expiry_date',
|
|
180
|
+
:'pass_type',
|
|
181
|
+
:'pass_status',
|
|
182
|
+
:'pass_expiry_date',
|
|
183
|
+
:'employment_sector',
|
|
184
|
+
:'registered_address',
|
|
185
|
+
:'house_developmenet_board_type',
|
|
186
|
+
:'housing_type',
|
|
187
|
+
:'sex'
|
|
188
|
+
])
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Initializes the object
|
|
192
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
193
|
+
def initialize(attributes = {})
|
|
194
|
+
if (!attributes.is_a?(Hash))
|
|
195
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SingpassPersonalCatalog` initialize method"
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
199
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
200
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
201
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
202
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SingpassPersonalCatalog`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
203
|
+
end
|
|
204
|
+
h[k.to_sym] = v
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if attributes.key?(:'identity_number')
|
|
208
|
+
self.identity_number = attributes[:'identity_number']
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
if attributes.key?(:'partial_identity_number')
|
|
212
|
+
self.partial_identity_number = attributes[:'partial_identity_number']
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if attributes.key?(:'name')
|
|
216
|
+
self.name = attributes[:'name']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'alias_name')
|
|
220
|
+
self.alias_name = attributes[:'alias_name']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'hanyu_pinyin_name')
|
|
224
|
+
self.hanyu_pinyin_name = attributes[:'hanyu_pinyin_name']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'hanyu_pinyin_alias_name')
|
|
228
|
+
self.hanyu_pinyin_alias_name = attributes[:'hanyu_pinyin_alias_name']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'married_name')
|
|
232
|
+
self.married_name = attributes[:'married_name']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'email')
|
|
236
|
+
self.email = attributes[:'email']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.key?(:'mobile_number')
|
|
240
|
+
self.mobile_number = attributes[:'mobile_number']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'dialect')
|
|
244
|
+
self.dialect = attributes[:'dialect']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'date_of_birth')
|
|
248
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if attributes.key?(:'residential_status')
|
|
252
|
+
self.residential_status = attributes[:'residential_status']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'nationality')
|
|
256
|
+
self.nationality = attributes[:'nationality']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.key?(:'birth_country')
|
|
260
|
+
self.birth_country = attributes[:'birth_country']
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
if attributes.key?(:'passport_number')
|
|
264
|
+
self.passport_number = attributes[:'passport_number']
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if attributes.key?(:'passport_expiry_date')
|
|
268
|
+
self.passport_expiry_date = attributes[:'passport_expiry_date']
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
if attributes.key?(:'pass_type')
|
|
272
|
+
self.pass_type = attributes[:'pass_type']
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if attributes.key?(:'pass_status')
|
|
276
|
+
self.pass_status = attributes[:'pass_status']
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.key?(:'pass_expiry_date')
|
|
280
|
+
self.pass_expiry_date = attributes[:'pass_expiry_date']
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
if attributes.key?(:'employment_sector')
|
|
284
|
+
self.employment_sector = attributes[:'employment_sector']
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if attributes.key?(:'registered_address')
|
|
288
|
+
self.registered_address = attributes[:'registered_address']
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.key?(:'house_developmenet_board_type')
|
|
292
|
+
self.house_developmenet_board_type = attributes[:'house_developmenet_board_type']
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if attributes.key?(:'housing_type')
|
|
296
|
+
self.housing_type = attributes[:'housing_type']
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if attributes.key?(:'sex')
|
|
300
|
+
self.sex = attributes[:'sex']
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
305
|
+
# @return Array for valid properties with the reasons
|
|
306
|
+
def list_invalid_properties
|
|
307
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
308
|
+
invalid_properties = Array.new
|
|
309
|
+
invalid_properties
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Check to see if the all the properties in the model are valid
|
|
313
|
+
# @return true if the model is valid
|
|
314
|
+
def valid?
|
|
315
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
316
|
+
true
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Checks equality by comparing each attribute.
|
|
320
|
+
# @param [Object] Object to be compared
|
|
321
|
+
def ==(o)
|
|
322
|
+
return true if self.equal?(o)
|
|
323
|
+
self.class == o.class &&
|
|
324
|
+
identity_number == o.identity_number &&
|
|
325
|
+
partial_identity_number == o.partial_identity_number &&
|
|
326
|
+
name == o.name &&
|
|
327
|
+
alias_name == o.alias_name &&
|
|
328
|
+
hanyu_pinyin_name == o.hanyu_pinyin_name &&
|
|
329
|
+
hanyu_pinyin_alias_name == o.hanyu_pinyin_alias_name &&
|
|
330
|
+
married_name == o.married_name &&
|
|
331
|
+
email == o.email &&
|
|
332
|
+
mobile_number == o.mobile_number &&
|
|
333
|
+
dialect == o.dialect &&
|
|
334
|
+
date_of_birth == o.date_of_birth &&
|
|
335
|
+
residential_status == o.residential_status &&
|
|
336
|
+
nationality == o.nationality &&
|
|
337
|
+
birth_country == o.birth_country &&
|
|
338
|
+
passport_number == o.passport_number &&
|
|
339
|
+
passport_expiry_date == o.passport_expiry_date &&
|
|
340
|
+
pass_type == o.pass_type &&
|
|
341
|
+
pass_status == o.pass_status &&
|
|
342
|
+
pass_expiry_date == o.pass_expiry_date &&
|
|
343
|
+
employment_sector == o.employment_sector &&
|
|
344
|
+
registered_address == o.registered_address &&
|
|
345
|
+
house_developmenet_board_type == o.house_developmenet_board_type &&
|
|
346
|
+
housing_type == o.housing_type &&
|
|
347
|
+
sex == o.sex
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
# @see the `==` method
|
|
351
|
+
# @param [Object] Object to be compared
|
|
352
|
+
def eql?(o)
|
|
353
|
+
self == o
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# Calculates hash code according to all attributes.
|
|
357
|
+
# @return [Integer] Hash code
|
|
358
|
+
def hash
|
|
359
|
+
[identity_number, partial_identity_number, name, alias_name, hanyu_pinyin_name, hanyu_pinyin_alias_name, married_name, email, mobile_number, dialect, date_of_birth, residential_status, nationality, birth_country, passport_number, passport_expiry_date, pass_type, pass_status, pass_expiry_date, employment_sector, registered_address, house_developmenet_board_type, housing_type, sex].hash
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Builds the object from hash
|
|
363
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
364
|
+
# @return [Object] Returns the model itself
|
|
365
|
+
def self.build_from_hash(attributes)
|
|
366
|
+
return nil unless attributes.is_a?(Hash)
|
|
367
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
368
|
+
transformed_hash = {}
|
|
369
|
+
openapi_types.each_pair do |key, type|
|
|
370
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
371
|
+
transformed_hash["#{key}"] = nil
|
|
372
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
373
|
+
# check to ensure the input is an array given that the attribute
|
|
374
|
+
# is documented as an array but the input is not
|
|
375
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
376
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
377
|
+
end
|
|
378
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
379
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
380
|
+
end
|
|
381
|
+
end
|
|
382
|
+
new(transformed_hash)
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# Returns the object in the form of hash
|
|
386
|
+
# @return [Hash] Returns the object in the form of hash
|
|
387
|
+
def to_hash
|
|
388
|
+
hash = {}
|
|
389
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
390
|
+
value = self.send(attr)
|
|
391
|
+
if value.nil?
|
|
392
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
393
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
hash[param] = _to_hash(value)
|
|
397
|
+
end
|
|
398
|
+
hash
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
end
|
|
@@ -0,0 +1,172 @@
|
|
|
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
|
+
# The structured MyInfo mobile number payload.
|
|
18
|
+
class SingpassPhoneNumber < ApiModelBase
|
|
19
|
+
# The phone number prefix.
|
|
20
|
+
attr_accessor :prefix
|
|
21
|
+
|
|
22
|
+
# The phone number area code.
|
|
23
|
+
attr_accessor :area_code
|
|
24
|
+
|
|
25
|
+
# The phone number's subscriber number.
|
|
26
|
+
attr_accessor :number
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'prefix' => :'prefix',
|
|
32
|
+
:'area_code' => :'areaCode',
|
|
33
|
+
:'number' => :'number'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns attribute mapping this model knows about
|
|
38
|
+
def self.acceptable_attribute_map
|
|
39
|
+
attribute_map
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Returns all the JSON keys this model knows about
|
|
43
|
+
def self.acceptable_attributes
|
|
44
|
+
acceptable_attribute_map.values
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
def self.openapi_types
|
|
49
|
+
{
|
|
50
|
+
:'prefix' => :'String',
|
|
51
|
+
:'area_code' => :'String',
|
|
52
|
+
:'number' => :'String'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
:'prefix',
|
|
60
|
+
:'area_code',
|
|
61
|
+
:'number'
|
|
62
|
+
])
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Initializes the object
|
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
67
|
+
def initialize(attributes = {})
|
|
68
|
+
if (!attributes.is_a?(Hash))
|
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SingpassPhoneNumber` initialize method"
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
73
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
74
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
75
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SingpassPhoneNumber`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
77
|
+
end
|
|
78
|
+
h[k.to_sym] = v
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'prefix')
|
|
82
|
+
self.prefix = attributes[:'prefix']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'area_code')
|
|
86
|
+
self.area_code = attributes[:'area_code']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'number')
|
|
90
|
+
self.number = attributes[:'number']
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
95
|
+
# @return Array for valid properties with the reasons
|
|
96
|
+
def list_invalid_properties
|
|
97
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
|
+
invalid_properties = Array.new
|
|
99
|
+
invalid_properties
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Check to see if the all the properties in the model are valid
|
|
103
|
+
# @return true if the model is valid
|
|
104
|
+
def valid?
|
|
105
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
106
|
+
true
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Checks equality by comparing each attribute.
|
|
110
|
+
# @param [Object] Object to be compared
|
|
111
|
+
def ==(o)
|
|
112
|
+
return true if self.equal?(o)
|
|
113
|
+
self.class == o.class &&
|
|
114
|
+
prefix == o.prefix &&
|
|
115
|
+
area_code == o.area_code &&
|
|
116
|
+
number == o.number
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# @see the `==` method
|
|
120
|
+
# @param [Object] Object to be compared
|
|
121
|
+
def eql?(o)
|
|
122
|
+
self == o
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Calculates hash code according to all attributes.
|
|
126
|
+
# @return [Integer] Hash code
|
|
127
|
+
def hash
|
|
128
|
+
[prefix, area_code, number].hash
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Builds the object from hash
|
|
132
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
133
|
+
# @return [Object] Returns the model itself
|
|
134
|
+
def self.build_from_hash(attributes)
|
|
135
|
+
return nil unless attributes.is_a?(Hash)
|
|
136
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
137
|
+
transformed_hash = {}
|
|
138
|
+
openapi_types.each_pair do |key, type|
|
|
139
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
140
|
+
transformed_hash["#{key}"] = nil
|
|
141
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
142
|
+
# check to ensure the input is an array given that the attribute
|
|
143
|
+
# is documented as an array but the input is not
|
|
144
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
145
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
146
|
+
end
|
|
147
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
148
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
new(transformed_hash)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Returns the object in the form of hash
|
|
155
|
+
# @return [Hash] Returns the object in the form of hash
|
|
156
|
+
def to_hash
|
|
157
|
+
hash = {}
|
|
158
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
159
|
+
value = self.send(attr)
|
|
160
|
+
if value.nil?
|
|
161
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
162
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
hash[param] = _to_hash(value)
|
|
166
|
+
end
|
|
167
|
+
hash
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
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 SmartIdInput
|
|
17
|
+
class SmartIdInput < ApiModelBase
|
|
18
18
|
# The user's Smart ID ETSI number or document number.
|
|
19
19
|
attr_accessor :smart_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
|