trinsic_api 2.2.0 → 2.3.0.pre.alpha2
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/AddRedirectUriResponse.md +18 -0
- data/docs/AttachmentAccessKeys.md +2 -0
- data/docs/ContractField.md +2 -0
- data/docs/ContractIdentifierField.md +22 -0
- data/docs/CreateHostedProviderSessionResponse.md +1 -1
- data/docs/CreateVerificationProfileResponse.md +18 -0
- data/docs/CreateWidgetSessionResponse.md +1 -1
- data/docs/EnvironmentRedirectUrisAddRequest.md +18 -0
- data/docs/EnvironmentRedirectUrisApi.md +222 -0
- data/docs/FaydaProviderOutput.md +18 -0
- data/docs/Identifier.md +22 -0
- data/docs/IdentityData.md +5 -1
- data/docs/IntegrationStep.md +1 -1
- data/docs/KenyaNidBiometric2Input.md +22 -0
- data/docs/KenyaNidInput.md +1 -1
- data/docs/KenyaNidLookup2Input.md +18 -0
- data/docs/KenyaNidMatch2Input.md +28 -0
- data/docs/ListEnvironmentRedirectUrisResponse.md +20 -0
- data/docs/ListVerificationProfilesResponse.md +20 -0
- data/docs/MexicoCurpProviderOutput.md +18 -0
- data/docs/NigeriaNinInput.md +1 -1
- data/docs/PhilippinesDigitalNidProviderOutput.md +18 -0
- data/docs/PhilippinesPhysicalNidProviderOutput.md +18 -0
- data/docs/ProviderContract.md +2 -0
- data/docs/ProviderInput.md +8 -0
- data/docs/ProviderOutput.md +26 -0
- data/docs/RedirectUriResponse.md +20 -0
- data/docs/SexV1.md +15 -0
- data/docs/SouthAfricaNidInput.md +1 -1
- data/docs/SouthAfricaNidLookup2Input.md +18 -0
- data/docs/SpidBillingInformation.md +22 -0
- data/docs/SpidInput.md +3 -1
- data/docs/SpidProviderOutput.md +44 -0
- data/docs/VerificationProfileResponse.md +28 -0
- data/docs/VerificationProfilesApi.md +231 -0
- data/lib/trinsic_api/api/environment_redirect_uris_api.rb +228 -0
- data/lib/trinsic_api/api/verification_profiles_api.rb +273 -0
- data/lib/trinsic_api/models/add_redirect_uri_response.rb +237 -0
- data/lib/trinsic_api/models/attachment_access_keys.rb +11 -1
- data/lib/trinsic_api/models/contract_field.rb +28 -1
- data/lib/trinsic_api/models/contract_identifier_field.rb +315 -0
- data/lib/trinsic_api/models/create_verification_profile_response.rb +238 -0
- data/lib/trinsic_api/models/environment_redirect_uris_add_request.rb +237 -0
- data/lib/trinsic_api/models/fayda_provider_output.rb +222 -0
- data/lib/trinsic_api/models/identifier.rb +289 -0
- data/lib/trinsic_api/models/identity_data.rb +43 -5
- data/lib/trinsic_api/models/kenya_nid_biometric2_input.rb +246 -0
- data/lib/trinsic_api/models/kenya_nid_input.rb +1 -1
- data/lib/trinsic_api/models/kenya_nid_lookup2_input.rb +222 -0
- data/lib/trinsic_api/models/kenya_nid_match2_input.rb +299 -0
- data/lib/trinsic_api/models/list_environment_redirect_uris_response.rb +268 -0
- data/lib/trinsic_api/models/list_verification_profiles_response.rb +266 -0
- data/lib/trinsic_api/models/mexico_curp_provider_output.rb +222 -0
- data/lib/trinsic_api/models/nigeria_nin_input.rb +1 -1
- data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +238 -0
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +238 -0
- data/lib/trinsic_api/models/provider_contract.rb +14 -1
- data/lib/trinsic_api/models/provider_input.rb +45 -1
- data/lib/trinsic_api/models/provider_output.rb +261 -0
- data/lib/trinsic_api/models/redirect_uri_response.rb +263 -0
- data/lib/trinsic_api/models/sex_v1.rb +42 -0
- data/lib/trinsic_api/models/south_africa_nid_input.rb +1 -1
- data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +222 -0
- data/lib/trinsic_api/models/spid_billing_information.rb +293 -0
- data/lib/trinsic_api/models/spid_input.rb +16 -5
- data/lib/trinsic_api/models/spid_provider_output.rb +397 -0
- data/lib/trinsic_api/models/verification_profile_response.rb +375 -0
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +23 -0
- data/spec/api/environment_redirect_uris_api_spec.rb +72 -0
- data/spec/api/verification_profiles_api_spec.rb +76 -0
- data/spec/models/add_redirect_uri_response_spec.rb +36 -0
- data/spec/models/attachment_access_keys_spec.rb +6 -0
- data/spec/models/contract_field_spec.rb +6 -0
- data/spec/models/contract_identifier_field_spec.rb +48 -0
- data/spec/models/create_verification_profile_response_spec.rb +36 -0
- data/spec/models/environment_redirect_uris_add_request_spec.rb +36 -0
- data/spec/models/fayda_provider_output_spec.rb +36 -0
- data/spec/models/identifier_spec.rb +48 -0
- data/spec/models/identity_data_spec.rb +12 -0
- data/spec/models/kenya_nid_biometric2_input_spec.rb +48 -0
- data/spec/models/kenya_nid_lookup2_input_spec.rb +36 -0
- data/spec/models/kenya_nid_match2_input_spec.rb +66 -0
- data/spec/models/list_environment_redirect_uris_response_spec.rb +42 -0
- data/spec/models/list_verification_profiles_response_spec.rb +42 -0
- data/spec/models/mexico_curp_provider_output_spec.rb +36 -0
- data/spec/models/philippines_digital_nid_provider_output_spec.rb +36 -0
- data/spec/models/philippines_physical_nid_provider_output_spec.rb +36 -0
- data/spec/models/provider_contract_spec.rb +6 -0
- data/spec/models/provider_input_spec.rb +24 -0
- data/spec/models/provider_output_spec.rb +60 -0
- data/spec/models/redirect_uri_response_spec.rb +42 -0
- data/spec/models/sex_v1_spec.rb +30 -0
- data/spec/models/south_africa_nid_lookup2_input_spec.rb +36 -0
- data/spec/models/spid_billing_information_spec.rb +48 -0
- data/spec/models/spid_input_spec.rb +6 -0
- data/spec/models/spid_provider_output_spec.rb +114 -0
- data/spec/models/verification_profile_response_spec.rb +66 -0
- metadata +94 -2
data/docs/ProviderInput.md
CHANGED
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **kenya_biometric2** | [**KenyaNidBiometric2Input**](KenyaNidBiometric2Input.md) | Input for the `kenya-nid-match-biometric-2` provider | [optional] |
|
|
7
8
|
| **indonesia_nik** | [**IndonesiaNikInput**](IndonesiaNikInput.md) | Input for the `indonesia-nik-lookup` provider | [optional] |
|
|
8
9
|
| **indonesia_dukcapil_match** | [**IndonesiaDukcapilMatchInput**](IndonesiaDukcapilMatchInput.md) | Input for the `indonesia-dukcapil-match` provider | [optional] |
|
|
9
10
|
| **mexico_curp** | [**MexicoCurpInput**](MexicoCurpInput.md) | Input for the `mexico-curp-lookup` provider | [optional] |
|
|
10
11
|
| **south_africa_nid** | [**SouthAfricaNidInput**](SouthAfricaNidInput.md) | Input for the `south-africa-nid-lookup` provider | [optional] |
|
|
11
12
|
| **kenya_nid** | [**KenyaNidInput**](KenyaNidInput.md) | Input for the `kenya-nid-lookup` provider | [optional] |
|
|
13
|
+
| **kenya_nid_match2** | [**KenyaNidMatch2Input**](KenyaNidMatch2Input.md) | Input for the `kenya-nid-match-2` provider | [optional] |
|
|
14
|
+
| **kenya_nid_lookup2** | [**KenyaNidLookup2Input**](KenyaNidLookup2Input.md) | Input for the `kenya-nid-lookup-2` provider | [optional] |
|
|
15
|
+
| **south_africa_nid_lookup2** | [**SouthAfricaNidLookup2Input**](SouthAfricaNidLookup2Input.md) | Input for the `south-africa-nid-lookup-2` provider | [optional] |
|
|
12
16
|
| **nigeria_nin** | [**NigeriaNinInput**](NigeriaNinInput.md) | Input for the `nigeria-nin-lookup` provider | [optional] |
|
|
13
17
|
| **aadhaar** | [**AadhaarInput**](AadhaarInput.md) | Input for the `india-digilocker-aadhaar-match` provider | [optional] |
|
|
14
18
|
| **bangladesh_national_id** | [**BangladeshNidInput**](BangladeshNidInput.md) | Input for the `bangladesh-nid` provider | [optional] |
|
|
@@ -31,11 +35,15 @@
|
|
|
31
35
|
require 'trinsic_api'
|
|
32
36
|
|
|
33
37
|
instance = TrinsicApi::ProviderInput.new(
|
|
38
|
+
kenya_biometric2: null,
|
|
34
39
|
indonesia_nik: null,
|
|
35
40
|
indonesia_dukcapil_match: null,
|
|
36
41
|
mexico_curp: null,
|
|
37
42
|
south_africa_nid: null,
|
|
38
43
|
kenya_nid: null,
|
|
44
|
+
kenya_nid_match2: null,
|
|
45
|
+
kenya_nid_lookup2: null,
|
|
46
|
+
south_africa_nid_lookup2: null,
|
|
39
47
|
nigeria_nin: null,
|
|
40
48
|
aadhaar: null,
|
|
41
49
|
bangladesh_national_id: null,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# TrinsicApi::ProviderOutput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **italy_spid** | [**SpidProviderOutput**](SpidProviderOutput.md) | | [optional] |
|
|
8
|
+
| **mexico_curp_lookup** | [**MexicoCurpProviderOutput**](MexicoCurpProviderOutput.md) | | [optional] |
|
|
9
|
+
| **ethiopia_fayda** | [**FaydaProviderOutput**](FaydaProviderOutput.md) | | [optional] |
|
|
10
|
+
| **philippines_physical_national_id_qr** | [**PhilippinesPhysicalNidProviderOutput**](PhilippinesPhysicalNidProviderOutput.md) | | [optional] |
|
|
11
|
+
| **philippines_digital_national_id_qr** | [**PhilippinesDigitalNidProviderOutput**](PhilippinesDigitalNidProviderOutput.md) | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'trinsic_api'
|
|
17
|
+
|
|
18
|
+
instance = TrinsicApi::ProviderOutput.new(
|
|
19
|
+
italy_spid: null,
|
|
20
|
+
mexico_curp_lookup: null,
|
|
21
|
+
ethiopia_fayda: null,
|
|
22
|
+
philippines_physical_national_id_qr: null,
|
|
23
|
+
philippines_digital_national_id_qr: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# TrinsicApi::RedirectUriResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **uri** | **String** | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'trinsic_api'
|
|
14
|
+
|
|
15
|
+
instance = TrinsicApi::RedirectUriResponse.new(
|
|
16
|
+
id: null,
|
|
17
|
+
uri: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
data/docs/SexV1.md
ADDED
data/docs/SouthAfricaNidInput.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **full_name** | **String** | The user's full name as it appears in their National ID | |
|
|
8
8
|
| **date_of_birth** | **Date** | The user's date of birth, in `YYYY-MM-DD` format | |
|
|
9
9
|
| **gender** | **String** | The user's gender as it appears in their National ID (e.g., male, female) | |
|
|
10
|
-
| **national_id_number** | **String** | The user's
|
|
10
|
+
| **national_id_number** | **String** | The user's National ID number | |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# TrinsicApi::SouthAfricaNidLookup2Input
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id_number** | **String** | The user's National ID number | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'trinsic_api'
|
|
13
|
+
|
|
14
|
+
instance = TrinsicApi::SouthAfricaNidLookup2Input.new(
|
|
15
|
+
id_number: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# TrinsicApi::SpidBillingInformation
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **is_billable** | **Boolean** | Whether this SPID verification has resulted in a billable event. | |
|
|
8
|
+
| **verification_type** | **String** | The billable verification type for this SPID verification. Possible values: \"Authentication\" | \"Registration\" | |
|
|
9
|
+
| **verification_level** | **Integer** | The billable verification level for this SPID verification. Possible values: 1 | 2 | 3 | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'trinsic_api'
|
|
15
|
+
|
|
16
|
+
instance = TrinsicApi::SpidBillingInformation.new(
|
|
17
|
+
is_billable: true,
|
|
18
|
+
verification_type: "Authentication",
|
|
19
|
+
verification_level: 1
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/SpidInput.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **sub_provider_id** | **String** | The ID of the specific IDP to invoke within SPID. If not specified, the user will be prompted to select an IDP. | [optional] |
|
|
8
|
+
| **billing_tracking_secret** | **String** | Only applicable if period-based billing is enabled for your Verification Profile. Contact Trinsic to enable this. A secret UTF-8 string between 32 and 64 characters in length, used to enable privacy-preserving tracking of unique user verifications during a billing period. WARNING: This value must NOT change during the course of a billing period for a given Verification Profile, or double-billing may occur. If multiple Verification Profiles are configured to use the same Trinsic-managed SPID Service Provider, the same Billing Tracking Secret must be provided across all such Verification Profiles. | [optional] |
|
|
8
9
|
|
|
9
10
|
## Example
|
|
10
11
|
|
|
@@ -12,7 +13,8 @@
|
|
|
12
13
|
require 'trinsic_api'
|
|
13
14
|
|
|
14
15
|
instance = TrinsicApi::SpidInput.new(
|
|
15
|
-
sub_provider_id: null
|
|
16
|
+
sub_provider_id: null,
|
|
17
|
+
billing_tracking_secret: null
|
|
16
18
|
)
|
|
17
19
|
```
|
|
18
20
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# TrinsicApi::SpidProviderOutput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **billing_information** | [**SpidBillingInformation**](SpidBillingInformation.md) | Information about the billable status of this SPID Verification. Present only if your account has period-based billing enabled for SPID. Contact Trinsic to enable this. | [optional] |
|
|
8
|
+
| **identity_provider_entity_id** | **String** | The SPID Entity ID of the Identity Provider which issued the SPID identity. This is an HTTPS URI which uniquely identifies the IdP within the SPID federation. A normalized / simplified representation of this value is present in the `originatingSubProviderId` field in Trinsic's normalized data model. | |
|
|
9
|
+
| **spid_code** | **String** | The identifier of the user's SPID credential. This uniquely identifies the credential within the SPID federation. | |
|
|
10
|
+
| **spid_credential_expiration_date** | **Date** | Expiration date of the user's SPID credential. This is not the same as the expiration date of the underlying identity document (such as a passport) which was used to create the SPID identity. | [optional] |
|
|
11
|
+
| **place_of_birth** | **String** | The user's place of birth. | [optional] |
|
|
12
|
+
| **county_of_birth** | **String** | The user's county of birth. | [optional] |
|
|
13
|
+
| **raw_id_card** | **String** | The raw, space-separated string value for the \"IdCard\" field from the SPID identity. Trinsic additionally parses this field and uses it to populate the `Document` object in the normalized data model. | [optional] |
|
|
14
|
+
| **email** | **String** | The email address of the user. | [optional] |
|
|
15
|
+
| **digital_address** | **String** | The digital address of the user. | [optional] |
|
|
16
|
+
| **fiscal_number** | **String** | Fiscal tax number for the subject. | [optional] |
|
|
17
|
+
| **iva_code** | **String** | VAT number for the subject. | [optional] |
|
|
18
|
+
| **company_name** | **String** | The name of the company which the user is associated with. | [optional] |
|
|
19
|
+
| **company_fiscal_number** | **String** | The fiscal tax number of the company which the user is associated with. | [optional] |
|
|
20
|
+
| **registered_office** | **String** | The registered office address of the company which the user is associated with. | [optional] |
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'trinsic_api'
|
|
26
|
+
|
|
27
|
+
instance = TrinsicApi::SpidProviderOutput.new(
|
|
28
|
+
billing_information: null,
|
|
29
|
+
identity_provider_entity_id: null,
|
|
30
|
+
spid_code: null,
|
|
31
|
+
spid_credential_expiration_date: null,
|
|
32
|
+
place_of_birth: null,
|
|
33
|
+
county_of_birth: null,
|
|
34
|
+
raw_id_card: null,
|
|
35
|
+
email: null,
|
|
36
|
+
digital_address: null,
|
|
37
|
+
fiscal_number: null,
|
|
38
|
+
iva_code: null,
|
|
39
|
+
company_name: null,
|
|
40
|
+
company_fiscal_number: null,
|
|
41
|
+
registered_office: null
|
|
42
|
+
)
|
|
43
|
+
```
|
|
44
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# TrinsicApi::VerificationProfileResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | The ID of the verification profile | |
|
|
8
|
+
| **_alias** | **String** | An alias of the verification profile shown to developers and administrators. | |
|
|
9
|
+
| **brand_name** | **String** | The brand name of the verification profile shown to end-users. | |
|
|
10
|
+
| **logo_url** | **String** | The URL of the verification profile's logo. | |
|
|
11
|
+
| **primary_color** | **String** | The primary color of the verification profile. | |
|
|
12
|
+
| **enabled_providers** | **Array<String>** | The providers that are currently enabled for the verification profile. | |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'trinsic_api'
|
|
18
|
+
|
|
19
|
+
instance = TrinsicApi::VerificationProfileResponse.new(
|
|
20
|
+
id: null,
|
|
21
|
+
_alias: null,
|
|
22
|
+
brand_name: null,
|
|
23
|
+
logo_url: null,
|
|
24
|
+
primary_color: null,
|
|
25
|
+
enabled_providers: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# TrinsicApi::VerificationProfilesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.trinsic.id*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_verification_profile**](VerificationProfilesApi.md#create_verification_profile) | **POST** /api/valpha/verification-profiles | Create Verification Profile |
|
|
8
|
+
| [**get_verification_profile_by_id**](VerificationProfilesApi.md#get_verification_profile_by_id) | **GET** /api/valpha/verification-profiles/{id} | Get Verification Profile |
|
|
9
|
+
| [**list_verification_profiles**](VerificationProfilesApi.md#list_verification_profiles) | **GET** /api/valpha/verification-profiles | List Verification Profiles |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## create_verification_profile
|
|
13
|
+
|
|
14
|
+
> <CreateVerificationProfileResponse> create_verification_profile(_alias, brand_name, opts)
|
|
15
|
+
|
|
16
|
+
Create Verification Profile
|
|
17
|
+
|
|
18
|
+
Creates a new verification profile within your organization.
|
|
19
|
+
|
|
20
|
+
### Examples
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'time'
|
|
24
|
+
require 'trinsic_api'
|
|
25
|
+
# setup authorization
|
|
26
|
+
TrinsicApi.configure do |config|
|
|
27
|
+
# Configure Bearer authorization: Bearer
|
|
28
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = TrinsicApi::VerificationProfilesApi.new
|
|
32
|
+
_alias = '_alias_example' # String | An alias of the verification profile shown to developers and administrators.
|
|
33
|
+
brand_name = 'brand_name_example' # String | The brand name of the verification profile shown to end-users.
|
|
34
|
+
opts = {
|
|
35
|
+
primary_color: 'primary_color_example', # String | The primary color of the verification profile. Must be a 6-character hex string prefixed with a '#' character. Example: #000000
|
|
36
|
+
providers: ['inner_example'], # Array<String> | The list of providers you'd like to select for this profile. We will not currently enable any providers.
|
|
37
|
+
logo: File.new('/path/to/some/file') # File | The logo of the verification profile.
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
begin
|
|
41
|
+
# Create Verification Profile
|
|
42
|
+
result = api_instance.create_verification_profile(_alias, brand_name, opts)
|
|
43
|
+
p result
|
|
44
|
+
rescue TrinsicApi::ApiError => e
|
|
45
|
+
puts "Error when calling VerificationProfilesApi->create_verification_profile: #{e}"
|
|
46
|
+
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Using the create_verification_profile_with_http_info variant
|
|
50
|
+
|
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
|
52
|
+
|
|
53
|
+
> <Array(<CreateVerificationProfileResponse>, Integer, Hash)> create_verification_profile_with_http_info(_alias, brand_name, opts)
|
|
54
|
+
|
|
55
|
+
```ruby
|
|
56
|
+
begin
|
|
57
|
+
# Create Verification Profile
|
|
58
|
+
data, status_code, headers = api_instance.create_verification_profile_with_http_info(_alias, brand_name, opts)
|
|
59
|
+
p status_code # => 2xx
|
|
60
|
+
p headers # => { ... }
|
|
61
|
+
p data # => <CreateVerificationProfileResponse>
|
|
62
|
+
rescue TrinsicApi::ApiError => e
|
|
63
|
+
puts "Error when calling VerificationProfilesApi->create_verification_profile_with_http_info: #{e}"
|
|
64
|
+
end
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
| Name | Type | Description | Notes |
|
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
|
71
|
+
| **_alias** | **String** | An alias of the verification profile shown to developers and administrators. | |
|
|
72
|
+
| **brand_name** | **String** | The brand name of the verification profile shown to end-users. | |
|
|
73
|
+
| **primary_color** | **String** | The primary color of the verification profile. Must be a 6-character hex string prefixed with a '#' character. Example: #000000 | [optional] |
|
|
74
|
+
| **providers** | [**Array<String>**](String.md) | The list of providers you'd like to select for this profile. We will not currently enable any providers. | [optional] |
|
|
75
|
+
| **logo** | **File** | The logo of the verification profile. | [optional] |
|
|
76
|
+
|
|
77
|
+
### Return type
|
|
78
|
+
|
|
79
|
+
[**CreateVerificationProfileResponse**](CreateVerificationProfileResponse.md)
|
|
80
|
+
|
|
81
|
+
### Authorization
|
|
82
|
+
|
|
83
|
+
[Bearer](../README.md#Bearer)
|
|
84
|
+
|
|
85
|
+
### HTTP request headers
|
|
86
|
+
|
|
87
|
+
- **Content-Type**: multipart/form-data
|
|
88
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## get_verification_profile_by_id
|
|
92
|
+
|
|
93
|
+
> <VerificationProfileResponse> get_verification_profile_by_id(id)
|
|
94
|
+
|
|
95
|
+
Get Verification Profile
|
|
96
|
+
|
|
97
|
+
Gets a specific verification profile by ID.
|
|
98
|
+
|
|
99
|
+
### Examples
|
|
100
|
+
|
|
101
|
+
```ruby
|
|
102
|
+
require 'time'
|
|
103
|
+
require 'trinsic_api'
|
|
104
|
+
# setup authorization
|
|
105
|
+
TrinsicApi.configure do |config|
|
|
106
|
+
# Configure Bearer authorization: Bearer
|
|
107
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
api_instance = TrinsicApi::VerificationProfilesApi.new
|
|
111
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
112
|
+
|
|
113
|
+
begin
|
|
114
|
+
# Get Verification Profile
|
|
115
|
+
result = api_instance.get_verification_profile_by_id(id)
|
|
116
|
+
p result
|
|
117
|
+
rescue TrinsicApi::ApiError => e
|
|
118
|
+
puts "Error when calling VerificationProfilesApi->get_verification_profile_by_id: #{e}"
|
|
119
|
+
end
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
#### Using the get_verification_profile_by_id_with_http_info variant
|
|
123
|
+
|
|
124
|
+
This returns an Array which contains the response data, status code and headers.
|
|
125
|
+
|
|
126
|
+
> <Array(<VerificationProfileResponse>, Integer, Hash)> get_verification_profile_by_id_with_http_info(id)
|
|
127
|
+
|
|
128
|
+
```ruby
|
|
129
|
+
begin
|
|
130
|
+
# Get Verification Profile
|
|
131
|
+
data, status_code, headers = api_instance.get_verification_profile_by_id_with_http_info(id)
|
|
132
|
+
p status_code # => 2xx
|
|
133
|
+
p headers # => { ... }
|
|
134
|
+
p data # => <VerificationProfileResponse>
|
|
135
|
+
rescue TrinsicApi::ApiError => e
|
|
136
|
+
puts "Error when calling VerificationProfilesApi->get_verification_profile_by_id_with_http_info: #{e}"
|
|
137
|
+
end
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
| Name | Type | Description | Notes |
|
|
143
|
+
| ---- | ---- | ----------- | ----- |
|
|
144
|
+
| **id** | **String** | | |
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
[**VerificationProfileResponse**](VerificationProfileResponse.md)
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
[Bearer](../README.md#Bearer)
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: Not defined
|
|
157
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## list_verification_profiles
|
|
161
|
+
|
|
162
|
+
> <ListVerificationProfilesResponse> list_verification_profiles(opts)
|
|
163
|
+
|
|
164
|
+
List Verification Profiles
|
|
165
|
+
|
|
166
|
+
List the verification profiles for the current organization and environment.
|
|
167
|
+
|
|
168
|
+
### Examples
|
|
169
|
+
|
|
170
|
+
```ruby
|
|
171
|
+
require 'time'
|
|
172
|
+
require 'trinsic_api'
|
|
173
|
+
# setup authorization
|
|
174
|
+
TrinsicApi.configure do |config|
|
|
175
|
+
# Configure Bearer authorization: Bearer
|
|
176
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
api_instance = TrinsicApi::VerificationProfilesApi.new
|
|
180
|
+
opts = {
|
|
181
|
+
page: 56, # Integer |
|
|
182
|
+
page_size: 56 # Integer | Size of the list to be returned. Accepted range from 1 to 100
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
begin
|
|
186
|
+
# List Verification Profiles
|
|
187
|
+
result = api_instance.list_verification_profiles(opts)
|
|
188
|
+
p result
|
|
189
|
+
rescue TrinsicApi::ApiError => e
|
|
190
|
+
puts "Error when calling VerificationProfilesApi->list_verification_profiles: #{e}"
|
|
191
|
+
end
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
#### Using the list_verification_profiles_with_http_info variant
|
|
195
|
+
|
|
196
|
+
This returns an Array which contains the response data, status code and headers.
|
|
197
|
+
|
|
198
|
+
> <Array(<ListVerificationProfilesResponse>, Integer, Hash)> list_verification_profiles_with_http_info(opts)
|
|
199
|
+
|
|
200
|
+
```ruby
|
|
201
|
+
begin
|
|
202
|
+
# List Verification Profiles
|
|
203
|
+
data, status_code, headers = api_instance.list_verification_profiles_with_http_info(opts)
|
|
204
|
+
p status_code # => 2xx
|
|
205
|
+
p headers # => { ... }
|
|
206
|
+
p data # => <ListVerificationProfilesResponse>
|
|
207
|
+
rescue TrinsicApi::ApiError => e
|
|
208
|
+
puts "Error when calling VerificationProfilesApi->list_verification_profiles_with_http_info: #{e}"
|
|
209
|
+
end
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Parameters
|
|
213
|
+
|
|
214
|
+
| Name | Type | Description | Notes |
|
|
215
|
+
| ---- | ---- | ----------- | ----- |
|
|
216
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
217
|
+
| **page_size** | **Integer** | Size of the list to be returned. Accepted range from 1 to 100 | [optional][default to 20] |
|
|
218
|
+
|
|
219
|
+
### Return type
|
|
220
|
+
|
|
221
|
+
[**ListVerificationProfilesResponse**](ListVerificationProfilesResponse.md)
|
|
222
|
+
|
|
223
|
+
### Authorization
|
|
224
|
+
|
|
225
|
+
[Bearer](../README.md#Bearer)
|
|
226
|
+
|
|
227
|
+
### HTTP request headers
|
|
228
|
+
|
|
229
|
+
- **Content-Type**: Not defined
|
|
230
|
+
- **Accept**: text/plain, application/json, text/json, application/problem+json
|
|
231
|
+
|