trinsic_api 3.1.0 → 3.2.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/AppleWalletDigitalIdBirthDate.md +20 -0
- data/docs/AppleWalletDigitalIdCredential.md +54 -0
- data/docs/AppleWalletProviderOutput.md +2 -0
- data/docs/BrazilCnhFacialBiometryOutput.md +24 -0
- data/docs/BrazilCnhMatchFieldDateOnly.md +20 -0
- data/docs/BrazilCnhMatchFieldString.md +20 -0
- data/docs/BrazilCnhProviderOutput.md +48 -0
- data/docs/CreateDirectProviderSessionRequest.md +1 -1
- data/docs/CreateHostedProviderSessionRequest.md +1 -1
- data/docs/CzechBankIdAddress.md +36 -0
- data/docs/CzechBankIdCard.md +30 -0
- data/docs/CzechBankIdProviderOutput.md +78 -0
- data/docs/CzechBankIdTitle.md +20 -0
- data/docs/CzechBankIdVerification.md +22 -0
- data/docs/DiiaIssuerOutput.md +28 -0
- data/docs/DiiaProviderOutput.md +20 -0
- data/docs/DiiaSubjectOutput.md +26 -0
- data/docs/IdemiaPreviewProviderAddress.md +32 -0
- data/docs/IdemiaPreviewProviderOutput.md +76 -0
- data/docs/IndiaDigilockerAadhaarMatchDateOfBirthField.md +20 -0
- data/docs/IndiaDigilockerAadhaarMatchFullNameField.md +20 -0
- data/docs/IndiaDigilockerAadhaarMatchProviderOutput.md +20 -0
- data/docs/IndonesiaDukcapilMatchDateOfBirthField.md +20 -0
- data/docs/IndonesiaDukcapilMatchFullNameField.md +20 -0
- data/docs/IndonesiaDukcapilMatchNationalIdNumberField.md +20 -0
- data/docs/IndonesiaDukcapilMatchProviderOutput.md +38 -0
- data/docs/IndonesiaNikMatch.md +34 -0
- data/docs/IndonesiaNikMatchField.md +20 -0
- data/docs/InteracAddress.md +26 -0
- data/docs/InteracProviderOutput.md +34 -0
- data/docs/ItsmeAddress.md +28 -0
- data/docs/ItsmeProviderOutput.md +19 -1
- data/docs/KenyaNidMatch2DateOfBirthField.md +20 -0
- data/docs/KenyaNidMatch2FullNameField.md +20 -0
- data/docs/KenyaNidMatch2NationalIdNumberField.md +20 -0
- data/docs/KenyaNidMatch2ProviderOutput.md +24 -0
- data/docs/KenyaNidMatch2SexField.md +20 -0
- data/docs/LloydsSmartIdProviderOutput.md +2 -2
- data/docs/MexicoCurpProviderOutput.md +23 -1
- data/docs/NigeriaNinLookup2Input.md +1 -1
- data/docs/NigeriaNinLookup2ProviderOutput.md +2 -2
- data/docs/NigeriaNinMatch2DateOfBirthField.md +20 -0
- data/docs/NigeriaNinMatch2FullNameField.md +20 -0
- data/docs/NigeriaNinMatch2Input.md +1 -1
- data/docs/NigeriaNinMatch2NationalIdNumberField.md +20 -0
- data/docs/NigeriaNinMatch2PhoneNumberField.md +20 -0
- data/docs/NigeriaNinMatch2ProviderOutput.md +26 -0
- data/docs/NigeriaNinMatch2SexField.md +20 -0
- data/docs/PhilippinesPhilsysMatchProviderOutput.md +26 -0
- data/docs/PostOfficeEasyIdProviderOutput.md +2 -2
- data/docs/ProviderInput.md +0 -6
- data/docs/ProviderOutput.md +37 -3
- data/docs/SouthAfricaNidLookup2Input.md +1 -1
- data/docs/SouthAfricaNidLookup2ProviderOutput.md +36 -0
- data/docs/SouthAfricaNidMatch2DateOfBirthField.md +20 -0
- data/docs/SouthAfricaNidMatch2FullNameField.md +20 -0
- data/docs/SouthAfricaNidMatch2Input.md +2 -4
- data/docs/SouthAfricaNidMatch2NationalIdNumberField.md +20 -0
- data/docs/SouthAfricaNidMatch2ProviderOutput.md +26 -0
- data/docs/SouthAfricaNidMatch2SexField.md +20 -0
- data/docs/UAEPassProviderOutput.md +62 -0
- data/docs/UgandaNidMatch2DateOfBirthField.md +20 -0
- data/docs/UgandaNidMatch2Input.md +1 -1
- data/docs/UgandaNidMatch2NationalIdNumberField.md +20 -0
- data/docs/UgandaNidMatch2ProviderOutput.md +22 -0
- data/docs/UgandaNidMatch2SecondaryIdNumberField.md +20 -0
- data/docs/VerimiAddressOutput.md +28 -0
- data/docs/VerimiProviderOutput.md +68 -0
- data/docs/YotiDeeplinkProviderOutput.md +2 -2
- data/docs/YotiProviderOutput.md +2 -2
- data/docs/ZimbabweNidLookup2Input.md +1 -1
- data/docs/ZimbabweNidLookup2ProviderOutput.md +34 -0
- data/lib/trinsic_api/models/apple_wallet_digital_id_birth_date.rb +177 -0
- data/lib/trinsic_api/models/apple_wallet_digital_id_credential.rb +350 -0
- data/lib/trinsic_api/models/apple_wallet_provider_output.rb +12 -1
- data/lib/trinsic_api/models/brazil_cnh_facial_biometry_output.rb +198 -0
- data/lib/trinsic_api/models/{south_africa_nid_biometric2_input.rb → brazil_cnh_match_field_date_only.rb} +36 -33
- data/lib/trinsic_api/models/{nigeria_nin_biometric2_input.rb → brazil_cnh_match_field_string.rb} +20 -33
- data/lib/trinsic_api/models/brazil_cnh_provider_output.rb +315 -0
- data/lib/trinsic_api/models/create_direct_provider_session_request.rb +1 -1
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +1 -1
- data/lib/trinsic_api/models/czech_bank_id_address.rb +296 -0
- data/lib/trinsic_api/models/czech_bank_id_card.rb +279 -0
- data/lib/trinsic_api/models/czech_bank_id_provider_output.rb +504 -0
- data/lib/trinsic_api/models/czech_bank_id_title.rb +160 -0
- data/lib/trinsic_api/models/czech_bank_id_verification.rb +203 -0
- data/lib/trinsic_api/models/diia_issuer_output.rb +204 -0
- data/lib/trinsic_api/models/diia_provider_output.rb +193 -0
- data/lib/trinsic_api/models/diia_subject_output.rb +193 -0
- data/lib/trinsic_api/models/idemia_preview_provider_address.rb +226 -0
- data/lib/trinsic_api/models/idemia_preview_provider_output.rb +469 -0
- data/lib/trinsic_api/models/india_digilocker_aadhaar_match_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/india_digilocker_aadhaar_match_full_name_field.rb +192 -0
- data/lib/trinsic_api/models/india_digilocker_aadhaar_match_provider_output.rb +161 -0
- data/lib/trinsic_api/models/indonesia_dukcapil_match_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/indonesia_dukcapil_match_full_name_field.rb +192 -0
- data/lib/trinsic_api/models/indonesia_dukcapil_match_national_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/indonesia_dukcapil_match_provider_output.rb +404 -0
- data/lib/trinsic_api/models/indonesia_nik_match.rb +238 -0
- data/lib/trinsic_api/models/indonesia_nik_match_field.rb +192 -0
- data/lib/trinsic_api/models/{kenya_nid_biometric2_input.rb → interac_address.rb} +50 -30
- data/lib/trinsic_api/models/interac_provider_output.rb +237 -0
- data/lib/trinsic_api/models/itsme_address.rb +204 -0
- data/lib/trinsic_api/models/itsme_provider_output.rb +104 -5
- data/lib/trinsic_api/models/kenya_nid_match2_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/kenya_nid_match2_full_name_field.rb +192 -0
- data/lib/trinsic_api/models/kenya_nid_match2_national_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/kenya_nid_match2_provider_output.rb +215 -0
- data/lib/trinsic_api/models/kenya_nid_match2_sex_field.rb +192 -0
- data/lib/trinsic_api/models/lloyds_smart_id_provider_output.rb +8 -8
- data/lib/trinsic_api/models/mexico_curp_provider_output.rb +126 -5
- data/lib/trinsic_api/models/nigeria_nin_lookup2_input.rb +1 -1
- data/lib/trinsic_api/models/nigeria_nin_lookup2_provider_output.rb +1 -1
- data/lib/trinsic_api/models/nigeria_nin_match2_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_full_name_field.rb +192 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_input.rb +1 -1
- data/lib/trinsic_api/models/nigeria_nin_match2_national_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_phone_number_field.rb +192 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_provider_output.rb +226 -0
- data/lib/trinsic_api/models/nigeria_nin_match2_sex_field.rb +192 -0
- data/lib/trinsic_api/models/philippines_philsys_match_provider_output.rb +226 -0
- data/lib/trinsic_api/models/post_office_easy_id_provider_output.rb +8 -8
- data/lib/trinsic_api/models/provider_input.rb +1 -34
- data/lib/trinsic_api/models/provider_output.rb +203 -16
- data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +1 -1
- data/lib/trinsic_api/models/south_africa_nid_lookup2_provider_output.rb +377 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_full_name_field.rb +192 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_input.rb +6 -17
- data/lib/trinsic_api/models/south_africa_nid_match2_national_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_provider_output.rb +226 -0
- data/lib/trinsic_api/models/south_africa_nid_match2_sex_field.rb +192 -0
- data/lib/trinsic_api/models/uae_pass_provider_output.rb +394 -0
- data/lib/trinsic_api/models/uganda_nid_match2_date_of_birth_field.rb +192 -0
- data/lib/trinsic_api/models/uganda_nid_match2_input.rb +1 -1
- data/lib/trinsic_api/models/uganda_nid_match2_national_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/uganda_nid_match2_provider_output.rb +220 -0
- data/lib/trinsic_api/models/uganda_nid_match2_secondary_id_number_field.rb +192 -0
- data/lib/trinsic_api/models/verimi_address_output.rb +204 -0
- data/lib/trinsic_api/models/verimi_provider_output.rb +425 -0
- data/lib/trinsic_api/models/yoti_deeplink_provider_output.rb +8 -8
- data/lib/trinsic_api/models/yoti_provider_output.rb +8 -8
- data/lib/trinsic_api/models/zimbabwe_nid_lookup2_input.rb +1 -1
- data/lib/trinsic_api/models/zimbabwe_nid_lookup2_provider_output.rb +334 -0
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +54 -3
- data/spec/models/apple_wallet_digital_id_birth_date_spec.rb +42 -0
- data/spec/models/apple_wallet_digital_id_credential_spec.rb +144 -0
- data/spec/models/apple_wallet_provider_output_spec.rb +6 -0
- data/spec/models/brazil_cnh_facial_biometry_output_spec.rb +54 -0
- data/spec/models/brazil_cnh_match_field_date_only_spec.rb +42 -0
- data/spec/models/brazil_cnh_match_field_string_spec.rb +42 -0
- data/spec/models/brazil_cnh_provider_output_spec.rb +126 -0
- data/spec/models/czech_bank_id_address_spec.rb +90 -0
- data/spec/models/czech_bank_id_card_spec.rb +72 -0
- data/spec/models/czech_bank_id_provider_output_spec.rb +216 -0
- data/spec/models/czech_bank_id_title_spec.rb +42 -0
- data/spec/models/{kenya_nid_biometric2_input_spec.rb → czech_bank_id_verification_spec.rb} +9 -9
- data/spec/models/diia_issuer_output_spec.rb +66 -0
- data/spec/models/diia_provider_output_spec.rb +42 -0
- data/spec/models/diia_subject_output_spec.rb +60 -0
- data/spec/models/idemia_preview_provider_address_spec.rb +78 -0
- data/spec/models/idemia_preview_provider_output_spec.rb +210 -0
- data/spec/models/india_digilocker_aadhaar_match_date_of_birth_field_spec.rb +42 -0
- data/spec/models/india_digilocker_aadhaar_match_full_name_field_spec.rb +42 -0
- data/spec/models/india_digilocker_aadhaar_match_provider_output_spec.rb +42 -0
- data/spec/models/indonesia_dukcapil_match_date_of_birth_field_spec.rb +42 -0
- data/spec/models/indonesia_dukcapil_match_full_name_field_spec.rb +42 -0
- data/spec/models/indonesia_dukcapil_match_national_id_number_field_spec.rb +42 -0
- data/spec/models/indonesia_dukcapil_match_provider_output_spec.rb +96 -0
- data/spec/models/indonesia_nik_match_field_spec.rb +42 -0
- data/spec/models/indonesia_nik_match_spec.rb +84 -0
- data/spec/models/interac_address_spec.rb +60 -0
- data/spec/models/interac_provider_output_spec.rb +84 -0
- data/spec/models/itsme_address_spec.rb +66 -0
- data/spec/models/itsme_provider_output_spec.rb +54 -0
- data/spec/models/kenya_nid_match2_date_of_birth_field_spec.rb +42 -0
- data/spec/models/kenya_nid_match2_full_name_field_spec.rb +42 -0
- data/spec/models/kenya_nid_match2_national_id_number_field_spec.rb +42 -0
- data/spec/models/kenya_nid_match2_provider_output_spec.rb +54 -0
- data/spec/models/kenya_nid_match2_sex_field_spec.rb +42 -0
- data/spec/models/lloyds_smart_id_provider_output_spec.rb +1 -1
- data/spec/models/mexico_curp_provider_output_spec.rb +66 -0
- data/spec/models/{nigeria_nin_biometric2_input_spec.rb → nigeria_nin_match2_date_of_birth_field_spec.rb} +8 -14
- data/spec/models/nigeria_nin_match2_full_name_field_spec.rb +42 -0
- data/spec/models/nigeria_nin_match2_national_id_number_field_spec.rb +42 -0
- data/spec/models/nigeria_nin_match2_phone_number_field_spec.rb +42 -0
- data/spec/models/nigeria_nin_match2_provider_output_spec.rb +60 -0
- data/spec/models/nigeria_nin_match2_sex_field_spec.rb +42 -0
- data/spec/models/philippines_philsys_match_provider_output_spec.rb +60 -0
- data/spec/models/post_office_easy_id_provider_output_spec.rb +1 -1
- data/spec/models/provider_input_spec.rb +0 -18
- data/spec/models/provider_output_spec.rb +108 -6
- data/spec/models/south_africa_nid_lookup2_provider_output_spec.rb +90 -0
- data/spec/models/south_africa_nid_match2_date_of_birth_field_spec.rb +42 -0
- data/spec/models/south_africa_nid_match2_full_name_field_spec.rb +42 -0
- data/spec/models/south_africa_nid_match2_input_spec.rb +0 -6
- data/spec/models/south_africa_nid_match2_national_id_number_field_spec.rb +42 -0
- data/spec/models/south_africa_nid_match2_provider_output_spec.rb +60 -0
- data/spec/models/south_africa_nid_match2_sex_field_spec.rb +42 -0
- data/spec/models/uae_pass_provider_output_spec.rb +168 -0
- data/spec/models/uganda_nid_match2_date_of_birth_field_spec.rb +42 -0
- data/spec/models/uganda_nid_match2_national_id_number_field_spec.rb +42 -0
- data/spec/models/{south_africa_nid_biometric2_input_spec.rb → uganda_nid_match2_provider_output_spec.rb} +9 -9
- data/spec/models/uganda_nid_match2_secondary_id_number_field_spec.rb +42 -0
- data/spec/models/verimi_address_output_spec.rb +66 -0
- data/spec/models/verimi_provider_output_spec.rb +186 -0
- data/spec/models/yoti_deeplink_provider_output_spec.rb +1 -1
- data/spec/models/yoti_provider_output_spec.rb +1 -1
- data/spec/models/zimbabwe_nid_lookup2_provider_output_spec.rb +84 -0
- metadata +408 -204
- data/docs/KenyaNidBiometric2Input.md +0 -22
- data/docs/NigeriaNinBiometric2Input.md +0 -22
- data/docs/SouthAfricaNidBiometric2Input.md +0 -22
|
@@ -14,22 +14,18 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
17
|
+
class BrazilCnhMatchFieldDateOnly < ApiModelBase
|
|
18
|
+
# Decoded CNH QR Code value used for this match field.
|
|
19
|
+
attr_accessor :content
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
23
|
-
|
|
24
|
-
# Test selfie for test environment (optional, maximum 15MB). Must be JPEG format.
|
|
25
|
-
attr_accessor :test_selfie
|
|
21
|
+
# Whether the decoded CNH QR Code value matched the government database.
|
|
22
|
+
attr_accessor :match_value
|
|
26
23
|
|
|
27
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
25
|
def self.attribute_map
|
|
29
26
|
{
|
|
30
|
-
:'
|
|
31
|
-
:'
|
|
32
|
-
:'test_selfie' => :'testSelfie'
|
|
27
|
+
:'content' => :'content',
|
|
28
|
+
:'match_value' => :'matchValue'
|
|
33
29
|
}
|
|
34
30
|
end
|
|
35
31
|
|
|
@@ -46,18 +42,15 @@ module TrinsicApi
|
|
|
46
42
|
# Attribute type mapping.
|
|
47
43
|
def self.openapi_types
|
|
48
44
|
{
|
|
49
|
-
:'
|
|
50
|
-
:'
|
|
51
|
-
:'test_selfie' => :'String'
|
|
45
|
+
:'content' => :'Date',
|
|
46
|
+
:'match_value' => :'Boolean'
|
|
52
47
|
}
|
|
53
48
|
end
|
|
54
49
|
|
|
55
50
|
# List of attributes with nullable: true
|
|
56
51
|
def self.openapi_nullable
|
|
57
52
|
Set.new([
|
|
58
|
-
:'
|
|
59
|
-
:'liveness_images',
|
|
60
|
-
:'test_selfie'
|
|
53
|
+
:'match_value'
|
|
61
54
|
])
|
|
62
55
|
end
|
|
63
56
|
|
|
@@ -65,30 +58,26 @@ module TrinsicApi
|
|
|
65
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
66
59
|
def initialize(attributes = {})
|
|
67
60
|
if (!attributes.is_a?(Hash))
|
|
68
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::BrazilCnhMatchFieldDateOnly` initialize method"
|
|
69
62
|
end
|
|
70
63
|
|
|
71
64
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
72
65
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
73
66
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
67
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilCnhMatchFieldDateOnly`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
76
69
|
end
|
|
77
70
|
h[k.to_sym] = v
|
|
78
71
|
}
|
|
79
72
|
|
|
80
|
-
if attributes.key?(:'
|
|
81
|
-
self.
|
|
73
|
+
if attributes.key?(:'content')
|
|
74
|
+
self.content = attributes[:'content']
|
|
75
|
+
else
|
|
76
|
+
self.content = nil
|
|
82
77
|
end
|
|
83
78
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
|
|
86
|
-
self.liveness_images = value
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
if attributes.key?(:'test_selfie')
|
|
91
|
-
self.test_selfie = attributes[:'test_selfie']
|
|
79
|
+
if attributes.key?(:'match_value')
|
|
80
|
+
self.match_value = attributes[:'match_value']
|
|
92
81
|
end
|
|
93
82
|
end
|
|
94
83
|
|
|
@@ -97,6 +86,10 @@ module TrinsicApi
|
|
|
97
86
|
def list_invalid_properties
|
|
98
87
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
88
|
invalid_properties = Array.new
|
|
89
|
+
if @content.nil?
|
|
90
|
+
invalid_properties.push('invalid value for "content", content cannot be nil.')
|
|
91
|
+
end
|
|
92
|
+
|
|
100
93
|
invalid_properties
|
|
101
94
|
end
|
|
102
95
|
|
|
@@ -104,17 +97,27 @@ module TrinsicApi
|
|
|
104
97
|
# @return true if the model is valid
|
|
105
98
|
def valid?
|
|
106
99
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
100
|
+
return false if @content.nil?
|
|
107
101
|
true
|
|
108
102
|
end
|
|
109
103
|
|
|
104
|
+
# Custom attribute writer method with validation
|
|
105
|
+
# @param [Object] content Value to be assigned
|
|
106
|
+
def content=(content)
|
|
107
|
+
if content.nil?
|
|
108
|
+
fail ArgumentError, 'content cannot be nil'
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
@content = content
|
|
112
|
+
end
|
|
113
|
+
|
|
110
114
|
# Checks equality by comparing each attribute.
|
|
111
115
|
# @param [Object] Object to be compared
|
|
112
116
|
def ==(o)
|
|
113
117
|
return true if self.equal?(o)
|
|
114
118
|
self.class == o.class &&
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
test_selfie == o.test_selfie
|
|
119
|
+
content == o.content &&
|
|
120
|
+
match_value == o.match_value
|
|
118
121
|
end
|
|
119
122
|
|
|
120
123
|
# @see the `==` method
|
|
@@ -126,7 +129,7 @@ module TrinsicApi
|
|
|
126
129
|
# Calculates hash code according to all attributes.
|
|
127
130
|
# @return [Integer] Hash code
|
|
128
131
|
def hash
|
|
129
|
-
[
|
|
132
|
+
[content, match_value].hash
|
|
130
133
|
end
|
|
131
134
|
|
|
132
135
|
# Builds the object from hash
|
data/lib/trinsic_api/models/{nigeria_nin_biometric2_input.rb → brazil_cnh_match_field_string.rb}
RENAMED
|
@@ -14,22 +14,18 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module TrinsicApi
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
17
|
+
class BrazilCnhMatchFieldString < ApiModelBase
|
|
18
|
+
# Decoded CNH QR Code value used for this match field.
|
|
19
|
+
attr_accessor :content
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
23
|
-
|
|
24
|
-
# Test selfie for test environment (optional, maximum 15MB). Must be JPEG format.
|
|
25
|
-
attr_accessor :test_selfie
|
|
21
|
+
# Whether the decoded CNH QR Code value matched the government database.
|
|
22
|
+
attr_accessor :match_value
|
|
26
23
|
|
|
27
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
25
|
def self.attribute_map
|
|
29
26
|
{
|
|
30
|
-
:'
|
|
31
|
-
:'
|
|
32
|
-
:'test_selfie' => :'testSelfie'
|
|
27
|
+
:'content' => :'content',
|
|
28
|
+
:'match_value' => :'matchValue'
|
|
33
29
|
}
|
|
34
30
|
end
|
|
35
31
|
|
|
@@ -46,18 +42,16 @@ module TrinsicApi
|
|
|
46
42
|
# Attribute type mapping.
|
|
47
43
|
def self.openapi_types
|
|
48
44
|
{
|
|
49
|
-
:'
|
|
50
|
-
:'
|
|
51
|
-
:'test_selfie' => :'String'
|
|
45
|
+
:'content' => :'String',
|
|
46
|
+
:'match_value' => :'Boolean'
|
|
52
47
|
}
|
|
53
48
|
end
|
|
54
49
|
|
|
55
50
|
# List of attributes with nullable: true
|
|
56
51
|
def self.openapi_nullable
|
|
57
52
|
Set.new([
|
|
58
|
-
:'
|
|
59
|
-
:'
|
|
60
|
-
:'test_selfie'
|
|
53
|
+
:'content',
|
|
54
|
+
:'match_value'
|
|
61
55
|
])
|
|
62
56
|
end
|
|
63
57
|
|
|
@@ -65,30 +59,24 @@ module TrinsicApi
|
|
|
65
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
66
60
|
def initialize(attributes = {})
|
|
67
61
|
if (!attributes.is_a?(Hash))
|
|
68
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::BrazilCnhMatchFieldString` initialize method"
|
|
69
63
|
end
|
|
70
64
|
|
|
71
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
72
66
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
73
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
68
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilCnhMatchFieldString`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
76
70
|
end
|
|
77
71
|
h[k.to_sym] = v
|
|
78
72
|
}
|
|
79
73
|
|
|
80
|
-
if attributes.key?(:'
|
|
81
|
-
self.
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
if attributes.key?(:'liveness_images')
|
|
85
|
-
if (value = attributes[:'liveness_images']).is_a?(Array)
|
|
86
|
-
self.liveness_images = value
|
|
87
|
-
end
|
|
74
|
+
if attributes.key?(:'content')
|
|
75
|
+
self.content = attributes[:'content']
|
|
88
76
|
end
|
|
89
77
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
78
|
+
if attributes.key?(:'match_value')
|
|
79
|
+
self.match_value = attributes[:'match_value']
|
|
92
80
|
end
|
|
93
81
|
end
|
|
94
82
|
|
|
@@ -112,9 +100,8 @@ module TrinsicApi
|
|
|
112
100
|
def ==(o)
|
|
113
101
|
return true if self.equal?(o)
|
|
114
102
|
self.class == o.class &&
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
test_selfie == o.test_selfie
|
|
103
|
+
content == o.content &&
|
|
104
|
+
match_value == o.match_value
|
|
118
105
|
end
|
|
119
106
|
|
|
120
107
|
# @see the `==` method
|
|
@@ -126,7 +113,7 @@ module TrinsicApi
|
|
|
126
113
|
# Calculates hash code according to all attributes.
|
|
127
114
|
# @return [Integer] Hash code
|
|
128
115
|
def hash
|
|
129
|
-
[
|
|
116
|
+
[content, match_value].hash
|
|
130
117
|
end
|
|
131
118
|
|
|
132
119
|
# Builds the object from hash
|
|
@@ -0,0 +1,315 @@
|
|
|
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.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module TrinsicApi
|
|
17
|
+
# Exposed properties for the `brazil-digital-cnh` Provider which do not directly map to the normalized IdentityData model.
|
|
18
|
+
class BrazilCnhProviderOutput < ApiModelBase
|
|
19
|
+
# Full name decoded from the CNH QR Code and whether it matched the government database.
|
|
20
|
+
attr_accessor :full_name
|
|
21
|
+
|
|
22
|
+
# Similarity score for the decoded full name from the CNH QR Code. Ranges from 0.0 to 1.0, where 1.0 is an exact match.
|
|
23
|
+
attr_accessor :full_name_similarity
|
|
24
|
+
|
|
25
|
+
# Source identity document number/reference for the CNH record, decoded from the CNH QR Code.
|
|
26
|
+
attr_accessor :origin_document
|
|
27
|
+
|
|
28
|
+
# Date of birth decoded from the CNH QR Code and whether it matched the government database.
|
|
29
|
+
attr_accessor :date_of_birth
|
|
30
|
+
|
|
31
|
+
# Mother's full name decoded from the CNH QR Code.
|
|
32
|
+
attr_accessor :mother_full_name
|
|
33
|
+
|
|
34
|
+
# Father's full name decoded from the CNH QR Code.
|
|
35
|
+
attr_accessor :father_full_name
|
|
36
|
+
|
|
37
|
+
# Driver license category decoded from the CNH QR Code. Known values: - A: Two- or three-wheeled motor vehicles, with or without a sidecar. - B: Motor vehicles outside category A up to 3,500 kg, with capacity for up to eight passengers besides the driver, and without articulation or trailer. - C: Category B vehicles and rigid cargo vehicles above 3,500 kg. - D: Category C vehicles and passenger vehicles with capacity above eight passengers besides the driver. - E: Category D vehicles, trailers, semi-trailers, and articulated buses.
|
|
38
|
+
attr_accessor :category
|
|
39
|
+
|
|
40
|
+
# National Registry (Registro Nacional de Habilitacao) number decoded from the CNH QR Code and whether it matched the government database. Is an 11-character ID with the format XXXXXXXXX@@: - XXXXXXXXX: Base characters. The value is unique to the driver for their lifetime. - @@: Security check digits
|
|
41
|
+
attr_accessor :registration_number
|
|
42
|
+
|
|
43
|
+
# Whether the National Registry number satisfies the CNH modulo-11 check digit routine.
|
|
44
|
+
attr_accessor :registration_number_check_digits_valid
|
|
45
|
+
|
|
46
|
+
# Date when the driver was first licensed, decoded from the CNH QR Code.
|
|
47
|
+
attr_accessor :first_issue_date
|
|
48
|
+
|
|
49
|
+
# CNH observations decoded from the QR Code. May include EAR for paid driving activity and one or more restriction codes: - A: Corrective lenses required. - B: Hearing prosthesis required. - C: Left-side accelerator required. - D: Automatic transmission vehicle required. - E: Steering-wheel grip, handle, or knob required. - F: Power steering vehicle required. - G: Manual clutch, automated clutch, or automatic transmission vehicle required. - H: Hand accelerator and brake required. - I: Dashboard control adaptations to the steering wheel required. - J: Dashboard control adaptations for lower limbs or other body parts required. - K: Gear-shift lever extension and/or fixed height/depth compensation cushions required. - L: Pedal extensions and floor elevation and/or fixed height/depth compensation cushions required. - M: Motorcycle with adapted gear-shift pedal required. - N: Motorcycle with adapted rear-brake pedal required. - O: Motorcycle with adapted front-brake handle required. - P: Motorcycle with adapted clutch handle required. - Q: Motorcycle with sidecar or tricycle required. - R: Scooter with sidecar or tricycle required. - S: Motorcycle with automated gear shifting required. - T: Driving on highways and high-speed roads prohibited. - U: Driving after sunset prohibited. - V: Helmet with visor and unrestricted field of vision required. - X: Other restrictions.
|
|
50
|
+
attr_accessor :observations
|
|
51
|
+
|
|
52
|
+
# City where the CNH was issued, decoded from the QR Code.
|
|
53
|
+
attr_accessor :issue_city
|
|
54
|
+
|
|
55
|
+
# Brazilian state where the CNH was issued, decoded from the QR Code. Format is a two-letter Brazilian state abbreviation when present.
|
|
56
|
+
attr_accessor :issue_state
|
|
57
|
+
|
|
58
|
+
# Numeric security validation code decoded from the CNH QR Code. This is an 11-digit code generated from Departamento Estadual de Trânsito (State Traffic Department or DETRAN) owned data for each CNH and used to validate the document. The algorithm is proprietary, so no further information is available on this number.
|
|
59
|
+
attr_accessor :validation_number
|
|
60
|
+
|
|
61
|
+
# Registro Nacional de Condutores Habilitados (RENACH) form number decoded from the CNH QR Code. Is an 11-character ID with the format FFXXXXXXXX@: - FF: The issuing federation unit abbreviation. It identifies the state where the driver was licensed or last had record changes. - XXXXXXXXX: Serial number - @: Modulo-11 security check digit
|
|
62
|
+
attr_accessor :renach_number
|
|
63
|
+
|
|
64
|
+
# Facial biometric comparison result if submitted and available.
|
|
65
|
+
attr_accessor :facial_biometry
|
|
66
|
+
|
|
67
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
|
+
def self.attribute_map
|
|
69
|
+
{
|
|
70
|
+
:'full_name' => :'fullName',
|
|
71
|
+
:'full_name_similarity' => :'fullNameSimilarity',
|
|
72
|
+
:'origin_document' => :'originDocument',
|
|
73
|
+
:'date_of_birth' => :'dateOfBirth',
|
|
74
|
+
:'mother_full_name' => :'motherFullName',
|
|
75
|
+
:'father_full_name' => :'fatherFullName',
|
|
76
|
+
:'category' => :'category',
|
|
77
|
+
:'registration_number' => :'registrationNumber',
|
|
78
|
+
:'registration_number_check_digits_valid' => :'registrationNumberCheckDigitsValid',
|
|
79
|
+
:'first_issue_date' => :'firstIssueDate',
|
|
80
|
+
:'observations' => :'observations',
|
|
81
|
+
:'issue_city' => :'issueCity',
|
|
82
|
+
:'issue_state' => :'issueState',
|
|
83
|
+
:'validation_number' => :'validationNumber',
|
|
84
|
+
:'renach_number' => :'renachNumber',
|
|
85
|
+
:'facial_biometry' => :'facialBiometry'
|
|
86
|
+
}
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Returns attribute mapping this model knows about
|
|
90
|
+
def self.acceptable_attribute_map
|
|
91
|
+
attribute_map
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Returns all the JSON keys this model knows about
|
|
95
|
+
def self.acceptable_attributes
|
|
96
|
+
acceptable_attribute_map.values
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Attribute type mapping.
|
|
100
|
+
def self.openapi_types
|
|
101
|
+
{
|
|
102
|
+
:'full_name' => :'BrazilCnhMatchFieldString',
|
|
103
|
+
:'full_name_similarity' => :'Float',
|
|
104
|
+
:'origin_document' => :'String',
|
|
105
|
+
:'date_of_birth' => :'BrazilCnhMatchFieldDateOnly',
|
|
106
|
+
:'mother_full_name' => :'String',
|
|
107
|
+
:'father_full_name' => :'String',
|
|
108
|
+
:'category' => :'String',
|
|
109
|
+
:'registration_number' => :'BrazilCnhMatchFieldString',
|
|
110
|
+
:'registration_number_check_digits_valid' => :'Boolean',
|
|
111
|
+
:'first_issue_date' => :'Date',
|
|
112
|
+
:'observations' => :'String',
|
|
113
|
+
:'issue_city' => :'String',
|
|
114
|
+
:'issue_state' => :'String',
|
|
115
|
+
:'validation_number' => :'String',
|
|
116
|
+
:'renach_number' => :'String',
|
|
117
|
+
:'facial_biometry' => :'BrazilCnhFacialBiometryOutput'
|
|
118
|
+
}
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# List of attributes with nullable: true
|
|
122
|
+
def self.openapi_nullable
|
|
123
|
+
Set.new([
|
|
124
|
+
:'full_name',
|
|
125
|
+
:'full_name_similarity',
|
|
126
|
+
:'origin_document',
|
|
127
|
+
:'date_of_birth',
|
|
128
|
+
:'mother_full_name',
|
|
129
|
+
:'father_full_name',
|
|
130
|
+
:'category',
|
|
131
|
+
:'registration_number',
|
|
132
|
+
:'registration_number_check_digits_valid',
|
|
133
|
+
:'first_issue_date',
|
|
134
|
+
:'observations',
|
|
135
|
+
:'issue_city',
|
|
136
|
+
:'issue_state',
|
|
137
|
+
:'validation_number',
|
|
138
|
+
:'renach_number',
|
|
139
|
+
:'facial_biometry'
|
|
140
|
+
])
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Initializes the object
|
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
145
|
+
def initialize(attributes = {})
|
|
146
|
+
if (!attributes.is_a?(Hash))
|
|
147
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::BrazilCnhProviderOutput` initialize method"
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
151
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
152
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
153
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
154
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::BrazilCnhProviderOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
155
|
+
end
|
|
156
|
+
h[k.to_sym] = v
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if attributes.key?(:'full_name')
|
|
160
|
+
self.full_name = attributes[:'full_name']
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if attributes.key?(:'full_name_similarity')
|
|
164
|
+
self.full_name_similarity = attributes[:'full_name_similarity']
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
if attributes.key?(:'origin_document')
|
|
168
|
+
self.origin_document = attributes[:'origin_document']
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'date_of_birth')
|
|
172
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'mother_full_name')
|
|
176
|
+
self.mother_full_name = attributes[:'mother_full_name']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.key?(:'father_full_name')
|
|
180
|
+
self.father_full_name = attributes[:'father_full_name']
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if attributes.key?(:'category')
|
|
184
|
+
self.category = attributes[:'category']
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if attributes.key?(:'registration_number')
|
|
188
|
+
self.registration_number = attributes[:'registration_number']
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if attributes.key?(:'registration_number_check_digits_valid')
|
|
192
|
+
self.registration_number_check_digits_valid = attributes[:'registration_number_check_digits_valid']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.key?(:'first_issue_date')
|
|
196
|
+
self.first_issue_date = attributes[:'first_issue_date']
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if attributes.key?(:'observations')
|
|
200
|
+
self.observations = attributes[:'observations']
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if attributes.key?(:'issue_city')
|
|
204
|
+
self.issue_city = attributes[:'issue_city']
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
if attributes.key?(:'issue_state')
|
|
208
|
+
self.issue_state = attributes[:'issue_state']
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
if attributes.key?(:'validation_number')
|
|
212
|
+
self.validation_number = attributes[:'validation_number']
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if attributes.key?(:'renach_number')
|
|
216
|
+
self.renach_number = attributes[:'renach_number']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'facial_biometry')
|
|
220
|
+
self.facial_biometry = attributes[:'facial_biometry']
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
225
|
+
# @return Array for valid properties with the reasons
|
|
226
|
+
def list_invalid_properties
|
|
227
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
228
|
+
invalid_properties = Array.new
|
|
229
|
+
invalid_properties
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Check to see if the all the properties in the model are valid
|
|
233
|
+
# @return true if the model is valid
|
|
234
|
+
def valid?
|
|
235
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
236
|
+
true
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Checks equality by comparing each attribute.
|
|
240
|
+
# @param [Object] Object to be compared
|
|
241
|
+
def ==(o)
|
|
242
|
+
return true if self.equal?(o)
|
|
243
|
+
self.class == o.class &&
|
|
244
|
+
full_name == o.full_name &&
|
|
245
|
+
full_name_similarity == o.full_name_similarity &&
|
|
246
|
+
origin_document == o.origin_document &&
|
|
247
|
+
date_of_birth == o.date_of_birth &&
|
|
248
|
+
mother_full_name == o.mother_full_name &&
|
|
249
|
+
father_full_name == o.father_full_name &&
|
|
250
|
+
category == o.category &&
|
|
251
|
+
registration_number == o.registration_number &&
|
|
252
|
+
registration_number_check_digits_valid == o.registration_number_check_digits_valid &&
|
|
253
|
+
first_issue_date == o.first_issue_date &&
|
|
254
|
+
observations == o.observations &&
|
|
255
|
+
issue_city == o.issue_city &&
|
|
256
|
+
issue_state == o.issue_state &&
|
|
257
|
+
validation_number == o.validation_number &&
|
|
258
|
+
renach_number == o.renach_number &&
|
|
259
|
+
facial_biometry == o.facial_biometry
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# @see the `==` method
|
|
263
|
+
# @param [Object] Object to be compared
|
|
264
|
+
def eql?(o)
|
|
265
|
+
self == o
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Calculates hash code according to all attributes.
|
|
269
|
+
# @return [Integer] Hash code
|
|
270
|
+
def hash
|
|
271
|
+
[full_name, full_name_similarity, origin_document, date_of_birth, mother_full_name, father_full_name, category, registration_number, registration_number_check_digits_valid, first_issue_date, observations, issue_city, issue_state, validation_number, renach_number, facial_biometry].hash
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Builds the object from hash
|
|
275
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
276
|
+
# @return [Object] Returns the model itself
|
|
277
|
+
def self.build_from_hash(attributes)
|
|
278
|
+
return nil unless attributes.is_a?(Hash)
|
|
279
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
280
|
+
transformed_hash = {}
|
|
281
|
+
openapi_types.each_pair do |key, type|
|
|
282
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
283
|
+
transformed_hash["#{key}"] = nil
|
|
284
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
285
|
+
# check to ensure the input is an array given that the attribute
|
|
286
|
+
# is documented as an array but the input is not
|
|
287
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
288
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
289
|
+
end
|
|
290
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
291
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
new(transformed_hash)
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Returns the object in the form of hash
|
|
298
|
+
# @return [Hash] Returns the object in the form of hash
|
|
299
|
+
def to_hash
|
|
300
|
+
hash = {}
|
|
301
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
302
|
+
value = self.send(attr)
|
|
303
|
+
if value.nil?
|
|
304
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
305
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
hash[param] = _to_hash(value)
|
|
309
|
+
end
|
|
310
|
+
hash
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
end
|
|
@@ -30,7 +30,7 @@ module TrinsicApi
|
|
|
30
30
|
# Whether the session should fall back to a Trinsic-hosted UI in certain instances. Specifically, fallback will occur if any of the following are true: - You attempted to launch a provider which requires a capability you did not express support for - In this case, Trinsic's hosted UI will perform the necessary capability - You attempted to launch a provider which requires input, and the input was either not provided or incomplete - In this case, Trinsic's hosted UI will collect the necessary input from the user If fallback occurs, the session's NextStep will always be LaunchBrowser, and the CollectionMethod will always be CaptureRedirect. If this field is set to `true`, you must also: 1. Set the `RedirectUrl` field to a non-empty value 2. Include the `LaunchBrowser` and `CaptureRedirect` capabilities in the `Capabilities` field
|
|
31
31
|
attr_accessor :fallback_to_hosted_ui
|
|
32
32
|
|
|
33
|
-
# Preferences for languages to show first if the session falls back
|
|
33
|
+
# Preferences for languages to show first in supported provider launch flows and, if the session falls back, in the Trinsic-hosted UI. If left empty, the Hosted UI defaults to the user's navigator languages. If no preferred language is available, the Hosted UI falls back to English.
|
|
34
34
|
attr_accessor :browser_languages
|
|
35
35
|
|
|
36
36
|
# Provider-specific input for those providers which require it.
|
|
@@ -24,7 +24,7 @@ module TrinsicApi
|
|
|
24
24
|
# The Redirect URL to which the user should be sent after the session is complete.
|
|
25
25
|
attr_accessor :redirect_url
|
|
26
26
|
|
|
27
|
-
# Preferences for languages to show first in the Hosted UI. If left empty, the Hosted UI defaults to the user's navigator languages. If no preferred language is available, the Hosted UI falls back to English.
|
|
27
|
+
# Preferences for languages to show first in the Hosted UI and supported provider launch flows. If left empty, the Hosted UI defaults to the user's navigator languages. If no preferred language is available, the Hosted UI falls back to English.
|
|
28
28
|
attr_accessor :browser_languages
|
|
29
29
|
|
|
30
30
|
# Provider-specific input for those providers which require it. <b>Deprecated:</b> In the future, Hosted Provider Sessions will not accept input on creation, and will instead always redirect the user to a hosted interface to collect input. If you need to collect input from the user yourself, please use the Create Direct Session endpoint instead.
|