trinsic_api 1.2.0 → 2.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/README.md +1 -1
- data/docs/AadhaarInput.md +20 -0
- data/docs/Address.md +3 -3
- data/docs/AttachmentAccessKeys.md +7 -5
- data/docs/AttachmentsApi.md +1 -1
- data/docs/BangladeshNationalIdInput.md +24 -0
- data/docs/BrazilCpfCheckInput.md +18 -0
- data/docs/BrazilDigitalCnhInput.md +24 -0
- data/docs/CreateAdvancedProviderSessionRequest.md +26 -0
- data/docs/CreateAdvancedProviderSessionResponse.md +22 -0
- data/docs/CreateHostedProviderSessionRequest.md +22 -0
- data/docs/CreateHostedProviderSessionResponse.md +22 -0
- data/docs/CreateWidgetSessionRequest.md +22 -0
- data/docs/CreateWidgetSessionResponse.md +22 -0
- data/docs/DocumentData.md +3 -3
- data/docs/DocumentScanAttachments.md +18 -0
- data/docs/{SessionState.md → DocumentType.md} +2 -2
- data/docs/HttpValidationProblemDetails.md +28 -0
- data/docs/IdentityData.md +6 -4
- data/docs/IdinInput.md +18 -0
- data/docs/IndonesiaNikInput.md +22 -0
- data/docs/{FailureMessage.md → IntegrationCapability.md} +2 -5
- data/docs/IntegrationLaunchMethod.md +15 -0
- data/docs/IntegrationStep.md +22 -0
- data/docs/KenyaNidInput.md +28 -0
- data/docs/{SessionFailCode.md → Language.md} +2 -2
- data/docs/ListProviderContractsResponse.md +18 -0
- data/docs/MexicoCurpInput.md +18 -0
- data/docs/MobileIdInput.md +22 -0
- data/docs/NetworkApi.md +22 -25
- data/docs/NigeriaNinInput.md +30 -0
- data/docs/PersonData.md +14 -12
- data/docs/PhilippineMatchInput.md +26 -0
- data/docs/PhilippineQRInput.md +20 -0
- data/docs/ProblemDetails.md +26 -0
- data/docs/ProviderAttachments.md +18 -0
- data/docs/ProviderContract.md +46 -0
- data/docs/ProviderInformation.md +3 -3
- data/docs/ProviderInput.md +50 -0
- data/docs/RecommendRequest.md +2 -6
- data/docs/RecommendationInfo.md +24 -0
- data/docs/RefreshStepContentRequest.md +18 -0
- data/docs/RefreshStepContentResponse.md +18 -0
- data/docs/ResultCollection.md +20 -0
- data/docs/ResultCollectionMethod.md +15 -0
- data/docs/Session.md +6 -8
- data/docs/{VerificationFailCode.md → SessionErrorCode.md} +2 -2
- data/docs/SessionsApi.md +237 -19
- data/docs/Sex.md +15 -0
- data/docs/SmartIdInput.md +18 -0
- data/docs/SouthAfricaNidInput.md +24 -0
- data/docs/SpidInput.md +18 -0
- data/docs/StepRefreshInfo.md +22 -0
- data/docs/SubProviderMetadata.md +24 -0
- data/docs/TrinsicTestDatabaseLookupInput.md +24 -0
- data/docs/TrinsicTestSubProvidersInput.md +18 -0
- data/lib/trinsic_api/api/attachments_api.rb +3 -3
- data/lib/trinsic_api/api/network_api.rb +19 -25
- data/lib/trinsic_api/api/sessions_api.rb +219 -21
- data/lib/trinsic_api/api_client.rb +1 -1
- data/lib/trinsic_api/api_error.rb +1 -1
- data/lib/trinsic_api/configuration.rb +1 -1
- data/lib/trinsic_api/models/aadhaar_input.rb +227 -0
- data/lib/trinsic_api/models/address.rb +16 -10
- data/lib/trinsic_api/models/attachment_access_keys.rb +25 -10
- data/lib/trinsic_api/models/bangladesh_national_id_input.rb +249 -0
- data/lib/trinsic_api/models/brazil_cpf_check_input.rb +261 -0
- data/lib/trinsic_api/models/brazil_digital_cnh_input.rb +294 -0
- data/lib/trinsic_api/models/cancel_session_response.rb +1 -1
- data/lib/trinsic_api/models/create_advanced_provider_session_request.rb +312 -0
- data/lib/trinsic_api/models/create_advanced_provider_session_response.rb +256 -0
- data/lib/trinsic_api/models/create_hosted_provider_session_request.rb +288 -0
- data/lib/trinsic_api/models/create_hosted_provider_session_response.rb +256 -0
- data/lib/trinsic_api/models/create_widget_session_request.rb +240 -0
- data/lib/trinsic_api/models/create_widget_session_response.rb +256 -0
- data/lib/trinsic_api/models/document_data.rb +32 -4
- data/lib/trinsic_api/models/{failure_message.rb → document_scan_attachments.rb} +12 -18
- data/lib/trinsic_api/models/{session_state.rb → document_type.rb} +9 -11
- data/lib/trinsic_api/models/get_attachment_request.rb +1 -1
- data/lib/trinsic_api/models/get_attachment_response.rb +1 -1
- data/lib/trinsic_api/models/get_session_response.rb +1 -1
- data/lib/trinsic_api/models/get_session_result_request.rb +1 -1
- data/lib/trinsic_api/models/get_session_result_response.rb +2 -1
- data/lib/trinsic_api/models/{known_address.rb → http_validation_problem_details.rb} +55 -51
- data/lib/trinsic_api/models/identity_data.rb +16 -6
- data/lib/trinsic_api/models/{known_identity_data.rb → idin_input.rb} +13 -13
- data/lib/trinsic_api/models/{disclosed_fields_request.rb → indonesia_nik_input.rb} +94 -93
- data/lib/trinsic_api/models/integration_capability.rb +44 -0
- data/lib/trinsic_api/models/integration_launch_method.rb +42 -0
- data/lib/trinsic_api/models/integration_step.rb +275 -0
- data/lib/trinsic_api/models/kenya_nid_input.rb +397 -0
- data/lib/trinsic_api/models/language.rb +42 -0
- data/lib/trinsic_api/models/{validation_result.rb → list_provider_contracts_response.rb} +17 -25
- data/lib/trinsic_api/models/list_providers_response.rb +1 -1
- data/lib/trinsic_api/models/list_sessions_response.rb +1 -1
- data/lib/trinsic_api/models/{create_session_response.rb → mexico_curp_input.rb} +44 -26
- data/lib/trinsic_api/models/mobile_id_input.rb +260 -0
- data/lib/trinsic_api/models/nigeria_nin_input.rb +383 -0
- data/lib/trinsic_api/models/order_direction.rb +1 -1
- data/lib/trinsic_api/models/person_data.rb +50 -15
- data/lib/trinsic_api/models/{known_person_data.rb → philippine_match_input.rb} +28 -33
- data/lib/trinsic_api/models/philippine_qr_input.rb +227 -0
- data/lib/trinsic_api/models/{verification.rb → problem_details.rb} +49 -42
- data/lib/trinsic_api/models/provider_attachments.rb +215 -0
- data/lib/trinsic_api/models/provider_contract.rb +482 -0
- data/lib/trinsic_api/models/provider_info.rb +1 -1
- data/lib/trinsic_api/models/provider_information.rb +1 -1
- data/lib/trinsic_api/models/provider_input.rb +392 -0
- data/lib/trinsic_api/models/recommend_request.rb +10 -40
- data/lib/trinsic_api/models/recommend_response.rb +1 -1
- data/lib/trinsic_api/models/recommendation_info.rb +256 -0
- data/lib/trinsic_api/models/refresh_step_content_request.rb +216 -0
- data/lib/trinsic_api/models/{identity_lookup_response.rb → refresh_step_content_response.rb} +16 -16
- data/lib/trinsic_api/models/result_collection.rb +261 -0
- data/lib/trinsic_api/models/result_collection_method.rb +40 -0
- data/lib/trinsic_api/models/session.rb +32 -48
- data/lib/trinsic_api/models/session_error_code.rb +48 -0
- data/lib/trinsic_api/models/session_ordering.rb +1 -1
- data/lib/trinsic_api/models/sex.rb +42 -0
- data/lib/trinsic_api/models/smart_id_input.rb +216 -0
- data/lib/trinsic_api/models/{disclosed_fields.rb → south_africa_nid_input.rb} +107 -154
- data/lib/trinsic_api/models/spid_input.rb +216 -0
- data/lib/trinsic_api/models/step_refresh_info.rb +256 -0
- data/lib/trinsic_api/models/sub_provider_metadata.rb +274 -0
- data/lib/trinsic_api/models/trinsic_test_database_lookup_input.rb +249 -0
- data/lib/trinsic_api/models/trinsic_test_sub_providers_input.rb +216 -0
- data/lib/trinsic_api/version.rb +2 -2
- data/lib/trinsic_api.rb +45 -15
- data/spec/api/attachments_api_spec.rb +2 -2
- data/spec/api/network_api_spec.rb +8 -9
- data/spec/api/sessions_api_spec.rb +45 -8
- data/spec/models/{verification_spec.rb → aadhaar_input_spec.rb} +9 -9
- data/spec/models/address_spec.rb +2 -2
- data/spec/models/attachment_access_keys_spec.rb +7 -1
- data/spec/models/bangladesh_national_id_input_spec.rb +54 -0
- data/spec/models/{identity_lookup_response_spec.rb → brazil_cpf_check_input_spec.rb} +8 -8
- data/spec/models/brazil_digital_cnh_input_spec.rb +54 -0
- data/spec/models/cancel_session_response_spec.rb +1 -1
- data/spec/models/create_advanced_provider_session_request_spec.rb +60 -0
- data/spec/models/create_advanced_provider_session_response_spec.rb +48 -0
- data/spec/models/create_hosted_provider_session_request_spec.rb +48 -0
- data/spec/models/create_hosted_provider_session_response_spec.rb +48 -0
- data/spec/models/create_widget_session_request_spec.rb +48 -0
- data/spec/models/create_widget_session_response_spec.rb +48 -0
- data/spec/models/document_data_spec.rb +1 -1
- data/spec/models/document_scan_attachments_spec.rb +36 -0
- data/spec/models/{session_state_spec.rb → document_type_spec.rb} +7 -7
- data/spec/models/get_attachment_request_spec.rb +1 -1
- data/spec/models/get_attachment_response_spec.rb +1 -1
- data/spec/models/get_session_response_spec.rb +1 -1
- data/spec/models/get_session_result_request_spec.rb +1 -1
- data/spec/models/get_session_result_response_spec.rb +1 -1
- data/spec/models/http_validation_problem_details_spec.rb +66 -0
- data/spec/models/identity_data_spec.rb +7 -1
- data/spec/models/{failure_message_spec.rb → idin_input_spec.rb} +8 -8
- data/spec/models/indonesia_nik_input_spec.rb +48 -0
- data/spec/models/integration_capability_spec.rb +30 -0
- data/spec/models/integration_launch_method_spec.rb +30 -0
- data/spec/models/integration_step_spec.rb +48 -0
- data/spec/models/{known_person_data_spec.rb → kenya_nid_input_spec.rb} +13 -13
- data/spec/models/{session_fail_code_spec.rb → language_spec.rb} +7 -7
- data/spec/models/list_provider_contracts_response_spec.rb +36 -0
- data/spec/models/list_providers_response_spec.rb +1 -1
- data/spec/models/list_sessions_response_spec.rb +1 -1
- data/spec/models/{known_identity_data_spec.rb → mexico_curp_input_spec.rb} +8 -8
- data/spec/models/mobile_id_input_spec.rb +48 -0
- data/spec/models/{known_address_spec.rb → nigeria_nin_input_spec.rb} +14 -14
- data/spec/models/order_direction_spec.rb +1 -1
- data/spec/models/person_data_spec.rb +8 -2
- data/spec/models/{create_session_request_spec.rb → philippine_match_input_spec.rb} +12 -12
- data/spec/models/{create_session_response_spec.rb → philippine_qr_input_spec.rb} +9 -9
- data/spec/models/problem_details_spec.rb +60 -0
- data/spec/models/provider_attachments_spec.rb +36 -0
- data/spec/models/{disclosed_fields_request_spec.rb → provider_contract_spec.rb} +37 -19
- data/spec/models/provider_info_spec.rb +1 -1
- data/spec/models/provider_information_spec.rb +1 -1
- data/spec/models/{disclosed_fields_spec.rb → provider_input_spec.rb} +49 -19
- data/spec/models/recommend_request_spec.rb +2 -14
- data/spec/models/recommend_response_spec.rb +1 -1
- data/spec/models/recommendation_info_spec.rb +54 -0
- data/spec/models/refresh_step_content_request_spec.rb +36 -0
- data/spec/models/refresh_step_content_response_spec.rb +36 -0
- data/spec/models/result_collection_method_spec.rb +30 -0
- data/spec/models/{validation_result_spec.rb → result_collection_spec.rb} +9 -9
- data/spec/models/{verification_fail_code_spec.rb → session_error_code_spec.rb} +7 -7
- data/spec/models/session_ordering_spec.rb +1 -1
- data/spec/models/session_spec.rb +4 -10
- data/spec/models/sex_spec.rb +30 -0
- data/spec/models/smart_id_input_spec.rb +36 -0
- data/spec/models/south_africa_nid_input_spec.rb +54 -0
- data/spec/models/spid_input_spec.rb +36 -0
- data/spec/models/step_refresh_info_spec.rb +48 -0
- data/spec/models/sub_provider_metadata_spec.rb +54 -0
- data/spec/models/trinsic_test_database_lookup_input_spec.rb +54 -0
- data/spec/models/trinsic_test_sub_providers_input_spec.rb +36 -0
- data/spec/spec_helper.rb +1 -1
- data/trinsic_api.gemspec +1 -1
- metadata +195 -75
- data/docs/CreateSessionRequest.md +0 -26
- data/docs/CreateSessionResponse.md +0 -20
- data/docs/DisclosedFields.md +0 -40
- data/docs/DisclosedFieldsRequest.md +0 -40
- data/docs/IdentityLookupResponse.md +0 -18
- data/docs/KnownAddress.md +0 -30
- data/docs/KnownIdentityData.md +0 -18
- data/docs/KnownPersonData.md +0 -28
- data/docs/ValidationResult.md +0 -20
- data/docs/Verification.md +0 -20
- data/lib/trinsic_api/models/create_session_request.rb +0 -257
- data/lib/trinsic_api/models/session_fail_code.rb +0 -45
- data/lib/trinsic_api/models/verification_fail_code.rb +0 -44
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trinsic API
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
@@ -15,22 +15,21 @@ require 'time'
|
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
17
|
class IdentityData
|
18
|
-
# The ID of the integration from which this data originated (eg \"yoti\", \"clear\")
|
19
18
|
attr_accessor :originating_provider_id
|
20
19
|
|
21
|
-
|
20
|
+
attr_accessor :originating_sub_provider_id
|
21
|
+
|
22
22
|
attr_accessor :person
|
23
23
|
|
24
|
-
# Identity data of the document involved in verification, if relevant
|
25
24
|
attr_accessor :document
|
26
25
|
|
27
|
-
# Attachment Access Keys for attachments (eg document / selfie images)
|
28
26
|
attr_accessor :attachment_access_keys
|
29
27
|
|
30
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
29
|
def self.attribute_map
|
32
30
|
{
|
33
31
|
:'originating_provider_id' => :'originatingProviderId',
|
32
|
+
:'originating_sub_provider_id' => :'originatingSubProviderId',
|
34
33
|
:'person' => :'person',
|
35
34
|
:'document' => :'document',
|
36
35
|
:'attachment_access_keys' => :'attachmentAccessKeys'
|
@@ -46,6 +45,7 @@ module TrinsicApi
|
|
46
45
|
def self.openapi_types
|
47
46
|
{
|
48
47
|
:'originating_provider_id' => :'String',
|
48
|
+
:'originating_sub_provider_id' => :'String',
|
49
49
|
:'person' => :'PersonData',
|
50
50
|
:'document' => :'DocumentData',
|
51
51
|
:'attachment_access_keys' => :'AttachmentAccessKeys'
|
@@ -55,6 +55,11 @@ module TrinsicApi
|
|
55
55
|
# List of attributes with nullable: true
|
56
56
|
def self.openapi_nullable
|
57
57
|
Set.new([
|
58
|
+
:'originating_provider_id',
|
59
|
+
:'originating_sub_provider_id',
|
60
|
+
:'person',
|
61
|
+
:'document',
|
62
|
+
:'attachment_access_keys'
|
58
63
|
])
|
59
64
|
end
|
60
65
|
|
@@ -77,6 +82,10 @@ module TrinsicApi
|
|
77
82
|
self.originating_provider_id = attributes[:'originating_provider_id']
|
78
83
|
end
|
79
84
|
|
85
|
+
if attributes.key?(:'originating_sub_provider_id')
|
86
|
+
self.originating_sub_provider_id = attributes[:'originating_sub_provider_id']
|
87
|
+
end
|
88
|
+
|
80
89
|
if attributes.key?(:'person')
|
81
90
|
self.person = attributes[:'person']
|
82
91
|
end
|
@@ -111,6 +120,7 @@ module TrinsicApi
|
|
111
120
|
return true if self.equal?(o)
|
112
121
|
self.class == o.class &&
|
113
122
|
originating_provider_id == o.originating_provider_id &&
|
123
|
+
originating_sub_provider_id == o.originating_sub_provider_id &&
|
114
124
|
person == o.person &&
|
115
125
|
document == o.document &&
|
116
126
|
attachment_access_keys == o.attachment_access_keys
|
@@ -125,7 +135,7 @@ module TrinsicApi
|
|
125
135
|
# Calculates hash code according to all attributes.
|
126
136
|
# @return [Integer] Hash code
|
127
137
|
def hash
|
128
|
-
[originating_provider_id, person, document, attachment_access_keys].hash
|
138
|
+
[originating_provider_id, originating_sub_provider_id, person, document, attachment_access_keys].hash
|
129
139
|
end
|
130
140
|
|
131
141
|
# Builds the object from hash
|
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trinsic API
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
@@ -14,15 +14,14 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
attr_accessor :person
|
17
|
+
class IdinInput
|
18
|
+
# The ID of the specific bank to invoke with IDIN. If not specified, the user will be prompted to select a bank.
|
19
|
+
attr_accessor :sub_provider_id
|
21
20
|
|
22
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
22
|
def self.attribute_map
|
24
23
|
{
|
25
|
-
:'
|
24
|
+
:'sub_provider_id' => :'subProviderId'
|
26
25
|
}
|
27
26
|
end
|
28
27
|
|
@@ -34,13 +33,14 @@ module TrinsicApi
|
|
34
33
|
# Attribute type mapping.
|
35
34
|
def self.openapi_types
|
36
35
|
{
|
37
|
-
:'
|
36
|
+
:'sub_provider_id' => :'String'
|
38
37
|
}
|
39
38
|
end
|
40
39
|
|
41
40
|
# List of attributes with nullable: true
|
42
41
|
def self.openapi_nullable
|
43
42
|
Set.new([
|
43
|
+
:'sub_provider_id'
|
44
44
|
])
|
45
45
|
end
|
46
46
|
|
@@ -48,19 +48,19 @@ module TrinsicApi
|
|
48
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
49
49
|
def initialize(attributes = {})
|
50
50
|
if (!attributes.is_a?(Hash))
|
51
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::IdinInput` initialize method"
|
52
52
|
end
|
53
53
|
|
54
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
55
55
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
56
|
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::IdinInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
58
|
end
|
59
59
|
h[k.to_sym] = v
|
60
60
|
}
|
61
61
|
|
62
|
-
if attributes.key?(:'
|
63
|
-
self.
|
62
|
+
if attributes.key?(:'sub_provider_id')
|
63
|
+
self.sub_provider_id = attributes[:'sub_provider_id']
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
@@ -84,7 +84,7 @@ module TrinsicApi
|
|
84
84
|
def ==(o)
|
85
85
|
return true if self.equal?(o)
|
86
86
|
self.class == o.class &&
|
87
|
-
|
87
|
+
sub_provider_id == o.sub_provider_id
|
88
88
|
end
|
89
89
|
|
90
90
|
# @see the `==` method
|
@@ -96,7 +96,7 @@ module TrinsicApi
|
|
96
96
|
# Calculates hash code according to all attributes.
|
97
97
|
# @return [Integer] Hash code
|
98
98
|
def hash
|
99
|
-
[
|
99
|
+
[sub_provider_id].hash
|
100
100
|
end
|
101
101
|
|
102
102
|
# Builds the object from hash
|
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trinsic API
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
@@ -14,46 +14,22 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
class
|
18
|
-
|
19
|
-
|
20
|
-
attr_accessor :given_name
|
21
|
-
|
22
|
-
attr_accessor :family_name
|
23
|
-
|
24
|
-
attr_accessor :address
|
17
|
+
class IndonesiaNikInput
|
18
|
+
# The user's full name
|
19
|
+
attr_accessor :full_name
|
25
20
|
|
21
|
+
# The user's date of birth, in `YYYY-MM-DD` format
|
26
22
|
attr_accessor :date_of_birth
|
27
23
|
|
28
|
-
|
29
|
-
|
30
|
-
attr_accessor :issue_date
|
31
|
-
|
32
|
-
attr_accessor :expiration_date
|
33
|
-
|
34
|
-
attr_accessor :document_front
|
35
|
-
|
36
|
-
attr_accessor :document_back
|
37
|
-
|
38
|
-
attr_accessor :document_portrait
|
39
|
-
|
40
|
-
attr_accessor :selfie
|
24
|
+
# The user's Indonesia NIK ID number
|
25
|
+
attr_accessor :nik_id_number
|
41
26
|
|
42
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
28
|
def self.attribute_map
|
44
29
|
{
|
45
|
-
:'
|
46
|
-
:'given_name' => :'givenName',
|
47
|
-
:'family_name' => :'familyName',
|
48
|
-
:'address' => :'address',
|
30
|
+
:'full_name' => :'fullName',
|
49
31
|
:'date_of_birth' => :'dateOfBirth',
|
50
|
-
:'
|
51
|
-
:'issue_date' => :'issueDate',
|
52
|
-
:'expiration_date' => :'expirationDate',
|
53
|
-
:'document_front' => :'documentFront',
|
54
|
-
:'document_back' => :'documentBack',
|
55
|
-
:'document_portrait' => :'documentPortrait',
|
56
|
-
:'selfie' => :'selfie'
|
32
|
+
:'nik_id_number' => :'nikIdNumber'
|
57
33
|
}
|
58
34
|
end
|
59
35
|
|
@@ -65,18 +41,9 @@ module TrinsicApi
|
|
65
41
|
# Attribute type mapping.
|
66
42
|
def self.openapi_types
|
67
43
|
{
|
68
|
-
:'
|
69
|
-
:'
|
70
|
-
:'
|
71
|
-
:'address' => :'Boolean',
|
72
|
-
:'date_of_birth' => :'Boolean',
|
73
|
-
:'country' => :'Boolean',
|
74
|
-
:'issue_date' => :'Boolean',
|
75
|
-
:'expiration_date' => :'Boolean',
|
76
|
-
:'document_front' => :'Boolean',
|
77
|
-
:'document_back' => :'Boolean',
|
78
|
-
:'document_portrait' => :'Boolean',
|
79
|
-
:'selfie' => :'Boolean'
|
44
|
+
:'full_name' => :'String',
|
45
|
+
:'date_of_birth' => :'Date',
|
46
|
+
:'nik_id_number' => :'String'
|
80
47
|
}
|
81
48
|
end
|
82
49
|
|
@@ -90,71 +57,70 @@ module TrinsicApi
|
|
90
57
|
# @param [Hash] attributes Model attributes in the form of hash
|
91
58
|
def initialize(attributes = {})
|
92
59
|
if (!attributes.is_a?(Hash))
|
93
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::IndonesiaNikInput` initialize method"
|
94
61
|
end
|
95
62
|
|
96
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
97
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
98
65
|
if (!self.class.attribute_map.key?(k.to_sym))
|
99
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::IndonesiaNikInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
100
67
|
end
|
101
68
|
h[k.to_sym] = v
|
102
69
|
}
|
103
70
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
106
|
-
|
107
|
-
|
108
|
-
if attributes.key?(:'given_name')
|
109
|
-
self.given_name = attributes[:'given_name']
|
110
|
-
end
|
111
|
-
|
112
|
-
if attributes.key?(:'family_name')
|
113
|
-
self.family_name = attributes[:'family_name']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'address')
|
117
|
-
self.address = attributes[:'address']
|
71
|
+
if attributes.key?(:'full_name')
|
72
|
+
self.full_name = attributes[:'full_name']
|
73
|
+
else
|
74
|
+
self.full_name = nil
|
118
75
|
end
|
119
76
|
|
120
77
|
if attributes.key?(:'date_of_birth')
|
121
78
|
self.date_of_birth = attributes[:'date_of_birth']
|
79
|
+
else
|
80
|
+
self.date_of_birth = nil
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:'nik_id_number')
|
84
|
+
self.nik_id_number = attributes[:'nik_id_number']
|
85
|
+
else
|
86
|
+
self.nik_id_number = nil
|
122
87
|
end
|
88
|
+
end
|
123
89
|
|
124
|
-
|
125
|
-
|
90
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
91
|
+
# @return Array for valid properties with the reasons
|
92
|
+
def list_invalid_properties
|
93
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
94
|
+
invalid_properties = Array.new
|
95
|
+
if @full_name.nil?
|
96
|
+
invalid_properties.push('invalid value for "full_name", full_name cannot be nil.')
|
126
97
|
end
|
127
98
|
|
128
|
-
if
|
129
|
-
|
99
|
+
if @full_name.to_s.length < 1
|
100
|
+
invalid_properties.push('invalid value for "full_name", the character length must be great than or equal to 1.')
|
130
101
|
end
|
131
102
|
|
132
|
-
if
|
133
|
-
|
103
|
+
if @date_of_birth.nil?
|
104
|
+
invalid_properties.push('invalid value for "date_of_birth", date_of_birth cannot be nil.')
|
134
105
|
end
|
135
106
|
|
136
|
-
if
|
137
|
-
|
107
|
+
if @nik_id_number.nil?
|
108
|
+
invalid_properties.push('invalid value for "nik_id_number", nik_id_number cannot be nil.')
|
138
109
|
end
|
139
110
|
|
140
|
-
if
|
141
|
-
|
111
|
+
if @nik_id_number.to_s.length > 16
|
112
|
+
invalid_properties.push('invalid value for "nik_id_number", the character length must be smaller than or equal to 16.')
|
142
113
|
end
|
143
114
|
|
144
|
-
if
|
145
|
-
|
115
|
+
if @nik_id_number.to_s.length < 16
|
116
|
+
invalid_properties.push('invalid value for "nik_id_number", the character length must be great than or equal to 16.')
|
146
117
|
end
|
147
118
|
|
148
|
-
|
149
|
-
|
119
|
+
pattern = Regexp.new(/^\d*$/)
|
120
|
+
if @nik_id_number !~ pattern
|
121
|
+
invalid_properties.push("invalid value for \"nik_id_number\", must conform to the pattern #{pattern}.")
|
150
122
|
end
|
151
|
-
end
|
152
123
|
|
153
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
154
|
-
# @return Array for valid properties with the reasons
|
155
|
-
def list_invalid_properties
|
156
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
157
|
-
invalid_properties = Array.new
|
158
124
|
invalid_properties
|
159
125
|
end
|
160
126
|
|
@@ -162,26 +128,61 @@ module TrinsicApi
|
|
162
128
|
# @return true if the model is valid
|
163
129
|
def valid?
|
164
130
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
131
|
+
return false if @full_name.nil?
|
132
|
+
return false if @full_name.to_s.length < 1
|
133
|
+
return false if @date_of_birth.nil?
|
134
|
+
return false if @nik_id_number.nil?
|
135
|
+
return false if @nik_id_number.to_s.length > 16
|
136
|
+
return false if @nik_id_number.to_s.length < 16
|
137
|
+
return false if @nik_id_number !~ Regexp.new(/^\d*$/)
|
165
138
|
true
|
166
139
|
end
|
167
140
|
|
141
|
+
# Custom attribute writer method with validation
|
142
|
+
# @param [Object] full_name Value to be assigned
|
143
|
+
def full_name=(full_name)
|
144
|
+
if full_name.nil?
|
145
|
+
fail ArgumentError, 'full_name cannot be nil'
|
146
|
+
end
|
147
|
+
|
148
|
+
if full_name.to_s.length < 1
|
149
|
+
fail ArgumentError, 'invalid value for "full_name", the character length must be great than or equal to 1.'
|
150
|
+
end
|
151
|
+
|
152
|
+
@full_name = full_name
|
153
|
+
end
|
154
|
+
|
155
|
+
# Custom attribute writer method with validation
|
156
|
+
# @param [Object] nik_id_number Value to be assigned
|
157
|
+
def nik_id_number=(nik_id_number)
|
158
|
+
if nik_id_number.nil?
|
159
|
+
fail ArgumentError, 'nik_id_number cannot be nil'
|
160
|
+
end
|
161
|
+
|
162
|
+
if nik_id_number.to_s.length > 16
|
163
|
+
fail ArgumentError, 'invalid value for "nik_id_number", the character length must be smaller than or equal to 16.'
|
164
|
+
end
|
165
|
+
|
166
|
+
if nik_id_number.to_s.length < 16
|
167
|
+
fail ArgumentError, 'invalid value for "nik_id_number", the character length must be great than or equal to 16.'
|
168
|
+
end
|
169
|
+
|
170
|
+
pattern = Regexp.new(/^\d*$/)
|
171
|
+
if nik_id_number !~ pattern
|
172
|
+
fail ArgumentError, "invalid value for \"nik_id_number\", must conform to the pattern #{pattern}."
|
173
|
+
end
|
174
|
+
|
175
|
+
@nik_id_number = nik_id_number
|
176
|
+
end
|
177
|
+
|
168
178
|
# Checks equality by comparing each attribute.
|
169
179
|
# @param [Object] Object to be compared
|
170
180
|
def ==(o)
|
171
181
|
return true if self.equal?(o)
|
172
182
|
self.class == o.class &&
|
173
|
-
|
174
|
-
given_name == o.given_name &&
|
175
|
-
family_name == o.family_name &&
|
176
|
-
address == o.address &&
|
183
|
+
full_name == o.full_name &&
|
177
184
|
date_of_birth == o.date_of_birth &&
|
178
|
-
|
179
|
-
issue_date == o.issue_date &&
|
180
|
-
expiration_date == o.expiration_date &&
|
181
|
-
document_front == o.document_front &&
|
182
|
-
document_back == o.document_back &&
|
183
|
-
document_portrait == o.document_portrait &&
|
184
|
-
selfie == o.selfie
|
185
|
+
nik_id_number == o.nik_id_number
|
185
186
|
end
|
186
187
|
|
187
188
|
# @see the `==` method
|
@@ -193,7 +194,7 @@ module TrinsicApi
|
|
193
194
|
# Calculates hash code according to all attributes.
|
194
195
|
# @return [Integer] Hash code
|
195
196
|
def hash
|
196
|
-
[
|
197
|
+
[full_name, date_of_birth, nik_id_number].hash
|
197
198
|
end
|
198
199
|
|
199
200
|
# Builds the object from hash
|
@@ -0,0 +1,44 @@
|
|
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.8.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TrinsicApi
|
17
|
+
class IntegrationCapability
|
18
|
+
LAUNCH_BROWSER = "LaunchBrowser".freeze
|
19
|
+
DEEPLINK_TO_MOBILE = "DeeplinkToMobile".freeze
|
20
|
+
SHOW_CONTENT = "ShowContent".freeze
|
21
|
+
REFRESH_STEP_CONTENT = "RefreshStepContent".freeze
|
22
|
+
CAPTURE_REDIRECT = "CaptureRedirect".freeze
|
23
|
+
POLL_RESULT = "PollResult".freeze
|
24
|
+
|
25
|
+
def self.all_vars
|
26
|
+
@all_vars ||= [LAUNCH_BROWSER, DEEPLINK_TO_MOBILE, SHOW_CONTENT, REFRESH_STEP_CONTENT, CAPTURE_REDIRECT, POLL_RESULT].freeze
|
27
|
+
end
|
28
|
+
|
29
|
+
# Builds the enum from string
|
30
|
+
# @param [String] The enum value in the form of the string
|
31
|
+
# @return [String] The enum value
|
32
|
+
def self.build_from_hash(value)
|
33
|
+
new.build_from_hash(value)
|
34
|
+
end
|
35
|
+
|
36
|
+
# Builds the enum from string
|
37
|
+
# @param [String] The enum value in the form of the string
|
38
|
+
# @return [String] The enum value
|
39
|
+
def build_from_hash(value)
|
40
|
+
return value if IntegrationCapability.all_vars.include?(value)
|
41
|
+
raise "Invalid ENUM value #{value} for class #IntegrationCapability"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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.8.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TrinsicApi
|
17
|
+
class IntegrationLaunchMethod
|
18
|
+
LAUNCH_BROWSER = "LaunchBrowser".freeze
|
19
|
+
NONE = "None".freeze
|
20
|
+
DEEPLINK_TO_MOBILE = "DeeplinkToMobile".freeze
|
21
|
+
SHOW_CONTENT = "ShowContent".freeze
|
22
|
+
|
23
|
+
def self.all_vars
|
24
|
+
@all_vars ||= [LAUNCH_BROWSER, NONE, DEEPLINK_TO_MOBILE, SHOW_CONTENT].freeze
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def self.build_from_hash(value)
|
31
|
+
new.build_from_hash(value)
|
32
|
+
end
|
33
|
+
|
34
|
+
# Builds the enum from string
|
35
|
+
# @param [String] The enum value in the form of the string
|
36
|
+
# @return [String] The enum value
|
37
|
+
def build_from_hash(value)
|
38
|
+
return value if IntegrationLaunchMethod.all_vars.include?(value)
|
39
|
+
raise "Invalid ENUM value #{value} for class #IntegrationLaunchMethod"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|