trinsic_api 2.3.0.pre.alpha2 → 3.0.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/{EnvironmentRedirectUrisAddRequest.md → AddRedirectUriRequest.md} +2 -2
- data/docs/Address.md +2 -2
- data/docs/AppleWalletProviderOutput.md +18 -0
- data/docs/AttachmentInfo.md +24 -0
- data/docs/{MdlFieldDataType.md → AttributeAvailability.md} +2 -2
- data/docs/AustriaHandySignaturProviderOutput.md +20 -0
- data/docs/BelgiumIdCardProviderOutput.md +24 -0
- data/docs/ContractAttachment.md +20 -0
- data/docs/ContractAttribute.md +20 -0
- data/docs/CoteDIvoireNidLookup2Input.md +18 -0
- data/docs/CzechiaMojeIdProviderOutput.md +24 -0
- data/docs/DocumentData.md +12 -10
- data/docs/EstoniaIdCardProviderOutput.md +24 -0
- data/docs/FaydaProviderOutput.md +1 -1
- data/docs/FinlandIdCardProviderOutput.md +24 -0
- data/docs/FrejaProviderOutput.md +24 -0
- data/docs/FrenchNumeriqueGivenName.md +22 -0
- data/docs/FrenchNumeriqueNationality.md +20 -0
- data/docs/FrenchNumeriquePhone.md +22 -0
- data/docs/FrenchNumeriqueProviderOutput.md +66 -0
- data/docs/GetAttachmentRequest.md +2 -4
- data/docs/GoogleWalletProviderOutput.md +18 -0
- data/docs/IdentityData.md +9 -11
- data/docs/ItsmeProviderOutput.md +26 -0
- data/docs/KenyaNidMatch2Input.md +1 -1
- data/docs/{Language.md → KenyaNidMatch2InputSex.md} +2 -2
- data/docs/LaWalletProviderOutput.md +52 -0
- data/docs/LatviaEparakstsMobileProviderOutput.md +22 -0
- data/docs/LatviaEparakstsProviderOutput.md +22 -0
- data/docs/ListProvidersResponse.md +1 -1
- data/docs/{ListEnvironmentRedirectUrisResponse.md → ListRedirectUrisResponse.md} +2 -2
- data/docs/LithuaniaIdCardProviderOutput.md +24 -0
- data/docs/LloydsSmartIdProviderOutput.md +40 -0
- data/docs/Match.md +2 -2
- data/docs/MatchData.md +12 -10
- data/docs/MdlOutput.md +24 -0
- data/docs/MdlOutputCertificateData.md +26 -0
- data/docs/{ExternalMdlFieldData.md → MdlOutputFieldData.md} +3 -3
- data/docs/{FieldAvailability.md → MdlOutputFieldDataType.md} +2 -2
- data/docs/MexicoCurpProviderOutput.md +1 -1
- data/docs/MitIdProviderOutput.md +38 -0
- data/docs/MobileIdInput.md +1 -1
- data/docs/{SexV1.md → MobileIdLanguage.md} +2 -2
- data/docs/MobileIdProviderOutput.md +34 -0
- data/docs/NigeriaNinBiometric2Input.md +22 -0
- data/docs/NigeriaNinLookup2Input.md +18 -0
- data/docs/NigeriaNinMatch2Input.md +30 -0
- data/docs/NigeriaNinMatch2InputSex.md +15 -0
- data/docs/PersonData.md +10 -10
- data/docs/PeruDniAddress.md +22 -0
- data/docs/PeruDniLookupInput.md +18 -0
- data/docs/PeruDniProviderOutput.md +48 -0
- data/docs/PhilippinesDigitalNidProviderOutput.md +2 -2
- data/docs/PhilippinesPhysicalNidProviderOutput.md +2 -2
- data/docs/PolandEdoAppProviderOutput.md +24 -0
- data/docs/PolandMojeIdProviderOutput.md +22 -0
- data/docs/PortugalIdCardProviderOutput.md +24 -0
- data/docs/PostOfficeEasyIdProviderOutput.md +40 -0
- data/docs/{ProviderContract.md → Provider.md} +29 -25
- data/docs/ProviderInput.md +50 -32
- data/docs/ProviderOutput.md +61 -7
- data/docs/ProvidersApi.md +79 -0
- data/docs/RecommendProviderHealthOption.md +15 -0
- data/docs/{ProviderInformation.md → RecommendProviderInformation.md} +14 -14
- data/docs/{RecommendRequest.md → RecommendProvidersRequest.md} +3 -3
- data/docs/RecommendProvidersResponse.md +18 -0
- data/docs/{EnvironmentRedirectUrisApi.md → RedirectUrisApi.md} +21 -21
- data/docs/SamsungWalletProviderOutput.md +18 -0
- data/docs/SerbiaIdCardProviderOutput.md +24 -0
- data/docs/SessionsApi.md +149 -1
- data/docs/SmartIdInput.md +0 -2
- data/docs/SmartIdProviderOutput.md +42 -0
- data/docs/SouthAfricaNidBiometric2Input.md +22 -0
- data/docs/SouthAfricaNidMatch2Input.md +30 -0
- data/docs/SouthAfricaNidMatch2InputSex.md +15 -0
- data/docs/SpidProviderOutput.md +45 -25
- data/docs/SubProviderMetadata.md +0 -2
- data/docs/SwedenBankIdProviderOutput.md +42 -0
- data/docs/UgandaNidMatch2Input.md +22 -0
- data/docs/VerificationProfileResponse.md +3 -1
- data/docs/VerificationProfilesApi.md +3 -1
- data/docs/YotiDocumentDetails.md +26 -0
- data/docs/YotiProviderOutput.md +40 -0
- data/docs/YotiStructuredPostalAddress.md +56 -0
- data/docs/ZimbabweNidLookup2Input.md +18 -0
- data/lib/trinsic_api/api/providers_api.rb +82 -0
- data/lib/trinsic_api/api/{environment_redirect_uris_api.rb → redirect_uris_api.rb} +28 -28
- data/lib/trinsic_api/api/sessions_api.rb +142 -2
- data/lib/trinsic_api/api/verification_profiles_api.rb +3 -0
- data/lib/trinsic_api/models/{environment_redirect_uris_add_request.rb → add_redirect_uri_request.rb} +12 -3
- data/lib/trinsic_api/models/address.rb +3 -0
- data/lib/trinsic_api/models/apple_wallet_provider_output.rb +239 -0
- data/lib/trinsic_api/models/attachment_info.rb +319 -0
- data/lib/trinsic_api/models/{field_availability.rb → attribute_availability.rb} +3 -3
- data/lib/trinsic_api/models/austria_handy_signatur_provider_output.rb +266 -0
- data/lib/trinsic_api/models/{bangladesh_nid_input.rb → belgium_id_card_provider_output.rb} +60 -90
- data/lib/trinsic_api/models/{contract_identifier_field.rb → contract_attachment.rb} +25 -52
- data/lib/trinsic_api/models/{contract_field.rb → contract_attribute.rb} +8 -35
- data/lib/trinsic_api/models/cote_d_ivoire_nid_lookup2_input.rb +222 -0
- data/lib/trinsic_api/models/{finalize_mdl_exchange_response.rb → czechia_moje_id_provider_output.rb} +85 -52
- data/lib/trinsic_api/models/document_data.rb +18 -1
- data/lib/trinsic_api/models/estonia_id_card_provider_output.rb +320 -0
- data/lib/trinsic_api/models/fayda_provider_output.rb +1 -0
- data/lib/trinsic_api/models/finland_id_card_provider_output.rb +320 -0
- data/lib/trinsic_api/models/freja_provider_output.rb +320 -0
- data/lib/trinsic_api/models/french_numerique_given_name.rb +245 -0
- data/lib/trinsic_api/models/french_numerique_nationality.rb +234 -0
- data/lib/trinsic_api/models/french_numerique_phone.rb +245 -0
- data/lib/trinsic_api/models/french_numerique_provider_output.rb +487 -0
- data/lib/trinsic_api/models/get_attachment_request.rb +22 -49
- data/lib/trinsic_api/models/google_wallet_provider_output.rb +239 -0
- data/lib/trinsic_api/models/identity_data.rb +30 -33
- data/lib/trinsic_api/models/itsme_provider_output.rb +315 -0
- data/lib/trinsic_api/models/kenya_nid_match2_input.rb +1 -1
- data/lib/trinsic_api/models/{sex_v1.rb → kenya_nid_match2_input_sex.rb} +4 -6
- data/lib/trinsic_api/models/la_wallet_provider_output.rb +682 -0
- data/lib/trinsic_api/models/latvia_eparaksts_mobile_provider_output.rb +293 -0
- data/lib/trinsic_api/models/{create_mdl_exchange_response.rb → latvia_eparaksts_provider_output.rb} +53 -52
- data/lib/trinsic_api/models/list_providers_response.rb +2 -2
- data/lib/trinsic_api/models/{list_environment_redirect_uris_response.rb → list_redirect_uris_response.rb} +3 -3
- data/lib/trinsic_api/models/lithuania_id_card_provider_output.rb +320 -0
- data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +344 -0
- data/lib/trinsic_api/models/match.rb +2 -0
- data/lib/trinsic_api/models/match_data.rb +23 -1
- data/lib/trinsic_api/models/{mdl_identity_data.rb → mdl_output.rb} +35 -8
- data/lib/trinsic_api/models/{mdl_certificate_data.rb → mdl_output_certificate_data.rb} +4 -4
- data/lib/trinsic_api/models/{external_mdl_field_data.rb → mdl_output_field_data.rb} +4 -4
- data/lib/trinsic_api/models/{mdl_field_data_type.rb → mdl_output_field_data_type.rb} +5 -4
- data/lib/trinsic_api/models/mexico_curp_provider_output.rb +1 -0
- data/lib/trinsic_api/models/mit_id_provider_output.rb +333 -0
- data/lib/trinsic_api/models/mobile_id_input.rb +1 -1
- data/lib/trinsic_api/models/{language.rb → mobile_id_language.rb} +3 -3
- data/lib/trinsic_api/models/mobile_id_provider_output.rb +311 -0
- data/lib/trinsic_api/models/nigeria_nin_biometric2_input.rb +246 -0
- data/lib/trinsic_api/models/{provider_attachments.rb → nigeria_nin_lookup2_input.rb} +12 -11
- data/lib/trinsic_api/models/{recommend_response.rb → nigeria_nin_match2_input.rb} +94 -82
- data/lib/trinsic_api/models/nigeria_nin_match2_input_sex.rb +40 -0
- data/lib/trinsic_api/models/person_data.rb +7 -0
- data/lib/trinsic_api/models/{identifier.rb → peru_dni_address.rb} +53 -49
- data/lib/trinsic_api/models/peru_dni_lookup_input.rb +222 -0
- data/lib/trinsic_api/models/peru_dni_provider_output.rb +518 -0
- data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +2 -1
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +2 -1
- data/lib/trinsic_api/models/poland_edo_app_provider_output.rb +320 -0
- data/lib/trinsic_api/models/poland_moje_id_provider_output.rb +293 -0
- data/lib/trinsic_api/models/{finalize_mdl_exchange_request.rb → portugal_id_card_provider_output.rb} +69 -68
- data/lib/trinsic_api/models/post_office_easy_id_provider_output.rb +344 -0
- data/lib/trinsic_api/models/{provider_contract.rb → provider.rb} +183 -125
- data/lib/trinsic_api/models/provider_input.rb +223 -124
- data/lib/trinsic_api/models/provider_output.rb +317 -15
- data/lib/trinsic_api/models/recommend_provider_health_option.rb +41 -0
- data/lib/trinsic_api/models/{provider_information.rb → recommend_provider_information.rb} +79 -73
- data/lib/trinsic_api/models/{recommend_request.rb → recommend_providers_request.rb} +27 -5
- data/lib/trinsic_api/models/{list_provider_contracts_response.rb → recommend_providers_response.rb} +20 -21
- data/lib/trinsic_api/models/redirect_uri_response.rb +9 -0
- data/lib/trinsic_api/models/samsung_wallet_provider_output.rb +239 -0
- data/lib/trinsic_api/models/serbia_id_card_provider_output.rb +320 -0
- data/lib/trinsic_api/models/smart_id_input.rb +1 -12
- data/lib/trinsic_api/models/smart_id_provider_output.rb +355 -0
- data/lib/trinsic_api/models/south_africa_nid_biometric2_input.rb +246 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +310 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_input_sex.rb +40 -0
- data/lib/trinsic_api/models/spid_provider_output.rb +131 -20
- data/lib/trinsic_api/models/sub_provider_metadata.rb +1 -28
- data/lib/trinsic_api/models/{provider_info.rb → sweden_bank_id_provider_output.rb} +121 -153
- data/lib/trinsic_api/models/uganda_nid_match2_input.rb +244 -0
- data/lib/trinsic_api/models/verification_profile_response.rb +31 -4
- data/lib/trinsic_api/models/yoti_document_details.rb +266 -0
- data/lib/trinsic_api/models/yoti_provider_output.rb +344 -0
- data/lib/trinsic_api/models/yoti_structured_postal_address.rb +431 -0
- data/lib/trinsic_api/models/{document_scan_attachments.rb → zimbabwe_nid_lookup2_input.rb} +12 -11
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +63 -30
- data/spec/api/providers_api_spec.rb +47 -0
- data/spec/api/{environment_redirect_uris_api_spec.rb → redirect_uris_api_spec.rb} +10 -10
- data/spec/api/sessions_api_spec.rb +27 -1
- data/spec/api/verification_profiles_api_spec.rb +1 -0
- data/spec/models/{environment_redirect_uris_add_request_spec.rb → add_redirect_uri_request_spec.rb} +6 -6
- data/spec/models/{list_provider_contracts_response_spec.rb → apple_wallet_provider_output_spec.rb} +7 -7
- data/spec/models/attachment_info_spec.rb +54 -0
- data/spec/models/{mdl_field_data_type_spec.rb → attribute_availability_spec.rb} +6 -6
- data/spec/models/austria_handy_signatur_provider_output_spec.rb +42 -0
- data/spec/models/{finalize_mdl_exchange_response_spec.rb → belgium_id_card_provider_output_spec.rb} +10 -10
- data/spec/models/contract_attachment_spec.rb +42 -0
- data/spec/models/contract_attribute_spec.rb +42 -0
- data/spec/models/cote_d_ivoire_nid_lookup2_input_spec.rb +36 -0
- data/spec/models/czechia_moje_id_provider_output_spec.rb +54 -0
- data/spec/models/document_data_spec.rb +6 -0
- data/spec/models/estonia_id_card_provider_output_spec.rb +54 -0
- data/spec/models/finland_id_card_provider_output_spec.rb +54 -0
- data/spec/models/freja_provider_output_spec.rb +54 -0
- data/spec/models/french_numerique_given_name_spec.rb +48 -0
- data/spec/models/french_numerique_nationality_spec.rb +42 -0
- data/spec/models/{contract_identifier_field_spec.rb → french_numerique_phone_spec.rb} +9 -9
- data/spec/models/french_numerique_provider_output_spec.rb +180 -0
- data/spec/models/get_attachment_request_spec.rb +1 -7
- data/spec/models/google_wallet_provider_output_spec.rb +36 -0
- data/spec/models/identity_data_spec.rb +1 -7
- data/spec/models/{bangladesh_nid_input_spec.rb → itsme_provider_output_spec.rb} +11 -11
- data/spec/models/{sex_v1_spec.rb → kenya_nid_match2_input_sex_spec.rb} +6 -6
- data/spec/models/la_wallet_provider_output_spec.rb +138 -0
- data/spec/models/latvia_eparaksts_mobile_provider_output_spec.rb +48 -0
- data/spec/models/latvia_eparaksts_provider_output_spec.rb +48 -0
- data/spec/models/{list_environment_redirect_uris_response_spec.rb → list_redirect_uris_response_spec.rb} +6 -6
- data/spec/models/lithuania_id_card_provider_output_spec.rb +54 -0
- data/spec/models/lloyds_smart_id_provider_output_spec.rb +102 -0
- data/spec/models/match_data_spec.rb +6 -0
- data/spec/models/{mdl_certificate_data_spec.rb → mdl_output_certificate_data_spec.rb} +6 -6
- data/spec/models/{external_mdl_field_data_spec.rb → mdl_output_field_data_spec.rb} +6 -6
- data/spec/models/{field_availability_spec.rb → mdl_output_field_data_type_spec.rb} +6 -6
- data/spec/models/{mdl_identity_data_spec.rb → mdl_output_spec.rb} +12 -6
- data/spec/models/mit_id_provider_output_spec.rb +96 -0
- data/spec/models/{language_spec.rb → mobile_id_language_spec.rb} +6 -6
- data/spec/models/{create_mdl_exchange_request_spec.rb → mobile_id_provider_output_spec.rb} +20 -14
- data/spec/models/nigeria_nin_biometric2_input_spec.rb +48 -0
- data/spec/models/{document_scan_attachments_spec.rb → nigeria_nin_lookup2_input_spec.rb} +7 -7
- data/spec/models/nigeria_nin_match2_input_sex_spec.rb +30 -0
- data/spec/models/{provider_info_spec.rb → nigeria_nin_match2_input_spec.rb} +13 -13
- data/spec/models/{identifier_spec.rb → peru_dni_address_spec.rb} +9 -9
- data/spec/models/{provider_attachments_spec.rb → peru_dni_lookup_input_spec.rb} +7 -7
- data/spec/models/peru_dni_provider_output_spec.rb +126 -0
- data/spec/models/{finalize_mdl_exchange_request_spec.rb → poland_edo_app_provider_output_spec.rb} +10 -10
- data/spec/models/{create_mdl_exchange_response_spec.rb → poland_moje_id_provider_output_spec.rb} +9 -9
- data/spec/models/portugal_id_card_provider_output_spec.rb +54 -0
- data/spec/models/post_office_easy_id_provider_output_spec.rb +102 -0
- data/spec/models/provider_input_spec.rb +70 -16
- data/spec/models/provider_output_spec.rb +164 -2
- data/spec/models/{provider_contract_spec.rb → provider_spec.rb} +28 -16
- data/spec/models/recommend_provider_health_option_spec.rb +30 -0
- data/spec/models/{provider_information_spec.rb → recommend_provider_information_spec.rb} +11 -11
- data/spec/models/{recommend_request_spec.rb → recommend_providers_request_spec.rb} +6 -6
- data/spec/models/recommend_providers_response_spec.rb +36 -0
- data/spec/models/samsung_wallet_provider_output_spec.rb +36 -0
- data/spec/models/serbia_id_card_provider_output_spec.rb +54 -0
- data/spec/models/smart_id_input_spec.rb +0 -6
- data/spec/models/smart_id_provider_output_spec.rb +108 -0
- data/spec/models/south_africa_nid_biometric2_input_spec.rb +48 -0
- data/spec/models/south_africa_nid_match2_input_sex_spec.rb +30 -0
- data/spec/models/{attachment_access_keys_spec.rb → south_africa_nid_match2_input_spec.rb} +18 -12
- data/spec/models/spid_provider_output_spec.rb +61 -1
- data/spec/models/sub_provider_metadata_spec.rb +0 -6
- data/spec/models/sweden_bank_id_provider_output_spec.rb +108 -0
- data/spec/models/{contract_field_spec.rb → uganda_nid_match2_input_spec.rb} +9 -9
- data/spec/models/verification_profile_response_spec.rb +6 -0
- data/spec/models/yoti_document_details_spec.rb +60 -0
- data/spec/models/yoti_provider_output_spec.rb +102 -0
- data/spec/models/yoti_structured_postal_address_spec.rb +150 -0
- data/spec/models/zimbabwe_nid_lookup2_input_spec.rb +36 -0
- metadata +254 -122
- data/docs/AttachmentAccessKeys.md +0 -28
- data/docs/AttachmentsApi.md +0 -79
- data/docs/BangladeshNidInput.md +0 -26
- data/docs/ContractField.md +0 -22
- data/docs/ContractIdentifierField.md +0 -22
- data/docs/CreateMdlExchangeRequest.md +0 -32
- data/docs/CreateMdlExchangeResponse.md +0 -22
- data/docs/DocumentScanAttachments.md +0 -18
- data/docs/FinalizeMdlExchangeRequest.md +0 -24
- data/docs/FinalizeMdlExchangeResponse.md +0 -24
- data/docs/Identifier.md +0 -22
- data/docs/ListProviderContractsResponse.md +0 -18
- data/docs/MdlApi.md +0 -151
- data/docs/MdlCertificateData.md +0 -26
- data/docs/MdlIdentityData.md +0 -22
- data/docs/NetworkApi.md +0 -223
- data/docs/ProviderAttachments.md +0 -18
- data/docs/ProviderInfo.md +0 -30
- data/docs/RecommendResponse.md +0 -22
- data/lib/trinsic_api/api/attachments_api.rb +0 -86
- data/lib/trinsic_api/api/mdl_api.rb +0 -150
- data/lib/trinsic_api/api/network_api.rb +0 -215
- data/lib/trinsic_api/models/attachment_access_keys.rb +0 -287
- data/lib/trinsic_api/models/create_mdl_exchange_request.rb +0 -404
- data/spec/api/attachments_api_spec.rb +0 -47
- data/spec/api/mdl_api_spec.rb +0 -59
- data/spec/api/network_api_spec.rb +0 -72
- data/spec/models/recommend_response_spec.rb +0 -48
|
@@ -0,0 +1,682 @@
|
|
|
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.13.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module TrinsicApi
|
|
17
|
+
# Exposed properties for the `usa-louisiana-wallet` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
+
class LaWalletProviderOutput
|
|
19
|
+
# The number of the driver's license used to create the LA Wallet credential
|
|
20
|
+
attr_accessor :drivers_license_number
|
|
21
|
+
|
|
22
|
+
# The issue date of the driver's license used to create the LA Wallet credential
|
|
23
|
+
attr_accessor :issue_date
|
|
24
|
+
|
|
25
|
+
# The expiration date of the driver's license used to create the LA Wallet credential
|
|
26
|
+
attr_accessor :expiration_date
|
|
27
|
+
|
|
28
|
+
# The 4-digit audit number of the driver's license used to create the LA Wallet credential
|
|
29
|
+
attr_accessor :audit_number
|
|
30
|
+
|
|
31
|
+
# The license status from the LA Wallet credential
|
|
32
|
+
attr_accessor :license_status
|
|
33
|
+
|
|
34
|
+
# The license class from the LA Wallet credential Possible values: - \"A\": Commercial Driver's License, Combination Vehicles - \"B\": Commercial Driver's License, Heavy Straight Vehicle - \"C\": Commercial Driver's License, Light Straight Vehicle - \"D\": Chauffeur's Driver's License - \"E\": Driver's License for Personal Vehicle
|
|
35
|
+
attr_accessor :license_class
|
|
36
|
+
|
|
37
|
+
# The first name from the LA Wallet credential
|
|
38
|
+
attr_accessor :first_name
|
|
39
|
+
|
|
40
|
+
# The middle name from the LA Wallet credential
|
|
41
|
+
attr_accessor :middle_name
|
|
42
|
+
|
|
43
|
+
# The last name from the LA Wallet credential
|
|
44
|
+
attr_accessor :last_name
|
|
45
|
+
|
|
46
|
+
# The date of birth from the LA Wallet credential
|
|
47
|
+
attr_accessor :date_of_birth
|
|
48
|
+
|
|
49
|
+
# The sex from the LA Wallet credential
|
|
50
|
+
attr_accessor :sex
|
|
51
|
+
|
|
52
|
+
# The address' line 1 from the LA Wallet credential
|
|
53
|
+
attr_accessor :address_line1
|
|
54
|
+
|
|
55
|
+
# The address' line 2 from the LA Wallet credential
|
|
56
|
+
attr_accessor :address_line2
|
|
57
|
+
|
|
58
|
+
# The address' city from the LA Wallet credential
|
|
59
|
+
attr_accessor :address_city
|
|
60
|
+
|
|
61
|
+
# The address' state from the LA Wallet credential
|
|
62
|
+
attr_accessor :address_state
|
|
63
|
+
|
|
64
|
+
# The address' ZIP from the LA Wallet credential
|
|
65
|
+
attr_accessor :address_zip
|
|
66
|
+
|
|
67
|
+
# The county (\"parish\") code from the LA Wallet credential. This is a number from 1 to 64, representing one of Louisiana's 64 parishes.
|
|
68
|
+
attr_accessor :county
|
|
69
|
+
|
|
70
|
+
# The coarse age returned by LA Wallet for this credential Possible values: - \"Under 18\" - \"Under 21\" - \"Over 21\"
|
|
71
|
+
attr_accessor :coarse_age
|
|
72
|
+
|
|
73
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
74
|
+
def self.attribute_map
|
|
75
|
+
{
|
|
76
|
+
:'drivers_license_number' => :'driversLicenseNumber',
|
|
77
|
+
:'issue_date' => :'issueDate',
|
|
78
|
+
:'expiration_date' => :'expirationDate',
|
|
79
|
+
:'audit_number' => :'auditNumber',
|
|
80
|
+
:'license_status' => :'licenseStatus',
|
|
81
|
+
:'license_class' => :'licenseClass',
|
|
82
|
+
:'first_name' => :'firstName',
|
|
83
|
+
:'middle_name' => :'middleName',
|
|
84
|
+
:'last_name' => :'lastName',
|
|
85
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
86
|
+
:'sex' => :'sex',
|
|
87
|
+
:'address_line1' => :'addressLine1',
|
|
88
|
+
:'address_line2' => :'addressLine2',
|
|
89
|
+
:'address_city' => :'addressCity',
|
|
90
|
+
:'address_state' => :'addressState',
|
|
91
|
+
:'address_zip' => :'addressZip',
|
|
92
|
+
:'county' => :'county',
|
|
93
|
+
:'coarse_age' => :'coarseAge'
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Returns attribute mapping this model knows about
|
|
98
|
+
def self.acceptable_attribute_map
|
|
99
|
+
attribute_map
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Returns all the JSON keys this model knows about
|
|
103
|
+
def self.acceptable_attributes
|
|
104
|
+
acceptable_attribute_map.values
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Attribute type mapping.
|
|
108
|
+
def self.openapi_types
|
|
109
|
+
{
|
|
110
|
+
:'drivers_license_number' => :'String',
|
|
111
|
+
:'issue_date' => :'Date',
|
|
112
|
+
:'expiration_date' => :'Date',
|
|
113
|
+
:'audit_number' => :'String',
|
|
114
|
+
:'license_status' => :'String',
|
|
115
|
+
:'license_class' => :'String',
|
|
116
|
+
:'first_name' => :'String',
|
|
117
|
+
:'middle_name' => :'String',
|
|
118
|
+
:'last_name' => :'String',
|
|
119
|
+
:'date_of_birth' => :'Date',
|
|
120
|
+
:'sex' => :'String',
|
|
121
|
+
:'address_line1' => :'String',
|
|
122
|
+
:'address_line2' => :'String',
|
|
123
|
+
:'address_city' => :'String',
|
|
124
|
+
:'address_state' => :'String',
|
|
125
|
+
:'address_zip' => :'String',
|
|
126
|
+
:'county' => :'String',
|
|
127
|
+
:'coarse_age' => :'String'
|
|
128
|
+
}
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# List of attributes with nullable: true
|
|
132
|
+
def self.openapi_nullable
|
|
133
|
+
Set.new([
|
|
134
|
+
:'address_line2',
|
|
135
|
+
])
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Initializes the object
|
|
139
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
140
|
+
def initialize(attributes = {})
|
|
141
|
+
if (!attributes.is_a?(Hash))
|
|
142
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::LaWalletProviderOutput` initialize method"
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
146
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
147
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
148
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
149
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::LaWalletProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
150
|
+
end
|
|
151
|
+
h[k.to_sym] = v
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'drivers_license_number')
|
|
155
|
+
self.drivers_license_number = attributes[:'drivers_license_number']
|
|
156
|
+
else
|
|
157
|
+
self.drivers_license_number = nil
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'issue_date')
|
|
161
|
+
self.issue_date = attributes[:'issue_date']
|
|
162
|
+
else
|
|
163
|
+
self.issue_date = nil
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if attributes.key?(:'expiration_date')
|
|
167
|
+
self.expiration_date = attributes[:'expiration_date']
|
|
168
|
+
else
|
|
169
|
+
self.expiration_date = nil
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'audit_number')
|
|
173
|
+
self.audit_number = attributes[:'audit_number']
|
|
174
|
+
else
|
|
175
|
+
self.audit_number = nil
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'license_status')
|
|
179
|
+
self.license_status = attributes[:'license_status']
|
|
180
|
+
else
|
|
181
|
+
self.license_status = nil
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'license_class')
|
|
185
|
+
self.license_class = attributes[:'license_class']
|
|
186
|
+
else
|
|
187
|
+
self.license_class = nil
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'first_name')
|
|
191
|
+
self.first_name = attributes[:'first_name']
|
|
192
|
+
else
|
|
193
|
+
self.first_name = nil
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'middle_name')
|
|
197
|
+
self.middle_name = attributes[:'middle_name']
|
|
198
|
+
else
|
|
199
|
+
self.middle_name = nil
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.key?(:'last_name')
|
|
203
|
+
self.last_name = attributes[:'last_name']
|
|
204
|
+
else
|
|
205
|
+
self.last_name = nil
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'date_of_birth')
|
|
209
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
210
|
+
else
|
|
211
|
+
self.date_of_birth = nil
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.key?(:'sex')
|
|
215
|
+
self.sex = attributes[:'sex']
|
|
216
|
+
else
|
|
217
|
+
self.sex = nil
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'address_line1')
|
|
221
|
+
self.address_line1 = attributes[:'address_line1']
|
|
222
|
+
else
|
|
223
|
+
self.address_line1 = nil
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'address_line2')
|
|
227
|
+
self.address_line2 = attributes[:'address_line2']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'address_city')
|
|
231
|
+
self.address_city = attributes[:'address_city']
|
|
232
|
+
else
|
|
233
|
+
self.address_city = nil
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'address_state')
|
|
237
|
+
self.address_state = attributes[:'address_state']
|
|
238
|
+
else
|
|
239
|
+
self.address_state = nil
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'address_zip')
|
|
243
|
+
self.address_zip = attributes[:'address_zip']
|
|
244
|
+
else
|
|
245
|
+
self.address_zip = nil
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.key?(:'county')
|
|
249
|
+
self.county = attributes[:'county']
|
|
250
|
+
else
|
|
251
|
+
self.county = nil
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'coarse_age')
|
|
255
|
+
self.coarse_age = attributes[:'coarse_age']
|
|
256
|
+
else
|
|
257
|
+
self.coarse_age = nil
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
262
|
+
# @return Array for valid properties with the reasons
|
|
263
|
+
def list_invalid_properties
|
|
264
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
265
|
+
invalid_properties = Array.new
|
|
266
|
+
if @drivers_license_number.nil?
|
|
267
|
+
invalid_properties.push('invalid value for "drivers_license_number", drivers_license_number cannot be nil.')
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if @issue_date.nil?
|
|
271
|
+
invalid_properties.push('invalid value for "issue_date", issue_date cannot be nil.')
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
if @expiration_date.nil?
|
|
275
|
+
invalid_properties.push('invalid value for "expiration_date", expiration_date cannot be nil.')
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
if @audit_number.nil?
|
|
279
|
+
invalid_properties.push('invalid value for "audit_number", audit_number cannot be nil.')
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if @license_status.nil?
|
|
283
|
+
invalid_properties.push('invalid value for "license_status", license_status cannot be nil.')
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if @license_class.nil?
|
|
287
|
+
invalid_properties.push('invalid value for "license_class", license_class cannot be nil.')
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if @first_name.nil?
|
|
291
|
+
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if @middle_name.nil?
|
|
295
|
+
invalid_properties.push('invalid value for "middle_name", middle_name cannot be nil.')
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if @last_name.nil?
|
|
299
|
+
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if @date_of_birth.nil?
|
|
303
|
+
invalid_properties.push('invalid value for "date_of_birth", date_of_birth cannot be nil.')
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if @sex.nil?
|
|
307
|
+
invalid_properties.push('invalid value for "sex", sex cannot be nil.')
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if @address_line1.nil?
|
|
311
|
+
invalid_properties.push('invalid value for "address_line1", address_line1 cannot be nil.')
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
if @address_city.nil?
|
|
315
|
+
invalid_properties.push('invalid value for "address_city", address_city cannot be nil.')
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
if @address_state.nil?
|
|
319
|
+
invalid_properties.push('invalid value for "address_state", address_state cannot be nil.')
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
if @address_zip.nil?
|
|
323
|
+
invalid_properties.push('invalid value for "address_zip", address_zip cannot be nil.')
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
if @county.nil?
|
|
327
|
+
invalid_properties.push('invalid value for "county", county cannot be nil.')
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
if @coarse_age.nil?
|
|
331
|
+
invalid_properties.push('invalid value for "coarse_age", coarse_age cannot be nil.')
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
invalid_properties
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# Check to see if the all the properties in the model are valid
|
|
338
|
+
# @return true if the model is valid
|
|
339
|
+
def valid?
|
|
340
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
341
|
+
return false if @drivers_license_number.nil?
|
|
342
|
+
return false if @issue_date.nil?
|
|
343
|
+
return false if @expiration_date.nil?
|
|
344
|
+
return false if @audit_number.nil?
|
|
345
|
+
return false if @license_status.nil?
|
|
346
|
+
return false if @license_class.nil?
|
|
347
|
+
return false if @first_name.nil?
|
|
348
|
+
return false if @middle_name.nil?
|
|
349
|
+
return false if @last_name.nil?
|
|
350
|
+
return false if @date_of_birth.nil?
|
|
351
|
+
return false if @sex.nil?
|
|
352
|
+
return false if @address_line1.nil?
|
|
353
|
+
return false if @address_city.nil?
|
|
354
|
+
return false if @address_state.nil?
|
|
355
|
+
return false if @address_zip.nil?
|
|
356
|
+
return false if @county.nil?
|
|
357
|
+
return false if @coarse_age.nil?
|
|
358
|
+
true
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
# Custom attribute writer method with validation
|
|
362
|
+
# @param [Object] drivers_license_number Value to be assigned
|
|
363
|
+
def drivers_license_number=(drivers_license_number)
|
|
364
|
+
if drivers_license_number.nil?
|
|
365
|
+
fail ArgumentError, 'drivers_license_number cannot be nil'
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
@drivers_license_number = drivers_license_number
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# Custom attribute writer method with validation
|
|
372
|
+
# @param [Object] issue_date Value to be assigned
|
|
373
|
+
def issue_date=(issue_date)
|
|
374
|
+
if issue_date.nil?
|
|
375
|
+
fail ArgumentError, 'issue_date cannot be nil'
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
@issue_date = issue_date
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# Custom attribute writer method with validation
|
|
382
|
+
# @param [Object] expiration_date Value to be assigned
|
|
383
|
+
def expiration_date=(expiration_date)
|
|
384
|
+
if expiration_date.nil?
|
|
385
|
+
fail ArgumentError, 'expiration_date cannot be nil'
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
@expiration_date = expiration_date
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
# Custom attribute writer method with validation
|
|
392
|
+
# @param [Object] audit_number Value to be assigned
|
|
393
|
+
def audit_number=(audit_number)
|
|
394
|
+
if audit_number.nil?
|
|
395
|
+
fail ArgumentError, 'audit_number cannot be nil'
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
@audit_number = audit_number
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# Custom attribute writer method with validation
|
|
402
|
+
# @param [Object] license_status Value to be assigned
|
|
403
|
+
def license_status=(license_status)
|
|
404
|
+
if license_status.nil?
|
|
405
|
+
fail ArgumentError, 'license_status cannot be nil'
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
@license_status = license_status
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Custom attribute writer method with validation
|
|
412
|
+
# @param [Object] license_class Value to be assigned
|
|
413
|
+
def license_class=(license_class)
|
|
414
|
+
if license_class.nil?
|
|
415
|
+
fail ArgumentError, 'license_class cannot be nil'
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
@license_class = license_class
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# Custom attribute writer method with validation
|
|
422
|
+
# @param [Object] first_name Value to be assigned
|
|
423
|
+
def first_name=(first_name)
|
|
424
|
+
if first_name.nil?
|
|
425
|
+
fail ArgumentError, 'first_name cannot be nil'
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
@first_name = first_name
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
# Custom attribute writer method with validation
|
|
432
|
+
# @param [Object] middle_name Value to be assigned
|
|
433
|
+
def middle_name=(middle_name)
|
|
434
|
+
if middle_name.nil?
|
|
435
|
+
fail ArgumentError, 'middle_name cannot be nil'
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
@middle_name = middle_name
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
# Custom attribute writer method with validation
|
|
442
|
+
# @param [Object] last_name Value to be assigned
|
|
443
|
+
def last_name=(last_name)
|
|
444
|
+
if last_name.nil?
|
|
445
|
+
fail ArgumentError, 'last_name cannot be nil'
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
@last_name = last_name
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# Custom attribute writer method with validation
|
|
452
|
+
# @param [Object] date_of_birth Value to be assigned
|
|
453
|
+
def date_of_birth=(date_of_birth)
|
|
454
|
+
if date_of_birth.nil?
|
|
455
|
+
fail ArgumentError, 'date_of_birth cannot be nil'
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
@date_of_birth = date_of_birth
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# Custom attribute writer method with validation
|
|
462
|
+
# @param [Object] sex Value to be assigned
|
|
463
|
+
def sex=(sex)
|
|
464
|
+
if sex.nil?
|
|
465
|
+
fail ArgumentError, 'sex cannot be nil'
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
@sex = sex
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# Custom attribute writer method with validation
|
|
472
|
+
# @param [Object] address_line1 Value to be assigned
|
|
473
|
+
def address_line1=(address_line1)
|
|
474
|
+
if address_line1.nil?
|
|
475
|
+
fail ArgumentError, 'address_line1 cannot be nil'
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
@address_line1 = address_line1
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
# Custom attribute writer method with validation
|
|
482
|
+
# @param [Object] address_city Value to be assigned
|
|
483
|
+
def address_city=(address_city)
|
|
484
|
+
if address_city.nil?
|
|
485
|
+
fail ArgumentError, 'address_city cannot be nil'
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
@address_city = address_city
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# Custom attribute writer method with validation
|
|
492
|
+
# @param [Object] address_state Value to be assigned
|
|
493
|
+
def address_state=(address_state)
|
|
494
|
+
if address_state.nil?
|
|
495
|
+
fail ArgumentError, 'address_state cannot be nil'
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
@address_state = address_state
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
# Custom attribute writer method with validation
|
|
502
|
+
# @param [Object] address_zip Value to be assigned
|
|
503
|
+
def address_zip=(address_zip)
|
|
504
|
+
if address_zip.nil?
|
|
505
|
+
fail ArgumentError, 'address_zip cannot be nil'
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
@address_zip = address_zip
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
# Custom attribute writer method with validation
|
|
512
|
+
# @param [Object] county Value to be assigned
|
|
513
|
+
def county=(county)
|
|
514
|
+
if county.nil?
|
|
515
|
+
fail ArgumentError, 'county cannot be nil'
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
@county = county
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
# Custom attribute writer method with validation
|
|
522
|
+
# @param [Object] coarse_age Value to be assigned
|
|
523
|
+
def coarse_age=(coarse_age)
|
|
524
|
+
if coarse_age.nil?
|
|
525
|
+
fail ArgumentError, 'coarse_age cannot be nil'
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
@coarse_age = coarse_age
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
# Checks equality by comparing each attribute.
|
|
532
|
+
# @param [Object] Object to be compared
|
|
533
|
+
def ==(o)
|
|
534
|
+
return true if self.equal?(o)
|
|
535
|
+
self.class == o.class &&
|
|
536
|
+
drivers_license_number == o.drivers_license_number &&
|
|
537
|
+
issue_date == o.issue_date &&
|
|
538
|
+
expiration_date == o.expiration_date &&
|
|
539
|
+
audit_number == o.audit_number &&
|
|
540
|
+
license_status == o.license_status &&
|
|
541
|
+
license_class == o.license_class &&
|
|
542
|
+
first_name == o.first_name &&
|
|
543
|
+
middle_name == o.middle_name &&
|
|
544
|
+
last_name == o.last_name &&
|
|
545
|
+
date_of_birth == o.date_of_birth &&
|
|
546
|
+
sex == o.sex &&
|
|
547
|
+
address_line1 == o.address_line1 &&
|
|
548
|
+
address_line2 == o.address_line2 &&
|
|
549
|
+
address_city == o.address_city &&
|
|
550
|
+
address_state == o.address_state &&
|
|
551
|
+
address_zip == o.address_zip &&
|
|
552
|
+
county == o.county &&
|
|
553
|
+
coarse_age == o.coarse_age
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
# @see the `==` method
|
|
557
|
+
# @param [Object] Object to be compared
|
|
558
|
+
def eql?(o)
|
|
559
|
+
self == o
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
# Calculates hash code according to all attributes.
|
|
563
|
+
# @return [Integer] Hash code
|
|
564
|
+
def hash
|
|
565
|
+
[drivers_license_number, issue_date, expiration_date, audit_number, license_status, license_class, first_name, middle_name, last_name, date_of_birth, sex, address_line1, address_line2, address_city, address_state, address_zip, county, coarse_age].hash
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
# Builds the object from hash
|
|
569
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
570
|
+
# @return [Object] Returns the model itself
|
|
571
|
+
def self.build_from_hash(attributes)
|
|
572
|
+
return nil unless attributes.is_a?(Hash)
|
|
573
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
574
|
+
transformed_hash = {}
|
|
575
|
+
openapi_types.each_pair do |key, type|
|
|
576
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
577
|
+
transformed_hash["#{key}"] = nil
|
|
578
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
579
|
+
# check to ensure the input is an array given that the attribute
|
|
580
|
+
# is documented as an array but the input is not
|
|
581
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
582
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
583
|
+
end
|
|
584
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
585
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
586
|
+
end
|
|
587
|
+
end
|
|
588
|
+
new(transformed_hash)
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
# Deserializes the data based on type
|
|
592
|
+
# @param string type Data type
|
|
593
|
+
# @param string value Value to be deserialized
|
|
594
|
+
# @return [Object] Deserialized data
|
|
595
|
+
def self._deserialize(type, value)
|
|
596
|
+
case type.to_sym
|
|
597
|
+
when :Time
|
|
598
|
+
Time.parse(value)
|
|
599
|
+
when :Date
|
|
600
|
+
Date.parse(value)
|
|
601
|
+
when :String
|
|
602
|
+
value.to_s
|
|
603
|
+
when :Integer
|
|
604
|
+
value.to_i
|
|
605
|
+
when :Float
|
|
606
|
+
value.to_f
|
|
607
|
+
when :Boolean
|
|
608
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
609
|
+
true
|
|
610
|
+
else
|
|
611
|
+
false
|
|
612
|
+
end
|
|
613
|
+
when :Object
|
|
614
|
+
# generic object (usually a Hash), return directly
|
|
615
|
+
value
|
|
616
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
617
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
618
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
619
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
620
|
+
k_type = Regexp.last_match[:k_type]
|
|
621
|
+
v_type = Regexp.last_match[:v_type]
|
|
622
|
+
{}.tap do |hash|
|
|
623
|
+
value.each do |k, v|
|
|
624
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
625
|
+
end
|
|
626
|
+
end
|
|
627
|
+
else # model
|
|
628
|
+
# models (e.g. Pet) or oneOf
|
|
629
|
+
klass = TrinsicApi.const_get(type)
|
|
630
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
631
|
+
end
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
# Returns the string representation of the object
|
|
635
|
+
# @return [String] String presentation of the object
|
|
636
|
+
def to_s
|
|
637
|
+
to_hash.to_s
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
641
|
+
# @return [Hash] Returns the object in the form of hash
|
|
642
|
+
def to_body
|
|
643
|
+
to_hash
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
# Returns the object in the form of hash
|
|
647
|
+
# @return [Hash] Returns the object in the form of hash
|
|
648
|
+
def to_hash
|
|
649
|
+
hash = {}
|
|
650
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
651
|
+
value = self.send(attr)
|
|
652
|
+
if value.nil?
|
|
653
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
654
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
hash[param] = _to_hash(value)
|
|
658
|
+
end
|
|
659
|
+
hash
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
# Outputs non-array value in the form of hash
|
|
663
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
664
|
+
# @param [Object] value Any valid value
|
|
665
|
+
# @return [Hash] Returns the value in the form of hash
|
|
666
|
+
def _to_hash(value)
|
|
667
|
+
if value.is_a?(Array)
|
|
668
|
+
value.compact.map { |v| _to_hash(v) }
|
|
669
|
+
elsif value.is_a?(Hash)
|
|
670
|
+
{}.tap do |hash|
|
|
671
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
672
|
+
end
|
|
673
|
+
elsif value.respond_to? :to_hash
|
|
674
|
+
value.to_hash
|
|
675
|
+
else
|
|
676
|
+
value
|
|
677
|
+
end
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
end
|