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
|
@@ -1,404 +0,0 @@
|
|
|
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
|
-
# Request to create an mDL Exchange.
|
|
18
|
-
class CreateMdlExchangeRequest
|
|
19
|
-
# The ID of the VerificationProfile to use for this mDL exchange.
|
|
20
|
-
attr_accessor :verification_profile_id
|
|
21
|
-
|
|
22
|
-
# The ID of the provider to use for this mDL exchange.
|
|
23
|
-
attr_accessor :provider
|
|
24
|
-
|
|
25
|
-
# The mechanism by which the mDL exchange will occur (web, native SDK, etc.)
|
|
26
|
-
attr_accessor :exchange_mechanism
|
|
27
|
-
|
|
28
|
-
# The document type to request from the wallet. Typically, this is one of the following values: - `org.iso.18013.5.1.mDL` (Mobile Driver's License) - `com.google.wallet.idcard.1` (Google Wallet ID Pass)
|
|
29
|
-
attr_accessor :document_type
|
|
30
|
-
|
|
31
|
-
# The namespaces and fields to request from the mDL. This is a nested map / dictionary. The outer dictionary's keys are namespaces (e.g. \"org.iso.18013.5.1\"). The inner dictionary's keys are field names within each namespace, with boolean values indicating whether the specified field will be retained post-verification.
|
|
32
|
-
attr_accessor :name_spaces
|
|
33
|
-
|
|
34
|
-
# If using the `DigitalCredentialsApi` exchange mechanism, this is the hostname on which the Digital Credentials API will be called. For example, if the user is on the page `https://foo.example.com/verify-mdl`, the proper value to use is `foo.example.com`. Present for ease of testing only. May be removed as this API is stabilized.
|
|
35
|
-
attr_accessor :digital_credentials_api_host
|
|
36
|
-
|
|
37
|
-
# If using the `NativeApp` exchange mechanism with the `google-wallet` provider, this is the package name of the Android App which will execute the mDL exchange. This should be set to the package name of your app. Present for ease of testing only. May be removed as this API is stabilized.
|
|
38
|
-
attr_accessor :android_native_app_package_name
|
|
39
|
-
|
|
40
|
-
# If using the `NativeApp` exchange mechanism with the `google-wallet` provider, this is the SHA-256 fingerprint of the signing certificate used to sign the Android App which will execute the mDL exchange. Present for ease of testing only. May be removed as this API is stabilized.
|
|
41
|
-
attr_accessor :android_native_app_signing_certificate_fingerprint
|
|
42
|
-
|
|
43
|
-
class EnumAttributeValidator
|
|
44
|
-
attr_reader :datatype
|
|
45
|
-
attr_reader :allowable_values
|
|
46
|
-
|
|
47
|
-
def initialize(datatype, allowable_values)
|
|
48
|
-
@allowable_values = allowable_values.map do |value|
|
|
49
|
-
case datatype.to_s
|
|
50
|
-
when /Integer/i
|
|
51
|
-
value.to_i
|
|
52
|
-
when /Float/i
|
|
53
|
-
value.to_f
|
|
54
|
-
else
|
|
55
|
-
value
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def valid?(value)
|
|
61
|
-
!value || allowable_values.include?(value)
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
66
|
-
def self.attribute_map
|
|
67
|
-
{
|
|
68
|
-
:'verification_profile_id' => :'verificationProfileId',
|
|
69
|
-
:'provider' => :'provider',
|
|
70
|
-
:'exchange_mechanism' => :'exchangeMechanism',
|
|
71
|
-
:'document_type' => :'documentType',
|
|
72
|
-
:'name_spaces' => :'nameSpaces',
|
|
73
|
-
:'digital_credentials_api_host' => :'digitalCredentialsApiHost',
|
|
74
|
-
:'android_native_app_package_name' => :'androidNativeAppPackageName',
|
|
75
|
-
:'android_native_app_signing_certificate_fingerprint' => :'androidNativeAppSigningCertificateFingerprint'
|
|
76
|
-
}
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
# Returns attribute mapping this model knows about
|
|
80
|
-
def self.acceptable_attribute_map
|
|
81
|
-
attribute_map
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
# Returns all the JSON keys this model knows about
|
|
85
|
-
def self.acceptable_attributes
|
|
86
|
-
acceptable_attribute_map.values
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
# Attribute type mapping.
|
|
90
|
-
def self.openapi_types
|
|
91
|
-
{
|
|
92
|
-
:'verification_profile_id' => :'String',
|
|
93
|
-
:'provider' => :'String',
|
|
94
|
-
:'exchange_mechanism' => :'MdlExchangeMechanism',
|
|
95
|
-
:'document_type' => :'String',
|
|
96
|
-
:'name_spaces' => :'Hash<String, Hash<String, Boolean>>',
|
|
97
|
-
:'digital_credentials_api_host' => :'String',
|
|
98
|
-
:'android_native_app_package_name' => :'String',
|
|
99
|
-
:'android_native_app_signing_certificate_fingerprint' => :'String'
|
|
100
|
-
}
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
# List of attributes with nullable: true
|
|
104
|
-
def self.openapi_nullable
|
|
105
|
-
Set.new([
|
|
106
|
-
:'digital_credentials_api_host',
|
|
107
|
-
:'android_native_app_package_name',
|
|
108
|
-
:'android_native_app_signing_certificate_fingerprint'
|
|
109
|
-
])
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
# Initializes the object
|
|
113
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
114
|
-
def initialize(attributes = {})
|
|
115
|
-
if (!attributes.is_a?(Hash))
|
|
116
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::CreateMdlExchangeRequest` initialize method"
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
120
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
121
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
122
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
123
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::CreateMdlExchangeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
124
|
-
end
|
|
125
|
-
h[k.to_sym] = v
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if attributes.key?(:'verification_profile_id')
|
|
129
|
-
self.verification_profile_id = attributes[:'verification_profile_id']
|
|
130
|
-
else
|
|
131
|
-
self.verification_profile_id = nil
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
if attributes.key?(:'provider')
|
|
135
|
-
self.provider = attributes[:'provider']
|
|
136
|
-
else
|
|
137
|
-
self.provider = nil
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
if attributes.key?(:'exchange_mechanism')
|
|
141
|
-
self.exchange_mechanism = attributes[:'exchange_mechanism']
|
|
142
|
-
else
|
|
143
|
-
self.exchange_mechanism = nil
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
if attributes.key?(:'document_type')
|
|
147
|
-
self.document_type = attributes[:'document_type']
|
|
148
|
-
else
|
|
149
|
-
self.document_type = nil
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
if attributes.key?(:'name_spaces')
|
|
153
|
-
if (value = attributes[:'name_spaces']).is_a?(Hash)
|
|
154
|
-
self.name_spaces = value
|
|
155
|
-
end
|
|
156
|
-
else
|
|
157
|
-
self.name_spaces = nil
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
if attributes.key?(:'digital_credentials_api_host')
|
|
161
|
-
self.digital_credentials_api_host = attributes[:'digital_credentials_api_host']
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
if attributes.key?(:'android_native_app_package_name')
|
|
165
|
-
self.android_native_app_package_name = attributes[:'android_native_app_package_name']
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
if attributes.key?(:'android_native_app_signing_certificate_fingerprint')
|
|
169
|
-
self.android_native_app_signing_certificate_fingerprint = attributes[:'android_native_app_signing_certificate_fingerprint']
|
|
170
|
-
end
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
174
|
-
# @return Array for valid properties with the reasons
|
|
175
|
-
def list_invalid_properties
|
|
176
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
177
|
-
invalid_properties = Array.new
|
|
178
|
-
if @verification_profile_id.nil?
|
|
179
|
-
invalid_properties.push('invalid value for "verification_profile_id", verification_profile_id cannot be nil.')
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
if @provider.nil?
|
|
183
|
-
invalid_properties.push('invalid value for "provider", provider cannot be nil.')
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
if @exchange_mechanism.nil?
|
|
187
|
-
invalid_properties.push('invalid value for "exchange_mechanism", exchange_mechanism cannot be nil.')
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
if @document_type.nil?
|
|
191
|
-
invalid_properties.push('invalid value for "document_type", document_type cannot be nil.')
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
if @name_spaces.nil?
|
|
195
|
-
invalid_properties.push('invalid value for "name_spaces", name_spaces cannot be nil.')
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
invalid_properties
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
# Check to see if the all the properties in the model are valid
|
|
202
|
-
# @return true if the model is valid
|
|
203
|
-
def valid?
|
|
204
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
205
|
-
return false if @verification_profile_id.nil?
|
|
206
|
-
return false if @provider.nil?
|
|
207
|
-
return false if @exchange_mechanism.nil?
|
|
208
|
-
return false if @document_type.nil?
|
|
209
|
-
return false if @name_spaces.nil?
|
|
210
|
-
true
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
# Custom attribute writer method with validation
|
|
214
|
-
# @param [Object] verification_profile_id Value to be assigned
|
|
215
|
-
def verification_profile_id=(verification_profile_id)
|
|
216
|
-
if verification_profile_id.nil?
|
|
217
|
-
fail ArgumentError, 'verification_profile_id cannot be nil'
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
@verification_profile_id = verification_profile_id
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# Custom attribute writer method with validation
|
|
224
|
-
# @param [Object] provider Value to be assigned
|
|
225
|
-
def provider=(provider)
|
|
226
|
-
if provider.nil?
|
|
227
|
-
fail ArgumentError, 'provider cannot be nil'
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
@provider = provider
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
# Custom attribute writer method with validation
|
|
234
|
-
# @param [Object] exchange_mechanism Value to be assigned
|
|
235
|
-
def exchange_mechanism=(exchange_mechanism)
|
|
236
|
-
if exchange_mechanism.nil?
|
|
237
|
-
fail ArgumentError, 'exchange_mechanism cannot be nil'
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
@exchange_mechanism = exchange_mechanism
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
# Custom attribute writer method with validation
|
|
244
|
-
# @param [Object] document_type Value to be assigned
|
|
245
|
-
def document_type=(document_type)
|
|
246
|
-
if document_type.nil?
|
|
247
|
-
fail ArgumentError, 'document_type cannot be nil'
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
@document_type = document_type
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
# Custom attribute writer method with validation
|
|
254
|
-
# @param [Object] name_spaces Value to be assigned
|
|
255
|
-
def name_spaces=(name_spaces)
|
|
256
|
-
if name_spaces.nil?
|
|
257
|
-
fail ArgumentError, 'name_spaces cannot be nil'
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
@name_spaces = name_spaces
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
# Checks equality by comparing each attribute.
|
|
264
|
-
# @param [Object] Object to be compared
|
|
265
|
-
def ==(o)
|
|
266
|
-
return true if self.equal?(o)
|
|
267
|
-
self.class == o.class &&
|
|
268
|
-
verification_profile_id == o.verification_profile_id &&
|
|
269
|
-
provider == o.provider &&
|
|
270
|
-
exchange_mechanism == o.exchange_mechanism &&
|
|
271
|
-
document_type == o.document_type &&
|
|
272
|
-
name_spaces == o.name_spaces &&
|
|
273
|
-
digital_credentials_api_host == o.digital_credentials_api_host &&
|
|
274
|
-
android_native_app_package_name == o.android_native_app_package_name &&
|
|
275
|
-
android_native_app_signing_certificate_fingerprint == o.android_native_app_signing_certificate_fingerprint
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
# @see the `==` method
|
|
279
|
-
# @param [Object] Object to be compared
|
|
280
|
-
def eql?(o)
|
|
281
|
-
self == o
|
|
282
|
-
end
|
|
283
|
-
|
|
284
|
-
# Calculates hash code according to all attributes.
|
|
285
|
-
# @return [Integer] Hash code
|
|
286
|
-
def hash
|
|
287
|
-
[verification_profile_id, provider, exchange_mechanism, document_type, name_spaces, digital_credentials_api_host, android_native_app_package_name, android_native_app_signing_certificate_fingerprint].hash
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
# Builds the object from hash
|
|
291
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
292
|
-
# @return [Object] Returns the model itself
|
|
293
|
-
def self.build_from_hash(attributes)
|
|
294
|
-
return nil unless attributes.is_a?(Hash)
|
|
295
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
296
|
-
transformed_hash = {}
|
|
297
|
-
openapi_types.each_pair do |key, type|
|
|
298
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
299
|
-
transformed_hash["#{key}"] = nil
|
|
300
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
301
|
-
# check to ensure the input is an array given that the attribute
|
|
302
|
-
# is documented as an array but the input is not
|
|
303
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
304
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
305
|
-
end
|
|
306
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
307
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
308
|
-
end
|
|
309
|
-
end
|
|
310
|
-
new(transformed_hash)
|
|
311
|
-
end
|
|
312
|
-
|
|
313
|
-
# Deserializes the data based on type
|
|
314
|
-
# @param string type Data type
|
|
315
|
-
# @param string value Value to be deserialized
|
|
316
|
-
# @return [Object] Deserialized data
|
|
317
|
-
def self._deserialize(type, value)
|
|
318
|
-
case type.to_sym
|
|
319
|
-
when :Time
|
|
320
|
-
Time.parse(value)
|
|
321
|
-
when :Date
|
|
322
|
-
Date.parse(value)
|
|
323
|
-
when :String
|
|
324
|
-
value.to_s
|
|
325
|
-
when :Integer
|
|
326
|
-
value.to_i
|
|
327
|
-
when :Float
|
|
328
|
-
value.to_f
|
|
329
|
-
when :Boolean
|
|
330
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
331
|
-
true
|
|
332
|
-
else
|
|
333
|
-
false
|
|
334
|
-
end
|
|
335
|
-
when :Object
|
|
336
|
-
# generic object (usually a Hash), return directly
|
|
337
|
-
value
|
|
338
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
339
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
340
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
341
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
342
|
-
k_type = Regexp.last_match[:k_type]
|
|
343
|
-
v_type = Regexp.last_match[:v_type]
|
|
344
|
-
{}.tap do |hash|
|
|
345
|
-
value.each do |k, v|
|
|
346
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
347
|
-
end
|
|
348
|
-
end
|
|
349
|
-
else # model
|
|
350
|
-
# models (e.g. Pet) or oneOf
|
|
351
|
-
klass = TrinsicApi.const_get(type)
|
|
352
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
353
|
-
end
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
# Returns the string representation of the object
|
|
357
|
-
# @return [String] String presentation of the object
|
|
358
|
-
def to_s
|
|
359
|
-
to_hash.to_s
|
|
360
|
-
end
|
|
361
|
-
|
|
362
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
363
|
-
# @return [Hash] Returns the object in the form of hash
|
|
364
|
-
def to_body
|
|
365
|
-
to_hash
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
# Returns the object in the form of hash
|
|
369
|
-
# @return [Hash] Returns the object in the form of hash
|
|
370
|
-
def to_hash
|
|
371
|
-
hash = {}
|
|
372
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
373
|
-
value = self.send(attr)
|
|
374
|
-
if value.nil?
|
|
375
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
376
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
377
|
-
end
|
|
378
|
-
|
|
379
|
-
hash[param] = _to_hash(value)
|
|
380
|
-
end
|
|
381
|
-
hash
|
|
382
|
-
end
|
|
383
|
-
|
|
384
|
-
# Outputs non-array value in the form of hash
|
|
385
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
386
|
-
# @param [Object] value Any valid value
|
|
387
|
-
# @return [Hash] Returns the value in the form of hash
|
|
388
|
-
def _to_hash(value)
|
|
389
|
-
if value.is_a?(Array)
|
|
390
|
-
value.compact.map { |v| _to_hash(v) }
|
|
391
|
-
elsif value.is_a?(Hash)
|
|
392
|
-
{}.tap do |hash|
|
|
393
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
394
|
-
end
|
|
395
|
-
elsif value.respond_to? :to_hash
|
|
396
|
-
value.to_hash
|
|
397
|
-
else
|
|
398
|
-
value
|
|
399
|
-
end
|
|
400
|
-
end
|
|
401
|
-
|
|
402
|
-
end
|
|
403
|
-
|
|
404
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
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 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for TrinsicApi::AttachmentsApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'AttachmentsApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = TrinsicApi::AttachmentsApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of AttachmentsApi' do
|
|
30
|
-
it 'should create an instance of AttachmentsApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(TrinsicApi::AttachmentsApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for get_attachment
|
|
36
|
-
# Get Attachment
|
|
37
|
-
# Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
38
|
-
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @option opts [GetAttachmentRequest] :get_attachment_request
|
|
40
|
-
# @return [GetAttachmentResponse]
|
|
41
|
-
describe 'get_attachment test' do
|
|
42
|
-
it 'should work' do
|
|
43
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
end
|
data/spec/api/mdl_api_spec.rb
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
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 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for TrinsicApi::MdlApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'MdlApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = TrinsicApi::MdlApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of MdlApi' do
|
|
30
|
-
it 'should create an instance of MdlApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(TrinsicApi::MdlApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for create_mdl_exchange
|
|
36
|
-
# Create mDL Exchange
|
|
37
|
-
# Creates a new mDL Exchange, returning an exchange ID, request object string, and context string. mDL Exchanges are ephemeral until completion -- no state is stored within Trinsic until the exchange is finalized. This API currently only supports Google Wallet on Android via Web or Native. Apple Wallet support is coming soon.
|
|
38
|
-
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @option opts [CreateMdlExchangeRequest] :create_mdl_exchange_request
|
|
40
|
-
# @return [CreateMdlExchangeResponse]
|
|
41
|
-
describe 'create_mdl_exchange test' do
|
|
42
|
-
it 'should work' do
|
|
43
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# unit tests for finalize_mdl_exchange
|
|
48
|
-
# Finalize mDL Exchange
|
|
49
|
-
# Finalizes an mDL Exchange, processing the results
|
|
50
|
-
# @param [Hash] opts the optional parameters
|
|
51
|
-
# @option opts [FinalizeMdlExchangeRequest] :finalize_mdl_exchange_request
|
|
52
|
-
# @return [FinalizeMdlExchangeResponse]
|
|
53
|
-
describe 'finalize_mdl_exchange test' do
|
|
54
|
-
it 'should work' do
|
|
55
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
end
|
|
@@ -1,72 +0,0 @@
|
|
|
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 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for TrinsicApi::NetworkApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'NetworkApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = TrinsicApi::NetworkApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of NetworkApi' do
|
|
30
|
-
it 'should create an instance of NetworkApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(TrinsicApi::NetworkApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for list_provider_contracts
|
|
36
|
-
# List Provider Contracts
|
|
37
|
-
# List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
|
|
38
|
-
# @param verification_profile_id
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [ListProviderContractsResponse]
|
|
41
|
-
describe 'list_provider_contracts test' do
|
|
42
|
-
it 'should work' do
|
|
43
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# unit tests for list_providers
|
|
48
|
-
# List Providers
|
|
49
|
-
# List all identity providers available for use
|
|
50
|
-
# @param verification_profile_id
|
|
51
|
-
# @param [Hash] opts the optional parameters
|
|
52
|
-
# @option opts [String] :health Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\".
|
|
53
|
-
# @return [ListProvidersResponse]
|
|
54
|
-
describe 'list_providers test' do
|
|
55
|
-
it 'should work' do
|
|
56
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
# unit tests for recommend_providers
|
|
61
|
-
# Recommend Providers
|
|
62
|
-
# Generate provider recommendations based on signals about the user's location (phone number, countries, states).
|
|
63
|
-
# @param [Hash] opts the optional parameters
|
|
64
|
-
# @option opts [RecommendRequest] :recommend_request
|
|
65
|
-
# @return [RecommendResponse]
|
|
66
|
-
describe 'recommend_providers test' do
|
|
67
|
-
it 'should work' do
|
|
68
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
end
|
|
@@ -1,48 +0,0 @@
|
|
|
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 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
require 'date'
|
|
16
|
-
|
|
17
|
-
# Unit tests for TrinsicApi::RecommendResponse
|
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
-
# Please update as you see appropriate
|
|
20
|
-
describe TrinsicApi::RecommendResponse do
|
|
21
|
-
let(:instance) { TrinsicApi::RecommendResponse.new }
|
|
22
|
-
|
|
23
|
-
describe 'test an instance of RecommendResponse' do
|
|
24
|
-
it 'should create an instance of RecommendResponse' do
|
|
25
|
-
# uncomment below to test the instance creation
|
|
26
|
-
#expect(instance).to be_instance_of(TrinsicApi::RecommendResponse)
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
describe 'test attribute "recognized"' do
|
|
31
|
-
it 'should work' do
|
|
32
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
describe 'test attribute "relevant"' do
|
|
37
|
-
it 'should work' do
|
|
38
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
describe 'test attribute "remainder"' do
|
|
43
|
-
it 'should work' do
|
|
44
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
end
|