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,284 @@
|
|
|
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
|
+
class ChinaResidentIdMatchInput < ApiModelBase
|
|
18
|
+
# The person's full name in Chinese characters.
|
|
19
|
+
attr_accessor :full_name
|
|
20
|
+
|
|
21
|
+
# The person's date of birth, in `YYYY-MM-DD` format.
|
|
22
|
+
attr_accessor :date_of_birth
|
|
23
|
+
|
|
24
|
+
# The person's 18-character PRC resident identity card number.
|
|
25
|
+
attr_accessor :national_id_number
|
|
26
|
+
|
|
27
|
+
# Consent from the end user for verification of their data.
|
|
28
|
+
attr_accessor :consent
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'full_name' => :'fullName',
|
|
34
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
35
|
+
:'national_id_number' => :'nationalIdNumber',
|
|
36
|
+
:'consent' => :'consent'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Returns attribute mapping this model knows about
|
|
41
|
+
def self.acceptable_attribute_map
|
|
42
|
+
attribute_map
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Returns all the JSON keys this model knows about
|
|
46
|
+
def self.acceptable_attributes
|
|
47
|
+
acceptable_attribute_map.values
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Attribute type mapping.
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'full_name' => :'String',
|
|
54
|
+
:'date_of_birth' => :'Date',
|
|
55
|
+
:'national_id_number' => :'String',
|
|
56
|
+
:'consent' => :'Boolean'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# List of attributes with nullable: true
|
|
61
|
+
def self.openapi_nullable
|
|
62
|
+
Set.new([
|
|
63
|
+
])
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
|
+
def initialize(attributes = {})
|
|
69
|
+
if (!attributes.is_a?(Hash))
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::ChinaResidentIdMatchInput` initialize method"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ChinaResidentIdMatchInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
|
+
end
|
|
79
|
+
h[k.to_sym] = v
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'full_name')
|
|
83
|
+
self.full_name = attributes[:'full_name']
|
|
84
|
+
else
|
|
85
|
+
self.full_name = nil
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'date_of_birth')
|
|
89
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
90
|
+
else
|
|
91
|
+
self.date_of_birth = nil
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'national_id_number')
|
|
95
|
+
self.national_id_number = attributes[:'national_id_number']
|
|
96
|
+
else
|
|
97
|
+
self.national_id_number = nil
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'consent')
|
|
101
|
+
self.consent = attributes[:'consent']
|
|
102
|
+
else
|
|
103
|
+
self.consent = nil
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
108
|
+
# @return Array for valid properties with the reasons
|
|
109
|
+
def list_invalid_properties
|
|
110
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
111
|
+
invalid_properties = Array.new
|
|
112
|
+
if @full_name.nil?
|
|
113
|
+
invalid_properties.push('invalid value for "full_name", full_name cannot be nil.')
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if @full_name.to_s.length < 1
|
|
117
|
+
invalid_properties.push('invalid value for "full_name", the character length must be greater than or equal to 1.')
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if @date_of_birth.nil?
|
|
121
|
+
invalid_properties.push('invalid value for "date_of_birth", date_of_birth cannot be nil.')
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if @national_id_number.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "national_id_number", national_id_number cannot be nil.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if @national_id_number.to_s.length > 18
|
|
129
|
+
invalid_properties.push('invalid value for "national_id_number", the character length must be smaller than or equal to 18.')
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if @national_id_number.to_s.length < 18
|
|
133
|
+
invalid_properties.push('invalid value for "national_id_number", the character length must be greater than or equal to 18.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
pattern = Regexp.new(/^\d{17}[\dXx]$/)
|
|
137
|
+
if @national_id_number !~ pattern
|
|
138
|
+
invalid_properties.push("invalid value for \"national_id_number\", must conform to the pattern #{pattern}.")
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if @consent.nil?
|
|
142
|
+
invalid_properties.push('invalid value for "consent", consent cannot be nil.')
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
invalid_properties
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Check to see if the all the properties in the model are valid
|
|
149
|
+
# @return true if the model is valid
|
|
150
|
+
def valid?
|
|
151
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
152
|
+
return false if @full_name.nil?
|
|
153
|
+
return false if @full_name.to_s.length < 1
|
|
154
|
+
return false if @date_of_birth.nil?
|
|
155
|
+
return false if @national_id_number.nil?
|
|
156
|
+
return false if @national_id_number.to_s.length > 18
|
|
157
|
+
return false if @national_id_number.to_s.length < 18
|
|
158
|
+
return false if @national_id_number !~ Regexp.new(/^\d{17}[\dXx]$/)
|
|
159
|
+
return false if @consent.nil?
|
|
160
|
+
true
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Custom attribute writer method with validation
|
|
164
|
+
# @param [Object] full_name Value to be assigned
|
|
165
|
+
def full_name=(full_name)
|
|
166
|
+
if full_name.nil?
|
|
167
|
+
fail ArgumentError, 'full_name cannot be nil'
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if full_name.to_s.length < 1
|
|
171
|
+
fail ArgumentError, 'invalid value for "full_name", the character length must be greater than or equal to 1.'
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
@full_name = full_name
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Custom attribute writer method with validation
|
|
178
|
+
# @param [Object] date_of_birth Value to be assigned
|
|
179
|
+
def date_of_birth=(date_of_birth)
|
|
180
|
+
if date_of_birth.nil?
|
|
181
|
+
fail ArgumentError, 'date_of_birth cannot be nil'
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
@date_of_birth = date_of_birth
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Custom attribute writer method with validation
|
|
188
|
+
# @param [Object] national_id_number Value to be assigned
|
|
189
|
+
def national_id_number=(national_id_number)
|
|
190
|
+
if national_id_number.nil?
|
|
191
|
+
fail ArgumentError, 'national_id_number cannot be nil'
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if national_id_number.to_s.length > 18
|
|
195
|
+
fail ArgumentError, 'invalid value for "national_id_number", the character length must be smaller than or equal to 18.'
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if national_id_number.to_s.length < 18
|
|
199
|
+
fail ArgumentError, 'invalid value for "national_id_number", the character length must be greater than or equal to 18.'
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
pattern = Regexp.new(/^\d{17}[\dXx]$/)
|
|
203
|
+
if national_id_number !~ pattern
|
|
204
|
+
fail ArgumentError, "invalid value for \"national_id_number\", must conform to the pattern #{pattern}."
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
@national_id_number = national_id_number
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Custom attribute writer method with validation
|
|
211
|
+
# @param [Object] consent Value to be assigned
|
|
212
|
+
def consent=(consent)
|
|
213
|
+
if consent.nil?
|
|
214
|
+
fail ArgumentError, 'consent cannot be nil'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@consent = consent
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Checks equality by comparing each attribute.
|
|
221
|
+
# @param [Object] Object to be compared
|
|
222
|
+
def ==(o)
|
|
223
|
+
return true if self.equal?(o)
|
|
224
|
+
self.class == o.class &&
|
|
225
|
+
full_name == o.full_name &&
|
|
226
|
+
date_of_birth == o.date_of_birth &&
|
|
227
|
+
national_id_number == o.national_id_number &&
|
|
228
|
+
consent == o.consent
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# @see the `==` method
|
|
232
|
+
# @param [Object] Object to be compared
|
|
233
|
+
def eql?(o)
|
|
234
|
+
self == o
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Calculates hash code according to all attributes.
|
|
238
|
+
# @return [Integer] Hash code
|
|
239
|
+
def hash
|
|
240
|
+
[full_name, date_of_birth, national_id_number, consent].hash
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Builds the object from hash
|
|
244
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
245
|
+
# @return [Object] Returns the model itself
|
|
246
|
+
def self.build_from_hash(attributes)
|
|
247
|
+
return nil unless attributes.is_a?(Hash)
|
|
248
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
249
|
+
transformed_hash = {}
|
|
250
|
+
openapi_types.each_pair do |key, type|
|
|
251
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
252
|
+
transformed_hash["#{key}"] = nil
|
|
253
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
254
|
+
# check to ensure the input is an array given that the attribute
|
|
255
|
+
# is documented as an array but the input is not
|
|
256
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
257
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
258
|
+
end
|
|
259
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
260
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
new(transformed_hash)
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Returns the object in the form of hash
|
|
267
|
+
# @return [Hash] Returns the object in the form of hash
|
|
268
|
+
def to_hash
|
|
269
|
+
hash = {}
|
|
270
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
271
|
+
value = self.send(attr)
|
|
272
|
+
if value.nil?
|
|
273
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
274
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
hash[param] = _to_hash(value)
|
|
278
|
+
end
|
|
279
|
+
hash
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
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
|
+
# Exposed properties for the `china-resident-id-match` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
+
class ChinaResidentIdMatchOutput < ApiModelBase
|
|
19
|
+
# The fullname of the individual in Chinese.
|
|
20
|
+
attr_accessor :full_name
|
|
21
|
+
|
|
22
|
+
# The birthdate of the individual.
|
|
23
|
+
attr_accessor :date_of_birth
|
|
24
|
+
|
|
25
|
+
# The Resident ID number from the People's Republic of China (PRC) ID card. The Resident ID number is an 18-digit number follows the format (AAAAAAYYYYMMDDXXX@): - Six digits (AAAAAA) are the area code of where the person was born or the area of first issuance for those who were born before the resident system was created. - Eight digits are the birthdate of the individual in YYYYMMDD format - Three digits are the order code assigned to individual. Males are assigned odd numbers and females even numbers. - Final digit is the checksum confirming the validity of the ID number's first 17 digits using ISO 7064:1983, MOD 11-2.
|
|
26
|
+
attr_accessor :resident_id_number
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'full_name' => :'fullName',
|
|
32
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
33
|
+
:'resident_id_number' => :'residentIdNumber'
|
|
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
|
+
:'full_name' => :'String',
|
|
51
|
+
:'date_of_birth' => :'Date',
|
|
52
|
+
:'resident_id_number' => :'String'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
:'full_name',
|
|
60
|
+
:'date_of_birth',
|
|
61
|
+
:'resident_id_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::ChinaResidentIdMatchOutput` 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::ChinaResidentIdMatchOutput`. 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?(:'full_name')
|
|
82
|
+
self.full_name = attributes[:'full_name']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'date_of_birth')
|
|
86
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'resident_id_number')
|
|
90
|
+
self.resident_id_number = attributes[:'resident_id_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
|
+
full_name == o.full_name &&
|
|
115
|
+
date_of_birth == o.date_of_birth &&
|
|
116
|
+
resident_id_number == o.resident_id_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
|
+
[full_name, date_of_birth, resident_id_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
|
|
@@ -0,0 +1,160 @@
|
|
|
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
|
+
class ColombiaCcLookupInput < ApiModelBase
|
|
18
|
+
# The CC (Cédula de Ciudadanía, Citizenship Document) document number. Format: - Cédulas after 2004 use the NUIP (Número Único de Identificación Personal), which is 10 digits. Older documents may have fewer than 10 digits and are still valid. - In Colombia the number is often written with dots as thousands separators (e.g. 1.234.567.890). If dots, hyphens, spaces, or other non-alphanumeric characters are included, they will be sanitized before lookup.
|
|
19
|
+
attr_accessor :document_number
|
|
20
|
+
|
|
21
|
+
# Document issue date, in `YYYY-MM-DD` format
|
|
22
|
+
attr_accessor :issue_date
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'document_number' => :'documentNumber',
|
|
28
|
+
:'issue_date' => :'issueDate'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
acceptable_attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'document_number' => :'String',
|
|
46
|
+
:'issue_date' => :'Date'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
:'document_number',
|
|
54
|
+
:'issue_date'
|
|
55
|
+
])
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
if (!attributes.is_a?(Hash))
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::ColombiaCcLookupInput` initialize method"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ColombiaCcLookupInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'document_number')
|
|
75
|
+
self.document_number = attributes[:'document_number']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'issue_date')
|
|
79
|
+
self.issue_date = attributes[:'issue_date']
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
84
|
+
# @return Array for valid properties with the reasons
|
|
85
|
+
def list_invalid_properties
|
|
86
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
|
+
invalid_properties = Array.new
|
|
88
|
+
invalid_properties
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Check to see if the all the properties in the model are valid
|
|
92
|
+
# @return true if the model is valid
|
|
93
|
+
def valid?
|
|
94
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
95
|
+
true
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Checks equality by comparing each attribute.
|
|
99
|
+
# @param [Object] Object to be compared
|
|
100
|
+
def ==(o)
|
|
101
|
+
return true if self.equal?(o)
|
|
102
|
+
self.class == o.class &&
|
|
103
|
+
document_number == o.document_number &&
|
|
104
|
+
issue_date == o.issue_date
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# @see the `==` method
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def eql?(o)
|
|
110
|
+
self == o
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Calculates hash code according to all attributes.
|
|
114
|
+
# @return [Integer] Hash code
|
|
115
|
+
def hash
|
|
116
|
+
[document_number, issue_date].hash
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Builds the object from hash
|
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
121
|
+
# @return [Object] Returns the model itself
|
|
122
|
+
def self.build_from_hash(attributes)
|
|
123
|
+
return nil unless attributes.is_a?(Hash)
|
|
124
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
125
|
+
transformed_hash = {}
|
|
126
|
+
openapi_types.each_pair do |key, type|
|
|
127
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
128
|
+
transformed_hash["#{key}"] = nil
|
|
129
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
130
|
+
# check to ensure the input is an array given that the attribute
|
|
131
|
+
# is documented as an array but the input is not
|
|
132
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
133
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
134
|
+
end
|
|
135
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
136
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
new(transformed_hash)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Returns the object in the form of hash
|
|
143
|
+
# @return [Hash] Returns the object in the form of hash
|
|
144
|
+
def to_hash
|
|
145
|
+
hash = {}
|
|
146
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
147
|
+
value = self.send(attr)
|
|
148
|
+
if value.nil?
|
|
149
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
150
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
hash[param] = _to_hash(value)
|
|
154
|
+
end
|
|
155
|
+
hash
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
end
|