trinsic_api 2.1.1.pre.alpha1 → 2.1.1.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/IdentityData.md +2 -0
- data/docs/{IndonesiaDukcapilBiometricMatchInput.md → IndonesiaDukcapilMatchInput.md} +3 -3
- data/docs/Match.md +20 -0
- data/docs/MatchData.md +36 -0
- data/docs/ProviderInput.md +2 -2
- data/lib/trinsic_api/models/identity_data.rb +11 -1
- data/lib/trinsic_api/models/{indonesia_dukcapil_biometric_match_input.rb → indonesia_dukcapil_match_input.rb} +4 -4
- data/lib/trinsic_api/models/match.rb +231 -0
- data/lib/trinsic_api/models/match_data.rb +311 -0
- data/lib/trinsic_api/models/provider_input.rb +9 -9
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +3 -1
- data/spec/models/identity_data_spec.rb +6 -0
- data/spec/models/{indonesia_dukcapil_biometric_match_input_spec.rb → indonesia_dukcapil_match_input_spec.rb} +6 -6
- data/spec/models/match_data_spec.rb +90 -0
- data/spec/models/match_spec.rb +42 -0
- data/spec/models/provider_input_spec.rb +1 -1
- metadata +69 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb8c1256f2b82fda2cfe039fe0f639205d0eaf4fb723e7e624dd3e1ac0a9e035
|
4
|
+
data.tar.gz: 37e08a82c6a552c962d76f2944e9b5649671e2431bb7c2c6963d00e2d3517bd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1e545618fdf78ebbfdc87b5196c25182dd8307c1decff05bddbaea687c6047626f24ff4f47492f02fac8e1b130d82bb08f1d32f94ddff9c9641d49c5e511706
|
7
|
+
data.tar.gz: 52bca12c0a068c80774e791d8c143a6145f9bb8b5a7b13dec6e2bc7d6db91c9c231ae8ed6e1beb536d65a7cecaefdb8ca983d8feb9eb9441378f885e290fbf32
|
data/docs/IdentityData.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
| **originating_sub_provider_id** | **String** | | [optional] |
|
9
9
|
| **person** | [**PersonData**](PersonData.md) | | [optional] |
|
10
10
|
| **document** | [**DocumentData**](DocumentData.md) | | [optional] |
|
11
|
+
| **match** | [**MatchData**](MatchData.md) | | [optional] |
|
11
12
|
| **attachment_access_keys** | [**AttachmentAccessKeys**](AttachmentAccessKeys.md) | | [optional] |
|
12
13
|
|
13
14
|
## Example
|
@@ -20,6 +21,7 @@ instance = TrinsicApi::IdentityData.new(
|
|
20
21
|
originating_sub_provider_id: null,
|
21
22
|
person: null,
|
22
23
|
document: null,
|
24
|
+
match: null,
|
23
25
|
attachment_access_keys: null
|
24
26
|
)
|
25
27
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# TrinsicApi::
|
1
|
+
# TrinsicApi::IndonesiaDukcapilMatchInput
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
| **nik_id_number** | **String** | The user's Indonesia NIK ID number | [optional] |
|
10
10
|
| **email** | **String** | The email address of the individual. Either email or phone number must be provided. | [optional] |
|
11
11
|
| **phone_number** | **String** | The phone number of the individual. Either email or phone number must be provided. | [optional] |
|
12
|
-
| **selfie_image** | **String** | The raw bytes of the selfie image of the individual. Must be JPEG format;
|
12
|
+
| **selfie_image** | **String** | The raw bytes of the selfie image of the individual. Must be JPEG or PNG format; 10MB maximum. | [optional] |
|
13
13
|
| **document_image** | **String** | The raw bytes of the image of the individual's KTP government ID. Must be JPEG format; 1MB maximum. Optional. | [optional] |
|
14
14
|
| **consent_given_at** | **Time** | The timestamp when consent was given by the user for the verification. | [optional] |
|
15
15
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
```ruby
|
19
19
|
require 'trinsic_api'
|
20
20
|
|
21
|
-
instance = TrinsicApi::
|
21
|
+
instance = TrinsicApi::IndonesiaDukcapilMatchInput.new(
|
22
22
|
full_name: null,
|
23
23
|
date_of_birth: null,
|
24
24
|
nik_id_number: null,
|
data/docs/Match.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# TrinsicApi::Match
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **probability_value** | **Float** | | [optional] |
|
8
|
+
| **boolean_value** | **Boolean** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'trinsic_api'
|
14
|
+
|
15
|
+
instance = TrinsicApi::Match.new(
|
16
|
+
probability_value: null,
|
17
|
+
boolean_value: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/MatchData.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# TrinsicApi::MatchData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **national_id_number** | [**Match**](Match.md) | | [optional] |
|
8
|
+
| **full_name** | [**Match**](Match.md) | | [optional] |
|
9
|
+
| **given_name** | [**Match**](Match.md) | | [optional] |
|
10
|
+
| **middle_name** | [**Match**](Match.md) | | [optional] |
|
11
|
+
| **family_name** | [**Match**](Match.md) | | [optional] |
|
12
|
+
| **sex** | [**Match**](Match.md) | | [optional] |
|
13
|
+
| **date_of_birth** | [**Match**](Match.md) | | [optional] |
|
14
|
+
| **face_match** | [**Match**](Match.md) | | [optional] |
|
15
|
+
| **liveness** | [**Match**](Match.md) | | [optional] |
|
16
|
+
| **image_authenticity** | [**Match**](Match.md) | | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'trinsic_api'
|
22
|
+
|
23
|
+
instance = TrinsicApi::MatchData.new(
|
24
|
+
national_id_number: null,
|
25
|
+
full_name: null,
|
26
|
+
given_name: null,
|
27
|
+
middle_name: null,
|
28
|
+
family_name: null,
|
29
|
+
sex: null,
|
30
|
+
date_of_birth: null,
|
31
|
+
face_match: null,
|
32
|
+
liveness: null,
|
33
|
+
image_authenticity: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
data/docs/ProviderInput.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **indonesia_nik** | [**IndonesiaNikInput**](IndonesiaNikInput.md) | Input for the `indonesia-nik-lookup` provider | [optional] |
|
8
|
-
| **
|
8
|
+
| **indonesia_dukcapil_match** | [**IndonesiaDukcapilMatchInput**](IndonesiaDukcapilMatchInput.md) | Input for the `indonesia-dukcapil-match` provider | [optional] |
|
9
9
|
| **mexico_curp** | [**MexicoCurpInput**](MexicoCurpInput.md) | Input for the `mexico-curp-lookup` provider | [optional] |
|
10
10
|
| **south_africa_nid** | [**SouthAfricaNidInput**](SouthAfricaNidInput.md) | Input for the `south-africa-nid-lookup` provider | [optional] |
|
11
11
|
| **kenya_nid** | [**KenyaNidInput**](KenyaNidInput.md) | Input for the `kenya-nid-lookup` provider | [optional] |
|
@@ -30,7 +30,7 @@ require 'trinsic_api'
|
|
30
30
|
|
31
31
|
instance = TrinsicApi::ProviderInput.new(
|
32
32
|
indonesia_nik: null,
|
33
|
-
|
33
|
+
indonesia_dukcapil_match: null,
|
34
34
|
mexico_curp: null,
|
35
35
|
south_africa_nid: null,
|
36
36
|
kenya_nid: null,
|
@@ -23,6 +23,8 @@ module TrinsicApi
|
|
23
23
|
|
24
24
|
attr_accessor :document
|
25
25
|
|
26
|
+
attr_accessor :match
|
27
|
+
|
26
28
|
attr_accessor :attachment_access_keys
|
27
29
|
|
28
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -32,6 +34,7 @@ module TrinsicApi
|
|
32
34
|
:'originating_sub_provider_id' => :'originatingSubProviderId',
|
33
35
|
:'person' => :'person',
|
34
36
|
:'document' => :'document',
|
37
|
+
:'match' => :'match',
|
35
38
|
:'attachment_access_keys' => :'attachmentAccessKeys'
|
36
39
|
}
|
37
40
|
end
|
@@ -53,6 +56,7 @@ module TrinsicApi
|
|
53
56
|
:'originating_sub_provider_id' => :'String',
|
54
57
|
:'person' => :'PersonData',
|
55
58
|
:'document' => :'DocumentData',
|
59
|
+
:'match' => :'MatchData',
|
56
60
|
:'attachment_access_keys' => :'AttachmentAccessKeys'
|
57
61
|
}
|
58
62
|
end
|
@@ -64,6 +68,7 @@ module TrinsicApi
|
|
64
68
|
:'originating_sub_provider_id',
|
65
69
|
:'person',
|
66
70
|
:'document',
|
71
|
+
:'match',
|
67
72
|
:'attachment_access_keys'
|
68
73
|
])
|
69
74
|
end
|
@@ -100,6 +105,10 @@ module TrinsicApi
|
|
100
105
|
self.document = attributes[:'document']
|
101
106
|
end
|
102
107
|
|
108
|
+
if attributes.key?(:'match')
|
109
|
+
self.match = attributes[:'match']
|
110
|
+
end
|
111
|
+
|
103
112
|
if attributes.key?(:'attachment_access_keys')
|
104
113
|
self.attachment_access_keys = attributes[:'attachment_access_keys']
|
105
114
|
end
|
@@ -129,6 +138,7 @@ module TrinsicApi
|
|
129
138
|
originating_sub_provider_id == o.originating_sub_provider_id &&
|
130
139
|
person == o.person &&
|
131
140
|
document == o.document &&
|
141
|
+
match == o.match &&
|
132
142
|
attachment_access_keys == o.attachment_access_keys
|
133
143
|
end
|
134
144
|
|
@@ -141,7 +151,7 @@ module TrinsicApi
|
|
141
151
|
# Calculates hash code according to all attributes.
|
142
152
|
# @return [Integer] Hash code
|
143
153
|
def hash
|
144
|
-
[originating_provider_id, originating_sub_provider_id, person, document, attachment_access_keys].hash
|
154
|
+
[originating_provider_id, originating_sub_provider_id, person, document, match, attachment_access_keys].hash
|
145
155
|
end
|
146
156
|
|
147
157
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrinsicApi
|
17
|
-
class
|
17
|
+
class IndonesiaDukcapilMatchInput
|
18
18
|
# The user's full name
|
19
19
|
attr_accessor :full_name
|
20
20
|
|
@@ -30,7 +30,7 @@ module TrinsicApi
|
|
30
30
|
# The phone number of the individual. Either email or phone number must be provided.
|
31
31
|
attr_accessor :phone_number
|
32
32
|
|
33
|
-
# The raw bytes of the selfie image of the individual. Must be JPEG format;
|
33
|
+
# The raw bytes of the selfie image of the individual. Must be JPEG or PNG format; 10MB maximum.
|
34
34
|
attr_accessor :selfie_image
|
35
35
|
|
36
36
|
# The raw bytes of the image of the individual's KTP government ID. Must be JPEG format; 1MB maximum. Optional.
|
@@ -95,14 +95,14 @@ module TrinsicApi
|
|
95
95
|
# @param [Hash] attributes Model attributes in the form of hash
|
96
96
|
def initialize(attributes = {})
|
97
97
|
if (!attributes.is_a?(Hash))
|
98
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::
|
98
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::IndonesiaDukcapilMatchInput` initialize method"
|
99
99
|
end
|
100
100
|
|
101
101
|
# check to see if the attribute exists and convert string to symbol for hash key
|
102
102
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
103
103
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
104
104
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
105
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::
|
105
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::IndonesiaDukcapilMatchInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
106
106
|
end
|
107
107
|
h[k.to_sym] = v
|
108
108
|
}
|
@@ -0,0 +1,231 @@
|
|
1
|
+
=begin
|
2
|
+
#Trinsic API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TrinsicApi
|
17
|
+
class Match
|
18
|
+
attr_accessor :probability_value
|
19
|
+
|
20
|
+
attr_accessor :boolean_value
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'probability_value' => :'probabilityValue',
|
26
|
+
:'boolean_value' => :'booleanValue'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns attribute mapping this model knows about
|
31
|
+
def self.acceptable_attribute_map
|
32
|
+
attribute_map
|
33
|
+
end
|
34
|
+
|
35
|
+
# Returns all the JSON keys this model knows about
|
36
|
+
def self.acceptable_attributes
|
37
|
+
acceptable_attribute_map.values
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'probability_value' => :'Float',
|
44
|
+
:'boolean_value' => :'Boolean'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# List of attributes with nullable: true
|
49
|
+
def self.openapi_nullable
|
50
|
+
Set.new([
|
51
|
+
:'probability_value',
|
52
|
+
:'boolean_value'
|
53
|
+
])
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::Match` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::Match`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'probability_value')
|
73
|
+
self.probability_value = attributes[:'probability_value']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'boolean_value')
|
77
|
+
self.boolean_value = attributes[:'boolean_value']
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
85
|
+
invalid_properties = Array.new
|
86
|
+
invalid_properties
|
87
|
+
end
|
88
|
+
|
89
|
+
# Check to see if the all the properties in the model are valid
|
90
|
+
# @return true if the model is valid
|
91
|
+
def valid?
|
92
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Checks equality by comparing each attribute.
|
97
|
+
# @param [Object] Object to be compared
|
98
|
+
def ==(o)
|
99
|
+
return true if self.equal?(o)
|
100
|
+
self.class == o.class &&
|
101
|
+
probability_value == o.probability_value &&
|
102
|
+
boolean_value == o.boolean_value
|
103
|
+
end
|
104
|
+
|
105
|
+
# @see the `==` method
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def eql?(o)
|
108
|
+
self == o
|
109
|
+
end
|
110
|
+
|
111
|
+
# Calculates hash code according to all attributes.
|
112
|
+
# @return [Integer] Hash code
|
113
|
+
def hash
|
114
|
+
[probability_value, boolean_value].hash
|
115
|
+
end
|
116
|
+
|
117
|
+
# Builds the object from hash
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
119
|
+
# @return [Object] Returns the model itself
|
120
|
+
def self.build_from_hash(attributes)
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
122
|
+
attributes = attributes.transform_keys(&:to_sym)
|
123
|
+
transformed_hash = {}
|
124
|
+
openapi_types.each_pair do |key, type|
|
125
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
126
|
+
transformed_hash["#{key}"] = nil
|
127
|
+
elsif type =~ /\AArray<(.*)>/i
|
128
|
+
# check to ensure the input is an array given that the attribute
|
129
|
+
# is documented as an array but the input is not
|
130
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
131
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
132
|
+
end
|
133
|
+
elsif !attributes[attribute_map[key]].nil?
|
134
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
135
|
+
end
|
136
|
+
end
|
137
|
+
new(transformed_hash)
|
138
|
+
end
|
139
|
+
|
140
|
+
# Deserializes the data based on type
|
141
|
+
# @param string type Data type
|
142
|
+
# @param string value Value to be deserialized
|
143
|
+
# @return [Object] Deserialized data
|
144
|
+
def self._deserialize(type, value)
|
145
|
+
case type.to_sym
|
146
|
+
when :Time
|
147
|
+
Time.parse(value)
|
148
|
+
when :Date
|
149
|
+
Date.parse(value)
|
150
|
+
when :String
|
151
|
+
value.to_s
|
152
|
+
when :Integer
|
153
|
+
value.to_i
|
154
|
+
when :Float
|
155
|
+
value.to_f
|
156
|
+
when :Boolean
|
157
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
158
|
+
true
|
159
|
+
else
|
160
|
+
false
|
161
|
+
end
|
162
|
+
when :Object
|
163
|
+
# generic object (usually a Hash), return directly
|
164
|
+
value
|
165
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
166
|
+
inner_type = Regexp.last_match[:inner_type]
|
167
|
+
value.map { |v| _deserialize(inner_type, v) }
|
168
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
169
|
+
k_type = Regexp.last_match[:k_type]
|
170
|
+
v_type = Regexp.last_match[:v_type]
|
171
|
+
{}.tap do |hash|
|
172
|
+
value.each do |k, v|
|
173
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
else # model
|
177
|
+
# models (e.g. Pet) or oneOf
|
178
|
+
klass = TrinsicApi.const_get(type)
|
179
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the string representation of the object
|
184
|
+
# @return [String] String presentation of the object
|
185
|
+
def to_s
|
186
|
+
to_hash.to_s
|
187
|
+
end
|
188
|
+
|
189
|
+
# to_body is an alias to to_hash (backward compatibility)
|
190
|
+
# @return [Hash] Returns the object in the form of hash
|
191
|
+
def to_body
|
192
|
+
to_hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Returns the object in the form of hash
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
197
|
+
def to_hash
|
198
|
+
hash = {}
|
199
|
+
self.class.attribute_map.each_pair do |attr, param|
|
200
|
+
value = self.send(attr)
|
201
|
+
if value.nil?
|
202
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
203
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
204
|
+
end
|
205
|
+
|
206
|
+
hash[param] = _to_hash(value)
|
207
|
+
end
|
208
|
+
hash
|
209
|
+
end
|
210
|
+
|
211
|
+
# Outputs non-array value in the form of hash
|
212
|
+
# For object, use to_hash. Otherwise, just return the value
|
213
|
+
# @param [Object] value Any valid value
|
214
|
+
# @return [Hash] Returns the value in the form of hash
|
215
|
+
def _to_hash(value)
|
216
|
+
if value.is_a?(Array)
|
217
|
+
value.compact.map { |v| _to_hash(v) }
|
218
|
+
elsif value.is_a?(Hash)
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
221
|
+
end
|
222
|
+
elsif value.respond_to? :to_hash
|
223
|
+
value.to_hash
|
224
|
+
else
|
225
|
+
value
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
end
|
230
|
+
|
231
|
+
end
|
@@ -0,0 +1,311 @@
|
|
1
|
+
=begin
|
2
|
+
#Trinsic API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module TrinsicApi
|
17
|
+
class MatchData
|
18
|
+
attr_accessor :national_id_number
|
19
|
+
|
20
|
+
attr_accessor :full_name
|
21
|
+
|
22
|
+
attr_accessor :given_name
|
23
|
+
|
24
|
+
attr_accessor :middle_name
|
25
|
+
|
26
|
+
attr_accessor :family_name
|
27
|
+
|
28
|
+
attr_accessor :sex
|
29
|
+
|
30
|
+
attr_accessor :date_of_birth
|
31
|
+
|
32
|
+
attr_accessor :face_match
|
33
|
+
|
34
|
+
attr_accessor :liveness
|
35
|
+
|
36
|
+
attr_accessor :image_authenticity
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
def self.attribute_map
|
40
|
+
{
|
41
|
+
:'national_id_number' => :'nationalIdNumber',
|
42
|
+
:'full_name' => :'fullName',
|
43
|
+
:'given_name' => :'givenName',
|
44
|
+
:'middle_name' => :'middleName',
|
45
|
+
:'family_name' => :'familyName',
|
46
|
+
:'sex' => :'sex',
|
47
|
+
:'date_of_birth' => :'dateOfBirth',
|
48
|
+
:'face_match' => :'faceMatch',
|
49
|
+
:'liveness' => :'liveness',
|
50
|
+
:'image_authenticity' => :'imageAuthenticity'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Returns attribute mapping this model knows about
|
55
|
+
def self.acceptable_attribute_map
|
56
|
+
attribute_map
|
57
|
+
end
|
58
|
+
|
59
|
+
# Returns all the JSON keys this model knows about
|
60
|
+
def self.acceptable_attributes
|
61
|
+
acceptable_attribute_map.values
|
62
|
+
end
|
63
|
+
|
64
|
+
# Attribute type mapping.
|
65
|
+
def self.openapi_types
|
66
|
+
{
|
67
|
+
:'national_id_number' => :'Match',
|
68
|
+
:'full_name' => :'Match',
|
69
|
+
:'given_name' => :'Match',
|
70
|
+
:'middle_name' => :'Match',
|
71
|
+
:'family_name' => :'Match',
|
72
|
+
:'sex' => :'Match',
|
73
|
+
:'date_of_birth' => :'Match',
|
74
|
+
:'face_match' => :'Match',
|
75
|
+
:'liveness' => :'Match',
|
76
|
+
:'image_authenticity' => :'Match'
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
80
|
+
# List of attributes with nullable: true
|
81
|
+
def self.openapi_nullable
|
82
|
+
Set.new([
|
83
|
+
:'national_id_number',
|
84
|
+
:'full_name',
|
85
|
+
:'given_name',
|
86
|
+
:'middle_name',
|
87
|
+
:'family_name',
|
88
|
+
:'sex',
|
89
|
+
:'date_of_birth',
|
90
|
+
:'face_match',
|
91
|
+
:'liveness',
|
92
|
+
:'image_authenticity'
|
93
|
+
])
|
94
|
+
end
|
95
|
+
|
96
|
+
# Initializes the object
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
98
|
+
def initialize(attributes = {})
|
99
|
+
if (!attributes.is_a?(Hash))
|
100
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::MatchData` initialize method"
|
101
|
+
end
|
102
|
+
|
103
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
104
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
105
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
106
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
107
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::MatchData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
108
|
+
end
|
109
|
+
h[k.to_sym] = v
|
110
|
+
}
|
111
|
+
|
112
|
+
if attributes.key?(:'national_id_number')
|
113
|
+
self.national_id_number = attributes[:'national_id_number']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'full_name')
|
117
|
+
self.full_name = attributes[:'full_name']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'given_name')
|
121
|
+
self.given_name = attributes[:'given_name']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'middle_name')
|
125
|
+
self.middle_name = attributes[:'middle_name']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'family_name')
|
129
|
+
self.family_name = attributes[:'family_name']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'sex')
|
133
|
+
self.sex = attributes[:'sex']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'date_of_birth')
|
137
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'face_match')
|
141
|
+
self.face_match = attributes[:'face_match']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'liveness')
|
145
|
+
self.liveness = attributes[:'liveness']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'image_authenticity')
|
149
|
+
self.image_authenticity = attributes[:'image_authenticity']
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
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
|
+
invalid_properties
|
159
|
+
end
|
160
|
+
|
161
|
+
# Check to see if the all the properties in the model are valid
|
162
|
+
# @return true if the model is valid
|
163
|
+
def valid?
|
164
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
165
|
+
true
|
166
|
+
end
|
167
|
+
|
168
|
+
# Checks equality by comparing each attribute.
|
169
|
+
# @param [Object] Object to be compared
|
170
|
+
def ==(o)
|
171
|
+
return true if self.equal?(o)
|
172
|
+
self.class == o.class &&
|
173
|
+
national_id_number == o.national_id_number &&
|
174
|
+
full_name == o.full_name &&
|
175
|
+
given_name == o.given_name &&
|
176
|
+
middle_name == o.middle_name &&
|
177
|
+
family_name == o.family_name &&
|
178
|
+
sex == o.sex &&
|
179
|
+
date_of_birth == o.date_of_birth &&
|
180
|
+
face_match == o.face_match &&
|
181
|
+
liveness == o.liveness &&
|
182
|
+
image_authenticity == o.image_authenticity
|
183
|
+
end
|
184
|
+
|
185
|
+
# @see the `==` method
|
186
|
+
# @param [Object] Object to be compared
|
187
|
+
def eql?(o)
|
188
|
+
self == o
|
189
|
+
end
|
190
|
+
|
191
|
+
# Calculates hash code according to all attributes.
|
192
|
+
# @return [Integer] Hash code
|
193
|
+
def hash
|
194
|
+
[national_id_number, full_name, given_name, middle_name, family_name, sex, date_of_birth, face_match, liveness, image_authenticity].hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Builds the object from hash
|
198
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
199
|
+
# @return [Object] Returns the model itself
|
200
|
+
def self.build_from_hash(attributes)
|
201
|
+
return nil unless attributes.is_a?(Hash)
|
202
|
+
attributes = attributes.transform_keys(&:to_sym)
|
203
|
+
transformed_hash = {}
|
204
|
+
openapi_types.each_pair do |key, type|
|
205
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
206
|
+
transformed_hash["#{key}"] = nil
|
207
|
+
elsif type =~ /\AArray<(.*)>/i
|
208
|
+
# check to ensure the input is an array given that the attribute
|
209
|
+
# is documented as an array but the input is not
|
210
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
211
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
212
|
+
end
|
213
|
+
elsif !attributes[attribute_map[key]].nil?
|
214
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
215
|
+
end
|
216
|
+
end
|
217
|
+
new(transformed_hash)
|
218
|
+
end
|
219
|
+
|
220
|
+
# Deserializes the data based on type
|
221
|
+
# @param string type Data type
|
222
|
+
# @param string value Value to be deserialized
|
223
|
+
# @return [Object] Deserialized data
|
224
|
+
def self._deserialize(type, value)
|
225
|
+
case type.to_sym
|
226
|
+
when :Time
|
227
|
+
Time.parse(value)
|
228
|
+
when :Date
|
229
|
+
Date.parse(value)
|
230
|
+
when :String
|
231
|
+
value.to_s
|
232
|
+
when :Integer
|
233
|
+
value.to_i
|
234
|
+
when :Float
|
235
|
+
value.to_f
|
236
|
+
when :Boolean
|
237
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
238
|
+
true
|
239
|
+
else
|
240
|
+
false
|
241
|
+
end
|
242
|
+
when :Object
|
243
|
+
# generic object (usually a Hash), return directly
|
244
|
+
value
|
245
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
246
|
+
inner_type = Regexp.last_match[:inner_type]
|
247
|
+
value.map { |v| _deserialize(inner_type, v) }
|
248
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
249
|
+
k_type = Regexp.last_match[:k_type]
|
250
|
+
v_type = Regexp.last_match[:v_type]
|
251
|
+
{}.tap do |hash|
|
252
|
+
value.each do |k, v|
|
253
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
else # model
|
257
|
+
# models (e.g. Pet) or oneOf
|
258
|
+
klass = TrinsicApi.const_get(type)
|
259
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
# Returns the string representation of the object
|
264
|
+
# @return [String] String presentation of the object
|
265
|
+
def to_s
|
266
|
+
to_hash.to_s
|
267
|
+
end
|
268
|
+
|
269
|
+
# to_body is an alias to to_hash (backward compatibility)
|
270
|
+
# @return [Hash] Returns the object in the form of hash
|
271
|
+
def to_body
|
272
|
+
to_hash
|
273
|
+
end
|
274
|
+
|
275
|
+
# Returns the object in the form of hash
|
276
|
+
# @return [Hash] Returns the object in the form of hash
|
277
|
+
def to_hash
|
278
|
+
hash = {}
|
279
|
+
self.class.attribute_map.each_pair do |attr, param|
|
280
|
+
value = self.send(attr)
|
281
|
+
if value.nil?
|
282
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
283
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
284
|
+
end
|
285
|
+
|
286
|
+
hash[param] = _to_hash(value)
|
287
|
+
end
|
288
|
+
hash
|
289
|
+
end
|
290
|
+
|
291
|
+
# Outputs non-array value in the form of hash
|
292
|
+
# For object, use to_hash. Otherwise, just return the value
|
293
|
+
# @param [Object] value Any valid value
|
294
|
+
# @return [Hash] Returns the value in the form of hash
|
295
|
+
def _to_hash(value)
|
296
|
+
if value.is_a?(Array)
|
297
|
+
value.compact.map { |v| _to_hash(v) }
|
298
|
+
elsif value.is_a?(Hash)
|
299
|
+
{}.tap do |hash|
|
300
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
301
|
+
end
|
302
|
+
elsif value.respond_to? :to_hash
|
303
|
+
value.to_hash
|
304
|
+
else
|
305
|
+
value
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
end
|
310
|
+
|
311
|
+
end
|
@@ -18,8 +18,8 @@ module TrinsicApi
|
|
18
18
|
# Input for the `indonesia-nik-lookup` provider
|
19
19
|
attr_accessor :indonesia_nik
|
20
20
|
|
21
|
-
# Input for the `indonesia-dukcapil-
|
22
|
-
attr_accessor :
|
21
|
+
# Input for the `indonesia-dukcapil-match` provider
|
22
|
+
attr_accessor :indonesia_dukcapil_match
|
23
23
|
|
24
24
|
# Input for the `mexico-curp-lookup` provider
|
25
25
|
attr_accessor :mexico_curp
|
@@ -73,7 +73,7 @@ module TrinsicApi
|
|
73
73
|
def self.attribute_map
|
74
74
|
{
|
75
75
|
:'indonesia_nik' => :'indonesiaNik',
|
76
|
-
:'
|
76
|
+
:'indonesia_dukcapil_match' => :'indonesiaDukcapilMatch',
|
77
77
|
:'mexico_curp' => :'mexicoCurp',
|
78
78
|
:'south_africa_nid' => :'southAfricaNid',
|
79
79
|
:'kenya_nid' => :'kenyaNid',
|
@@ -107,7 +107,7 @@ module TrinsicApi
|
|
107
107
|
def self.openapi_types
|
108
108
|
{
|
109
109
|
:'indonesia_nik' => :'IndonesiaNikInput',
|
110
|
-
:'
|
110
|
+
:'indonesia_dukcapil_match' => :'IndonesiaDukcapilMatchInput',
|
111
111
|
:'mexico_curp' => :'MexicoCurpInput',
|
112
112
|
:'south_africa_nid' => :'SouthAfricaNidInput',
|
113
113
|
:'kenya_nid' => :'KenyaNidInput',
|
@@ -131,7 +131,7 @@ module TrinsicApi
|
|
131
131
|
def self.openapi_nullable
|
132
132
|
Set.new([
|
133
133
|
:'indonesia_nik',
|
134
|
-
:'
|
134
|
+
:'indonesia_dukcapil_match',
|
135
135
|
:'mexico_curp',
|
136
136
|
:'south_africa_nid',
|
137
137
|
:'kenya_nid',
|
@@ -171,8 +171,8 @@ module TrinsicApi
|
|
171
171
|
self.indonesia_nik = attributes[:'indonesia_nik']
|
172
172
|
end
|
173
173
|
|
174
|
-
if attributes.key?(:'
|
175
|
-
self.
|
174
|
+
if attributes.key?(:'indonesia_dukcapil_match')
|
175
|
+
self.indonesia_dukcapil_match = attributes[:'indonesia_dukcapil_match']
|
176
176
|
end
|
177
177
|
|
178
178
|
if attributes.key?(:'mexico_curp')
|
@@ -261,7 +261,7 @@ module TrinsicApi
|
|
261
261
|
return true if self.equal?(o)
|
262
262
|
self.class == o.class &&
|
263
263
|
indonesia_nik == o.indonesia_nik &&
|
264
|
-
|
264
|
+
indonesia_dukcapil_match == o.indonesia_dukcapil_match &&
|
265
265
|
mexico_curp == o.mexico_curp &&
|
266
266
|
south_africa_nid == o.south_africa_nid &&
|
267
267
|
kenya_nid == o.kenya_nid &&
|
@@ -289,7 +289,7 @@ module TrinsicApi
|
|
289
289
|
# Calculates hash code according to all attributes.
|
290
290
|
# @return [Integer] Hash code
|
291
291
|
def hash
|
292
|
-
[indonesia_nik,
|
292
|
+
[indonesia_nik, indonesia_dukcapil_match, mexico_curp, south_africa_nid, kenya_nid, nigeria_nin, aadhaar, bangladesh_national_id, brazil_cpf_check, brazil_digital_cnh, philippine_match, philippine_qr, smart_id, mobile_id, idin, spid, trinsic_test_database_lookup, trinsic_test_sub_providers].hash
|
293
293
|
end
|
294
294
|
|
295
295
|
# Builds the object from hash
|
data/lib/trinsic_api/version.rb
CHANGED
data/lib/trinsic_api.rb
CHANGED
@@ -43,7 +43,7 @@ require 'trinsic_api/models/get_session_result_response'
|
|
43
43
|
require 'trinsic_api/models/http_validation_problem_details'
|
44
44
|
require 'trinsic_api/models/identity_data'
|
45
45
|
require 'trinsic_api/models/idin_input'
|
46
|
-
require 'trinsic_api/models/
|
46
|
+
require 'trinsic_api/models/indonesia_dukcapil_match_input'
|
47
47
|
require 'trinsic_api/models/indonesia_nik_input'
|
48
48
|
require 'trinsic_api/models/integration_capability'
|
49
49
|
require 'trinsic_api/models/integration_launch_method'
|
@@ -53,6 +53,8 @@ require 'trinsic_api/models/language'
|
|
53
53
|
require 'trinsic_api/models/list_provider_contracts_response'
|
54
54
|
require 'trinsic_api/models/list_providers_response'
|
55
55
|
require 'trinsic_api/models/list_sessions_response'
|
56
|
+
require 'trinsic_api/models/match'
|
57
|
+
require 'trinsic_api/models/match_data'
|
56
58
|
require 'trinsic_api/models/mexico_curp_input'
|
57
59
|
require 'trinsic_api/models/mobile_id_input'
|
58
60
|
require 'trinsic_api/models/nigeria_nin_input'
|
@@ -51,6 +51,12 @@ describe TrinsicApi::IdentityData do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
+
describe 'test attribute "match"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
54
60
|
describe 'test attribute "attachment_access_keys"' do
|
55
61
|
it 'should work' do
|
56
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for TrinsicApi::
|
17
|
+
# Unit tests for TrinsicApi::IndonesiaDukcapilMatchInput
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe TrinsicApi::
|
21
|
-
let(:instance) { TrinsicApi::
|
20
|
+
describe TrinsicApi::IndonesiaDukcapilMatchInput do
|
21
|
+
let(:instance) { TrinsicApi::IndonesiaDukcapilMatchInput.new }
|
22
22
|
|
23
|
-
describe 'test an instance of
|
24
|
-
it 'should create an instance of
|
23
|
+
describe 'test an instance of IndonesiaDukcapilMatchInput' do
|
24
|
+
it 'should create an instance of IndonesiaDukcapilMatchInput' do
|
25
25
|
# uncomment below to test the instance creation
|
26
|
-
#expect(instance).to be_instance_of(TrinsicApi::
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::IndonesiaDukcapilMatchInput)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -0,0 +1,90 @@
|
|
1
|
+
=begin
|
2
|
+
#Trinsic API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TrinsicApi::MatchData
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe TrinsicApi::MatchData do
|
21
|
+
let(:instance) { TrinsicApi::MatchData.new }
|
22
|
+
|
23
|
+
describe 'test an instance of MatchData' do
|
24
|
+
it 'should create an instance of MatchData' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::MatchData)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "national_id_number"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "full_name"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "given_name"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "middle_name"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "family_name"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "sex"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "date_of_birth"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "face_match"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "liveness"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "image_authenticity"' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
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.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TrinsicApi::Match
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe TrinsicApi::Match do
|
21
|
+
let(:instance) { TrinsicApi::Match.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Match' do
|
24
|
+
it 'should create an instance of Match' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::Match)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "probability_value"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "boolean_value"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
@@ -33,7 +33,7 @@ describe TrinsicApi::ProviderInput do
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
describe 'test attribute "
|
36
|
+
describe 'test attribute "indonesia_dukcapil_match"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trinsic_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.1.pre.
|
4
|
+
version: 2.1.1.pre.alpha2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trinsic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -88,7 +88,7 @@ files:
|
|
88
88
|
- docs/HttpValidationProblemDetails.md
|
89
89
|
- docs/IdentityData.md
|
90
90
|
- docs/IdinInput.md
|
91
|
-
- docs/
|
91
|
+
- docs/IndonesiaDukcapilMatchInput.md
|
92
92
|
- docs/IndonesiaNikInput.md
|
93
93
|
- docs/IntegrationCapability.md
|
94
94
|
- docs/IntegrationLaunchMethod.md
|
@@ -98,6 +98,8 @@ files:
|
|
98
98
|
- docs/ListProviderContractsResponse.md
|
99
99
|
- docs/ListProvidersResponse.md
|
100
100
|
- docs/ListSessionsResponse.md
|
101
|
+
- docs/Match.md
|
102
|
+
- docs/MatchData.md
|
101
103
|
- docs/MexicoCurpInput.md
|
102
104
|
- docs/MobileIdInput.md
|
103
105
|
- docs/NetworkApi.md
|
@@ -166,7 +168,7 @@ files:
|
|
166
168
|
- lib/trinsic_api/models/http_validation_problem_details.rb
|
167
169
|
- lib/trinsic_api/models/identity_data.rb
|
168
170
|
- lib/trinsic_api/models/idin_input.rb
|
169
|
-
- lib/trinsic_api/models/
|
171
|
+
- lib/trinsic_api/models/indonesia_dukcapil_match_input.rb
|
170
172
|
- lib/trinsic_api/models/indonesia_nik_input.rb
|
171
173
|
- lib/trinsic_api/models/integration_capability.rb
|
172
174
|
- lib/trinsic_api/models/integration_launch_method.rb
|
@@ -176,6 +178,8 @@ files:
|
|
176
178
|
- lib/trinsic_api/models/list_provider_contracts_response.rb
|
177
179
|
- lib/trinsic_api/models/list_providers_response.rb
|
178
180
|
- lib/trinsic_api/models/list_sessions_response.rb
|
181
|
+
- lib/trinsic_api/models/match.rb
|
182
|
+
- lib/trinsic_api/models/match_data.rb
|
179
183
|
- lib/trinsic_api/models/mexico_curp_input.rb
|
180
184
|
- lib/trinsic_api/models/mobile_id_input.rb
|
181
185
|
- lib/trinsic_api/models/nigeria_nin_input.rb
|
@@ -238,7 +242,7 @@ files:
|
|
238
242
|
- spec/models/http_validation_problem_details_spec.rb
|
239
243
|
- spec/models/identity_data_spec.rb
|
240
244
|
- spec/models/idin_input_spec.rb
|
241
|
-
- spec/models/
|
245
|
+
- spec/models/indonesia_dukcapil_match_input_spec.rb
|
242
246
|
- spec/models/indonesia_nik_input_spec.rb
|
243
247
|
- spec/models/integration_capability_spec.rb
|
244
248
|
- spec/models/integration_launch_method_spec.rb
|
@@ -248,6 +252,8 @@ files:
|
|
248
252
|
- spec/models/list_provider_contracts_response_spec.rb
|
249
253
|
- spec/models/list_providers_response_spec.rb
|
250
254
|
- spec/models/list_sessions_response_spec.rb
|
255
|
+
- spec/models/match_data_spec.rb
|
256
|
+
- spec/models/match_spec.rb
|
251
257
|
- spec/models/mexico_curp_input_spec.rb
|
252
258
|
- spec/models/mobile_id_input_spec.rb
|
253
259
|
- spec/models/nigeria_nin_input_spec.rb
|
@@ -309,72 +315,74 @@ test_files:
|
|
309
315
|
- spec/api/network_api_spec.rb
|
310
316
|
- spec/api/sessions_api_spec.rb
|
311
317
|
- spec/api/attachments_api_spec.rb
|
312
|
-
- spec/models/address_spec.rb
|
313
|
-
- spec/models/provider_contract_spec.rb
|
314
|
-
- spec/models/get_attachment_response_spec.rb
|
315
|
-
- spec/models/session_ordering_spec.rb
|
316
|
-
- spec/models/indonesia_dukcapil_biometric_match_input_spec.rb
|
317
|
-
- spec/models/session_spec.rb
|
318
|
-
- spec/models/contract_field_spec.rb
|
319
|
-
- spec/models/idin_input_spec.rb
|
320
|
-
- spec/models/step_refresh_info_spec.rb
|
321
|
-
- spec/models/aadhaar_input_spec.rb
|
322
|
-
- spec/models/refresh_step_content_response_spec.rb
|
323
|
-
- spec/models/brazil_cpf_check_input_spec.rb
|
324
|
-
- spec/models/mexico_curp_input_spec.rb
|
325
|
-
- spec/models/trinsic_test_database_lookup_input_spec.rb
|
326
|
-
- spec/models/provider_health_spec.rb
|
327
|
-
- spec/models/list_providers_response_spec.rb
|
328
|
-
- spec/models/result_collection_method_spec.rb
|
329
|
-
- spec/models/indonesia_nik_input_spec.rb
|
330
318
|
- spec/models/philippine_match_input_spec.rb
|
331
|
-
- spec/models/
|
332
|
-
- spec/models/integration_capability_spec.rb
|
333
|
-
- spec/models/south_africa_nid_input_spec.rb
|
334
|
-
- spec/models/create_hosted_provider_session_request_spec.rb
|
335
|
-
- spec/models/document_data_spec.rb
|
336
|
-
- spec/models/sub_provider_metadata_spec.rb
|
337
|
-
- spec/models/mobile_id_input_spec.rb
|
319
|
+
- spec/models/session_error_code_spec.rb
|
338
320
|
- spec/models/order_direction_spec.rb
|
339
|
-
- spec/models/
|
321
|
+
- spec/models/refresh_step_content_response_spec.rb
|
322
|
+
- spec/models/create_advanced_provider_session_response_spec.rb
|
323
|
+
- spec/models/match_spec.rb
|
340
324
|
- spec/models/spid_input_spec.rb
|
341
|
-
- spec/models/
|
342
|
-
- spec/models/
|
343
|
-
- spec/models/
|
344
|
-
- spec/models/
|
345
|
-
- spec/models/
|
346
|
-
- spec/models/
|
347
|
-
- spec/models/kenya_nid_input_spec.rb
|
348
|
-
- spec/models/trinsic_test_sub_providers_input_spec.rb
|
325
|
+
- spec/models/contract_field_spec.rb
|
326
|
+
- spec/models/list_provider_contracts_response_spec.rb
|
327
|
+
- spec/models/field_availability_spec.rb
|
328
|
+
- spec/models/list_providers_response_spec.rb
|
329
|
+
- spec/models/session_spec.rb
|
330
|
+
- spec/models/cancel_session_response_spec.rb
|
349
331
|
- spec/models/smart_id_input_spec.rb
|
350
|
-
- spec/models/
|
351
|
-
- spec/models/
|
332
|
+
- spec/models/document_scan_attachments_spec.rb
|
333
|
+
- spec/models/trinsic_test_sub_providers_input_spec.rb
|
352
334
|
- spec/models/list_sessions_response_spec.rb
|
353
|
-
- spec/models/
|
335
|
+
- spec/models/provider_information_spec.rb
|
336
|
+
- spec/models/result_collection_spec.rb
|
337
|
+
- spec/models/indonesia_dukcapil_match_input_spec.rb
|
338
|
+
- spec/models/problem_details_spec.rb
|
354
339
|
- spec/models/philippine_qr_input_spec.rb
|
355
|
-
- spec/models/person_data_spec.rb
|
356
|
-
- spec/models/create_advanced_provider_session_request_spec.rb
|
357
|
-
- spec/models/integration_launch_method_spec.rb
|
358
|
-
- spec/models/document_scan_attachments_spec.rb
|
359
340
|
- spec/models/recommend_request_spec.rb
|
341
|
+
- spec/models/provider_contract_spec.rb
|
342
|
+
- spec/models/create_advanced_provider_session_request_spec.rb
|
343
|
+
- spec/models/person_data_spec.rb
|
344
|
+
- spec/models/create_widget_session_response_spec.rb
|
345
|
+
- spec/models/result_collection_method_spec.rb
|
346
|
+
- spec/models/idin_input_spec.rb
|
347
|
+
- spec/models/sex_spec.rb
|
348
|
+
- spec/models/provider_input_spec.rb
|
349
|
+
- spec/models/address_spec.rb
|
350
|
+
- spec/models/document_type_spec.rb
|
351
|
+
- spec/models/provider_info_spec.rb
|
352
|
+
- spec/models/document_data_spec.rb
|
353
|
+
- spec/models/refresh_step_content_request_spec.rb
|
354
|
+
- spec/models/mobile_id_input_spec.rb
|
355
|
+
- spec/models/session_ordering_spec.rb
|
356
|
+
- spec/models/brazil_digital_cnh_input_spec.rb
|
357
|
+
- spec/models/match_data_spec.rb
|
358
|
+
- spec/models/aadhaar_input_spec.rb
|
359
|
+
- spec/models/nigeria_nin_input_spec.rb
|
360
|
+
- spec/models/attachment_access_keys_spec.rb
|
361
|
+
- spec/models/sub_provider_metadata_spec.rb
|
362
|
+
- spec/models/trinsic_test_database_lookup_input_spec.rb
|
363
|
+
- spec/models/language_spec.rb
|
360
364
|
- spec/models/provider_attachments_spec.rb
|
365
|
+
- spec/models/http_validation_problem_details_spec.rb
|
366
|
+
- spec/models/create_hosted_provider_session_response_spec.rb
|
367
|
+
- spec/models/recommendation_info_spec.rb
|
368
|
+
- spec/models/integration_launch_method_spec.rb
|
361
369
|
- spec/models/integration_step_spec.rb
|
370
|
+
- spec/models/brazil_cpf_check_input_spec.rb
|
362
371
|
- spec/models/bangladesh_nid_input_spec.rb
|
363
372
|
- spec/models/identity_data_spec.rb
|
364
|
-
- spec/models/
|
365
|
-
- spec/models/
|
366
|
-
- spec/models/
|
367
|
-
- spec/models/
|
373
|
+
- spec/models/mexico_curp_input_spec.rb
|
374
|
+
- spec/models/indonesia_nik_input_spec.rb
|
375
|
+
- spec/models/south_africa_nid_input_spec.rb
|
376
|
+
- spec/models/create_hosted_provider_session_request_spec.rb
|
368
377
|
- spec/models/get_session_response_spec.rb
|
369
|
-
- spec/models/
|
370
|
-
- spec/models/
|
371
|
-
- spec/models/
|
372
|
-
- spec/models/
|
373
|
-
- spec/models/
|
374
|
-
- spec/models/
|
375
|
-
- spec/models/
|
376
|
-
- spec/models/
|
377
|
-
- spec/models/
|
378
|
-
- spec/models/
|
379
|
-
- spec/models/result_collection_spec.rb
|
378
|
+
- spec/models/create_widget_session_request_spec.rb
|
379
|
+
- spec/models/step_refresh_info_spec.rb
|
380
|
+
- spec/models/get_session_result_response_spec.rb
|
381
|
+
- spec/models/recommend_response_spec.rb
|
382
|
+
- spec/models/get_attachment_response_spec.rb
|
383
|
+
- spec/models/provider_health_spec.rb
|
384
|
+
- spec/models/get_session_result_request_spec.rb
|
385
|
+
- spec/models/integration_capability_spec.rb
|
386
|
+
- spec/models/kenya_nid_input_spec.rb
|
387
|
+
- spec/models/get_attachment_request_spec.rb
|
380
388
|
- spec/spec_helper.rb
|