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,28 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::AttachmentAccessKeys
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **selfie** | **String** | | [optional] |
|
|
8
|
-
| **document_front** | **String** | | [optional] |
|
|
9
|
-
| **document_back** | **String** | | [optional] |
|
|
10
|
-
| **document_portrait** | **String** | | [optional] |
|
|
11
|
-
| **document_signature** | **String** | | [optional] |
|
|
12
|
-
| **provider** | [**ProviderAttachments**](ProviderAttachments.md) | | |
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```ruby
|
|
17
|
-
require 'trinsic_api'
|
|
18
|
-
|
|
19
|
-
instance = TrinsicApi::AttachmentAccessKeys.new(
|
|
20
|
-
selfie: null,
|
|
21
|
-
document_front: null,
|
|
22
|
-
document_back: null,
|
|
23
|
-
document_portrait: null,
|
|
24
|
-
document_signature: null,
|
|
25
|
-
provider: null
|
|
26
|
-
)
|
|
27
|
-
```
|
|
28
|
-
|
data/docs/AttachmentsApi.md
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::AttachmentsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.trinsic.id*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**get_attachment**](AttachmentsApi.md#get_attachment) | **POST** /api/v1/attachments/attachment | Get Attachment |
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## get_attachment
|
|
11
|
-
|
|
12
|
-
> <GetAttachmentResponse> get_attachment(opts)
|
|
13
|
-
|
|
14
|
-
Get Attachment
|
|
15
|
-
|
|
16
|
-
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.
|
|
17
|
-
|
|
18
|
-
### Examples
|
|
19
|
-
|
|
20
|
-
```ruby
|
|
21
|
-
require 'time'
|
|
22
|
-
require 'trinsic_api'
|
|
23
|
-
# setup authorization
|
|
24
|
-
TrinsicApi.configure do |config|
|
|
25
|
-
# Configure Bearer authorization: Bearer
|
|
26
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
api_instance = TrinsicApi::AttachmentsApi.new
|
|
30
|
-
opts = {
|
|
31
|
-
get_attachment_request: TrinsicApi::GetAttachmentRequest.new({attachment_access_key: 'attachment_access_key_example', session_id: '00000000-0000-0000-0000-000000000000'}) # GetAttachmentRequest |
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
begin
|
|
35
|
-
# Get Attachment
|
|
36
|
-
result = api_instance.get_attachment(opts)
|
|
37
|
-
p result
|
|
38
|
-
rescue TrinsicApi::ApiError => e
|
|
39
|
-
puts "Error when calling AttachmentsApi->get_attachment: #{e}"
|
|
40
|
-
end
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
#### Using the get_attachment_with_http_info variant
|
|
44
|
-
|
|
45
|
-
This returns an Array which contains the response data, status code and headers.
|
|
46
|
-
|
|
47
|
-
> <Array(<GetAttachmentResponse>, Integer, Hash)> get_attachment_with_http_info(opts)
|
|
48
|
-
|
|
49
|
-
```ruby
|
|
50
|
-
begin
|
|
51
|
-
# Get Attachment
|
|
52
|
-
data, status_code, headers = api_instance.get_attachment_with_http_info(opts)
|
|
53
|
-
p status_code # => 2xx
|
|
54
|
-
p headers # => { ... }
|
|
55
|
-
p data # => <GetAttachmentResponse>
|
|
56
|
-
rescue TrinsicApi::ApiError => e
|
|
57
|
-
puts "Error when calling AttachmentsApi->get_attachment_with_http_info: #{e}"
|
|
58
|
-
end
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Parameters
|
|
62
|
-
|
|
63
|
-
| Name | Type | Description | Notes |
|
|
64
|
-
| ---- | ---- | ----------- | ----- |
|
|
65
|
-
| **get_attachment_request** | [**GetAttachmentRequest**](GetAttachmentRequest.md) | | [optional] |
|
|
66
|
-
|
|
67
|
-
### Return type
|
|
68
|
-
|
|
69
|
-
[**GetAttachmentResponse**](GetAttachmentResponse.md)
|
|
70
|
-
|
|
71
|
-
### Authorization
|
|
72
|
-
|
|
73
|
-
[Bearer](../README.md#Bearer)
|
|
74
|
-
|
|
75
|
-
### HTTP request headers
|
|
76
|
-
|
|
77
|
-
- **Content-Type**: application/json, text/json, application/*+json
|
|
78
|
-
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
|
79
|
-
|
data/docs/BangladeshNidInput.md
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::BangladeshNidInput
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **national_id_number** | **String** | The user's Bangladesh National ID number. | |
|
|
8
|
-
| **date_of_birth** | **Date** | The user's date of birth, in `YYYY-MM-DD` format | |
|
|
9
|
-
| **name** | **String** | The user's full name | |
|
|
10
|
-
| **photo_byes** | **String** | The raw bytes of the photo file collected from the user. | [optional] |
|
|
11
|
-
| **photo_image_mime_type** | **String** | The MIME Type of the file contained in `PhotoByes`. Must be one of `image/jpeg`, or `image/png`. | [optional] |
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```ruby
|
|
16
|
-
require 'trinsic_api'
|
|
17
|
-
|
|
18
|
-
instance = TrinsicApi::BangladeshNidInput.new(
|
|
19
|
-
national_id_number: null,
|
|
20
|
-
date_of_birth: null,
|
|
21
|
-
name: null,
|
|
22
|
-
photo_byes: null,
|
|
23
|
-
photo_image_mime_type: null
|
|
24
|
-
)
|
|
25
|
-
```
|
|
26
|
-
|
data/docs/ContractField.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::ContractField
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **name** | **String** | The name of the field as it appears in verification results. | |
|
|
8
|
-
| **scope** | **String** | The scope of the field as it appears in verification results. | |
|
|
9
|
-
| **outputted** | [**FieldAvailability**](FieldAvailability.md) | Indicates when this field will be present in verification results. | |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'trinsic_api'
|
|
15
|
-
|
|
16
|
-
instance = TrinsicApi::ContractField.new(
|
|
17
|
-
name: person.givenName,
|
|
18
|
-
scope: person.givenName,
|
|
19
|
-
outputted: null
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::ContractIdentifierField
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **scope** | **String** | The scope of the identifier as it appears in verification results. | |
|
|
8
|
-
| **outputted** | [**FieldAvailability**](FieldAvailability.md) | Indicates when this field will be present in verification results. | |
|
|
9
|
-
| **description** | **String** | A human-readable description of the identifier, written by Trinsic. | |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'trinsic_api'
|
|
15
|
-
|
|
16
|
-
instance = TrinsicApi::ContractIdentifierField.new(
|
|
17
|
-
scope: vatNumber,
|
|
18
|
-
outputted: null,
|
|
19
|
-
description: Italian fiscal number from the SPID identity
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::CreateMdlExchangeRequest
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **verification_profile_id** | **String** | The ID of the VerificationProfile to use for this mDL exchange. | |
|
|
8
|
-
| **provider** | **String** | The ID of the provider to use for this mDL exchange. | |
|
|
9
|
-
| **exchange_mechanism** | [**MdlExchangeMechanism**](MdlExchangeMechanism.md) | The mechanism by which the mDL exchange will occur (web, native SDK, etc.) | |
|
|
10
|
-
| **document_type** | **String** | 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) | |
|
|
11
|
-
| **name_spaces** | **Hash<String, Hash<String, Boolean>>** | 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. | |
|
|
12
|
-
| **digital_credentials_api_host** | **String** | 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. | [optional] |
|
|
13
|
-
| **android_native_app_package_name** | **String** | 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. | [optional] |
|
|
14
|
-
| **android_native_app_signing_certificate_fingerprint** | **String** | 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. | [optional] |
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```ruby
|
|
19
|
-
require 'trinsic_api'
|
|
20
|
-
|
|
21
|
-
instance = TrinsicApi::CreateMdlExchangeRequest.new(
|
|
22
|
-
verification_profile_id: null,
|
|
23
|
-
provider: google-wallet,
|
|
24
|
-
exchange_mechanism: null,
|
|
25
|
-
document_type: org.iso.18013.5.1.mDL,
|
|
26
|
-
name_spaces: {"org.iso.18013.5.1":{"given_name":true,"family_name":true,"birth_date":true,"age_over_21":true}},
|
|
27
|
-
digital_credentials_api_host: verify.trinsic.id,
|
|
28
|
-
android_native_app_package_name: id.trinsic.example,
|
|
29
|
-
android_native_app_signing_certificate_fingerprint: 96:77:82:71:A3:FC:26:54:4C:8E:06:70:B7:BA:5D:E2:A5:36:F1:ED:8F:8A:70:81:26:98:EC:87:86:0F:D4:42
|
|
30
|
-
)
|
|
31
|
-
```
|
|
32
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::CreateMdlExchangeResponse
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **exchange_id** | **String** | The ID of the mDL exchange which was created. | |
|
|
8
|
-
| **request_object_base64_url** | **String** | The request object for this mDL exchange. Pass this into a Trinsic mDL SDK (Web, iOS, Android) exactly as-is to initiate the mDL exchange. | |
|
|
9
|
-
| **exchange_context** | **String** | The encrypted exchange context for this mDL exchange. This must be passed back to the API during finalization, alongside the response token from the wallet. | |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'trinsic_api'
|
|
15
|
-
|
|
16
|
-
instance = TrinsicApi::CreateMdlExchangeResponse.new(
|
|
17
|
-
exchange_id: null,
|
|
18
|
-
request_object_base64_url: null,
|
|
19
|
-
exchange_context: null
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::DocumentScanAttachments
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **report** | **String** | | [optional] |
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'trinsic_api'
|
|
13
|
-
|
|
14
|
-
instance = TrinsicApi::DocumentScanAttachments.new(
|
|
15
|
-
report: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::FinalizeMdlExchangeRequest
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **verification_profile_id** | **String** | The ID of the VerificationProfile which was used to create the mDL exchange. | |
|
|
8
|
-
| **exchange_id** | **String** | The ID of the mDL exchange to finalize. | |
|
|
9
|
-
| **exchange_context** | **String** | The encrypted exchange context which was returned when the mDL exchange was created. | |
|
|
10
|
-
| **response_token** | **String** | The response token returned by Trinsic's SDK after a successful mDL exchange. | |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'trinsic_api'
|
|
16
|
-
|
|
17
|
-
instance = TrinsicApi::FinalizeMdlExchangeRequest.new(
|
|
18
|
-
verification_profile_id: null,
|
|
19
|
-
exchange_id: null,
|
|
20
|
-
exchange_context: null,
|
|
21
|
-
response_token: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::FinalizeMdlExchangeResponse
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **exchange_id** | **String** | The Exchange ID of the mDL exchange which was just finalized. | |
|
|
8
|
-
| **created_session** | [**Session**](Session.md) | The AcceptanceSession which was created as a result of finalizing this mDL exchange. | |
|
|
9
|
-
| **mdl_data** | [**MdlIdentityData**](MdlIdentityData.md) | The identity data from the mDL exchange, in a semi-normalized format. Supports all possible fields and namespaces, but does not map them to Trinsic's common data model. | [optional] |
|
|
10
|
-
| **normalized_identity_data** | [**IdentityData**](IdentityData.md) | The identity data from the mDL exchange, normalized into Trinsic's common data model. | [optional] |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'trinsic_api'
|
|
16
|
-
|
|
17
|
-
instance = TrinsicApi::FinalizeMdlExchangeResponse.new(
|
|
18
|
-
exchange_id: null,
|
|
19
|
-
created_session: null,
|
|
20
|
-
mdl_data: null,
|
|
21
|
-
normalized_identity_data: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
data/docs/Identifier.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::Identifier
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **identifier** | **String** | | |
|
|
8
|
-
| **scope** | **String** | | |
|
|
9
|
-
| **description** | **String** | | |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'trinsic_api'
|
|
15
|
-
|
|
16
|
-
instance = TrinsicApi::Identifier.new(
|
|
17
|
-
identifier: null,
|
|
18
|
-
scope: null,
|
|
19
|
-
description: null
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::ListProviderContractsResponse
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **provider_contracts** | [**Array<ProviderContract>**](ProviderContract.md) | Contracts for all Providers available to your App, filtered by your App's current test mode setting. | |
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'trinsic_api'
|
|
13
|
-
|
|
14
|
-
instance = TrinsicApi::ListProviderContractsResponse.new(
|
|
15
|
-
provider_contracts: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
data/docs/MdlApi.md
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::MdlApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.trinsic.id*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**create_mdl_exchange**](MdlApi.md#create_mdl_exchange) | **POST** /api/valpha/mdl/exchanges/create | Create mDL Exchange |
|
|
8
|
-
| [**finalize_mdl_exchange**](MdlApi.md#finalize_mdl_exchange) | **POST** /api/valpha/mdl/exchanges/finalize | Finalize mDL Exchange |
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## create_mdl_exchange
|
|
12
|
-
|
|
13
|
-
> <CreateMdlExchangeResponse> create_mdl_exchange(opts)
|
|
14
|
-
|
|
15
|
-
Create mDL Exchange
|
|
16
|
-
|
|
17
|
-
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.
|
|
18
|
-
|
|
19
|
-
### Examples
|
|
20
|
-
|
|
21
|
-
```ruby
|
|
22
|
-
require 'time'
|
|
23
|
-
require 'trinsic_api'
|
|
24
|
-
# setup authorization
|
|
25
|
-
TrinsicApi.configure do |config|
|
|
26
|
-
# Configure Bearer authorization: Bearer
|
|
27
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
api_instance = TrinsicApi::MdlApi.new
|
|
31
|
-
opts = {
|
|
32
|
-
create_mdl_exchange_request: TrinsicApi::CreateMdlExchangeRequest.new({verification_profile_id: 'verification_profile_id_example', provider: 'google-wallet', exchange_mechanism: TrinsicApi::MdlExchangeMechanism::NATIVE_APP, document_type: 'org.iso.18013.5.1.mDL', name_spaces: { key: { key: false}}}) # CreateMdlExchangeRequest |
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
begin
|
|
36
|
-
# Create mDL Exchange
|
|
37
|
-
result = api_instance.create_mdl_exchange(opts)
|
|
38
|
-
p result
|
|
39
|
-
rescue TrinsicApi::ApiError => e
|
|
40
|
-
puts "Error when calling MdlApi->create_mdl_exchange: #{e}"
|
|
41
|
-
end
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
#### Using the create_mdl_exchange_with_http_info variant
|
|
45
|
-
|
|
46
|
-
This returns an Array which contains the response data, status code and headers.
|
|
47
|
-
|
|
48
|
-
> <Array(<CreateMdlExchangeResponse>, Integer, Hash)> create_mdl_exchange_with_http_info(opts)
|
|
49
|
-
|
|
50
|
-
```ruby
|
|
51
|
-
begin
|
|
52
|
-
# Create mDL Exchange
|
|
53
|
-
data, status_code, headers = api_instance.create_mdl_exchange_with_http_info(opts)
|
|
54
|
-
p status_code # => 2xx
|
|
55
|
-
p headers # => { ... }
|
|
56
|
-
p data # => <CreateMdlExchangeResponse>
|
|
57
|
-
rescue TrinsicApi::ApiError => e
|
|
58
|
-
puts "Error when calling MdlApi->create_mdl_exchange_with_http_info: #{e}"
|
|
59
|
-
end
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### Parameters
|
|
63
|
-
|
|
64
|
-
| Name | Type | Description | Notes |
|
|
65
|
-
| ---- | ---- | ----------- | ----- |
|
|
66
|
-
| **create_mdl_exchange_request** | [**CreateMdlExchangeRequest**](CreateMdlExchangeRequest.md) | | [optional] |
|
|
67
|
-
|
|
68
|
-
### Return type
|
|
69
|
-
|
|
70
|
-
[**CreateMdlExchangeResponse**](CreateMdlExchangeResponse.md)
|
|
71
|
-
|
|
72
|
-
### Authorization
|
|
73
|
-
|
|
74
|
-
[Bearer](../README.md#Bearer)
|
|
75
|
-
|
|
76
|
-
### HTTP request headers
|
|
77
|
-
|
|
78
|
-
- **Content-Type**: application/json, text/json, application/*+json
|
|
79
|
-
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
## finalize_mdl_exchange
|
|
83
|
-
|
|
84
|
-
> <FinalizeMdlExchangeResponse> finalize_mdl_exchange(opts)
|
|
85
|
-
|
|
86
|
-
Finalize mDL Exchange
|
|
87
|
-
|
|
88
|
-
Finalizes an mDL Exchange, processing the results
|
|
89
|
-
|
|
90
|
-
### Examples
|
|
91
|
-
|
|
92
|
-
```ruby
|
|
93
|
-
require 'time'
|
|
94
|
-
require 'trinsic_api'
|
|
95
|
-
# setup authorization
|
|
96
|
-
TrinsicApi.configure do |config|
|
|
97
|
-
# Configure Bearer authorization: Bearer
|
|
98
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
api_instance = TrinsicApi::MdlApi.new
|
|
102
|
-
opts = {
|
|
103
|
-
finalize_mdl_exchange_request: TrinsicApi::FinalizeMdlExchangeRequest.new({verification_profile_id: 'verification_profile_id_example', exchange_id: 'exchange_id_example', exchange_context: 'exchange_context_example', response_token: 'response_token_example'}) # FinalizeMdlExchangeRequest |
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
begin
|
|
107
|
-
# Finalize mDL Exchange
|
|
108
|
-
result = api_instance.finalize_mdl_exchange(opts)
|
|
109
|
-
p result
|
|
110
|
-
rescue TrinsicApi::ApiError => e
|
|
111
|
-
puts "Error when calling MdlApi->finalize_mdl_exchange: #{e}"
|
|
112
|
-
end
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
#### Using the finalize_mdl_exchange_with_http_info variant
|
|
116
|
-
|
|
117
|
-
This returns an Array which contains the response data, status code and headers.
|
|
118
|
-
|
|
119
|
-
> <Array(<FinalizeMdlExchangeResponse>, Integer, Hash)> finalize_mdl_exchange_with_http_info(opts)
|
|
120
|
-
|
|
121
|
-
```ruby
|
|
122
|
-
begin
|
|
123
|
-
# Finalize mDL Exchange
|
|
124
|
-
data, status_code, headers = api_instance.finalize_mdl_exchange_with_http_info(opts)
|
|
125
|
-
p status_code # => 2xx
|
|
126
|
-
p headers # => { ... }
|
|
127
|
-
p data # => <FinalizeMdlExchangeResponse>
|
|
128
|
-
rescue TrinsicApi::ApiError => e
|
|
129
|
-
puts "Error when calling MdlApi->finalize_mdl_exchange_with_http_info: #{e}"
|
|
130
|
-
end
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Parameters
|
|
134
|
-
|
|
135
|
-
| Name | Type | Description | Notes |
|
|
136
|
-
| ---- | ---- | ----------- | ----- |
|
|
137
|
-
| **finalize_mdl_exchange_request** | [**FinalizeMdlExchangeRequest**](FinalizeMdlExchangeRequest.md) | | [optional] |
|
|
138
|
-
|
|
139
|
-
### Return type
|
|
140
|
-
|
|
141
|
-
[**FinalizeMdlExchangeResponse**](FinalizeMdlExchangeResponse.md)
|
|
142
|
-
|
|
143
|
-
### Authorization
|
|
144
|
-
|
|
145
|
-
[Bearer](../README.md#Bearer)
|
|
146
|
-
|
|
147
|
-
### HTTP request headers
|
|
148
|
-
|
|
149
|
-
- **Content-Type**: application/json, text/json, application/*+json
|
|
150
|
-
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
|
151
|
-
|
data/docs/MdlCertificateData.md
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::MdlCertificateData
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **serial_number** | **String** | The serial number of the certificate | |
|
|
8
|
-
| **common_name** | **String** | The common name (CN) of the certificate | |
|
|
9
|
-
| **state_or_province_name** | **String** | The state or province name (ST) of the certificate. May be an empty string for certificates which are not state-specific (e.g., Google Wallet's ID Pass certificates). | |
|
|
10
|
-
| **not_before** | **Time** | The date before which this certificate is not valid. | |
|
|
11
|
-
| **not_after** | **Time** | The date after which this certificate is not valid. | |
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```ruby
|
|
16
|
-
require 'trinsic_api'
|
|
17
|
-
|
|
18
|
-
instance = TrinsicApi::MdlCertificateData.new(
|
|
19
|
-
serial_number: null,
|
|
20
|
-
common_name: null,
|
|
21
|
-
state_or_province_name: null,
|
|
22
|
-
not_before: null,
|
|
23
|
-
not_after: null
|
|
24
|
-
)
|
|
25
|
-
```
|
|
26
|
-
|
data/docs/MdlIdentityData.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# TrinsicApi::MdlIdentityData
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **iaca_root_certificate** | [**MdlCertificateData**](MdlCertificateData.md) | Information about the IACA Root Certificate which signed the Issuer Certificate for this mDL. | |
|
|
8
|
-
| **document_signer_certificate** | [**MdlCertificateData**](MdlCertificateData.md) | Information about the Document Signer Certificate which signed the mDL presented by the user. | |
|
|
9
|
-
| **name_spaces** | **Hash<String, Hash<String, ExternalMdlFieldData>>** | The namespaces, and fields within those namespaces, which were present in the processed mDL. | |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'trinsic_api'
|
|
15
|
-
|
|
16
|
-
instance = TrinsicApi::MdlIdentityData.new(
|
|
17
|
-
iaca_root_certificate: null,
|
|
18
|
-
document_signer_certificate: null,
|
|
19
|
-
name_spaces: {"org.iso.18013.5.1":{"family_name":{"type":"String","value":"DOE"},"given_name":{"type":"String","value":"JOHN"},"birth_date":{"type":"String","value":"2000-03-27"},"age_over_21":{"type":"Boolean","value":"true"}}}
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|