trinsic_api 3.1.0.pre.preview1 → 3.2.0
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/docs/AgeOverOutput.md +20 -0
- data/docs/AppleWalletDigitalIdBirthDate.md +20 -0
- data/docs/AppleWalletDigitalIdCredential.md +54 -0
- data/docs/AppleWalletProviderOutput.md +4 -0
- data/docs/BrazilCnhFacialBiometryOutput.md +24 -0
- data/docs/BrazilCnhMatchFieldDateOnly.md +20 -0
- data/docs/BrazilCnhMatchFieldString.md +20 -0
- data/docs/BrazilCnhProviderOutput.md +48 -0
- data/docs/CreateDirectProviderSessionRequest.md +1 -1
- data/docs/CreateHostedProviderSessionRequest.md +1 -1
- data/docs/CzechBankIdAddress.md +36 -0
- data/docs/CzechBankIdCard.md +30 -0
- data/docs/CzechBankIdProviderOutput.md +78 -0
- data/docs/CzechBankIdTitle.md +20 -0
- data/docs/CzechBankIdVerification.md +22 -0
- data/docs/DiiaIssuerOutput.md +28 -0
- data/docs/DiiaProviderOutput.md +20 -0
- data/docs/DiiaSubjectOutput.md +26 -0
- data/docs/EudiAgeVerificationCredential.md +22 -0
- data/docs/EudiPidCredential.md +70 -0
- data/docs/FranceIdentiteProviderOutput.md +4 -0
- data/docs/GoogleWalletIdPassCredential.md +40 -0
- data/docs/GoogleWalletProviderOutput.md +4 -0
- data/docs/IdemiaPreviewProviderAddress.md +32 -0
- data/docs/IdemiaPreviewProviderOutput.md +76 -0
- data/docs/IndiaDigilockerAadhaarMatchDateOfBirthField.md +20 -0
- data/docs/IndiaDigilockerAadhaarMatchFullNameField.md +20 -0
- data/docs/IndiaDigilockerAadhaarMatchProviderOutput.md +20 -0
- data/docs/IndonesiaDukcapilMatchDateOfBirthField.md +20 -0
- data/docs/IndonesiaDukcapilMatchFullNameField.md +20 -0
- data/docs/IndonesiaDukcapilMatchNationalIdNumberField.md +20 -0
- data/docs/IndonesiaDukcapilMatchProviderOutput.md +38 -0
- data/docs/IndonesiaNikMatch.md +34 -0
- data/docs/IndonesiaNikMatchField.md +20 -0
- data/docs/InteracAddress.md +26 -0
- data/docs/InteracProviderOutput.md +34 -0
- data/docs/Iso180132BiometricDataBlockProduct.md +20 -0
- data/docs/Iso180132BiometricGroupTemplate.md +18 -0
- data/docs/Iso180132BiometricTemplate.md +24 -0
- data/docs/Iso180132BiometricTemplateHeader.md +36 -0
- data/docs/Iso180132BiometricValidityPeriod.md +20 -0
- data/docs/Iso180135AamvaDomesticDrivingPrivilege.md +22 -0
- data/docs/Iso180135AamvaDomesticVehicleClass.md +24 -0
- data/docs/Iso180135AamvaDomesticVehicleEndorsement.md +20 -0
- data/docs/Iso180135AamvaDomesticVehicleRestriction.md +20 -0
- data/docs/Iso180135AamvaNamespaceOutput.md +70 -0
- data/docs/Iso180135AamvaWeightRange.md +20 -0
- data/docs/Iso180135DrivingPrivilege.md +24 -0
- data/docs/Iso180135DrivingPrivilegeCode.md +22 -0
- data/docs/Iso180135MobileDriversLicenseCredential.md +20 -0
- data/docs/Iso180135StandardNamespaceOutput.md +86 -0
- data/docs/ItsmeAddress.md +28 -0
- data/docs/ItsmeProviderOutput.md +19 -1
- data/docs/KenyaNidMatch2DateOfBirthField.md +20 -0
- data/docs/KenyaNidMatch2FullNameField.md +20 -0
- data/docs/KenyaNidMatch2NationalIdNumberField.md +20 -0
- data/docs/KenyaNidMatch2ProviderOutput.md +24 -0
- data/docs/KenyaNidMatch2SexField.md +20 -0
- data/docs/LloydsSmartIdProviderOutput.md +2 -2
- data/docs/MexicoCurpProviderOutput.md +23 -1
- data/docs/NigeriaNinLookup2Input.md +1 -1
- data/docs/NigeriaNinLookup2ProviderOutput.md +2 -2
- data/docs/NigeriaNinMatch2DateOfBirthField.md +20 -0
- data/docs/NigeriaNinMatch2FullNameField.md +20 -0
- data/docs/NigeriaNinMatch2Input.md +1 -1
- data/docs/NigeriaNinMatch2NationalIdNumberField.md +20 -0
- data/docs/NigeriaNinMatch2PhoneNumberField.md +20 -0
- data/docs/NigeriaNinMatch2ProviderOutput.md +26 -0
- data/docs/NigeriaNinMatch2SexField.md +20 -0
- data/docs/PhilippinesPhilsysMatchProviderOutput.md +26 -0
- data/docs/PostOfficeEasyIdProviderOutput.md +2 -2
- data/docs/ProviderInput.md +0 -6
- data/docs/ProviderOutput.md +37 -3
- data/docs/SamsungWalletProviderOutput.md +2 -0
- data/docs/SouthAfricaNidLookup2Input.md +1 -1
- data/docs/SouthAfricaNidLookup2ProviderOutput.md +36 -0
- data/docs/SouthAfricaNidMatch2DateOfBirthField.md +20 -0
- data/docs/SouthAfricaNidMatch2FullNameField.md +20 -0
- data/docs/SouthAfricaNidMatch2Input.md +2 -4
- data/docs/SouthAfricaNidMatch2NationalIdNumberField.md +20 -0
- data/docs/SouthAfricaNidMatch2ProviderOutput.md +26 -0
- data/docs/SouthAfricaNidMatch2SexField.md +20 -0
- data/docs/UAEPassProviderOutput.md +62 -0
- data/docs/UgandaNidMatch2DateOfBirthField.md +20 -0
- data/docs/UgandaNidMatch2Input.md +1 -1
- data/docs/UgandaNidMatch2NationalIdNumberField.md +20 -0
- data/docs/UgandaNidMatch2ProviderOutput.md +22 -0
- data/docs/UgandaNidMatch2SecondaryIdNumberField.md +20 -0
- data/docs/VerimiAddressOutput.md +28 -0
- data/docs/VerimiProviderOutput.md +68 -0
- data/docs/YotiDeeplinkProviderOutput.md +2 -2
- data/docs/YotiProviderOutput.md +2 -2
- data/docs/ZimbabweNidLookup2Input.md +1 -1
- data/docs/ZimbabweNidLookup2ProviderOutput.md +34 -0
- data/lib/trinsic_api/models/age_over_output.rb +193 -0
- data/lib/trinsic_api/models/apple_wallet_digital_id_birth_date.rb +177 -0
- data/lib/trinsic_api/models/apple_wallet_digital_id_credential.rb +350 -0
- data/lib/trinsic_api/models/apple_wallet_provider_output.rb +23 -1
- data/lib/trinsic_api/models/brazil_cnh_facial_biometry_output.rb +198 -0
- data/lib/trinsic_api/models/brazil_cnh_match_field_date_only.rb +176 -0
- data/lib/trinsic_api/models/brazil_cnh_match_field_string.rb +160 -0
- data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +315 -0
- data/lib/trinsic_api/models/create_direct_provider_session_request.rb +1 -1
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +1 -1
- data/lib/trinsic_api/models/czech_bank_id_address.rb +296 -0
- data/lib/trinsic_api/models/czech_bank_id_card.rb +279 -0
- data/lib/trinsic_api/models/czech_bank_id_provider_output.rb +504 -0
- data/lib/trinsic_api/models/czech_bank_id_title.rb +160 -0
- data/lib/trinsic_api/models/czech_bank_id_verification.rb +203 -0
- data/lib/trinsic_api/models/diia_issuer_output.rb +204 -0
- data/lib/trinsic_api/models/diia_provider_output.rb +193 -0
- data/lib/trinsic_api/models/diia_subject_output.rb +193 -0
- data/lib/trinsic_api/models/{south_africa_nid_biometric2_input.rb → eudi_age_verification_credential.rb} +31 -30
- data/lib/trinsic_api/models/eudi_pid_credential.rb +438 -0
- data/lib/trinsic_api/models/france_identite_provider_output.rb +23 -1
- data/lib/trinsic_api/models/google_wallet_id_pass_credential.rb +273 -0
- data/lib/trinsic_api/models/google_wallet_provider_output.rb +23 -1
- data/lib/trinsic_api/models/idemia_preview_provider_address.rb +226 -0
- data/lib/trinsic_api/models/idemia_preview_provider_output.rb +469 -0
- data/lib/trinsic_api/models/india_digilocker_aadhaar_match_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/india_digilocker_aadhaar_match_full_name_field.rb +192 -0
- data/lib/trinsic_api/models/india_digilocker_aadhaar_match_provider_output.rb +161 -0
- data/lib/trinsic_api/models/indonesia_dukcapil_match_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/indonesia_dukcapil_match_full_name_field.rb +192 -0
- data/lib/trinsic_api/models/indonesia_dukcapil_match_national_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/indonesia_dukcapil_match_provider_output.rb +404 -0
- data/lib/trinsic_api/models/indonesia_nik_match.rb +238 -0
- data/lib/trinsic_api/models/indonesia_nik_match_field.rb +192 -0
- data/lib/trinsic_api/models/{kenya_nid_biometric2_input.rb → interac_address.rb} +50 -30
- data/lib/trinsic_api/models/interac_provider_output.rb +237 -0
- data/lib/trinsic_api/models/iso180132_biometric_data_block_product.rb +193 -0
- data/lib/trinsic_api/models/iso180132_biometric_group_template.rb +168 -0
- data/lib/trinsic_api/models/iso180132_biometric_template.rb +231 -0
- data/lib/trinsic_api/models/iso180132_biometric_template_header.rb +297 -0
- data/lib/trinsic_api/models/iso180132_biometric_validity_period.rb +193 -0
- data/lib/trinsic_api/models/iso180135_aamva_domestic_driving_privilege.rb +176 -0
- data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_class.rb +215 -0
- data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_endorsement.rb +177 -0
- data/lib/trinsic_api/models/iso180135_aamva_domestic_vehicle_restriction.rb +177 -0
- data/lib/trinsic_api/models/iso180135_aamva_namespace_output.rb +438 -0
- data/lib/trinsic_api/models/{nigeria_nin_biometric2_input.rb → iso180135_aamva_weight_range.rb} +37 -33
- data/lib/trinsic_api/models/iso180135_driving_privilege.rb +201 -0
- data/lib/trinsic_api/models/iso180135_driving_privilege_code.rb +188 -0
- data/lib/trinsic_api/models/iso180135_mobile_drivers_license_credential.rb +161 -0
- data/lib/trinsic_api/models/iso180135_standard_namespace_output.rb +528 -0
- data/lib/trinsic_api/models/itsme_address.rb +204 -0
- data/lib/trinsic_api/models/itsme_provider_output.rb +104 -5
- data/lib/trinsic_api/models/kenya_nid_match2_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/kenya_nid_match2_full_name_field.rb +192 -0
- data/lib/trinsic_api/models/kenya_nid_match2_national_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/kenya_nid_match2_provider_output.rb +215 -0
- data/lib/trinsic_api/models/kenya_nid_match2_sex_field.rb +192 -0
- data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +8 -8
- data/lib/trinsic_api/models/mexico_curp_provider_output.rb +126 -5
- data/lib/trinsic_api/models/nigeria_nin_lookup2_input.rb +1 -1
- data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +1 -1
- data/lib/trinsic_api/models/nigeria_nin_match2_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_full_name_field.rb +192 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_input.rb +1 -1
- data/lib/trinsic_api/models/nigeria_nin_match2_national_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_phone_number_field.rb +192 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_provider_output.rb +226 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_sex_field.rb +192 -0
- data/lib/trinsic_api/models/philippines_philsys_match_provider_output.rb +226 -0
- data/lib/trinsic_api/models/post_office_easy_id_provider_output.rb +8 -8
- data/lib/trinsic_api/models/provider_input.rb +1 -34
- data/lib/trinsic_api/models/provider_output.rb +203 -16
- data/lib/trinsic_api/models/samsung_wallet_provider_output.rb +12 -1
- data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +1 -1
- data/lib/trinsic_api/models/south_africa_nid_lookup2_provider_output.rb +377 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_full_name_field.rb +192 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +6 -17
- data/lib/trinsic_api/models/south_africa_nid_match2_national_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_provider_output.rb +226 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_sex_field.rb +192 -0
- data/lib/trinsic_api/models/uae_pass_provider_output.rb +394 -0
- data/lib/trinsic_api/models/uganda_nid_match2_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/uganda_nid_match2_input.rb +1 -1
- data/lib/trinsic_api/models/uganda_nid_match2_national_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/uganda_nid_match2_provider_output.rb +220 -0
- data/lib/trinsic_api/models/uganda_nid_match2_secondary_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/verimi_address_output.rb +204 -0
- data/lib/trinsic_api/models/verimi_provider_output.rb +425 -0
- data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +8 -8
- data/lib/trinsic_api/models/yoti_provider_output.rb +8 -8
- data/lib/trinsic_api/models/zimbabwe_nid_lookup2_input.rb +1 -1
- data/lib/trinsic_api/models/zimbabwe_nid_lookup2_provider_output.rb +334 -0
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +73 -3
- data/spec/models/age_over_output_spec.rb +42 -0
- data/spec/models/apple_wallet_digital_id_birth_date_spec.rb +42 -0
- data/spec/models/apple_wallet_digital_id_credential_spec.rb +144 -0
- data/spec/models/apple_wallet_provider_output_spec.rb +12 -0
- data/spec/models/brazil_cnh_facial_biometry_output_spec.rb +54 -0
- data/spec/models/brazil_cnh_match_field_date_only_spec.rb +42 -0
- data/spec/models/brazil_cnh_match_field_string_spec.rb +42 -0
- data/spec/models/brazil_cnh_provider_output_spec.rb +126 -0
- data/spec/models/czech_bank_id_address_spec.rb +90 -0
- data/spec/models/czech_bank_id_card_spec.rb +72 -0
- data/spec/models/czech_bank_id_provider_output_spec.rb +216 -0
- data/spec/models/czech_bank_id_title_spec.rb +42 -0
- data/spec/models/{kenya_nid_biometric2_input_spec.rb → czech_bank_id_verification_spec.rb} +9 -9
- data/spec/models/diia_issuer_output_spec.rb +66 -0
- data/spec/models/diia_provider_output_spec.rb +42 -0
- data/spec/models/diia_subject_output_spec.rb +60 -0
- data/spec/models/{south_africa_nid_biometric2_input_spec.rb → eudi_age_verification_credential_spec.rb} +9 -9
- data/spec/models/eudi_pid_credential_spec.rb +192 -0
- data/spec/models/france_identite_provider_output_spec.rb +12 -0
- data/spec/models/google_wallet_id_pass_credential_spec.rb +102 -0
- data/spec/models/google_wallet_provider_output_spec.rb +12 -0
- data/spec/models/idemia_preview_provider_address_spec.rb +78 -0
- data/spec/models/idemia_preview_provider_output_spec.rb +210 -0
- data/spec/models/india_digilocker_aadhaar_match_date_of_birth_field_spec.rb +42 -0
- data/spec/models/india_digilocker_aadhaar_match_full_name_field_spec.rb +42 -0
- data/spec/models/india_digilocker_aadhaar_match_provider_output_spec.rb +42 -0
- data/spec/models/indonesia_dukcapil_match_date_of_birth_field_spec.rb +42 -0
- data/spec/models/indonesia_dukcapil_match_full_name_field_spec.rb +42 -0
- data/spec/models/indonesia_dukcapil_match_national_id_number_field_spec.rb +42 -0
- data/spec/models/indonesia_dukcapil_match_provider_output_spec.rb +96 -0
- data/spec/models/indonesia_nik_match_field_spec.rb +42 -0
- data/spec/models/indonesia_nik_match_spec.rb +84 -0
- data/spec/models/interac_address_spec.rb +60 -0
- data/spec/models/interac_provider_output_spec.rb +84 -0
- data/spec/models/iso180132_biometric_data_block_product_spec.rb +42 -0
- data/spec/models/iso180132_biometric_group_template_spec.rb +36 -0
- data/spec/models/iso180132_biometric_template_header_spec.rb +90 -0
- data/spec/models/iso180132_biometric_template_spec.rb +54 -0
- data/spec/models/iso180132_biometric_validity_period_spec.rb +42 -0
- data/spec/models/iso180135_aamva_domestic_driving_privilege_spec.rb +48 -0
- data/spec/models/iso180135_aamva_domestic_vehicle_class_spec.rb +54 -0
- data/spec/models/iso180135_aamva_domestic_vehicle_endorsement_spec.rb +42 -0
- data/spec/models/iso180135_aamva_domestic_vehicle_restriction_spec.rb +42 -0
- data/spec/models/iso180135_aamva_namespace_output_spec.rb +192 -0
- data/spec/models/iso180135_aamva_weight_range_spec.rb +42 -0
- data/spec/models/{nigeria_nin_biometric2_input_spec.rb → iso180135_driving_privilege_code_spec.rb} +9 -9
- data/spec/models/iso180135_driving_privilege_spec.rb +54 -0
- data/spec/models/iso180135_mobile_drivers_license_credential_spec.rb +42 -0
- data/spec/models/iso180135_standard_namespace_output_spec.rb +240 -0
- data/spec/models/itsme_address_spec.rb +66 -0
- data/spec/models/itsme_provider_output_spec.rb +54 -0
- data/spec/models/kenya_nid_match2_date_of_birth_field_spec.rb +42 -0
- data/spec/models/kenya_nid_match2_full_name_field_spec.rb +42 -0
- data/spec/models/kenya_nid_match2_national_id_number_field_spec.rb +42 -0
- data/spec/models/kenya_nid_match2_provider_output_spec.rb +54 -0
- data/spec/models/kenya_nid_match2_sex_field_spec.rb +42 -0
- data/spec/models/lloyds_smart_id_provider_output_spec.rb +1 -1
- data/spec/models/mexico_curp_provider_output_spec.rb +66 -0
- data/spec/models/nigeria_nin_match2_date_of_birth_field_spec.rb +42 -0
- data/spec/models/nigeria_nin_match2_full_name_field_spec.rb +42 -0
- data/spec/models/nigeria_nin_match2_national_id_number_field_spec.rb +42 -0
- data/spec/models/nigeria_nin_match2_phone_number_field_spec.rb +42 -0
- data/spec/models/nigeria_nin_match2_provider_output_spec.rb +60 -0
- data/spec/models/nigeria_nin_match2_sex_field_spec.rb +42 -0
- data/spec/models/philippines_philsys_match_provider_output_spec.rb +60 -0
- data/spec/models/post_office_easy_id_provider_output_spec.rb +1 -1
- data/spec/models/provider_input_spec.rb +0 -18
- data/spec/models/provider_output_spec.rb +108 -6
- data/spec/models/samsung_wallet_provider_output_spec.rb +6 -0
- data/spec/models/south_africa_nid_lookup2_provider_output_spec.rb +90 -0
- data/spec/models/south_africa_nid_match2_date_of_birth_field_spec.rb +42 -0
- data/spec/models/south_africa_nid_match2_full_name_field_spec.rb +42 -0
- data/spec/models/south_africa_nid_match2_input_spec.rb +0 -6
- data/spec/models/south_africa_nid_match2_national_id_number_field_spec.rb +42 -0
- data/spec/models/south_africa_nid_match2_provider_output_spec.rb +60 -0
- data/spec/models/south_africa_nid_match2_sex_field_spec.rb +42 -0
- data/spec/models/uae_pass_provider_output_spec.rb +168 -0
- data/spec/models/uganda_nid_match2_date_of_birth_field_spec.rb +42 -0
- data/spec/models/uganda_nid_match2_national_id_number_field_spec.rb +42 -0
- data/spec/models/uganda_nid_match2_provider_output_spec.rb +48 -0
- data/spec/models/uganda_nid_match2_secondary_id_number_field_spec.rb +42 -0
- data/spec/models/verimi_address_output_spec.rb +66 -0
- data/spec/models/verimi_provider_output_spec.rb +186 -0
- data/spec/models/yoti_deeplink_provider_output_spec.rb +1 -1
- data/spec/models/yoti_provider_output_spec.rb +1 -1
- data/spec/models/zimbabwe_nid_lookup2_provider_output_spec.rb +84 -0
- metadata +466 -186
- data/docs/KenyaNidBiometric2Input.md +0 -22
- data/docs/NigeriaNinBiometric2Input.md +0 -22
- data/docs/SouthAfricaNidBiometric2Input.md +0 -22
|
@@ -0,0 +1,192 @@
|
|
|
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 SouthAfricaNidMatch2SexField < ApiModelBase
|
|
18
|
+
# The sex value submitted for this check. Possible input values: - Male - Female
|
|
19
|
+
attr_accessor :input_value
|
|
20
|
+
|
|
21
|
+
# The outcome of comparing the submitted sex to the issuer record. Possible values: - Exact Match - No Match - Not Provided - Not Returned
|
|
22
|
+
attr_accessor :outcome
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'input_value' => :'inputValue',
|
|
28
|
+
:'outcome' => :'outcome'
|
|
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
|
+
:'input_value' => :'String',
|
|
46
|
+
:'outcome' => :'String'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Initializes the object
|
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SouthAfricaNidMatch2SexField` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SouthAfricaNidMatch2SexField`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
68
|
+
end
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'input_value')
|
|
73
|
+
self.input_value = attributes[:'input_value']
|
|
74
|
+
else
|
|
75
|
+
self.input_value = nil
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'outcome')
|
|
79
|
+
self.outcome = attributes[:'outcome']
|
|
80
|
+
else
|
|
81
|
+
self.outcome = nil
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
86
|
+
# @return Array for valid properties with the reasons
|
|
87
|
+
def list_invalid_properties
|
|
88
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
89
|
+
invalid_properties = Array.new
|
|
90
|
+
if @input_value.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "input_value", input_value cannot be nil.')
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if @outcome.nil?
|
|
95
|
+
invalid_properties.push('invalid value for "outcome", outcome cannot be nil.')
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
invalid_properties
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Check to see if the all the properties in the model are valid
|
|
102
|
+
# @return true if the model is valid
|
|
103
|
+
def valid?
|
|
104
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
|
+
return false if @input_value.nil?
|
|
106
|
+
return false if @outcome.nil?
|
|
107
|
+
true
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Custom attribute writer method with validation
|
|
111
|
+
# @param [Object] input_value Value to be assigned
|
|
112
|
+
def input_value=(input_value)
|
|
113
|
+
if input_value.nil?
|
|
114
|
+
fail ArgumentError, 'input_value cannot be nil'
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
@input_value = input_value
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Custom attribute writer method with validation
|
|
121
|
+
# @param [Object] outcome Value to be assigned
|
|
122
|
+
def outcome=(outcome)
|
|
123
|
+
if outcome.nil?
|
|
124
|
+
fail ArgumentError, 'outcome cannot be nil'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
@outcome = outcome
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Checks equality by comparing each attribute.
|
|
131
|
+
# @param [Object] Object to be compared
|
|
132
|
+
def ==(o)
|
|
133
|
+
return true if self.equal?(o)
|
|
134
|
+
self.class == o.class &&
|
|
135
|
+
input_value == o.input_value &&
|
|
136
|
+
outcome == o.outcome
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# @see the `==` method
|
|
140
|
+
# @param [Object] Object to be compared
|
|
141
|
+
def eql?(o)
|
|
142
|
+
self == o
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Calculates hash code according to all attributes.
|
|
146
|
+
# @return [Integer] Hash code
|
|
147
|
+
def hash
|
|
148
|
+
[input_value, outcome].hash
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Builds the object from hash
|
|
152
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
153
|
+
# @return [Object] Returns the model itself
|
|
154
|
+
def self.build_from_hash(attributes)
|
|
155
|
+
return nil unless attributes.is_a?(Hash)
|
|
156
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
157
|
+
transformed_hash = {}
|
|
158
|
+
openapi_types.each_pair do |key, type|
|
|
159
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
160
|
+
transformed_hash["#{key}"] = nil
|
|
161
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
162
|
+
# check to ensure the input is an array given that the attribute
|
|
163
|
+
# is documented as an array but the input is not
|
|
164
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
165
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
166
|
+
end
|
|
167
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
168
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
new(transformed_hash)
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Returns the object in the form of hash
|
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
|
176
|
+
def to_hash
|
|
177
|
+
hash = {}
|
|
178
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
179
|
+
value = self.send(attr)
|
|
180
|
+
if value.nil?
|
|
181
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
182
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
hash[param] = _to_hash(value)
|
|
186
|
+
end
|
|
187
|
+
hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
end
|
|
@@ -0,0 +1,394 @@
|
|
|
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 `uae-pass` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
+
class UAEPassProviderOutput < ApiModelBase
|
|
19
|
+
# OIDC subject (`sub`) returned by UAE Pass. This is an opaque identifier for the authenticated user in the UAE Pass OIDC transaction. It can be prefixed or unprefixed; do not parse this value or assume it matches the Emirates ID number, UAE Pass UUID, or UAE unified ID.
|
|
20
|
+
attr_accessor :sub
|
|
21
|
+
|
|
22
|
+
# Full name in Arabic.
|
|
23
|
+
attr_accessor :full_name_arabic
|
|
24
|
+
|
|
25
|
+
# Normalized sex parsed from the UAE Pass gender value. Possible values: - Male - Female - Unknown - NotApplicable This is null when the UAE Pass value cannot be parsed.
|
|
26
|
+
attr_accessor :gender
|
|
27
|
+
|
|
28
|
+
# Mobile number.
|
|
29
|
+
attr_accessor :mobile
|
|
30
|
+
|
|
31
|
+
# Last name in the Latin-script value returned by UAE Pass.
|
|
32
|
+
attr_accessor :last_name_english
|
|
33
|
+
|
|
34
|
+
# Full name in the Latin-script value returned by UAE Pass.
|
|
35
|
+
attr_accessor :full_name_english
|
|
36
|
+
|
|
37
|
+
# UAE Pass UUID. The unique UAE Pass user identifier. It is separate from the OIDC subject identifier, Emirates ID number, and UAE unified ID.
|
|
38
|
+
attr_accessor :uae_pass_uuid
|
|
39
|
+
|
|
40
|
+
# SmartPass unique user identifier, if returned. SmartPass was a previous UAE government single-sign-on identity system. UAE Pass can return this legacy identifier for SOP2 and SOP3 accounts that were verified through SmartPass.
|
|
41
|
+
attr_accessor :smart_pass_uuid
|
|
42
|
+
|
|
43
|
+
# Last name in Arabic.
|
|
44
|
+
attr_accessor :last_name_arabic
|
|
45
|
+
|
|
46
|
+
# Verified Emirates ID number, if returned for the user profile type and scope. The Emirates ID is issued by the Federal Authority for Identity, Citizenship, Customs and Port Security (ICP). The number is a 15-digit identifier following the format 784-YYYY-NNNNNNN-C: The number is a 15-digit identifier following the format 784-YYYY-NNNNNNN-C: - 784: UAE ISO 3166-1 numeric country code. - YYYY: A year value, which could be birth year, registration year, or another year value. This should not be relied upon to infer birth or registration details. - NNNNNNN: 7-digit random serial number for the individual. - C: Check digit. This field may not be returned for visitor profiles.
|
|
47
|
+
attr_accessor :emirates_id_number
|
|
48
|
+
|
|
49
|
+
# ID type. Known values: - ID: Emirates ID or national identity document. Returned for SOP2 and SOP3 citizen or resident profiles and SOP3 visitor profiles.
|
|
50
|
+
attr_accessor :id_type
|
|
51
|
+
|
|
52
|
+
# Nationality in the Latin-script value returned by UAE Pass.
|
|
53
|
+
attr_accessor :nationality_english
|
|
54
|
+
|
|
55
|
+
# First name in the Latin-script value returned by UAE Pass.
|
|
56
|
+
attr_accessor :first_name_english
|
|
57
|
+
|
|
58
|
+
# UAE Pass user type. Possible values: - SOP1: Basic account. Unverified account with verified email and mobile number. - SOP2: Advanced account. Verified account with Emirates ID verification through SmartPass, Dubai ID, or Emirates ID PIN registration. - SOP3: Qualified account. Verified account with Emirates ID verification through finger biometrics or face biometrics.
|
|
59
|
+
attr_accessor :user_type
|
|
60
|
+
|
|
61
|
+
# Nationality in Arabic.
|
|
62
|
+
attr_accessor :nationality_arabic
|
|
63
|
+
|
|
64
|
+
# First name in Arabic.
|
|
65
|
+
attr_accessor :first_name_arabic
|
|
66
|
+
|
|
67
|
+
# Email address.
|
|
68
|
+
attr_accessor :email
|
|
69
|
+
|
|
70
|
+
# Title in the Latin-script value returned by UAE Pass. Returned for SOP2 and SOP3 citizen or resident profiles and SOP3 visitor profiles.
|
|
71
|
+
attr_accessor :title_english
|
|
72
|
+
|
|
73
|
+
# Title in Arabic. Returned for SOP2 and SOP3 citizen or resident profiles and SOP3 visitor profiles.
|
|
74
|
+
attr_accessor :title_arabic
|
|
75
|
+
|
|
76
|
+
# UAE Pass profile type, if returned for the requested scope. Possible values: - 1: Citizen or resident profile. - 2: Visitor profile.
|
|
77
|
+
attr_accessor :profile_type
|
|
78
|
+
|
|
79
|
+
# UAE unified ID, if returned for the requested scope. A unique ID for the user. It is separate from the Emirates ID number, UAE Pass UUID, and OIDC subject identifier.
|
|
80
|
+
attr_accessor :unified_id
|
|
81
|
+
|
|
82
|
+
# UAE Pass authentication assurance level, if present. This classifies the authentication policy that was satisfied for the session. Known values include: - urn:safelayer:tws:policies:authentication:level:low - urn:safelayer:tws:policies:authentication:level:high
|
|
83
|
+
attr_accessor :authentication_assurance_level
|
|
84
|
+
|
|
85
|
+
# UAE Pass authentication methods, if present. This classifies the concrete methods used during authentication. Known values include: - urn:safelayer:tws:policies:authentication:adaptive:methods:mobileid - urn:uae:authentication:method:verified - urn:oasis:names:tc:SAML:1:0:am:password
|
|
86
|
+
attr_accessor :authentication_methods
|
|
87
|
+
|
|
88
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
89
|
+
def self.attribute_map
|
|
90
|
+
{
|
|
91
|
+
:'sub' => :'sub',
|
|
92
|
+
:'full_name_arabic' => :'fullNameArabic',
|
|
93
|
+
:'gender' => :'gender',
|
|
94
|
+
:'mobile' => :'mobile',
|
|
95
|
+
:'last_name_english' => :'lastNameEnglish',
|
|
96
|
+
:'full_name_english' => :'fullNameEnglish',
|
|
97
|
+
:'uae_pass_uuid' => :'uaePassUuid',
|
|
98
|
+
:'smart_pass_uuid' => :'smartPassUuid',
|
|
99
|
+
:'last_name_arabic' => :'lastNameArabic',
|
|
100
|
+
:'emirates_id_number' => :'emiratesIdNumber',
|
|
101
|
+
:'id_type' => :'idType',
|
|
102
|
+
:'nationality_english' => :'nationalityEnglish',
|
|
103
|
+
:'first_name_english' => :'firstNameEnglish',
|
|
104
|
+
:'user_type' => :'userType',
|
|
105
|
+
:'nationality_arabic' => :'nationalityArabic',
|
|
106
|
+
:'first_name_arabic' => :'firstNameArabic',
|
|
107
|
+
:'email' => :'email',
|
|
108
|
+
:'title_english' => :'titleEnglish',
|
|
109
|
+
:'title_arabic' => :'titleArabic',
|
|
110
|
+
:'profile_type' => :'profileType',
|
|
111
|
+
:'unified_id' => :'unifiedId',
|
|
112
|
+
:'authentication_assurance_level' => :'authenticationAssuranceLevel',
|
|
113
|
+
:'authentication_methods' => :'authenticationMethods'
|
|
114
|
+
}
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Returns attribute mapping this model knows about
|
|
118
|
+
def self.acceptable_attribute_map
|
|
119
|
+
attribute_map
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Returns all the JSON keys this model knows about
|
|
123
|
+
def self.acceptable_attributes
|
|
124
|
+
acceptable_attribute_map.values
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Attribute type mapping.
|
|
128
|
+
def self.openapi_types
|
|
129
|
+
{
|
|
130
|
+
:'sub' => :'String',
|
|
131
|
+
:'full_name_arabic' => :'String',
|
|
132
|
+
:'gender' => :'String',
|
|
133
|
+
:'mobile' => :'String',
|
|
134
|
+
:'last_name_english' => :'String',
|
|
135
|
+
:'full_name_english' => :'String',
|
|
136
|
+
:'uae_pass_uuid' => :'String',
|
|
137
|
+
:'smart_pass_uuid' => :'String',
|
|
138
|
+
:'last_name_arabic' => :'String',
|
|
139
|
+
:'emirates_id_number' => :'String',
|
|
140
|
+
:'id_type' => :'String',
|
|
141
|
+
:'nationality_english' => :'String',
|
|
142
|
+
:'first_name_english' => :'String',
|
|
143
|
+
:'user_type' => :'String',
|
|
144
|
+
:'nationality_arabic' => :'String',
|
|
145
|
+
:'first_name_arabic' => :'String',
|
|
146
|
+
:'email' => :'String',
|
|
147
|
+
:'title_english' => :'String',
|
|
148
|
+
:'title_arabic' => :'String',
|
|
149
|
+
:'profile_type' => :'Integer',
|
|
150
|
+
:'unified_id' => :'String',
|
|
151
|
+
:'authentication_assurance_level' => :'String',
|
|
152
|
+
:'authentication_methods' => :'Array<String>'
|
|
153
|
+
}
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# List of attributes with nullable: true
|
|
157
|
+
def self.openapi_nullable
|
|
158
|
+
Set.new([
|
|
159
|
+
:'sub',
|
|
160
|
+
:'full_name_arabic',
|
|
161
|
+
:'gender',
|
|
162
|
+
:'mobile',
|
|
163
|
+
:'last_name_english',
|
|
164
|
+
:'full_name_english',
|
|
165
|
+
:'uae_pass_uuid',
|
|
166
|
+
:'smart_pass_uuid',
|
|
167
|
+
:'last_name_arabic',
|
|
168
|
+
:'emirates_id_number',
|
|
169
|
+
:'id_type',
|
|
170
|
+
:'nationality_english',
|
|
171
|
+
:'first_name_english',
|
|
172
|
+
:'user_type',
|
|
173
|
+
:'nationality_arabic',
|
|
174
|
+
:'first_name_arabic',
|
|
175
|
+
:'email',
|
|
176
|
+
:'title_english',
|
|
177
|
+
:'title_arabic',
|
|
178
|
+
:'profile_type',
|
|
179
|
+
:'unified_id',
|
|
180
|
+
:'authentication_assurance_level',
|
|
181
|
+
:'authentication_methods'
|
|
182
|
+
])
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Initializes the object
|
|
186
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
187
|
+
def initialize(attributes = {})
|
|
188
|
+
if (!attributes.is_a?(Hash))
|
|
189
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::UAEPassProviderOutput` initialize method"
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
193
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
194
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
195
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
196
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::UAEPassProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
197
|
+
end
|
|
198
|
+
h[k.to_sym] = v
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if attributes.key?(:'sub')
|
|
202
|
+
self.sub = attributes[:'sub']
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if attributes.key?(:'full_name_arabic')
|
|
206
|
+
self.full_name_arabic = attributes[:'full_name_arabic']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'gender')
|
|
210
|
+
self.gender = attributes[:'gender']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'mobile')
|
|
214
|
+
self.mobile = attributes[:'mobile']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'last_name_english')
|
|
218
|
+
self.last_name_english = attributes[:'last_name_english']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'full_name_english')
|
|
222
|
+
self.full_name_english = attributes[:'full_name_english']
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if attributes.key?(:'uae_pass_uuid')
|
|
226
|
+
self.uae_pass_uuid = attributes[:'uae_pass_uuid']
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'smart_pass_uuid')
|
|
230
|
+
self.smart_pass_uuid = attributes[:'smart_pass_uuid']
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if attributes.key?(:'last_name_arabic')
|
|
234
|
+
self.last_name_arabic = attributes[:'last_name_arabic']
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'emirates_id_number')
|
|
238
|
+
self.emirates_id_number = attributes[:'emirates_id_number']
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'id_type')
|
|
242
|
+
self.id_type = attributes[:'id_type']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if attributes.key?(:'nationality_english')
|
|
246
|
+
self.nationality_english = attributes[:'nationality_english']
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if attributes.key?(:'first_name_english')
|
|
250
|
+
self.first_name_english = attributes[:'first_name_english']
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if attributes.key?(:'user_type')
|
|
254
|
+
self.user_type = attributes[:'user_type']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.key?(:'nationality_arabic')
|
|
258
|
+
self.nationality_arabic = attributes[:'nationality_arabic']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'first_name_arabic')
|
|
262
|
+
self.first_name_arabic = attributes[:'first_name_arabic']
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
if attributes.key?(:'email')
|
|
266
|
+
self.email = attributes[:'email']
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
if attributes.key?(:'title_english')
|
|
270
|
+
self.title_english = attributes[:'title_english']
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'title_arabic')
|
|
274
|
+
self.title_arabic = attributes[:'title_arabic']
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if attributes.key?(:'profile_type')
|
|
278
|
+
self.profile_type = attributes[:'profile_type']
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'unified_id')
|
|
282
|
+
self.unified_id = attributes[:'unified_id']
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'authentication_assurance_level')
|
|
286
|
+
self.authentication_assurance_level = attributes[:'authentication_assurance_level']
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if attributes.key?(:'authentication_methods')
|
|
290
|
+
if (value = attributes[:'authentication_methods']).is_a?(Array)
|
|
291
|
+
self.authentication_methods = value
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
297
|
+
# @return Array for valid properties with the reasons
|
|
298
|
+
def list_invalid_properties
|
|
299
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
300
|
+
invalid_properties = Array.new
|
|
301
|
+
invalid_properties
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Check to see if the all the properties in the model are valid
|
|
305
|
+
# @return true if the model is valid
|
|
306
|
+
def valid?
|
|
307
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
308
|
+
true
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# Checks equality by comparing each attribute.
|
|
312
|
+
# @param [Object] Object to be compared
|
|
313
|
+
def ==(o)
|
|
314
|
+
return true if self.equal?(o)
|
|
315
|
+
self.class == o.class &&
|
|
316
|
+
sub == o.sub &&
|
|
317
|
+
full_name_arabic == o.full_name_arabic &&
|
|
318
|
+
gender == o.gender &&
|
|
319
|
+
mobile == o.mobile &&
|
|
320
|
+
last_name_english == o.last_name_english &&
|
|
321
|
+
full_name_english == o.full_name_english &&
|
|
322
|
+
uae_pass_uuid == o.uae_pass_uuid &&
|
|
323
|
+
smart_pass_uuid == o.smart_pass_uuid &&
|
|
324
|
+
last_name_arabic == o.last_name_arabic &&
|
|
325
|
+
emirates_id_number == o.emirates_id_number &&
|
|
326
|
+
id_type == o.id_type &&
|
|
327
|
+
nationality_english == o.nationality_english &&
|
|
328
|
+
first_name_english == o.first_name_english &&
|
|
329
|
+
user_type == o.user_type &&
|
|
330
|
+
nationality_arabic == o.nationality_arabic &&
|
|
331
|
+
first_name_arabic == o.first_name_arabic &&
|
|
332
|
+
email == o.email &&
|
|
333
|
+
title_english == o.title_english &&
|
|
334
|
+
title_arabic == o.title_arabic &&
|
|
335
|
+
profile_type == o.profile_type &&
|
|
336
|
+
unified_id == o.unified_id &&
|
|
337
|
+
authentication_assurance_level == o.authentication_assurance_level &&
|
|
338
|
+
authentication_methods == o.authentication_methods
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# @see the `==` method
|
|
342
|
+
# @param [Object] Object to be compared
|
|
343
|
+
def eql?(o)
|
|
344
|
+
self == o
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# Calculates hash code according to all attributes.
|
|
348
|
+
# @return [Integer] Hash code
|
|
349
|
+
def hash
|
|
350
|
+
[sub, full_name_arabic, gender, mobile, last_name_english, full_name_english, uae_pass_uuid, smart_pass_uuid, last_name_arabic, emirates_id_number, id_type, nationality_english, first_name_english, user_type, nationality_arabic, first_name_arabic, email, title_english, title_arabic, profile_type, unified_id, authentication_assurance_level, authentication_methods].hash
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# Builds the object from hash
|
|
354
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
355
|
+
# @return [Object] Returns the model itself
|
|
356
|
+
def self.build_from_hash(attributes)
|
|
357
|
+
return nil unless attributes.is_a?(Hash)
|
|
358
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
359
|
+
transformed_hash = {}
|
|
360
|
+
openapi_types.each_pair do |key, type|
|
|
361
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
362
|
+
transformed_hash["#{key}"] = nil
|
|
363
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
364
|
+
# check to ensure the input is an array given that the attribute
|
|
365
|
+
# is documented as an array but the input is not
|
|
366
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
367
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
368
|
+
end
|
|
369
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
370
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
new(transformed_hash)
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# Returns the object in the form of hash
|
|
377
|
+
# @return [Hash] Returns the object in the form of hash
|
|
378
|
+
def to_hash
|
|
379
|
+
hash = {}
|
|
380
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
381
|
+
value = self.send(attr)
|
|
382
|
+
if value.nil?
|
|
383
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
384
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
hash[param] = _to_hash(value)
|
|
388
|
+
end
|
|
389
|
+
hash
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
end
|