trinsic_api 3.2.0 → 3.3.0.pre.alpha2
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 +13 -0
- data/docs/AadhaarLanguage.md +1 -1
- data/docs/AgeOverOutput.md +2 -2
- data/docs/AlaskaMobileIdProviderOutput.md +20 -0
- data/docs/AppleWalletDigitalIdBirthDate.md +1 -1
- data/docs/AppleWalletProviderOutput.md +1 -1
- data/docs/AttachmentInfo.md +3 -1
- data/docs/AudkenniProviderOutput.md +3 -3
- data/docs/AustriaHandySignaturProviderOutput.md +2 -2
- data/docs/AustriaValeraEudiSandboxInput.md +18 -0
- data/docs/AustriaValeraEudiSandboxProviderOutput.md +22 -0
- data/docs/BelgiumIdCardProviderOutput.md +4 -4
- data/docs/BoliviaCiProviderOutput.md +4 -4
- data/docs/BrazilBiometricVerificationOutput.md +24 -0
- data/docs/BrazilCnhFacialBiometryOutput.md +1 -1
- data/docs/BrazilCnhProviderOutput.md +2 -0
- data/docs/BrazilCpfCheckInput.md +4 -2
- data/docs/BrazilCpfProviderOutput.md +38 -0
- data/docs/BrazilDigitalCnhInput.md +1 -1
- data/docs/ClearProviderOutput.md +56 -0
- data/docs/ClearProviderOutputAddress.md +28 -0
- data/docs/ClearProviderOutputCheck.md +28 -0
- data/docs/ClearProviderOutputCheckAdditionalDetails.md +18 -0
- data/docs/ClearProviderOutputDocument.md +42 -0
- data/docs/ClearProviderOutputHealthInsurance.md +32 -0
- data/docs/ClearProviderOutputHistoricalAddress.md +36 -0
- data/docs/ClearProviderOutputHistoricalData.md +20 -0
- data/docs/ClearProviderOutputHistoricalName.md +28 -0
- data/docs/ClearProviderOutputLocationInfo.md +30 -0
- data/docs/ClearProviderOutputPartialDate.md +22 -0
- data/docs/ClearProviderOutputSessionInfo.md +28 -0
- data/docs/ClearProviderOutputTraits.md +50 -0
- data/docs/ClearProviderOutputVerifiedEmail.md +22 -0
- data/docs/ClearProviderOutputWatchlistHit.md +24 -0
- data/docs/ClearProviderOutputWatchlistHitDetails.md +48 -0
- data/docs/ClearProviderOutputWatchlistHits.md +20 -0
- data/docs/ClearProviderOutputWatchlistSource.md +22 -0
- data/docs/ColombiaCcProviderOutput.md +10 -10
- data/docs/ConnectIdAgeVerification.md +9 -1
- data/docs/ConnectIdInput.md +18 -0
- data/docs/CoteDIvoireNidLookup2ProviderOutput.md +6 -6
- data/docs/CreateDirectProviderSessionRequest.md +2 -0
- data/docs/CreateHostedProviderSessionRequest.md +2 -0
- data/docs/CreateHostedProviderSessionResponse.md +1 -1
- data/docs/CzechBankIdAddress.md +3 -3
- data/docs/CzechBankIdCard.md +4 -4
- data/docs/CzechBankIdInput.md +18 -0
- data/docs/CzechBankIdProviderOutput.md +1 -1
- data/docs/CzechBankIdVerification.md +2 -2
- data/docs/CzechiaMojeIdProviderOutput.md +4 -4
- data/docs/DenmarkAltIdInput.md +18 -0
- data/docs/DenmarkAltIdProviderOutput.md +22 -0
- data/docs/DeveloperApi.md +153 -0
- data/docs/DigilockerAadhaarProviderOutput.md +1 -1
- data/docs/DiiaProviderOutput.md +2 -2
- data/docs/ElSalvadorDuiProviderOutput.md +3 -3
- data/docs/EstoniaIdCardProviderOutput.md +4 -4
- data/docs/EudiAgeVerificationCredential.md +1 -5
- data/docs/EudiReferenceWalletProviderOutput.md +20 -0
- data/docs/EvrotrustAddressComponents.md +48 -0
- data/docs/EvrotrustInput.md +20 -0
- data/docs/EvrotrustProviderOutput.md +78 -0
- data/docs/FinlandIdCardProviderOutput.md +4 -4
- data/docs/FinnishTrustNetworkAddressOutput.md +22 -0
- data/docs/FinnishTrustNetworkInput.md +18 -0
- data/docs/FinnishTrustNetworkProviderOutput.md +2 -0
- data/docs/FranceIdentiteProviderOutput.md +1 -1
- data/docs/FrejaIndirectProviderOutput.md +4 -4
- data/docs/FrenchNumeriqueProviderOutput.md +10 -4
- data/docs/{FrenchNumeriqueGivenName.md → FrenchNumeriqueSplittedGivenName.md} +2 -4
- data/docs/{FrenchNumeriquePhone.md → FrenchNumeriqueSplittedPhone.md} +2 -4
- data/docs/GermanyEudiSandboxInput.md +18 -0
- data/docs/GermanyEudiSandboxProviderOutput.md +20 -0
- data/docs/GetAttachmentResponse.md +3 -1
- data/docs/GetSessionResultRequest.md +3 -1
- data/docs/GetSessionResultResponse.md +5 -3
- data/docs/GoogleWalletProviderOutput.md +1 -1
- data/docs/GuatemalaCuiLookupInput.md +3 -1
- data/docs/GuatemalaCuiProviderOutput.md +9 -9
- data/docs/HPKETestRequest.md +22 -0
- data/docs/HPKETestVPRequest.md +20 -0
- data/docs/IdemiaMobileIdProviderOutput.md +60 -0
- data/docs/IdentityData.md +1 -1
- data/docs/IndiaDigilockerAadhaarMatchDateOfBirthField.md +2 -2
- data/docs/IndiaDigilockerAadhaarMatchFullNameField.md +2 -2
- data/docs/IndiaPanLookupProviderOutput.md +1 -1
- data/docs/IndiaPanStructuredNumber.md +5 -5
- data/docs/IndonesiaDukcapilMatchDateOfBirthField.md +2 -2
- data/docs/IndonesiaDukcapilMatchFullNameField.md +2 -2
- data/docs/IndonesiaDukcapilMatchInput.md +1 -1
- data/docs/IndonesiaDukcapilMatchNationalIdNumberField.md +2 -2
- data/docs/IndonesiaDukcapilMatchProviderOutput.md +9 -9
- data/docs/IndonesiaNikMatchField.md +2 -2
- data/docs/Iso180132BiometricDataBlockProduct.md +2 -2
- data/docs/Iso180132BiometricGroupTemplate.md +1 -1
- data/docs/Iso180132BiometricTemplate.md +3 -3
- data/docs/Iso180132BiometricTemplateHeader.md +3 -3
- data/docs/Iso180132BiometricValidityPeriod.md +2 -2
- data/docs/Iso180135AamvaDomesticVehicleClass.md +2 -2
- data/docs/Iso180135AamvaDomesticVehicleEndorsement.md +1 -1
- data/docs/Iso180135AamvaDomesticVehicleRestriction.md +1 -1
- data/docs/Iso180135AamvaWeightRange.md +1 -1
- data/docs/Iso180135DrivingPrivilege.md +1 -1
- data/docs/Iso180135DrivingPrivilegeCode.md +1 -1
- data/docs/ItsmeAddressBase.md +22 -0
- data/docs/ItsmeBelgianIdentityCard.md +26 -0
- data/docs/ItsmeBelgianNationalNumber.md +22 -0
- data/docs/ItsmeDirectDevice.md +40 -0
- data/docs/ItsmeIdentityDocument.md +26 -0
- data/docs/ItsmeLoginProviderOutput.md +44 -0
- data/docs/ItsmePlaceOfBirth.md +20 -0
- data/docs/ItsmeProviderAddress.md +26 -0
- data/docs/ItsmeProviderOutput.md +40 -28
- data/docs/JapanMyNumberProviderOutput.md +24 -0
- data/docs/JordanSanadInput.md +18 -0
- data/docs/KenyaNidLookup2ProviderOutput.md +6 -6
- data/docs/KenyaNidLookup3Input.md +18 -0
- data/docs/KenyaNidLookup3ProviderOutput.md +32 -0
- data/docs/KenyaNidMatch2DateOfBirthField.md +2 -2
- data/docs/KenyaNidMatch2FullNameField.md +2 -2
- data/docs/KenyaNidMatch2NationalIdNumberField.md +2 -2
- data/docs/KenyaNidMatch2ProviderOutput.md +2 -2
- data/docs/KenyaNidMatch2SexField.md +2 -2
- data/docs/KoreaTelcoMatchProviderOutput.md +3 -3
- data/docs/LaWalletProviderOutput.md +17 -17
- data/docs/LatviaEparakstsMobileProviderOutput.md +3 -3
- data/docs/LatviaEparakstsProviderOutput.md +3 -3
- data/docs/LithuaniaIdCardProviderOutput.md +4 -4
- data/docs/MdlOutput.md +4 -4
- data/docs/MdlOutputCertificateData.md +7 -5
- data/docs/MdlOutputFieldData.md +2 -2
- data/docs/MitIdAddressOutput.md +28 -0
- data/docs/MitIdProviderOutput.md +3 -1
- data/docs/MockOutputProviderInput.md +18 -0
- data/docs/MoldovaDriverLicenseCredential.md +42 -0
- data/docs/MoldovaEvoWalletInput.md +18 -0
- data/docs/MoldovaEvoWalletProviderOutput.md +26 -0
- data/docs/MoldovaIdentityCardCredential.md +60 -0
- data/docs/MoldovaVehicleRegistrationCertificateCredential.md +70 -0
- data/docs/NetherlandsEudiSandboxInput.md +18 -0
- data/docs/NetherlandsEudiSandboxProviderOutput.md +20 -0
- data/docs/NetherlandsIdinAddress.md +16 -6
- data/docs/NetherlandsIdinProviderOutput.md +8 -8
- data/docs/NigeriaNinLookup2ProviderOutput.md +5 -5
- data/docs/NigeriaNinLookup3Input.md +18 -0
- data/docs/NigeriaNinLookup3ProviderOutput.md +50 -0
- data/docs/NigeriaNinMatch2DateOfBirthField.md +2 -2
- data/docs/NigeriaNinMatch2FullNameField.md +2 -2
- data/docs/NigeriaNinMatch2NationalIdNumberField.md +2 -2
- data/docs/NigeriaNinMatch2PhoneNumberField.md +2 -2
- data/docs/NigeriaNinMatch2ProviderOutput.md +2 -2
- data/docs/NigeriaNinMatch2SexField.md +2 -2
- data/docs/PanamaCedulaLookupInput.md +1 -3
- data/docs/PanamaCedulaProviderOutput.md +5 -7
- data/docs/PeruDniAddress.md +3 -3
- data/docs/PeruDniProviderOutput.md +8 -8
- data/docs/PhilippinesDigitalNidProviderOutput.md +1 -1
- data/docs/PhilippinesPhilsysMatchProviderOutput.md +2 -2
- data/docs/PhilippinesPhysicalNidProviderOutput.md +1 -1
- data/docs/PolandEdoAppProviderOutput.md +4 -4
- data/docs/PolandMobywatelMatchInput.md +3 -3
- data/docs/PolandMobywatelMatchProviderOutput.md +2 -2
- data/docs/PolandMojeIdProviderOutput.md +3 -3
- data/docs/PortugalIdCardProviderOutput.md +4 -4
- data/docs/Provider.md +2 -4
- data/docs/ProviderInput.md +28 -0
- data/docs/ProviderOutput.md +37 -5
- data/docs/RecommendProviderInformation.md +2 -0
- data/docs/RecommendProvidersRequest.md +1 -1
- data/docs/RevolutProviderOutput.md +28 -0
- data/docs/SamsungIdWithClearCredential.md +44 -0
- data/docs/SamsungWalletInput.md +1 -1
- data/docs/SamsungWalletProviderOutput.md +3 -1
- data/docs/SanadProviderOutput.md +28 -0
- data/docs/SaudiArabiaNafathAddress.md +50 -0
- data/docs/SaudiArabiaNafathCitizenAttributes.md +68 -0
- data/docs/SaudiArabiaNafathHeadOfHousehold.md +26 -0
- data/docs/SaudiArabiaNafathProviderOutput.md +38 -0
- data/docs/SaudiArabiaNafathResidentAttributes.md +68 -0
- data/docs/SaudiArabiaNafathVisitorAttributes.md +72 -0
- data/docs/SerbiaIdCardProviderOutput.md +4 -4
- data/docs/SessionsApi.md +2 -2
- data/docs/SignzyIndiaAadhaarFetchProviderOutput.md +2 -2
- data/docs/SingpassPersonalCatalog.md +2 -2
- data/docs/SouthAfricaNidLookup2ProviderOutput.md +8 -8
- data/docs/SouthAfricaNidMatch2DateOfBirthField.md +2 -2
- data/docs/SouthAfricaNidMatch2FullNameField.md +2 -2
- data/docs/SouthAfricaNidMatch2NationalIdNumberField.md +2 -2
- data/docs/SouthAfricaNidMatch2ProviderOutput.md +2 -2
- data/docs/SouthAfricaNidMatch2SexField.md +2 -2
- data/docs/SpidBillingInformation.md +3 -3
- data/docs/SpidProviderOutput.md +2 -2
- data/docs/SubProviderMetadata.md +4 -2
- data/docs/SwedenBankIdProviderOutput.md +7 -3
- data/docs/TrinsicHPKEBundle.md +24 -0
- data/docs/TrinsicHPKEMetadata.md +30 -0
- data/docs/TrinsicTestDatabaseLookupInput.md +1 -1
- data/docs/UgandaNidMatch2DateOfBirthField.md +2 -2
- data/docs/UgandaNidMatch2NationalIdNumberField.md +2 -2
- data/docs/UgandaNidMatch2ProviderOutput.md +3 -3
- data/docs/UgandaNidMatch2SecondaryIdNumberField.md +2 -2
- data/docs/UkEvisaLookupInput.md +1 -1
- data/docs/UsaArizonaWalletInput.md +18 -0
- data/docs/VerificationProfileResponse.md +2 -0
- data/docs/VerificationProfilesApi.md +3 -1
- data/docs/YotiStructuredPostalAddress.md +1 -1
- data/docs/ZimbabweNidLookup2ProviderOutput.md +6 -6
- data/lib/trinsic_api/api/developer_api.rb +156 -0
- data/lib/trinsic_api/api/verification_profiles_api.rb +3 -0
- data/lib/trinsic_api/api_client.rb +1 -0
- data/lib/trinsic_api/configuration.rb +4 -0
- data/lib/trinsic_api/models/aadhaar_language.rb +1 -17
- data/lib/trinsic_api/models/age_over_output.rb +2 -34
- data/lib/trinsic_api/models/alaska_mobile_id_provider_output.rb +161 -0
- data/lib/trinsic_api/models/apple_wallet_digital_id_birth_date.rb +1 -17
- data/lib/trinsic_api/models/apple_wallet_provider_output.rb +1 -17
- data/lib/trinsic_api/models/attachment_info.rb +15 -4
- data/lib/trinsic_api/models/audkenni_provider_output.rb +3 -51
- data/lib/trinsic_api/models/austria_handy_signatur_provider_output.rb +2 -34
- data/lib/trinsic_api/models/austria_valera_eudi_sandbox_input.rb +149 -0
- data/lib/trinsic_api/models/austria_valera_eudi_sandbox_provider_output.rb +172 -0
- data/lib/trinsic_api/models/belgium_id_card_provider_output.rb +4 -68
- data/lib/trinsic_api/models/bolivia_ci_provider_output.rb +4 -68
- data/lib/trinsic_api/models/brazil_biometric_verification_output.rb +182 -0
- data/lib/trinsic_api/models/brazil_cnh_facial_biometry_output.rb +1 -17
- data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +12 -1
- data/lib/trinsic_api/models/brazil_cpf_check_input.rb +23 -22
- data/lib/trinsic_api/models/brazil_cpf_provider_output.rb +262 -0
- data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +1 -1
- data/lib/trinsic_api/models/clear_provider_output.rb +375 -0
- data/lib/trinsic_api/models/{verimi_address_output.rb → clear_provider_output_address.rb} +48 -48
- data/lib/trinsic_api/models/clear_provider_output_check.rb +206 -0
- data/lib/trinsic_api/models/clear_provider_output_check_additional_details.rb +149 -0
- data/lib/trinsic_api/models/clear_provider_output_document.rb +281 -0
- data/lib/trinsic_api/models/clear_provider_output_health_insurance.rb +226 -0
- data/lib/trinsic_api/models/clear_provider_output_historical_address.rb +255 -0
- data/lib/trinsic_api/models/clear_provider_output_historical_data.rb +164 -0
- data/lib/trinsic_api/models/clear_provider_output_historical_name.rb +204 -0
- data/lib/trinsic_api/models/clear_provider_output_location_info.rb +215 -0
- data/lib/trinsic_api/models/clear_provider_output_partial_date.rb +171 -0
- data/lib/trinsic_api/models/clear_provider_output_session_info.rb +204 -0
- data/lib/trinsic_api/models/clear_provider_output_traits.rb +325 -0
- data/lib/trinsic_api/models/clear_provider_output_verified_email.rb +171 -0
- data/lib/trinsic_api/models/clear_provider_output_watchlist_hit.rb +186 -0
- data/lib/trinsic_api/models/clear_provider_output_watchlist_hit_details.rb +346 -0
- data/lib/trinsic_api/models/clear_provider_output_watchlist_hits.rb +162 -0
- data/lib/trinsic_api/models/clear_provider_output_watchlist_source.rb +171 -0
- data/lib/trinsic_api/models/colombia_cc_provider_output.rb +10 -170
- data/lib/trinsic_api/models/connect_id_age_verification.rb +46 -2
- data/lib/trinsic_api/models/connect_id_input.rb +149 -0
- data/lib/trinsic_api/models/cote_d_ivoire_nid_lookup2_provider_output.rb +6 -102
- data/lib/trinsic_api/models/create_direct_provider_session_request.rb +28 -1
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +28 -1
- data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +1 -1
- data/lib/trinsic_api/models/czech_bank_id_address.rb +3 -51
- data/lib/trinsic_api/models/czech_bank_id_card.rb +4 -68
- data/lib/trinsic_api/models/czech_bank_id_input.rb +149 -0
- data/lib/trinsic_api/models/czech_bank_id_provider_output.rb +1 -17
- data/lib/trinsic_api/models/czech_bank_id_verification.rb +2 -34
- data/lib/trinsic_api/models/czechia_moje_id_provider_output.rb +4 -68
- data/lib/trinsic_api/models/denmark_alt_id_input.rb +149 -0
- data/lib/trinsic_api/models/denmark_alt_id_provider_output.rb +172 -0
- data/lib/trinsic_api/models/digilocker_aadhaar_provider_output.rb +2 -18
- data/lib/trinsic_api/models/diia_provider_output.rb +2 -34
- data/lib/trinsic_api/models/el_salvador_dui_provider_output.rb +3 -51
- data/lib/trinsic_api/models/estonia_id_card_provider_output.rb +4 -68
- data/lib/trinsic_api/models/eudi_age_verification_credential.rb +6 -28
- data/lib/trinsic_api/models/eudi_reference_wallet_provider_output.rb +161 -0
- data/lib/trinsic_api/models/evrotrust_address_components.rb +314 -0
- data/lib/trinsic_api/models/evrotrust_input.rb +160 -0
- data/lib/trinsic_api/models/evrotrust_provider_output.rb +484 -0
- data/lib/trinsic_api/models/finland_id_card_provider_output.rb +4 -68
- data/lib/trinsic_api/models/finnish_trust_network_address_output.rb +171 -0
- data/lib/trinsic_api/models/finnish_trust_network_input.rb +149 -0
- data/lib/trinsic_api/models/finnish_trust_network_provider_output.rb +12 -1
- data/lib/trinsic_api/models/france_identite_provider_output.rb +1 -17
- data/lib/trinsic_api/models/freja_indirect_provider_output.rb +4 -68
- data/lib/trinsic_api/models/french_numerique_provider_output.rb +38 -5
- data/lib/trinsic_api/models/{french_numerique_given_name.rb → french_numerique_splitted_given_name.rb} +5 -16
- data/lib/trinsic_api/models/{french_numerique_phone.rb → french_numerique_splitted_phone.rb} +5 -16
- data/lib/trinsic_api/models/germany_eudi_sandbox_input.rb +149 -0
- data/lib/trinsic_api/models/germany_eudi_sandbox_provider_output.rb +161 -0
- data/lib/trinsic_api/models/get_attachment_response.rb +13 -2
- data/lib/trinsic_api/models/get_session_result_request.rb +15 -4
- data/lib/trinsic_api/models/get_session_result_response.rb +18 -5
- data/lib/trinsic_api/models/google_wallet_id_pass_credential.rb +1 -1
- data/lib/trinsic_api/models/google_wallet_provider_output.rb +1 -17
- data/lib/trinsic_api/models/guatemala_cui_lookup_input.rb +16 -5
- data/lib/trinsic_api/models/guatemala_cui_provider_output.rb +9 -153
- data/lib/trinsic_api/models/hpke_test_request.rb +219 -0
- data/lib/trinsic_api/models/hpke_test_vp_request.rb +192 -0
- data/lib/trinsic_api/models/idemia_mobile_id_provider_output.rb +381 -0
- data/lib/trinsic_api/models/identity_data.rb +17 -1
- data/lib/trinsic_api/models/india_digilocker_aadhaar_match_date_of_birth_field.rb +2 -34
- data/lib/trinsic_api/models/india_digilocker_aadhaar_match_full_name_field.rb +2 -34
- data/lib/trinsic_api/models/india_pan_lookup_provider_output.rb +1 -1
- data/lib/trinsic_api/models/india_pan_structured_number.rb +5 -85
- data/lib/trinsic_api/models/indonesia_dukcapil_match_date_of_birth_field.rb +2 -34
- data/lib/trinsic_api/models/indonesia_dukcapil_match_full_name_field.rb +2 -34
- data/lib/trinsic_api/models/indonesia_dukcapil_match_input.rb +1 -1
- data/lib/trinsic_api/models/indonesia_dukcapil_match_national_id_number_field.rb +2 -34
- data/lib/trinsic_api/models/indonesia_dukcapil_match_provider_output.rb +9 -153
- data/lib/trinsic_api/models/indonesia_nik_match_field.rb +2 -34
- data/lib/trinsic_api/models/iso180132_biometric_data_block_product.rb +2 -34
- data/lib/trinsic_api/models/iso180132_biometric_group_template.rb +1 -17
- data/lib/trinsic_api/models/iso180132_biometric_template.rb +3 -51
- data/lib/trinsic_api/models/iso180132_biometric_template_header.rb +3 -51
- data/lib/trinsic_api/models/iso180132_biometric_validity_period.rb +2 -34
- data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_class.rb +2 -34
- data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_endorsement.rb +1 -17
- data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_restriction.rb +1 -17
- data/lib/trinsic_api/models/iso180135_aamva_weight_range.rb +1 -17
- data/lib/trinsic_api/models/iso180135_driving_privilege.rb +2 -18
- data/lib/trinsic_api/models/iso180135_driving_privilege_code.rb +1 -17
- data/lib/trinsic_api/models/itsme_address_base.rb +171 -0
- data/lib/trinsic_api/models/itsme_belgian_identity_card.rb +193 -0
- data/lib/trinsic_api/models/itsme_belgian_national_number.rb +171 -0
- data/lib/trinsic_api/models/itsme_direct_device.rb +270 -0
- data/lib/trinsic_api/models/itsme_identity_document.rb +193 -0
- data/lib/trinsic_api/models/itsme_login_provider_output.rb +293 -0
- data/lib/trinsic_api/models/itsme_place_of_birth.rb +160 -0
- data/lib/trinsic_api/models/{idemia_preview_provider_address.rb → itsme_provider_address.rb} +30 -56
- data/lib/trinsic_api/models/itsme_provider_output.rb +162 -144
- data/lib/trinsic_api/models/japan_my_number_provider_output.rb +183 -0
- data/lib/trinsic_api/models/jordan_sanad_input.rb +164 -0
- data/lib/trinsic_api/models/kenya_nid_lookup2_provider_output.rb +6 -102
- data/lib/trinsic_api/models/kenya_nid_lookup3_input.rb +194 -0
- data/lib/trinsic_api/models/kenya_nid_lookup3_provider_output.rb +227 -0
- data/lib/trinsic_api/models/kenya_nid_match2_date_of_birth_field.rb +2 -34
- data/lib/trinsic_api/models/kenya_nid_match2_full_name_field.rb +2 -34
- data/lib/trinsic_api/models/kenya_nid_match2_national_id_number_field.rb +2 -34
- data/lib/trinsic_api/models/kenya_nid_match2_provider_output.rb +2 -34
- data/lib/trinsic_api/models/kenya_nid_match2_sex_field.rb +2 -34
- data/lib/trinsic_api/models/korea_telco_match_provider_output.rb +6 -54
- data/lib/trinsic_api/models/la_wallet_provider_output.rb +17 -289
- data/lib/trinsic_api/models/latvia_eparaksts_mobile_provider_output.rb +3 -51
- data/lib/trinsic_api/models/latvia_eparaksts_provider_output.rb +3 -51
- data/lib/trinsic_api/models/lithuania_id_card_provider_output.rb +4 -68
- data/lib/trinsic_api/models/mdl_output.rb +7 -71
- data/lib/trinsic_api/models/mdl_output_certificate_data.rb +18 -87
- data/lib/trinsic_api/models/mdl_output_field_data.rb +2 -34
- data/lib/trinsic_api/models/mit_id_address_output.rb +204 -0
- data/lib/trinsic_api/models/mit_id_provider_output.rb +16 -5
- data/lib/trinsic_api/models/mock_output_provider_input.rb +150 -0
- data/lib/trinsic_api/models/moldova_driver_license_credential.rb +284 -0
- data/lib/trinsic_api/models/moldova_evo_wallet_input.rb +149 -0
- data/lib/trinsic_api/models/moldova_evo_wallet_provider_output.rb +194 -0
- data/lib/trinsic_api/models/moldova_identity_card_credential.rb +381 -0
- data/lib/trinsic_api/models/moldova_vehicle_registration_certificate_credential.rb +438 -0
- data/lib/trinsic_api/models/netherlands_eudi_sandbox_input.rb +149 -0
- data/lib/trinsic_api/models/netherlands_eudi_sandbox_provider_output.rb +161 -0
- data/lib/trinsic_api/models/netherlands_idin_address.rb +68 -93
- data/lib/trinsic_api/models/netherlands_idin_provider_output.rb +9 -137
- data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +4 -52
- data/lib/trinsic_api/models/nigeria_nin_lookup3_input.rb +149 -0
- data/lib/trinsic_api/models/nigeria_nin_lookup3_provider_output.rb +326 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_date_of_birth_field.rb +2 -34
- data/lib/trinsic_api/models/nigeria_nin_match2_full_name_field.rb +2 -34
- data/lib/trinsic_api/models/nigeria_nin_match2_national_id_number_field.rb +2 -34
- data/lib/trinsic_api/models/nigeria_nin_match2_phone_number_field.rb +2 -34
- data/lib/trinsic_api/models/nigeria_nin_match2_provider_output.rb +2 -34
- data/lib/trinsic_api/models/nigeria_nin_match2_sex_field.rb +2 -34
- data/lib/trinsic_api/models/panama_cedula_lookup_input.rb +5 -16
- data/lib/trinsic_api/models/panama_cedula_provider_output.rb +6 -97
- data/lib/trinsic_api/models/peru_dni_address.rb +3 -51
- data/lib/trinsic_api/models/peru_dni_provider_output.rb +8 -136
- data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +1 -17
- data/lib/trinsic_api/models/philippines_philsys_match_provider_output.rb +2 -34
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +1 -17
- data/lib/trinsic_api/models/poland_edo_app_provider_output.rb +4 -68
- data/lib/trinsic_api/models/poland_mobywatel_match_input.rb +3 -3
- data/lib/trinsic_api/models/poland_mobywatel_match_provider_output.rb +1 -1
- data/lib/trinsic_api/models/poland_moje_id_provider_output.rb +3 -51
- data/lib/trinsic_api/models/portugal_id_card_provider_output.rb +4 -68
- data/lib/trinsic_api/models/provider.rb +14 -57
- data/lib/trinsic_api/models/provider_input.rb +152 -1
- data/lib/trinsic_api/models/provider_output.rb +200 -24
- data/lib/trinsic_api/models/raw18013_document_request.rb +9 -0
- data/lib/trinsic_api/models/recommend_provider_information.rb +14 -1
- data/lib/trinsic_api/models/recommend_providers_request.rb +1 -1
- data/lib/trinsic_api/models/revolut_provider_output.rb +204 -0
- data/lib/trinsic_api/models/samsung_id_with_clear_credential.rb +295 -0
- data/lib/trinsic_api/models/samsung_wallet_input.rb +1 -1
- data/lib/trinsic_api/models/samsung_wallet_provider_output.rb +13 -18
- data/lib/trinsic_api/models/sanad_provider_output.rb +205 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_address.rb +325 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_citizen_attributes.rb +426 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_head_of_household.rb +193 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_provider_output.rb +260 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_resident_attributes.rb +426 -0
- data/lib/trinsic_api/models/saudi_arabia_nafath_visitor_attributes.rb +446 -0
- data/lib/trinsic_api/models/serbia_id_card_provider_output.rb +4 -68
- data/lib/trinsic_api/models/signzy_india_aadhaar_fetch_provider_output.rb +3 -35
- data/lib/trinsic_api/models/singpass_personal_catalog.rb +9 -9
- data/lib/trinsic_api/models/south_africa_nid_lookup2_provider_output.rb +10 -138
- data/lib/trinsic_api/models/south_africa_nid_match2_date_of_birth_field.rb +2 -34
- data/lib/trinsic_api/models/south_africa_nid_match2_full_name_field.rb +2 -34
- data/lib/trinsic_api/models/south_africa_nid_match2_national_id_number_field.rb +2 -34
- data/lib/trinsic_api/models/south_africa_nid_match2_provider_output.rb +2 -34
- data/lib/trinsic_api/models/south_africa_nid_match2_sex_field.rb +2 -34
- data/lib/trinsic_api/models/spid_billing_information.rb +3 -51
- data/lib/trinsic_api/models/spid_provider_output.rb +2 -34
- data/lib/trinsic_api/models/sub_provider_metadata.rb +16 -5
- data/lib/trinsic_api/models/sweden_bank_id_provider_output.rb +24 -2
- data/lib/trinsic_api/models/trinsic_hpke_bundle.rb +246 -0
- data/lib/trinsic_api/models/trinsic_hpke_metadata.rb +327 -0
- data/lib/trinsic_api/models/trinsic_test_database_lookup_input.rb +1 -1
- data/lib/trinsic_api/models/uganda_nid_match2_date_of_birth_field.rb +2 -34
- data/lib/trinsic_api/models/uganda_nid_match2_national_id_number_field.rb +2 -34
- data/lib/trinsic_api/models/uganda_nid_match2_provider_output.rb +3 -51
- data/lib/trinsic_api/models/uganda_nid_match2_secondary_id_number_field.rb +2 -34
- data/lib/trinsic_api/models/uk_evisa_lookup_input.rb +1 -1
- data/lib/trinsic_api/models/usa_arizona_wallet_input.rb +149 -0
- data/lib/trinsic_api/models/verification_profile_response.rb +28 -1
- data/lib/trinsic_api/models/zimbabwe_nid_lookup2_provider_output.rb +6 -102
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +76 -6
- data/spec/api/developer_api_spec.rb +60 -0
- data/spec/api/verification_profiles_api_spec.rb +1 -0
- data/spec/models/alaska_mobile_id_provider_output_spec.rb +42 -0
- data/spec/models/attachment_info_spec.rb +6 -0
- data/spec/models/austria_valera_eudi_sandbox_input_spec.rb +36 -0
- data/spec/models/austria_valera_eudi_sandbox_provider_output_spec.rb +48 -0
- data/spec/models/brazil_biometric_verification_output_spec.rb +54 -0
- data/spec/models/brazil_cnh_provider_output_spec.rb +6 -0
- data/spec/models/brazil_cpf_check_input_spec.rb +6 -0
- data/spec/models/brazil_cpf_provider_output_spec.rb +96 -0
- data/spec/models/{verimi_address_output_spec.rb → clear_provider_output_address_spec.rb} +12 -12
- data/spec/models/clear_provider_output_check_additional_details_spec.rb +36 -0
- data/spec/models/clear_provider_output_check_spec.rb +66 -0
- data/spec/models/clear_provider_output_document_spec.rb +108 -0
- data/spec/models/clear_provider_output_health_insurance_spec.rb +78 -0
- data/spec/models/clear_provider_output_historical_address_spec.rb +90 -0
- data/spec/models/clear_provider_output_historical_data_spec.rb +42 -0
- data/spec/models/clear_provider_output_historical_name_spec.rb +66 -0
- data/spec/models/clear_provider_output_location_info_spec.rb +72 -0
- data/spec/models/clear_provider_output_partial_date_spec.rb +48 -0
- data/spec/models/clear_provider_output_session_info_spec.rb +66 -0
- data/spec/models/clear_provider_output_spec.rb +150 -0
- data/spec/models/clear_provider_output_traits_spec.rb +132 -0
- data/spec/models/clear_provider_output_verified_email_spec.rb +48 -0
- data/spec/models/clear_provider_output_watchlist_hit_details_spec.rb +126 -0
- data/spec/models/clear_provider_output_watchlist_hit_spec.rb +54 -0
- data/spec/models/clear_provider_output_watchlist_hits_spec.rb +42 -0
- data/spec/models/clear_provider_output_watchlist_source_spec.rb +48 -0
- data/spec/models/connect_id_age_verification_spec.rb +24 -0
- data/spec/models/connect_id_input_spec.rb +36 -0
- data/spec/models/create_direct_provider_session_request_spec.rb +6 -0
- data/spec/models/create_hosted_provider_session_request_spec.rb +6 -0
- data/spec/models/czech_bank_id_input_spec.rb +36 -0
- data/spec/models/denmark_alt_id_input_spec.rb +36 -0
- data/spec/models/denmark_alt_id_provider_output_spec.rb +48 -0
- data/spec/models/eudi_age_verification_credential_spec.rb +0 -12
- data/spec/models/eudi_reference_wallet_provider_output_spec.rb +42 -0
- data/spec/models/evrotrust_address_components_spec.rb +126 -0
- data/spec/models/evrotrust_input_spec.rb +42 -0
- data/spec/models/{idemia_preview_provider_output_spec.rb → evrotrust_provider_output_spec.rb} +41 -35
- data/spec/models/finnish_trust_network_address_output_spec.rb +48 -0
- data/spec/models/finnish_trust_network_input_spec.rb +36 -0
- data/spec/models/finnish_trust_network_provider_output_spec.rb +6 -0
- data/spec/models/french_numerique_provider_output_spec.rb +18 -0
- data/spec/models/{french_numerique_given_name_spec.rb → french_numerique_splitted_given_name_spec.rb} +6 -12
- data/spec/models/{french_numerique_phone_spec.rb → french_numerique_splitted_phone_spec.rb} +6 -12
- data/spec/models/germany_eudi_sandbox_input_spec.rb +36 -0
- data/spec/models/germany_eudi_sandbox_provider_output_spec.rb +42 -0
- data/spec/models/get_attachment_response_spec.rb +6 -0
- data/spec/models/get_session_result_request_spec.rb +6 -0
- data/spec/models/get_session_result_response_spec.rb +6 -0
- data/spec/models/guatemala_cui_lookup_input_spec.rb +6 -0
- data/spec/models/hpke_test_request_spec.rb +48 -0
- data/spec/models/hpke_test_vp_request_spec.rb +42 -0
- data/spec/models/idemia_mobile_id_provider_output_spec.rb +162 -0
- data/spec/models/itsme_address_base_spec.rb +48 -0
- data/spec/models/itsme_belgian_identity_card_spec.rb +60 -0
- data/spec/models/itsme_belgian_national_number_spec.rb +48 -0
- data/spec/models/itsme_direct_device_spec.rb +102 -0
- data/spec/models/itsme_identity_document_spec.rb +60 -0
- data/spec/models/itsme_login_provider_output_spec.rb +114 -0
- data/spec/models/itsme_place_of_birth_spec.rb +42 -0
- data/spec/models/itsme_provider_address_spec.rb +60 -0
- data/spec/models/itsme_provider_output_spec.rb +49 -13
- data/spec/models/japan_my_number_provider_output_spec.rb +54 -0
- data/spec/models/jordan_sanad_input_spec.rb +36 -0
- data/spec/models/kenya_nid_lookup3_input_spec.rb +36 -0
- data/spec/models/{idemia_preview_provider_address_spec.rb → kenya_nid_lookup3_provider_output_spec.rb} +14 -14
- data/spec/models/mdl_output_certificate_data_spec.rb +6 -0
- data/spec/models/mit_id_address_output_spec.rb +66 -0
- data/spec/models/mit_id_provider_output_spec.rb +6 -0
- data/spec/models/mock_output_provider_input_spec.rb +36 -0
- data/spec/models/moldova_driver_license_credential_spec.rb +108 -0
- data/spec/models/moldova_evo_wallet_input_spec.rb +36 -0
- data/spec/models/moldova_evo_wallet_provider_output_spec.rb +60 -0
- data/spec/models/moldova_identity_card_credential_spec.rb +162 -0
- data/spec/models/{verimi_provider_output_spec.rb → moldova_vehicle_registration_certificate_credential_spec.rb} +38 -32
- data/spec/models/netherlands_eudi_sandbox_input_spec.rb +36 -0
- data/spec/models/netherlands_eudi_sandbox_provider_output_spec.rb +42 -0
- data/spec/models/netherlands_idin_address_spec.rb +30 -0
- data/spec/models/nigeria_nin_lookup3_input_spec.rb +36 -0
- data/spec/models/nigeria_nin_lookup3_provider_output_spec.rb +132 -0
- data/spec/models/panama_cedula_lookup_input_spec.rb +0 -6
- data/spec/models/panama_cedula_provider_output_spec.rb +0 -6
- data/spec/models/provider_input_spec.rb +84 -0
- data/spec/models/provider_output_spec.rb +102 -6
- data/spec/models/provider_spec.rb +3 -9
- data/spec/models/recommend_provider_information_spec.rb +6 -0
- data/spec/models/revolut_provider_output_spec.rb +66 -0
- data/spec/models/samsung_id_with_clear_credential_spec.rb +114 -0
- data/spec/models/samsung_wallet_provider_output_spec.rb +6 -0
- data/spec/models/sanad_provider_output_spec.rb +66 -0
- data/spec/models/saudi_arabia_nafath_address_spec.rb +132 -0
- data/spec/models/saudi_arabia_nafath_citizen_attributes_spec.rb +186 -0
- data/spec/models/saudi_arabia_nafath_head_of_household_spec.rb +60 -0
- data/spec/models/saudi_arabia_nafath_provider_output_spec.rb +96 -0
- data/spec/models/saudi_arabia_nafath_resident_attributes_spec.rb +186 -0
- data/spec/models/saudi_arabia_nafath_visitor_attributes_spec.rb +198 -0
- data/spec/models/singpass_personal_catalog_spec.rb +1 -1
- data/spec/models/sub_provider_metadata_spec.rb +6 -0
- data/spec/models/sweden_bank_id_provider_output_spec.rb +12 -0
- data/spec/models/trinsic_hpke_bundle_spec.rb +54 -0
- data/spec/models/trinsic_hpke_metadata_spec.rb +72 -0
- data/spec/models/usa_arizona_wallet_input_spec.rb +36 -0
- data/spec/models/verification_profile_response_spec.rb +6 -0
- metadata +546 -266
- data/docs/IdemiaPreviewProviderAddress.md +0 -32
- data/docs/IdemiaPreviewProviderOutput.md +0 -76
- data/docs/VerimiAddressOutput.md +0 -28
- data/docs/VerimiProviderOutput.md +0 -68
- data/lib/trinsic_api/models/idemia_preview_provider_output.rb +0 -469
- data/lib/trinsic_api/models/verimi_provider_output.rb +0 -425
|
@@ -0,0 +1,260 @@
|
|
|
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 `saudi-arabia-nafath` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
+
class SaudiArabiaNafathProviderOutput < ApiModelBase
|
|
19
|
+
# Saudi Arabia national identity number used to authenticate the individual with Nafath. Nafath supports three user types and the leading digit of this number identifies which one signed in: - 1: Saudi citizen national ID, issued by Civil Affairs (Al-Ahwal al-Madaniyya) under the Ministry of Interior. - 2: Resident (Iqama or muqeem) number on the residence permit, issued by the General Directorate of Passports (Al-Jawazat) under the Ministry of Interior. - 3 through 6: Visitor identity number (Hawiyyat Za'ir) for foreign nationals admitted on short-term visas, including tourist, business, family visit, and Umrah visas. Format: - Exactly ten decimal digits. - First digit is the user type as listed above. - Digits two through nine are assigned serially and have no semantic meaning. - For citizen and resident numbers, the tenth digit is a check digit derived from the first nine digits with a modulus-ten style algorithm. No check digit is documented for visitor numbers, and the Nafath sandbox's visitor numbers do not follow it. Nafath returns no identifier for visitors, so for them this is the number the user submitted.
|
|
20
|
+
attr_accessor :national_identity_number
|
|
21
|
+
|
|
22
|
+
# Nafath user type derived from the leading digit of nationalIdentityNumber. The matching attributes object carries the fields Nafath defines only for that user type. Possible values: - Citizen: Saudi citizen national ID (1-series). See citizenSpecificAttributes. - Resident: legally resident foreign national, Iqama (2-series). See residentSpecificAttributes. - Visitor: visitor identity (3 through 6-series). See visitorSpecificAttributes.
|
|
23
|
+
attr_accessor :user_type
|
|
24
|
+
|
|
25
|
+
# Sex as returned by Nafath, normalized to the platform sex code. Possible values: - Male - Female
|
|
26
|
+
attr_accessor :sex
|
|
27
|
+
|
|
28
|
+
# Nationality as an ISO 3166-1 alpha-2 country code. Not every nationality passed by back Nafath corresponds to an ISO 3166-1 alpha-2 code, for example code 335 (Tribes Emigrated) or 336 (Turkestan). In these cases, this field is null. See nationalityCode for the raw nationality code.
|
|
29
|
+
attr_accessor :nationality
|
|
30
|
+
|
|
31
|
+
# Nationality code as returned by Nafath under nationalityCode. This is the Saudi government's three-digit nationality code, grouped by region: - 1xx Arab states - 2xx North Africa - 3xx Asia, Middle East, and Oceania - 4xx Sub-Saharan Africa - 5xx Europe - 6xx Americas - 7xx Oceania It is not an ISO 3166 numeric code. For example, 504 is Ireland according to Nafath but Morocco in ISO 3166. See https://docs.trinsic.id/docs/saudi-arabia-nafath for a full list.
|
|
32
|
+
attr_accessor :nationality_code
|
|
33
|
+
|
|
34
|
+
# Date of birth in the Gregorian calendar.
|
|
35
|
+
attr_accessor :date_of_birth_gregorian
|
|
36
|
+
|
|
37
|
+
# Occupation code reported by Nafath. Known values: - O: Other - G: Government
|
|
38
|
+
attr_accessor :occupation_code
|
|
39
|
+
|
|
40
|
+
# Passport number reported by Nafath.
|
|
41
|
+
attr_accessor :passport_number
|
|
42
|
+
|
|
43
|
+
# Attributes Nafath defines only for Saudi citizens. Present only when userType is Citizen.
|
|
44
|
+
attr_accessor :citizen_specific_attributes
|
|
45
|
+
|
|
46
|
+
# Attributes Nafath defines only for residents holding an Iqama. Present only when userType is Resident.
|
|
47
|
+
attr_accessor :resident_specific_attributes
|
|
48
|
+
|
|
49
|
+
# Attributes Nafath defines only for visitors on short-term visas. Present only when userType is Visitor.
|
|
50
|
+
attr_accessor :visitor_specific_attributes
|
|
51
|
+
|
|
52
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
|
+
def self.attribute_map
|
|
54
|
+
{
|
|
55
|
+
:'national_identity_number' => :'nationalIdentityNumber',
|
|
56
|
+
:'user_type' => :'userType',
|
|
57
|
+
:'sex' => :'sex',
|
|
58
|
+
:'nationality' => :'nationality',
|
|
59
|
+
:'nationality_code' => :'nationalityCode',
|
|
60
|
+
:'date_of_birth_gregorian' => :'dateOfBirthGregorian',
|
|
61
|
+
:'occupation_code' => :'occupationCode',
|
|
62
|
+
:'passport_number' => :'passportNumber',
|
|
63
|
+
:'citizen_specific_attributes' => :'citizenSpecificAttributes',
|
|
64
|
+
:'resident_specific_attributes' => :'residentSpecificAttributes',
|
|
65
|
+
:'visitor_specific_attributes' => :'visitorSpecificAttributes'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Returns attribute mapping this model knows about
|
|
70
|
+
def self.acceptable_attribute_map
|
|
71
|
+
attribute_map
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Returns all the JSON keys this model knows about
|
|
75
|
+
def self.acceptable_attributes
|
|
76
|
+
acceptable_attribute_map.values
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Attribute type mapping.
|
|
80
|
+
def self.openapi_types
|
|
81
|
+
{
|
|
82
|
+
:'national_identity_number' => :'String',
|
|
83
|
+
:'user_type' => :'String',
|
|
84
|
+
:'sex' => :'String',
|
|
85
|
+
:'nationality' => :'String',
|
|
86
|
+
:'nationality_code' => :'String',
|
|
87
|
+
:'date_of_birth_gregorian' => :'Date',
|
|
88
|
+
:'occupation_code' => :'String',
|
|
89
|
+
:'passport_number' => :'String',
|
|
90
|
+
:'citizen_specific_attributes' => :'SaudiArabiaNafathCitizenAttributes',
|
|
91
|
+
:'resident_specific_attributes' => :'SaudiArabiaNafathResidentAttributes',
|
|
92
|
+
:'visitor_specific_attributes' => :'SaudiArabiaNafathVisitorAttributes'
|
|
93
|
+
}
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# List of attributes with nullable: true
|
|
97
|
+
def self.openapi_nullable
|
|
98
|
+
Set.new([
|
|
99
|
+
:'national_identity_number',
|
|
100
|
+
:'user_type',
|
|
101
|
+
:'sex',
|
|
102
|
+
:'nationality',
|
|
103
|
+
:'nationality_code',
|
|
104
|
+
:'date_of_birth_gregorian',
|
|
105
|
+
:'occupation_code',
|
|
106
|
+
:'passport_number',
|
|
107
|
+
:'citizen_specific_attributes',
|
|
108
|
+
:'resident_specific_attributes',
|
|
109
|
+
:'visitor_specific_attributes'
|
|
110
|
+
])
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Initializes the object
|
|
114
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
115
|
+
def initialize(attributes = {})
|
|
116
|
+
if (!attributes.is_a?(Hash))
|
|
117
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SaudiArabiaNafathProviderOutput` initialize method"
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
121
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
122
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
123
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
124
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SaudiArabiaNafathProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
125
|
+
end
|
|
126
|
+
h[k.to_sym] = v
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'national_identity_number')
|
|
130
|
+
self.national_identity_number = attributes[:'national_identity_number']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'user_type')
|
|
134
|
+
self.user_type = attributes[:'user_type']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'sex')
|
|
138
|
+
self.sex = attributes[:'sex']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'nationality')
|
|
142
|
+
self.nationality = attributes[:'nationality']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'nationality_code')
|
|
146
|
+
self.nationality_code = attributes[:'nationality_code']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'date_of_birth_gregorian')
|
|
150
|
+
self.date_of_birth_gregorian = attributes[:'date_of_birth_gregorian']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'occupation_code')
|
|
154
|
+
self.occupation_code = attributes[:'occupation_code']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'passport_number')
|
|
158
|
+
self.passport_number = attributes[:'passport_number']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'citizen_specific_attributes')
|
|
162
|
+
self.citizen_specific_attributes = attributes[:'citizen_specific_attributes']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'resident_specific_attributes')
|
|
166
|
+
self.resident_specific_attributes = attributes[:'resident_specific_attributes']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.key?(:'visitor_specific_attributes')
|
|
170
|
+
self.visitor_specific_attributes = attributes[:'visitor_specific_attributes']
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
175
|
+
# @return Array for valid properties with the reasons
|
|
176
|
+
def list_invalid_properties
|
|
177
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
178
|
+
invalid_properties = Array.new
|
|
179
|
+
invalid_properties
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Check to see if the all the properties in the model are valid
|
|
183
|
+
# @return true if the model is valid
|
|
184
|
+
def valid?
|
|
185
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
186
|
+
true
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Checks equality by comparing each attribute.
|
|
190
|
+
# @param [Object] Object to be compared
|
|
191
|
+
def ==(o)
|
|
192
|
+
return true if self.equal?(o)
|
|
193
|
+
self.class == o.class &&
|
|
194
|
+
national_identity_number == o.national_identity_number &&
|
|
195
|
+
user_type == o.user_type &&
|
|
196
|
+
sex == o.sex &&
|
|
197
|
+
nationality == o.nationality &&
|
|
198
|
+
nationality_code == o.nationality_code &&
|
|
199
|
+
date_of_birth_gregorian == o.date_of_birth_gregorian &&
|
|
200
|
+
occupation_code == o.occupation_code &&
|
|
201
|
+
passport_number == o.passport_number &&
|
|
202
|
+
citizen_specific_attributes == o.citizen_specific_attributes &&
|
|
203
|
+
resident_specific_attributes == o.resident_specific_attributes &&
|
|
204
|
+
visitor_specific_attributes == o.visitor_specific_attributes
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# @see the `==` method
|
|
208
|
+
# @param [Object] Object to be compared
|
|
209
|
+
def eql?(o)
|
|
210
|
+
self == o
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Calculates hash code according to all attributes.
|
|
214
|
+
# @return [Integer] Hash code
|
|
215
|
+
def hash
|
|
216
|
+
[national_identity_number, user_type, sex, nationality, nationality_code, date_of_birth_gregorian, occupation_code, passport_number, citizen_specific_attributes, resident_specific_attributes, visitor_specific_attributes].hash
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Builds the object from hash
|
|
220
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
221
|
+
# @return [Object] Returns the model itself
|
|
222
|
+
def self.build_from_hash(attributes)
|
|
223
|
+
return nil unless attributes.is_a?(Hash)
|
|
224
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
225
|
+
transformed_hash = {}
|
|
226
|
+
openapi_types.each_pair do |key, type|
|
|
227
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
228
|
+
transformed_hash["#{key}"] = nil
|
|
229
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
230
|
+
# check to ensure the input is an array given that the attribute
|
|
231
|
+
# is documented as an array but the input is not
|
|
232
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
233
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
234
|
+
end
|
|
235
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
236
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
new(transformed_hash)
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Returns the object in the form of hash
|
|
243
|
+
# @return [Hash] Returns the object in the form of hash
|
|
244
|
+
def to_hash
|
|
245
|
+
hash = {}
|
|
246
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
247
|
+
value = self.send(attr)
|
|
248
|
+
if value.nil?
|
|
249
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
250
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
hash[param] = _to_hash(value)
|
|
254
|
+
end
|
|
255
|
+
hash
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
end
|
|
@@ -0,0 +1,426 @@
|
|
|
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 SaudiArabiaNafathResidentAttributes < ApiModelBase
|
|
18
|
+
# Given name in Arabic. Nafath always returns this in Arabic. romanizedFirstName is the English form, and the session locale does not change either name.
|
|
19
|
+
attr_accessor :arabic_first_name
|
|
20
|
+
|
|
21
|
+
# Second name in Arabic. Same script as arabicFirstName.
|
|
22
|
+
attr_accessor :arabic_second_name
|
|
23
|
+
|
|
24
|
+
# Third name in Arabic. Same script as arabicFirstName.
|
|
25
|
+
attr_accessor :arabic_third_name
|
|
26
|
+
|
|
27
|
+
# Last name in Arabic. Same script as arabicFirstName.
|
|
28
|
+
attr_accessor :arabic_last_name
|
|
29
|
+
|
|
30
|
+
# Given name in English. Nafath always returns this in English, including when the session locale is Arabic.
|
|
31
|
+
attr_accessor :romanized_first_name
|
|
32
|
+
|
|
33
|
+
# Second name in English. Same script as romanizedFirstName.
|
|
34
|
+
attr_accessor :romanized_second_name
|
|
35
|
+
|
|
36
|
+
# Third name in English. Same script as romanizedFirstName.
|
|
37
|
+
attr_accessor :romanized_third_name
|
|
38
|
+
|
|
39
|
+
# Last name in English. Same script as romanizedFirstName.
|
|
40
|
+
attr_accessor :romanized_last_name
|
|
41
|
+
|
|
42
|
+
# English nationality name.
|
|
43
|
+
attr_accessor :nationality_description
|
|
44
|
+
|
|
45
|
+
# Date of birth in the Hijri (Umm al-Qura) calendar, in YYYY-MM-DD format.
|
|
46
|
+
attr_accessor :date_of_birth_hijri
|
|
47
|
+
|
|
48
|
+
# Date the Iqama was issued in the Gregorian calendar.
|
|
49
|
+
attr_accessor :iqama_issue_date_gregorian
|
|
50
|
+
|
|
51
|
+
# Date the Iqama was issued in the Hijri calendar, in YYYY-MM-DD format.
|
|
52
|
+
attr_accessor :iqama_issue_date_hijri
|
|
53
|
+
|
|
54
|
+
# Date the Iqama expires in the Gregorian calendar.
|
|
55
|
+
attr_accessor :iqama_expiry_date_gregorian
|
|
56
|
+
|
|
57
|
+
# Date the Iqama expires in the Hijri calendar, in YYYY-MM-DD format.
|
|
58
|
+
attr_accessor :iqama_expiry_date_hijri
|
|
59
|
+
|
|
60
|
+
# Version number printed on the Iqama. Represents the Iqama permit generation version.
|
|
61
|
+
attr_accessor :iqama_version_number
|
|
62
|
+
|
|
63
|
+
# Name of the city or office that issued the Iqama, in Arabic. The session locale does not change it.
|
|
64
|
+
attr_accessor :iqama_issue_place
|
|
65
|
+
|
|
66
|
+
# Code for the office that issued the Iqama.
|
|
67
|
+
attr_accessor :iqama_issue_place_code
|
|
68
|
+
|
|
69
|
+
# Free-text occupation description.
|
|
70
|
+
attr_accessor :occupation_description
|
|
71
|
+
|
|
72
|
+
# Social-status (marital-status) code, from the Nafath socialStatusCode attribute. The numeric code is not unique on its own. The same code maps to different states depending on the value of the top-level sex field. Code by sex: - 0, M: Single - 1, F: Single - 1, M: One wife - 2, F: Married - 2, M: Two wives - 3, F: Divorced - 3, M: Three wives - 4, F: Widow - 4, M: Four wives - 5, F: Pending divorced Combinations not listed are not defined by Nafath.
|
|
73
|
+
attr_accessor :social_status_code
|
|
74
|
+
|
|
75
|
+
# Social status in uppercase English, for example MARRIED, from the Nafath socialStatus attribute. Possible English values include: Single, Married, Divorced, Widow, Pending Divorced, One Wife, Two Wives, Three Wives, Four Wives.
|
|
76
|
+
attr_accessor :social_status
|
|
77
|
+
|
|
78
|
+
# Place of birth name.
|
|
79
|
+
attr_accessor :place_of_birth
|
|
80
|
+
|
|
81
|
+
# Code for the place of birth.
|
|
82
|
+
attr_accessor :place_of_birth_code
|
|
83
|
+
|
|
84
|
+
# Name of the entity sponsoring the Iqama, typically an employer.
|
|
85
|
+
attr_accessor :sponsor_name
|
|
86
|
+
|
|
87
|
+
# Legal status.
|
|
88
|
+
attr_accessor :legal_status
|
|
89
|
+
|
|
90
|
+
# Whether the resident is currently inside or outside Saudi Arabia based on their last recorded travel event. Possible values include: - IN: most recent travel event was an entry into Saudi Arabia. - OUT: most recent travel event was an exit from Saudi Arabia.
|
|
91
|
+
attr_accessor :in_out_indicator
|
|
92
|
+
|
|
93
|
+
# Registered Saudi national addresses. Saudi Post (SPL) documents how to enter a national address on checkout and international forms: Line 1 is building number, unit number, and street name. Line 2 is the additional number and district. Then city and postal code. The country is always Saudi Arabia. https://splonline.com.sa/en/door-step/
|
|
94
|
+
attr_accessor :national_addresses
|
|
95
|
+
|
|
96
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
97
|
+
def self.attribute_map
|
|
98
|
+
{
|
|
99
|
+
:'arabic_first_name' => :'arabicFirstName',
|
|
100
|
+
:'arabic_second_name' => :'arabicSecondName',
|
|
101
|
+
:'arabic_third_name' => :'arabicThirdName',
|
|
102
|
+
:'arabic_last_name' => :'arabicLastName',
|
|
103
|
+
:'romanized_first_name' => :'romanizedFirstName',
|
|
104
|
+
:'romanized_second_name' => :'romanizedSecondName',
|
|
105
|
+
:'romanized_third_name' => :'romanizedThirdName',
|
|
106
|
+
:'romanized_last_name' => :'romanizedLastName',
|
|
107
|
+
:'nationality_description' => :'nationalityDescription',
|
|
108
|
+
:'date_of_birth_hijri' => :'dateOfBirthHijri',
|
|
109
|
+
:'iqama_issue_date_gregorian' => :'iqamaIssueDateGregorian',
|
|
110
|
+
:'iqama_issue_date_hijri' => :'iqamaIssueDateHijri',
|
|
111
|
+
:'iqama_expiry_date_gregorian' => :'iqamaExpiryDateGregorian',
|
|
112
|
+
:'iqama_expiry_date_hijri' => :'iqamaExpiryDateHijri',
|
|
113
|
+
:'iqama_version_number' => :'iqamaVersionNumber',
|
|
114
|
+
:'iqama_issue_place' => :'iqamaIssuePlace',
|
|
115
|
+
:'iqama_issue_place_code' => :'iqamaIssuePlaceCode',
|
|
116
|
+
:'occupation_description' => :'occupationDescription',
|
|
117
|
+
:'social_status_code' => :'socialStatusCode',
|
|
118
|
+
:'social_status' => :'socialStatus',
|
|
119
|
+
:'place_of_birth' => :'placeOfBirth',
|
|
120
|
+
:'place_of_birth_code' => :'placeOfBirthCode',
|
|
121
|
+
:'sponsor_name' => :'sponsorName',
|
|
122
|
+
:'legal_status' => :'legalStatus',
|
|
123
|
+
:'in_out_indicator' => :'inOutIndicator',
|
|
124
|
+
:'national_addresses' => :'nationalAddresses'
|
|
125
|
+
}
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Returns attribute mapping this model knows about
|
|
129
|
+
def self.acceptable_attribute_map
|
|
130
|
+
attribute_map
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Returns all the JSON keys this model knows about
|
|
134
|
+
def self.acceptable_attributes
|
|
135
|
+
acceptable_attribute_map.values
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Attribute type mapping.
|
|
139
|
+
def self.openapi_types
|
|
140
|
+
{
|
|
141
|
+
:'arabic_first_name' => :'String',
|
|
142
|
+
:'arabic_second_name' => :'String',
|
|
143
|
+
:'arabic_third_name' => :'String',
|
|
144
|
+
:'arabic_last_name' => :'String',
|
|
145
|
+
:'romanized_first_name' => :'String',
|
|
146
|
+
:'romanized_second_name' => :'String',
|
|
147
|
+
:'romanized_third_name' => :'String',
|
|
148
|
+
:'romanized_last_name' => :'String',
|
|
149
|
+
:'nationality_description' => :'String',
|
|
150
|
+
:'date_of_birth_hijri' => :'String',
|
|
151
|
+
:'iqama_issue_date_gregorian' => :'Date',
|
|
152
|
+
:'iqama_issue_date_hijri' => :'String',
|
|
153
|
+
:'iqama_expiry_date_gregorian' => :'Date',
|
|
154
|
+
:'iqama_expiry_date_hijri' => :'String',
|
|
155
|
+
:'iqama_version_number' => :'String',
|
|
156
|
+
:'iqama_issue_place' => :'String',
|
|
157
|
+
:'iqama_issue_place_code' => :'String',
|
|
158
|
+
:'occupation_description' => :'String',
|
|
159
|
+
:'social_status_code' => :'String',
|
|
160
|
+
:'social_status' => :'String',
|
|
161
|
+
:'place_of_birth' => :'String',
|
|
162
|
+
:'place_of_birth_code' => :'String',
|
|
163
|
+
:'sponsor_name' => :'String',
|
|
164
|
+
:'legal_status' => :'String',
|
|
165
|
+
:'in_out_indicator' => :'String',
|
|
166
|
+
:'national_addresses' => :'Array<SaudiArabiaNafathAddress>'
|
|
167
|
+
}
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# List of attributes with nullable: true
|
|
171
|
+
def self.openapi_nullable
|
|
172
|
+
Set.new([
|
|
173
|
+
:'arabic_first_name',
|
|
174
|
+
:'arabic_second_name',
|
|
175
|
+
:'arabic_third_name',
|
|
176
|
+
:'arabic_last_name',
|
|
177
|
+
:'romanized_first_name',
|
|
178
|
+
:'romanized_second_name',
|
|
179
|
+
:'romanized_third_name',
|
|
180
|
+
:'romanized_last_name',
|
|
181
|
+
:'nationality_description',
|
|
182
|
+
:'date_of_birth_hijri',
|
|
183
|
+
:'iqama_issue_date_gregorian',
|
|
184
|
+
:'iqama_issue_date_hijri',
|
|
185
|
+
:'iqama_expiry_date_gregorian',
|
|
186
|
+
:'iqama_expiry_date_hijri',
|
|
187
|
+
:'iqama_version_number',
|
|
188
|
+
:'iqama_issue_place',
|
|
189
|
+
:'iqama_issue_place_code',
|
|
190
|
+
:'occupation_description',
|
|
191
|
+
:'social_status_code',
|
|
192
|
+
:'social_status',
|
|
193
|
+
:'place_of_birth',
|
|
194
|
+
:'place_of_birth_code',
|
|
195
|
+
:'sponsor_name',
|
|
196
|
+
:'legal_status',
|
|
197
|
+
:'in_out_indicator',
|
|
198
|
+
:'national_addresses'
|
|
199
|
+
])
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Initializes the object
|
|
203
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
204
|
+
def initialize(attributes = {})
|
|
205
|
+
if (!attributes.is_a?(Hash))
|
|
206
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SaudiArabiaNafathResidentAttributes` initialize method"
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
210
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
211
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
212
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
213
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SaudiArabiaNafathResidentAttributes`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
214
|
+
end
|
|
215
|
+
h[k.to_sym] = v
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if attributes.key?(:'arabic_first_name')
|
|
219
|
+
self.arabic_first_name = attributes[:'arabic_first_name']
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if attributes.key?(:'arabic_second_name')
|
|
223
|
+
self.arabic_second_name = attributes[:'arabic_second_name']
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'arabic_third_name')
|
|
227
|
+
self.arabic_third_name = attributes[:'arabic_third_name']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'arabic_last_name')
|
|
231
|
+
self.arabic_last_name = attributes[:'arabic_last_name']
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'romanized_first_name')
|
|
235
|
+
self.romanized_first_name = attributes[:'romanized_first_name']
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'romanized_second_name')
|
|
239
|
+
self.romanized_second_name = attributes[:'romanized_second_name']
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'romanized_third_name')
|
|
243
|
+
self.romanized_third_name = attributes[:'romanized_third_name']
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'romanized_last_name')
|
|
247
|
+
self.romanized_last_name = attributes[:'romanized_last_name']
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if attributes.key?(:'nationality_description')
|
|
251
|
+
self.nationality_description = attributes[:'nationality_description']
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'date_of_birth_hijri')
|
|
255
|
+
self.date_of_birth_hijri = attributes[:'date_of_birth_hijri']
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if attributes.key?(:'iqama_issue_date_gregorian')
|
|
259
|
+
self.iqama_issue_date_gregorian = attributes[:'iqama_issue_date_gregorian']
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if attributes.key?(:'iqama_issue_date_hijri')
|
|
263
|
+
self.iqama_issue_date_hijri = attributes[:'iqama_issue_date_hijri']
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if attributes.key?(:'iqama_expiry_date_gregorian')
|
|
267
|
+
self.iqama_expiry_date_gregorian = attributes[:'iqama_expiry_date_gregorian']
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if attributes.key?(:'iqama_expiry_date_hijri')
|
|
271
|
+
self.iqama_expiry_date_hijri = attributes[:'iqama_expiry_date_hijri']
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
if attributes.key?(:'iqama_version_number')
|
|
275
|
+
self.iqama_version_number = attributes[:'iqama_version_number']
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
if attributes.key?(:'iqama_issue_place')
|
|
279
|
+
self.iqama_issue_place = attributes[:'iqama_issue_place']
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if attributes.key?(:'iqama_issue_place_code')
|
|
283
|
+
self.iqama_issue_place_code = attributes[:'iqama_issue_place_code']
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if attributes.key?(:'occupation_description')
|
|
287
|
+
self.occupation_description = attributes[:'occupation_description']
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if attributes.key?(:'social_status_code')
|
|
291
|
+
self.social_status_code = attributes[:'social_status_code']
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if attributes.key?(:'social_status')
|
|
295
|
+
self.social_status = attributes[:'social_status']
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if attributes.key?(:'place_of_birth')
|
|
299
|
+
self.place_of_birth = attributes[:'place_of_birth']
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if attributes.key?(:'place_of_birth_code')
|
|
303
|
+
self.place_of_birth_code = attributes[:'place_of_birth_code']
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if attributes.key?(:'sponsor_name')
|
|
307
|
+
self.sponsor_name = attributes[:'sponsor_name']
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if attributes.key?(:'legal_status')
|
|
311
|
+
self.legal_status = attributes[:'legal_status']
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
if attributes.key?(:'in_out_indicator')
|
|
315
|
+
self.in_out_indicator = attributes[:'in_out_indicator']
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
if attributes.key?(:'national_addresses')
|
|
319
|
+
if (value = attributes[:'national_addresses']).is_a?(Array)
|
|
320
|
+
self.national_addresses = value
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
326
|
+
# @return Array for valid properties with the reasons
|
|
327
|
+
def list_invalid_properties
|
|
328
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
329
|
+
invalid_properties = Array.new
|
|
330
|
+
invalid_properties
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Check to see if the all the properties in the model are valid
|
|
334
|
+
# @return true if the model is valid
|
|
335
|
+
def valid?
|
|
336
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
337
|
+
true
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Checks equality by comparing each attribute.
|
|
341
|
+
# @param [Object] Object to be compared
|
|
342
|
+
def ==(o)
|
|
343
|
+
return true if self.equal?(o)
|
|
344
|
+
self.class == o.class &&
|
|
345
|
+
arabic_first_name == o.arabic_first_name &&
|
|
346
|
+
arabic_second_name == o.arabic_second_name &&
|
|
347
|
+
arabic_third_name == o.arabic_third_name &&
|
|
348
|
+
arabic_last_name == o.arabic_last_name &&
|
|
349
|
+
romanized_first_name == o.romanized_first_name &&
|
|
350
|
+
romanized_second_name == o.romanized_second_name &&
|
|
351
|
+
romanized_third_name == o.romanized_third_name &&
|
|
352
|
+
romanized_last_name == o.romanized_last_name &&
|
|
353
|
+
nationality_description == o.nationality_description &&
|
|
354
|
+
date_of_birth_hijri == o.date_of_birth_hijri &&
|
|
355
|
+
iqama_issue_date_gregorian == o.iqama_issue_date_gregorian &&
|
|
356
|
+
iqama_issue_date_hijri == o.iqama_issue_date_hijri &&
|
|
357
|
+
iqama_expiry_date_gregorian == o.iqama_expiry_date_gregorian &&
|
|
358
|
+
iqama_expiry_date_hijri == o.iqama_expiry_date_hijri &&
|
|
359
|
+
iqama_version_number == o.iqama_version_number &&
|
|
360
|
+
iqama_issue_place == o.iqama_issue_place &&
|
|
361
|
+
iqama_issue_place_code == o.iqama_issue_place_code &&
|
|
362
|
+
occupation_description == o.occupation_description &&
|
|
363
|
+
social_status_code == o.social_status_code &&
|
|
364
|
+
social_status == o.social_status &&
|
|
365
|
+
place_of_birth == o.place_of_birth &&
|
|
366
|
+
place_of_birth_code == o.place_of_birth_code &&
|
|
367
|
+
sponsor_name == o.sponsor_name &&
|
|
368
|
+
legal_status == o.legal_status &&
|
|
369
|
+
in_out_indicator == o.in_out_indicator &&
|
|
370
|
+
national_addresses == o.national_addresses
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# @see the `==` method
|
|
374
|
+
# @param [Object] Object to be compared
|
|
375
|
+
def eql?(o)
|
|
376
|
+
self == o
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# Calculates hash code according to all attributes.
|
|
380
|
+
# @return [Integer] Hash code
|
|
381
|
+
def hash
|
|
382
|
+
[arabic_first_name, arabic_second_name, arabic_third_name, arabic_last_name, romanized_first_name, romanized_second_name, romanized_third_name, romanized_last_name, nationality_description, date_of_birth_hijri, iqama_issue_date_gregorian, iqama_issue_date_hijri, iqama_expiry_date_gregorian, iqama_expiry_date_hijri, iqama_version_number, iqama_issue_place, iqama_issue_place_code, occupation_description, social_status_code, social_status, place_of_birth, place_of_birth_code, sponsor_name, legal_status, in_out_indicator, national_addresses].hash
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# Builds the object from hash
|
|
386
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
387
|
+
# @return [Object] Returns the model itself
|
|
388
|
+
def self.build_from_hash(attributes)
|
|
389
|
+
return nil unless attributes.is_a?(Hash)
|
|
390
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
391
|
+
transformed_hash = {}
|
|
392
|
+
openapi_types.each_pair do |key, type|
|
|
393
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
394
|
+
transformed_hash["#{key}"] = nil
|
|
395
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
396
|
+
# check to ensure the input is an array given that the attribute
|
|
397
|
+
# is documented as an array but the input is not
|
|
398
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
399
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
400
|
+
end
|
|
401
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
402
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
403
|
+
end
|
|
404
|
+
end
|
|
405
|
+
new(transformed_hash)
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# Returns the object in the form of hash
|
|
409
|
+
# @return [Hash] Returns the object in the form of hash
|
|
410
|
+
def to_hash
|
|
411
|
+
hash = {}
|
|
412
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
413
|
+
value = self.send(attr)
|
|
414
|
+
if value.nil?
|
|
415
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
416
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
hash[param] = _to_hash(value)
|
|
420
|
+
end
|
|
421
|
+
hash
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
end
|