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,431 @@
|
|
|
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 YotiStructuredPostalAddress
|
|
18
|
+
# The address's country. This field does not have a specified format, but is recommended to use for the country field.
|
|
19
|
+
attr_accessor :country
|
|
20
|
+
|
|
21
|
+
# The address's ISO alpha-3 country code
|
|
22
|
+
attr_accessor :country_iso
|
|
23
|
+
|
|
24
|
+
# The whole address in proper order and formatted with line breaks. Examples: United Kingdom: \"15a North Street\\nCARSHALTON\\nSM5 2HW\\nUK\" India: \"S/O: Vipen Kumar Aggarwal\\nHouse No.86-A\\nRajguru Nagar\\nLudhiana\\nPunjab\\n141012\\nIndia\" United States of America: \"1512 Ferry Street\\nAnniston AL 36201\\nUSA\"
|
|
25
|
+
attr_accessor :formatted_address
|
|
26
|
+
|
|
27
|
+
# The first line of the address
|
|
28
|
+
attr_accessor :line1
|
|
29
|
+
|
|
30
|
+
# The second line of the address
|
|
31
|
+
attr_accessor :line2
|
|
32
|
+
|
|
33
|
+
# The third line of the address
|
|
34
|
+
attr_accessor :line3
|
|
35
|
+
|
|
36
|
+
# The fourth line of the address
|
|
37
|
+
attr_accessor :line4
|
|
38
|
+
|
|
39
|
+
# The address's town or city
|
|
40
|
+
attr_accessor :town_city
|
|
41
|
+
|
|
42
|
+
# The address's state. This is an optional field that may only appear for US addresses.
|
|
43
|
+
attr_accessor :state
|
|
44
|
+
|
|
45
|
+
# The address's postal code
|
|
46
|
+
attr_accessor :postal_code
|
|
47
|
+
|
|
48
|
+
# The address's building number
|
|
49
|
+
attr_accessor :building_number
|
|
50
|
+
|
|
51
|
+
# The address's building name
|
|
52
|
+
attr_accessor :building
|
|
53
|
+
|
|
54
|
+
# The address's sub building or specific part of the building
|
|
55
|
+
attr_accessor :sub_building
|
|
56
|
+
|
|
57
|
+
# The address'ss locality can be an area, a village, a region, or a known neighborhood
|
|
58
|
+
attr_accessor :locality
|
|
59
|
+
|
|
60
|
+
# The unique delivery point reference number. This is an 8-digit code used in the UK for identifying delivery addresses.
|
|
61
|
+
attr_accessor :delivery_point_reference_number
|
|
62
|
+
|
|
63
|
+
# The address's landmark. A landmark is a recognizable feature or place that helps locate the address. This optional field may appear only for Indian addresses.
|
|
64
|
+
attr_accessor :landmark
|
|
65
|
+
|
|
66
|
+
# The address's subdistrict. This optional field may appear only for Indian addresses.
|
|
67
|
+
attr_accessor :subdistrict
|
|
68
|
+
|
|
69
|
+
# The address's district. This optional field may appear only for Indian addresses.
|
|
70
|
+
attr_accessor :district
|
|
71
|
+
|
|
72
|
+
# The address's post office. This optional field may appear only for Indian addresses.
|
|
73
|
+
attr_accessor :post_office
|
|
74
|
+
|
|
75
|
+
# The address's care-of field. This indicates that mail should be delivered to an individual through another person or entity who is a known resident at the address. This optional field may appear only for Indian addresses.
|
|
76
|
+
attr_accessor :care_of
|
|
77
|
+
|
|
78
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
79
|
+
def self.attribute_map
|
|
80
|
+
{
|
|
81
|
+
:'country' => :'country',
|
|
82
|
+
:'country_iso' => :'countryIso',
|
|
83
|
+
:'formatted_address' => :'formattedAddress',
|
|
84
|
+
:'line1' => :'line1',
|
|
85
|
+
:'line2' => :'line2',
|
|
86
|
+
:'line3' => :'line3',
|
|
87
|
+
:'line4' => :'line4',
|
|
88
|
+
:'town_city' => :'townCity',
|
|
89
|
+
:'state' => :'state',
|
|
90
|
+
:'postal_code' => :'postalCode',
|
|
91
|
+
:'building_number' => :'buildingNumber',
|
|
92
|
+
:'building' => :'building',
|
|
93
|
+
:'sub_building' => :'subBuilding',
|
|
94
|
+
:'locality' => :'locality',
|
|
95
|
+
:'delivery_point_reference_number' => :'deliveryPointReferenceNumber',
|
|
96
|
+
:'landmark' => :'landmark',
|
|
97
|
+
:'subdistrict' => :'subdistrict',
|
|
98
|
+
:'district' => :'district',
|
|
99
|
+
:'post_office' => :'postOffice',
|
|
100
|
+
:'care_of' => :'careOf'
|
|
101
|
+
}
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Returns attribute mapping this model knows about
|
|
105
|
+
def self.acceptable_attribute_map
|
|
106
|
+
attribute_map
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Returns all the JSON keys this model knows about
|
|
110
|
+
def self.acceptable_attributes
|
|
111
|
+
acceptable_attribute_map.values
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Attribute type mapping.
|
|
115
|
+
def self.openapi_types
|
|
116
|
+
{
|
|
117
|
+
:'country' => :'String',
|
|
118
|
+
:'country_iso' => :'String',
|
|
119
|
+
:'formatted_address' => :'String',
|
|
120
|
+
:'line1' => :'String',
|
|
121
|
+
:'line2' => :'String',
|
|
122
|
+
:'line3' => :'String',
|
|
123
|
+
:'line4' => :'String',
|
|
124
|
+
:'town_city' => :'String',
|
|
125
|
+
:'state' => :'String',
|
|
126
|
+
:'postal_code' => :'String',
|
|
127
|
+
:'building_number' => :'String',
|
|
128
|
+
:'building' => :'String',
|
|
129
|
+
:'sub_building' => :'String',
|
|
130
|
+
:'locality' => :'String',
|
|
131
|
+
:'delivery_point_reference_number' => :'String',
|
|
132
|
+
:'landmark' => :'String',
|
|
133
|
+
:'subdistrict' => :'String',
|
|
134
|
+
:'district' => :'String',
|
|
135
|
+
:'post_office' => :'String',
|
|
136
|
+
:'care_of' => :'String'
|
|
137
|
+
}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# List of attributes with nullable: true
|
|
141
|
+
def self.openapi_nullable
|
|
142
|
+
Set.new([
|
|
143
|
+
:'country',
|
|
144
|
+
:'country_iso',
|
|
145
|
+
:'formatted_address',
|
|
146
|
+
:'line1',
|
|
147
|
+
:'line2',
|
|
148
|
+
:'line3',
|
|
149
|
+
:'line4',
|
|
150
|
+
:'town_city',
|
|
151
|
+
:'state',
|
|
152
|
+
:'postal_code',
|
|
153
|
+
:'building_number',
|
|
154
|
+
:'building',
|
|
155
|
+
:'sub_building',
|
|
156
|
+
:'locality',
|
|
157
|
+
:'delivery_point_reference_number',
|
|
158
|
+
:'landmark',
|
|
159
|
+
:'subdistrict',
|
|
160
|
+
:'district',
|
|
161
|
+
:'post_office',
|
|
162
|
+
:'care_of'
|
|
163
|
+
])
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Initializes the object
|
|
167
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
168
|
+
def initialize(attributes = {})
|
|
169
|
+
if (!attributes.is_a?(Hash))
|
|
170
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::YotiStructuredPostalAddress` initialize method"
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
174
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
175
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
176
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
177
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::YotiStructuredPostalAddress`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
178
|
+
end
|
|
179
|
+
h[k.to_sym] = v
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'country')
|
|
183
|
+
self.country = attributes[:'country']
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'country_iso')
|
|
187
|
+
self.country_iso = attributes[:'country_iso']
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'formatted_address')
|
|
191
|
+
self.formatted_address = attributes[:'formatted_address']
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.key?(:'line1')
|
|
195
|
+
self.line1 = attributes[:'line1']
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'line2')
|
|
199
|
+
self.line2 = attributes[:'line2']
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.key?(:'line3')
|
|
203
|
+
self.line3 = attributes[:'line3']
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if attributes.key?(:'line4')
|
|
207
|
+
self.line4 = attributes[:'line4']
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.key?(:'town_city')
|
|
211
|
+
self.town_city = attributes[:'town_city']
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.key?(:'state')
|
|
215
|
+
self.state = attributes[:'state']
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if attributes.key?(:'postal_code')
|
|
219
|
+
self.postal_code = attributes[:'postal_code']
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if attributes.key?(:'building_number')
|
|
223
|
+
self.building_number = attributes[:'building_number']
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'building')
|
|
227
|
+
self.building = attributes[:'building']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'sub_building')
|
|
231
|
+
self.sub_building = attributes[:'sub_building']
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'locality')
|
|
235
|
+
self.locality = attributes[:'locality']
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'delivery_point_reference_number')
|
|
239
|
+
self.delivery_point_reference_number = attributes[:'delivery_point_reference_number']
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'landmark')
|
|
243
|
+
self.landmark = attributes[:'landmark']
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'subdistrict')
|
|
247
|
+
self.subdistrict = attributes[:'subdistrict']
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if attributes.key?(:'district')
|
|
251
|
+
self.district = attributes[:'district']
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'post_office')
|
|
255
|
+
self.post_office = attributes[:'post_office']
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if attributes.key?(:'care_of')
|
|
259
|
+
self.care_of = attributes[:'care_of']
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
264
|
+
# @return Array for valid properties with the reasons
|
|
265
|
+
def list_invalid_properties
|
|
266
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
267
|
+
invalid_properties = Array.new
|
|
268
|
+
invalid_properties
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Check to see if the all the properties in the model are valid
|
|
272
|
+
# @return true if the model is valid
|
|
273
|
+
def valid?
|
|
274
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
275
|
+
true
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Checks equality by comparing each attribute.
|
|
279
|
+
# @param [Object] Object to be compared
|
|
280
|
+
def ==(o)
|
|
281
|
+
return true if self.equal?(o)
|
|
282
|
+
self.class == o.class &&
|
|
283
|
+
country == o.country &&
|
|
284
|
+
country_iso == o.country_iso &&
|
|
285
|
+
formatted_address == o.formatted_address &&
|
|
286
|
+
line1 == o.line1 &&
|
|
287
|
+
line2 == o.line2 &&
|
|
288
|
+
line3 == o.line3 &&
|
|
289
|
+
line4 == o.line4 &&
|
|
290
|
+
town_city == o.town_city &&
|
|
291
|
+
state == o.state &&
|
|
292
|
+
postal_code == o.postal_code &&
|
|
293
|
+
building_number == o.building_number &&
|
|
294
|
+
building == o.building &&
|
|
295
|
+
sub_building == o.sub_building &&
|
|
296
|
+
locality == o.locality &&
|
|
297
|
+
delivery_point_reference_number == o.delivery_point_reference_number &&
|
|
298
|
+
landmark == o.landmark &&
|
|
299
|
+
subdistrict == o.subdistrict &&
|
|
300
|
+
district == o.district &&
|
|
301
|
+
post_office == o.post_office &&
|
|
302
|
+
care_of == o.care_of
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# @see the `==` method
|
|
306
|
+
# @param [Object] Object to be compared
|
|
307
|
+
def eql?(o)
|
|
308
|
+
self == o
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# Calculates hash code according to all attributes.
|
|
312
|
+
# @return [Integer] Hash code
|
|
313
|
+
def hash
|
|
314
|
+
[country, country_iso, formatted_address, line1, line2, line3, line4, town_city, state, postal_code, building_number, building, sub_building, locality, delivery_point_reference_number, landmark, subdistrict, district, post_office, care_of].hash
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Builds the object from hash
|
|
318
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
319
|
+
# @return [Object] Returns the model itself
|
|
320
|
+
def self.build_from_hash(attributes)
|
|
321
|
+
return nil unless attributes.is_a?(Hash)
|
|
322
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
323
|
+
transformed_hash = {}
|
|
324
|
+
openapi_types.each_pair do |key, type|
|
|
325
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
326
|
+
transformed_hash["#{key}"] = nil
|
|
327
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
328
|
+
# check to ensure the input is an array given that the attribute
|
|
329
|
+
# is documented as an array but the input is not
|
|
330
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
331
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
332
|
+
end
|
|
333
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
334
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
335
|
+
end
|
|
336
|
+
end
|
|
337
|
+
new(transformed_hash)
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Deserializes the data based on type
|
|
341
|
+
# @param string type Data type
|
|
342
|
+
# @param string value Value to be deserialized
|
|
343
|
+
# @return [Object] Deserialized data
|
|
344
|
+
def self._deserialize(type, value)
|
|
345
|
+
case type.to_sym
|
|
346
|
+
when :Time
|
|
347
|
+
Time.parse(value)
|
|
348
|
+
when :Date
|
|
349
|
+
Date.parse(value)
|
|
350
|
+
when :String
|
|
351
|
+
value.to_s
|
|
352
|
+
when :Integer
|
|
353
|
+
value.to_i
|
|
354
|
+
when :Float
|
|
355
|
+
value.to_f
|
|
356
|
+
when :Boolean
|
|
357
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
358
|
+
true
|
|
359
|
+
else
|
|
360
|
+
false
|
|
361
|
+
end
|
|
362
|
+
when :Object
|
|
363
|
+
# generic object (usually a Hash), return directly
|
|
364
|
+
value
|
|
365
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
366
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
367
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
368
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
369
|
+
k_type = Regexp.last_match[:k_type]
|
|
370
|
+
v_type = Regexp.last_match[:v_type]
|
|
371
|
+
{}.tap do |hash|
|
|
372
|
+
value.each do |k, v|
|
|
373
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
374
|
+
end
|
|
375
|
+
end
|
|
376
|
+
else # model
|
|
377
|
+
# models (e.g. Pet) or oneOf
|
|
378
|
+
klass = TrinsicApi.const_get(type)
|
|
379
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
380
|
+
end
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Returns the string representation of the object
|
|
384
|
+
# @return [String] String presentation of the object
|
|
385
|
+
def to_s
|
|
386
|
+
to_hash.to_s
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
390
|
+
# @return [Hash] Returns the object in the form of hash
|
|
391
|
+
def to_body
|
|
392
|
+
to_hash
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# Returns the object in the form of hash
|
|
396
|
+
# @return [Hash] Returns the object in the form of hash
|
|
397
|
+
def to_hash
|
|
398
|
+
hash = {}
|
|
399
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
400
|
+
value = self.send(attr)
|
|
401
|
+
if value.nil?
|
|
402
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
403
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
hash[param] = _to_hash(value)
|
|
407
|
+
end
|
|
408
|
+
hash
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Outputs non-array value in the form of hash
|
|
412
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
413
|
+
# @param [Object] value Any valid value
|
|
414
|
+
# @return [Hash] Returns the value in the form of hash
|
|
415
|
+
def _to_hash(value)
|
|
416
|
+
if value.is_a?(Array)
|
|
417
|
+
value.compact.map { |v| _to_hash(v) }
|
|
418
|
+
elsif value.is_a?(Hash)
|
|
419
|
+
{}.tap do |hash|
|
|
420
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
421
|
+
end
|
|
422
|
+
elsif value.respond_to? :to_hash
|
|
423
|
+
value.to_hash
|
|
424
|
+
else
|
|
425
|
+
value
|
|
426
|
+
end
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
end
|
|
@@ -14,13 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class
|
|
18
|
-
|
|
17
|
+
class ZimbabweNidLookup2Input
|
|
18
|
+
# The user's National ID number
|
|
19
|
+
attr_accessor :id_number
|
|
19
20
|
|
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
22
|
def self.attribute_map
|
|
22
23
|
{
|
|
23
|
-
:'
|
|
24
|
+
:'id_number' => :'idNumber'
|
|
24
25
|
}
|
|
25
26
|
end
|
|
26
27
|
|
|
@@ -37,14 +38,14 @@ module TrinsicApi
|
|
|
37
38
|
# Attribute type mapping.
|
|
38
39
|
def self.openapi_types
|
|
39
40
|
{
|
|
40
|
-
:'
|
|
41
|
+
:'id_number' => :'String'
|
|
41
42
|
}
|
|
42
43
|
end
|
|
43
44
|
|
|
44
45
|
# List of attributes with nullable: true
|
|
45
46
|
def self.openapi_nullable
|
|
46
47
|
Set.new([
|
|
47
|
-
:'
|
|
48
|
+
:'id_number'
|
|
48
49
|
])
|
|
49
50
|
end
|
|
50
51
|
|
|
@@ -52,20 +53,20 @@ module TrinsicApi
|
|
|
52
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
54
|
def initialize(attributes = {})
|
|
54
55
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::ZimbabweNidLookup2Input` initialize method"
|
|
56
57
|
end
|
|
57
58
|
|
|
58
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
60
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
62
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::ZimbabweNidLookup2Input`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
64
|
end
|
|
64
65
|
h[k.to_sym] = v
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
self.
|
|
68
|
+
if attributes.key?(:'id_number')
|
|
69
|
+
self.id_number = attributes[:'id_number']
|
|
69
70
|
end
|
|
70
71
|
end
|
|
71
72
|
|
|
@@ -89,7 +90,7 @@ module TrinsicApi
|
|
|
89
90
|
def ==(o)
|
|
90
91
|
return true if self.equal?(o)
|
|
91
92
|
self.class == o.class &&
|
|
92
|
-
|
|
93
|
+
id_number == o.id_number
|
|
93
94
|
end
|
|
94
95
|
|
|
95
96
|
# @see the `==` method
|
|
@@ -101,7 +102,7 @@ module TrinsicApi
|
|
|
101
102
|
# Calculates hash code according to all attributes.
|
|
102
103
|
# @return [Integer] Hash code
|
|
103
104
|
def hash
|
|
104
|
-
[
|
|
105
|
+
[id_number].hash
|
|
105
106
|
end
|
|
106
107
|
|
|
107
108
|
# Builds the object from hash
|
data/lib/trinsic_api/version.rb
CHANGED