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
|
@@ -14,22 +14,60 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class
|
|
18
|
-
# The
|
|
19
|
-
attr_accessor :
|
|
17
|
+
class NigeriaNinMatch2Input
|
|
18
|
+
# The user's Nigerian National ID number (NIN)
|
|
19
|
+
attr_accessor :id_number
|
|
20
20
|
|
|
21
|
-
# The
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# The user's first name as it appears in their National ID
|
|
22
|
+
attr_accessor :given_name
|
|
23
23
|
|
|
24
|
-
# The
|
|
25
|
-
attr_accessor :
|
|
24
|
+
# The user's last name as it appears in their National ID
|
|
25
|
+
attr_accessor :family_name
|
|
26
|
+
|
|
27
|
+
# The user's middle name as it appears in their National ID (optional)
|
|
28
|
+
attr_accessor :middle_name
|
|
29
|
+
|
|
30
|
+
# The user's date of birth, in `YYYY-MM-DD` format
|
|
31
|
+
attr_accessor :date_of_birth
|
|
32
|
+
|
|
33
|
+
# The user's sex as it appears in their National ID
|
|
34
|
+
attr_accessor :sex
|
|
35
|
+
|
|
36
|
+
# The user's phone number as it appears in their National ID (optional). Must be in E.164 international format: \"+234XXXXXXXXX\"
|
|
37
|
+
attr_accessor :phone_number
|
|
38
|
+
|
|
39
|
+
class EnumAttributeValidator
|
|
40
|
+
attr_reader :datatype
|
|
41
|
+
attr_reader :allowable_values
|
|
42
|
+
|
|
43
|
+
def initialize(datatype, allowable_values)
|
|
44
|
+
@allowable_values = allowable_values.map do |value|
|
|
45
|
+
case datatype.to_s
|
|
46
|
+
when /Integer/i
|
|
47
|
+
value.to_i
|
|
48
|
+
when /Float/i
|
|
49
|
+
value.to_f
|
|
50
|
+
else
|
|
51
|
+
value
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def valid?(value)
|
|
57
|
+
!value || allowable_values.include?(value)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
26
60
|
|
|
27
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
62
|
def self.attribute_map
|
|
29
63
|
{
|
|
30
|
-
:'
|
|
31
|
-
:'
|
|
32
|
-
:'
|
|
64
|
+
:'id_number' => :'idNumber',
|
|
65
|
+
:'given_name' => :'givenName',
|
|
66
|
+
:'family_name' => :'familyName',
|
|
67
|
+
:'middle_name' => :'middleName',
|
|
68
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
69
|
+
:'sex' => :'sex',
|
|
70
|
+
:'phone_number' => :'phoneNumber'
|
|
33
71
|
}
|
|
34
72
|
end
|
|
35
73
|
|
|
@@ -46,15 +84,26 @@ module TrinsicApi
|
|
|
46
84
|
# Attribute type mapping.
|
|
47
85
|
def self.openapi_types
|
|
48
86
|
{
|
|
49
|
-
:'
|
|
50
|
-
:'
|
|
51
|
-
:'
|
|
87
|
+
:'id_number' => :'String',
|
|
88
|
+
:'given_name' => :'String',
|
|
89
|
+
:'family_name' => :'String',
|
|
90
|
+
:'middle_name' => :'String',
|
|
91
|
+
:'date_of_birth' => :'Date',
|
|
92
|
+
:'sex' => :'NigeriaNinMatch2InputSex',
|
|
93
|
+
:'phone_number' => :'String'
|
|
52
94
|
}
|
|
53
95
|
end
|
|
54
96
|
|
|
55
97
|
# List of attributes with nullable: true
|
|
56
98
|
def self.openapi_nullable
|
|
57
99
|
Set.new([
|
|
100
|
+
:'id_number',
|
|
101
|
+
:'given_name',
|
|
102
|
+
:'family_name',
|
|
103
|
+
:'middle_name',
|
|
104
|
+
:'date_of_birth',
|
|
105
|
+
:'sex',
|
|
106
|
+
:'phone_number'
|
|
58
107
|
])
|
|
59
108
|
end
|
|
60
109
|
|
|
@@ -62,60 +111,52 @@ module TrinsicApi
|
|
|
62
111
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
112
|
def initialize(attributes = {})
|
|
64
113
|
if (!attributes.is_a?(Hash))
|
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
114
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::NigeriaNinMatch2Input` initialize method"
|
|
66
115
|
end
|
|
67
116
|
|
|
68
117
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
118
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
119
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
120
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
121
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::NigeriaNinMatch2Input`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
122
|
end
|
|
74
123
|
h[k.to_sym] = v
|
|
75
124
|
}
|
|
76
125
|
|
|
77
|
-
if attributes.key?(:'
|
|
78
|
-
|
|
79
|
-
self.recognized = value
|
|
80
|
-
end
|
|
81
|
-
else
|
|
82
|
-
self.recognized = nil
|
|
126
|
+
if attributes.key?(:'id_number')
|
|
127
|
+
self.id_number = attributes[:'id_number']
|
|
83
128
|
end
|
|
84
129
|
|
|
85
|
-
if attributes.key?(:'
|
|
86
|
-
|
|
87
|
-
self.relevant = value
|
|
88
|
-
end
|
|
89
|
-
else
|
|
90
|
-
self.relevant = nil
|
|
130
|
+
if attributes.key?(:'given_name')
|
|
131
|
+
self.given_name = attributes[:'given_name']
|
|
91
132
|
end
|
|
92
133
|
|
|
93
|
-
if attributes.key?(:'
|
|
94
|
-
|
|
95
|
-
self.remainder = value
|
|
96
|
-
end
|
|
97
|
-
else
|
|
98
|
-
self.remainder = nil
|
|
134
|
+
if attributes.key?(:'family_name')
|
|
135
|
+
self.family_name = attributes[:'family_name']
|
|
99
136
|
end
|
|
100
|
-
end
|
|
101
137
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
invalid_properties.push('invalid value for "recognized", recognized cannot be nil.')
|
|
138
|
+
if attributes.key?(:'middle_name')
|
|
139
|
+
self.middle_name = attributes[:'middle_name']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'date_of_birth')
|
|
143
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
109
144
|
end
|
|
110
145
|
|
|
111
|
-
if
|
|
112
|
-
|
|
146
|
+
if attributes.key?(:'sex')
|
|
147
|
+
self.sex = attributes[:'sex']
|
|
113
148
|
end
|
|
114
149
|
|
|
115
|
-
if
|
|
116
|
-
|
|
150
|
+
if attributes.key?(:'phone_number')
|
|
151
|
+
self.phone_number = attributes[:'phone_number']
|
|
117
152
|
end
|
|
153
|
+
end
|
|
118
154
|
|
|
155
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
156
|
+
# @return Array for valid properties with the reasons
|
|
157
|
+
def list_invalid_properties
|
|
158
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
159
|
+
invalid_properties = Array.new
|
|
119
160
|
invalid_properties
|
|
120
161
|
end
|
|
121
162
|
|
|
@@ -123,50 +164,21 @@ module TrinsicApi
|
|
|
123
164
|
# @return true if the model is valid
|
|
124
165
|
def valid?
|
|
125
166
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
|
-
return false if @recognized.nil?
|
|
127
|
-
return false if @relevant.nil?
|
|
128
|
-
return false if @remainder.nil?
|
|
129
167
|
true
|
|
130
168
|
end
|
|
131
169
|
|
|
132
|
-
# Custom attribute writer method with validation
|
|
133
|
-
# @param [Object] recognized Value to be assigned
|
|
134
|
-
def recognized=(recognized)
|
|
135
|
-
if recognized.nil?
|
|
136
|
-
fail ArgumentError, 'recognized cannot be nil'
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
@recognized = recognized
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
# Custom attribute writer method with validation
|
|
143
|
-
# @param [Object] relevant Value to be assigned
|
|
144
|
-
def relevant=(relevant)
|
|
145
|
-
if relevant.nil?
|
|
146
|
-
fail ArgumentError, 'relevant cannot be nil'
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
@relevant = relevant
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
# Custom attribute writer method with validation
|
|
153
|
-
# @param [Object] remainder Value to be assigned
|
|
154
|
-
def remainder=(remainder)
|
|
155
|
-
if remainder.nil?
|
|
156
|
-
fail ArgumentError, 'remainder cannot be nil'
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
@remainder = remainder
|
|
160
|
-
end
|
|
161
|
-
|
|
162
170
|
# Checks equality by comparing each attribute.
|
|
163
171
|
# @param [Object] Object to be compared
|
|
164
172
|
def ==(o)
|
|
165
173
|
return true if self.equal?(o)
|
|
166
174
|
self.class == o.class &&
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
175
|
+
id_number == o.id_number &&
|
|
176
|
+
given_name == o.given_name &&
|
|
177
|
+
family_name == o.family_name &&
|
|
178
|
+
middle_name == o.middle_name &&
|
|
179
|
+
date_of_birth == o.date_of_birth &&
|
|
180
|
+
sex == o.sex &&
|
|
181
|
+
phone_number == o.phone_number
|
|
170
182
|
end
|
|
171
183
|
|
|
172
184
|
# @see the `==` method
|
|
@@ -178,7 +190,7 @@ module TrinsicApi
|
|
|
178
190
|
# Calculates hash code according to all attributes.
|
|
179
191
|
# @return [Integer] Hash code
|
|
180
192
|
def hash
|
|
181
|
-
[
|
|
193
|
+
[id_number, given_name, family_name, middle_name, date_of_birth, sex, phone_number].hash
|
|
182
194
|
end
|
|
183
195
|
|
|
184
196
|
# Builds the object from hash
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
class NigeriaNinMatch2InputSex
|
|
18
|
+
MALE = "Male".freeze
|
|
19
|
+
FEMALE = "Female".freeze
|
|
20
|
+
|
|
21
|
+
def self.all_vars
|
|
22
|
+
@all_vars ||= [MALE, FEMALE].freeze
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Builds the enum from string
|
|
26
|
+
# @param [String] The enum value in the form of the string
|
|
27
|
+
# @return [String] The enum value
|
|
28
|
+
def self.build_from_hash(value)
|
|
29
|
+
new.build_from_hash(value)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Builds the enum from string
|
|
33
|
+
# @param [String] The enum value in the form of the string
|
|
34
|
+
# @return [String] The enum value
|
|
35
|
+
def build_from_hash(value)
|
|
36
|
+
return value if NigeriaNinMatch2InputSex.all_vars.include?(value)
|
|
37
|
+
raise "Invalid ENUM value #{value} for class #NigeriaNinMatch2InputSex"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -14,15 +14,21 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
+
# Identity information for the individual being verified
|
|
17
18
|
class PersonData
|
|
19
|
+
# Given (first) name of the individual
|
|
18
20
|
attr_accessor :given_name
|
|
19
21
|
|
|
22
|
+
# Family (last) name of the individual
|
|
20
23
|
attr_accessor :family_name
|
|
21
24
|
|
|
25
|
+
# Middle name of the individual
|
|
22
26
|
attr_accessor :middle_name
|
|
23
27
|
|
|
28
|
+
# The individual's full name as a single string. Useful for names which do not fit into a \"first middle last\" structure.
|
|
24
29
|
attr_accessor :full_name
|
|
25
30
|
|
|
31
|
+
# Suffix of the individual's name
|
|
26
32
|
attr_accessor :suffix
|
|
27
33
|
|
|
28
34
|
attr_accessor :nationality
|
|
@@ -31,6 +37,7 @@ module TrinsicApi
|
|
|
31
37
|
|
|
32
38
|
attr_accessor :phone_number
|
|
33
39
|
|
|
40
|
+
# Address information for an individual
|
|
34
41
|
attr_accessor :address
|
|
35
42
|
|
|
36
43
|
attr_accessor :date_of_birth
|
|
@@ -14,19 +14,23 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
# Not a typical address. Does not include street or city. Instead, includes region, province and district.
|
|
18
|
+
class PeruDniAddress
|
|
19
|
+
# Region in Peru (also known as department). This is the first level subdivision in the country. Format: - All uppercase.
|
|
20
|
+
attr_accessor :region
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
# Province within the region. This is the second level subdivision in the country. Format: - All uppercase.
|
|
23
|
+
attr_accessor :province
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
# District within the province. This is the third level subdivision in the country. Format: - All uppercase.
|
|
26
|
+
attr_accessor :district
|
|
23
27
|
|
|
24
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
29
|
def self.attribute_map
|
|
26
30
|
{
|
|
27
|
-
:'
|
|
28
|
-
:'
|
|
29
|
-
:'
|
|
31
|
+
:'region' => :'region',
|
|
32
|
+
:'province' => :'province',
|
|
33
|
+
:'district' => :'district'
|
|
30
34
|
}
|
|
31
35
|
end
|
|
32
36
|
|
|
@@ -43,9 +47,9 @@ module TrinsicApi
|
|
|
43
47
|
# Attribute type mapping.
|
|
44
48
|
def self.openapi_types
|
|
45
49
|
{
|
|
46
|
-
:'
|
|
47
|
-
:'
|
|
48
|
-
:'
|
|
50
|
+
:'region' => :'String',
|
|
51
|
+
:'province' => :'String',
|
|
52
|
+
:'district' => :'String'
|
|
49
53
|
}
|
|
50
54
|
end
|
|
51
55
|
|
|
@@ -59,34 +63,34 @@ module TrinsicApi
|
|
|
59
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
64
|
def initialize(attributes = {})
|
|
61
65
|
if (!attributes.is_a?(Hash))
|
|
62
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::PeruDniAddress` initialize method"
|
|
63
67
|
end
|
|
64
68
|
|
|
65
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
70
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
72
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::PeruDniAddress`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
74
|
end
|
|
71
75
|
h[k.to_sym] = v
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
if attributes.key?(:'
|
|
75
|
-
self.
|
|
78
|
+
if attributes.key?(:'region')
|
|
79
|
+
self.region = attributes[:'region']
|
|
76
80
|
else
|
|
77
|
-
self.
|
|
81
|
+
self.region = nil
|
|
78
82
|
end
|
|
79
83
|
|
|
80
|
-
if attributes.key?(:'
|
|
81
|
-
self.
|
|
84
|
+
if attributes.key?(:'province')
|
|
85
|
+
self.province = attributes[:'province']
|
|
82
86
|
else
|
|
83
|
-
self.
|
|
87
|
+
self.province = nil
|
|
84
88
|
end
|
|
85
89
|
|
|
86
|
-
if attributes.key?(:'
|
|
87
|
-
self.
|
|
90
|
+
if attributes.key?(:'district')
|
|
91
|
+
self.district = attributes[:'district']
|
|
88
92
|
else
|
|
89
|
-
self.
|
|
93
|
+
self.district = nil
|
|
90
94
|
end
|
|
91
95
|
end
|
|
92
96
|
|
|
@@ -95,16 +99,16 @@ module TrinsicApi
|
|
|
95
99
|
def list_invalid_properties
|
|
96
100
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
97
101
|
invalid_properties = Array.new
|
|
98
|
-
if @
|
|
99
|
-
invalid_properties.push('invalid value for "
|
|
102
|
+
if @region.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "region", region cannot be nil.')
|
|
100
104
|
end
|
|
101
105
|
|
|
102
|
-
if @
|
|
103
|
-
invalid_properties.push('invalid value for "
|
|
106
|
+
if @province.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "province", province cannot be nil.')
|
|
104
108
|
end
|
|
105
109
|
|
|
106
|
-
if @
|
|
107
|
-
invalid_properties.push('invalid value for "
|
|
110
|
+
if @district.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "district", district cannot be nil.')
|
|
108
112
|
end
|
|
109
113
|
|
|
110
114
|
invalid_properties
|
|
@@ -114,40 +118,40 @@ module TrinsicApi
|
|
|
114
118
|
# @return true if the model is valid
|
|
115
119
|
def valid?
|
|
116
120
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
117
|
-
return false if @
|
|
118
|
-
return false if @
|
|
119
|
-
return false if @
|
|
121
|
+
return false if @region.nil?
|
|
122
|
+
return false if @province.nil?
|
|
123
|
+
return false if @district.nil?
|
|
120
124
|
true
|
|
121
125
|
end
|
|
122
126
|
|
|
123
127
|
# Custom attribute writer method with validation
|
|
124
|
-
# @param [Object]
|
|
125
|
-
def
|
|
126
|
-
if
|
|
127
|
-
fail ArgumentError, '
|
|
128
|
+
# @param [Object] region Value to be assigned
|
|
129
|
+
def region=(region)
|
|
130
|
+
if region.nil?
|
|
131
|
+
fail ArgumentError, 'region cannot be nil'
|
|
128
132
|
end
|
|
129
133
|
|
|
130
|
-
@
|
|
134
|
+
@region = region
|
|
131
135
|
end
|
|
132
136
|
|
|
133
137
|
# Custom attribute writer method with validation
|
|
134
|
-
# @param [Object]
|
|
135
|
-
def
|
|
136
|
-
if
|
|
137
|
-
fail ArgumentError, '
|
|
138
|
+
# @param [Object] province Value to be assigned
|
|
139
|
+
def province=(province)
|
|
140
|
+
if province.nil?
|
|
141
|
+
fail ArgumentError, 'province cannot be nil'
|
|
138
142
|
end
|
|
139
143
|
|
|
140
|
-
@
|
|
144
|
+
@province = province
|
|
141
145
|
end
|
|
142
146
|
|
|
143
147
|
# Custom attribute writer method with validation
|
|
144
|
-
# @param [Object]
|
|
145
|
-
def
|
|
146
|
-
if
|
|
147
|
-
fail ArgumentError, '
|
|
148
|
+
# @param [Object] district Value to be assigned
|
|
149
|
+
def district=(district)
|
|
150
|
+
if district.nil?
|
|
151
|
+
fail ArgumentError, 'district cannot be nil'
|
|
148
152
|
end
|
|
149
153
|
|
|
150
|
-
@
|
|
154
|
+
@district = district
|
|
151
155
|
end
|
|
152
156
|
|
|
153
157
|
# Checks equality by comparing each attribute.
|
|
@@ -155,9 +159,9 @@ module TrinsicApi
|
|
|
155
159
|
def ==(o)
|
|
156
160
|
return true if self.equal?(o)
|
|
157
161
|
self.class == o.class &&
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
region == o.region &&
|
|
163
|
+
province == o.province &&
|
|
164
|
+
district == o.district
|
|
161
165
|
end
|
|
162
166
|
|
|
163
167
|
# @see the `==` method
|
|
@@ -169,7 +173,7 @@ module TrinsicApi
|
|
|
169
173
|
# Calculates hash code according to all attributes.
|
|
170
174
|
# @return [Integer] Hash code
|
|
171
175
|
def hash
|
|
172
|
-
[
|
|
176
|
+
[region, province, district].hash
|
|
173
177
|
end
|
|
174
178
|
|
|
175
179
|
# Builds the object from hash
|