trinsic_api 2.3.0.pre.alpha1 → 2.3.0.pre.alpha2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/AttachmentAccessKeys.md +2 -0
- data/docs/CreateHostedProviderSessionResponse.md +1 -1
- data/docs/CreateWidgetSessionResponse.md +1 -1
- data/docs/IntegrationStep.md +1 -1
- data/docs/KenyaNidBiometric2Input.md +22 -0
- data/docs/KenyaNidInput.md +1 -1
- data/docs/KenyaNidLookup2Input.md +18 -0
- data/docs/KenyaNidMatch2Input.md +28 -0
- data/docs/NigeriaNinInput.md +1 -1
- data/docs/PhilippinesDigitalNidProviderOutput.md +18 -0
- data/docs/PhilippinesPhysicalNidProviderOutput.md +18 -0
- data/docs/ProviderInput.md +8 -0
- data/docs/ProviderOutput.md +5 -1
- data/docs/SexV1.md +15 -0
- data/docs/SouthAfricaNidInput.md +1 -1
- data/docs/SouthAfricaNidLookup2Input.md +18 -0
- data/docs/SpidProviderOutput.md +22 -4
- data/lib/trinsic_api/models/attachment_access_keys.rb +11 -1
- data/lib/trinsic_api/models/kenya_nid_biometric2_input.rb +246 -0
- data/lib/trinsic_api/models/kenya_nid_input.rb +1 -1
- data/lib/trinsic_api/models/kenya_nid_lookup2_input.rb +222 -0
- data/lib/trinsic_api/models/kenya_nid_match2_input.rb +299 -0
- data/lib/trinsic_api/models/nigeria_nin_input.rb +1 -1
- data/lib/trinsic_api/models/philippines_digital_nid_provider_output.rb +238 -0
- data/lib/trinsic_api/models/philippines_physical_nid_provider_output.rb +238 -0
- data/lib/trinsic_api/models/provider_input.rb +45 -1
- data/lib/trinsic_api/models/provider_output.rb +25 -5
- data/lib/trinsic_api/models/sex_v1.rb +42 -0
- data/lib/trinsic_api/models/south_africa_nid_input.rb +1 -1
- data/lib/trinsic_api/models/south_africa_nid_lookup2_input.rb +222 -0
- data/lib/trinsic_api/models/spid_provider_output.rb +149 -18
- data/lib/trinsic_api/version.rb +1 -1
- data/lib/trinsic_api.rb +7 -0
- data/spec/models/attachment_access_keys_spec.rb +6 -0
- data/spec/models/kenya_nid_biometric2_input_spec.rb +48 -0
- data/spec/models/kenya_nid_lookup2_input_spec.rb +36 -0
- data/spec/models/kenya_nid_match2_input_spec.rb +66 -0
- data/spec/models/philippines_digital_nid_provider_output_spec.rb +36 -0
- data/spec/models/philippines_physical_nid_provider_output_spec.rb +36 -0
- data/spec/models/provider_input_spec.rb +24 -0
- data/spec/models/provider_output_spec.rb +12 -0
- data/spec/models/sex_v1_spec.rb +30 -0
- data/spec/models/south_africa_nid_lookup2_input_spec.rb +36 -0
- data/spec/models/spid_provider_output_spec.rb +56 -2
- metadata +30 -2
|
@@ -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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module TrinsicApi
|
|
17
|
+
class SexV1
|
|
18
|
+
UNKNOWN = "Unknown".freeze
|
|
19
|
+
NOT_APPLICABLE = "NotApplicable".freeze
|
|
20
|
+
MALE = "Male".freeze
|
|
21
|
+
FEMALE = "Female".freeze
|
|
22
|
+
|
|
23
|
+
def self.all_vars
|
|
24
|
+
@all_vars ||= [UNKNOWN, NOT_APPLICABLE, MALE, FEMALE].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 SexV1.all_vars.include?(value)
|
|
39
|
+
raise "Invalid ENUM value #{value} for class #SexV1"
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -24,7 +24,7 @@ module TrinsicApi
|
|
|
24
24
|
# The user's gender as it appears in their National ID (e.g., male, female)
|
|
25
25
|
attr_accessor :gender
|
|
26
26
|
|
|
27
|
-
# The user's
|
|
27
|
+
# The user's National ID number
|
|
28
28
|
attr_accessor :national_id_number
|
|
29
29
|
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -0,0 +1,222 @@
|
|
|
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 SouthAfricaNidLookup2Input
|
|
18
|
+
# The user's National ID number
|
|
19
|
+
attr_accessor :id_number
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'id_number' => :'idNumber'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Returns attribute mapping this model knows about
|
|
29
|
+
def self.acceptable_attribute_map
|
|
30
|
+
attribute_map
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
|
34
|
+
def self.acceptable_attributes
|
|
35
|
+
acceptable_attribute_map.values
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'id_number' => :'String'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# List of attributes with nullable: true
|
|
46
|
+
def self.openapi_nullable
|
|
47
|
+
Set.new([
|
|
48
|
+
:'id_number'
|
|
49
|
+
])
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Initializes the object
|
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
54
|
+
def initialize(attributes = {})
|
|
55
|
+
if (!attributes.is_a?(Hash))
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrinsicApi::SouthAfricaNidLookup2Input` initialize method"
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrinsicApi::SouthAfricaNidLookup2Input`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
64
|
+
end
|
|
65
|
+
h[k.to_sym] = v
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'id_number')
|
|
69
|
+
self.id_number = attributes[:'id_number']
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
74
|
+
# @return Array for valid properties with the reasons
|
|
75
|
+
def list_invalid_properties
|
|
76
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
|
+
invalid_properties = Array.new
|
|
78
|
+
invalid_properties
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Check to see if the all the properties in the model are valid
|
|
82
|
+
# @return true if the model is valid
|
|
83
|
+
def valid?
|
|
84
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
85
|
+
true
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param [Object] Object to be compared
|
|
90
|
+
def ==(o)
|
|
91
|
+
return true if self.equal?(o)
|
|
92
|
+
self.class == o.class &&
|
|
93
|
+
id_number == o.id_number
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# @see the `==` method
|
|
97
|
+
# @param [Object] Object to be compared
|
|
98
|
+
def eql?(o)
|
|
99
|
+
self == o
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Calculates hash code according to all attributes.
|
|
103
|
+
# @return [Integer] Hash code
|
|
104
|
+
def hash
|
|
105
|
+
[id_number].hash
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Builds the object from hash
|
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
110
|
+
# @return [Object] Returns the model itself
|
|
111
|
+
def self.build_from_hash(attributes)
|
|
112
|
+
return nil unless attributes.is_a?(Hash)
|
|
113
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
114
|
+
transformed_hash = {}
|
|
115
|
+
openapi_types.each_pair do |key, type|
|
|
116
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
117
|
+
transformed_hash["#{key}"] = nil
|
|
118
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
119
|
+
# check to ensure the input is an array given that the attribute
|
|
120
|
+
# is documented as an array but the input is not
|
|
121
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
122
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
123
|
+
end
|
|
124
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
125
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
new(transformed_hash)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Deserializes the data based on type
|
|
132
|
+
# @param string type Data type
|
|
133
|
+
# @param string value Value to be deserialized
|
|
134
|
+
# @return [Object] Deserialized data
|
|
135
|
+
def self._deserialize(type, value)
|
|
136
|
+
case type.to_sym
|
|
137
|
+
when :Time
|
|
138
|
+
Time.parse(value)
|
|
139
|
+
when :Date
|
|
140
|
+
Date.parse(value)
|
|
141
|
+
when :String
|
|
142
|
+
value.to_s
|
|
143
|
+
when :Integer
|
|
144
|
+
value.to_i
|
|
145
|
+
when :Float
|
|
146
|
+
value.to_f
|
|
147
|
+
when :Boolean
|
|
148
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
149
|
+
true
|
|
150
|
+
else
|
|
151
|
+
false
|
|
152
|
+
end
|
|
153
|
+
when :Object
|
|
154
|
+
# generic object (usually a Hash), return directly
|
|
155
|
+
value
|
|
156
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
157
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
158
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
159
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
160
|
+
k_type = Regexp.last_match[:k_type]
|
|
161
|
+
v_type = Regexp.last_match[:v_type]
|
|
162
|
+
{}.tap do |hash|
|
|
163
|
+
value.each do |k, v|
|
|
164
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
else # model
|
|
168
|
+
# models (e.g. Pet) or oneOf
|
|
169
|
+
klass = TrinsicApi.const_get(type)
|
|
170
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Returns the string representation of the object
|
|
175
|
+
# @return [String] String presentation of the object
|
|
176
|
+
def to_s
|
|
177
|
+
to_hash.to_s
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
181
|
+
# @return [Hash] Returns the object in the form of hash
|
|
182
|
+
def to_body
|
|
183
|
+
to_hash
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Returns the object in the form of hash
|
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
|
188
|
+
def to_hash
|
|
189
|
+
hash = {}
|
|
190
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
191
|
+
value = self.send(attr)
|
|
192
|
+
if value.nil?
|
|
193
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
194
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
hash[param] = _to_hash(value)
|
|
198
|
+
end
|
|
199
|
+
hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Outputs non-array value in the form of hash
|
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
204
|
+
# @param [Object] value Any valid value
|
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
|
206
|
+
def _to_hash(value)
|
|
207
|
+
if value.is_a?(Array)
|
|
208
|
+
value.compact.map { |v| _to_hash(v) }
|
|
209
|
+
elsif value.is_a?(Hash)
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
212
|
+
end
|
|
213
|
+
elsif value.respond_to? :to_hash
|
|
214
|
+
value.to_hash
|
|
215
|
+
else
|
|
216
|
+
value
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
end
|
|
@@ -18,26 +18,62 @@ module TrinsicApi
|
|
|
18
18
|
# Information about the billable status of this SPID Verification. Present only if your account has period-based billing enabled for SPID. Contact Trinsic to enable this.
|
|
19
19
|
attr_accessor :billing_information
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# The SPID Entity ID of the Identity Provider which issued the SPID identity. This is an HTTPS URI which uniquely identifies the IdP within the SPID federation. A normalized / simplified representation of this value is present in the `originatingSubProviderId` field in Trinsic's normalized data model.
|
|
22
|
+
attr_accessor :identity_provider_entity_id
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# The identifier of the user's SPID credential. This uniquely identifies the credential within the SPID federation.
|
|
25
25
|
attr_accessor :spid_code
|
|
26
26
|
|
|
27
|
+
# Expiration date of the user's SPID credential. This is not the same as the expiration date of the underlying identity document (such as a passport) which was used to create the SPID identity.
|
|
28
|
+
attr_accessor :spid_credential_expiration_date
|
|
29
|
+
|
|
30
|
+
# The user's place of birth.
|
|
31
|
+
attr_accessor :place_of_birth
|
|
32
|
+
|
|
33
|
+
# The user's county of birth.
|
|
34
|
+
attr_accessor :county_of_birth
|
|
35
|
+
|
|
36
|
+
# The raw, space-separated string value for the \"IdCard\" field from the SPID identity. Trinsic additionally parses this field and uses it to populate the `Document` object in the normalized data model.
|
|
37
|
+
attr_accessor :raw_id_card
|
|
38
|
+
|
|
39
|
+
# The email address of the user.
|
|
40
|
+
attr_accessor :email
|
|
41
|
+
|
|
42
|
+
# The digital address of the user.
|
|
43
|
+
attr_accessor :digital_address
|
|
44
|
+
|
|
45
|
+
# Fiscal tax number for the subject.
|
|
46
|
+
attr_accessor :fiscal_number
|
|
47
|
+
|
|
27
48
|
# VAT number for the subject.
|
|
28
49
|
attr_accessor :iva_code
|
|
29
50
|
|
|
30
|
-
#
|
|
31
|
-
attr_accessor :
|
|
51
|
+
# The name of the company which the user is associated with.
|
|
52
|
+
attr_accessor :company_name
|
|
53
|
+
|
|
54
|
+
# The fiscal tax number of the company which the user is associated with.
|
|
55
|
+
attr_accessor :company_fiscal_number
|
|
56
|
+
|
|
57
|
+
# The registered office address of the company which the user is associated with.
|
|
58
|
+
attr_accessor :registered_office
|
|
32
59
|
|
|
33
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
61
|
def self.attribute_map
|
|
35
62
|
{
|
|
36
63
|
:'billing_information' => :'billingInformation',
|
|
37
|
-
:'
|
|
64
|
+
:'identity_provider_entity_id' => :'identityProviderEntityId',
|
|
38
65
|
:'spid_code' => :'spidCode',
|
|
66
|
+
:'spid_credential_expiration_date' => :'spidCredentialExpirationDate',
|
|
67
|
+
:'place_of_birth' => :'placeOfBirth',
|
|
68
|
+
:'county_of_birth' => :'countyOfBirth',
|
|
69
|
+
:'raw_id_card' => :'rawIdCard',
|
|
70
|
+
:'email' => :'email',
|
|
71
|
+
:'digital_address' => :'digitalAddress',
|
|
72
|
+
:'fiscal_number' => :'fiscalNumber',
|
|
39
73
|
:'iva_code' => :'ivaCode',
|
|
40
|
-
:'
|
|
74
|
+
:'company_name' => :'companyName',
|
|
75
|
+
:'company_fiscal_number' => :'companyFiscalNumber',
|
|
76
|
+
:'registered_office' => :'registeredOffice'
|
|
41
77
|
}
|
|
42
78
|
end
|
|
43
79
|
|
|
@@ -55,10 +91,19 @@ module TrinsicApi
|
|
|
55
91
|
def self.openapi_types
|
|
56
92
|
{
|
|
57
93
|
:'billing_information' => :'SpidBillingInformation',
|
|
58
|
-
:'
|
|
94
|
+
:'identity_provider_entity_id' => :'String',
|
|
59
95
|
:'spid_code' => :'String',
|
|
96
|
+
:'spid_credential_expiration_date' => :'Date',
|
|
97
|
+
:'place_of_birth' => :'String',
|
|
98
|
+
:'county_of_birth' => :'String',
|
|
99
|
+
:'raw_id_card' => :'String',
|
|
100
|
+
:'email' => :'String',
|
|
101
|
+
:'digital_address' => :'String',
|
|
102
|
+
:'fiscal_number' => :'String',
|
|
60
103
|
:'iva_code' => :'String',
|
|
61
|
-
:'
|
|
104
|
+
:'company_name' => :'String',
|
|
105
|
+
:'company_fiscal_number' => :'String',
|
|
106
|
+
:'registered_office' => :'String'
|
|
62
107
|
}
|
|
63
108
|
end
|
|
64
109
|
|
|
@@ -66,10 +111,17 @@ module TrinsicApi
|
|
|
66
111
|
def self.openapi_nullable
|
|
67
112
|
Set.new([
|
|
68
113
|
:'billing_information',
|
|
114
|
+
:'spid_credential_expiration_date',
|
|
115
|
+
:'place_of_birth',
|
|
116
|
+
:'county_of_birth',
|
|
117
|
+
:'raw_id_card',
|
|
118
|
+
:'email',
|
|
119
|
+
:'digital_address',
|
|
69
120
|
:'fiscal_number',
|
|
70
|
-
:'spid_code',
|
|
71
121
|
:'iva_code',
|
|
72
|
-
:'
|
|
122
|
+
:'company_name',
|
|
123
|
+
:'company_fiscal_number',
|
|
124
|
+
:'registered_office'
|
|
73
125
|
])
|
|
74
126
|
end
|
|
75
127
|
|
|
@@ -93,20 +145,60 @@ module TrinsicApi
|
|
|
93
145
|
self.billing_information = attributes[:'billing_information']
|
|
94
146
|
end
|
|
95
147
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
148
|
+
if attributes.key?(:'identity_provider_entity_id')
|
|
149
|
+
self.identity_provider_entity_id = attributes[:'identity_provider_entity_id']
|
|
150
|
+
else
|
|
151
|
+
self.identity_provider_entity_id = nil
|
|
98
152
|
end
|
|
99
153
|
|
|
100
154
|
if attributes.key?(:'spid_code')
|
|
101
155
|
self.spid_code = attributes[:'spid_code']
|
|
156
|
+
else
|
|
157
|
+
self.spid_code = nil
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'spid_credential_expiration_date')
|
|
161
|
+
self.spid_credential_expiration_date = attributes[:'spid_credential_expiration_date']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'place_of_birth')
|
|
165
|
+
self.place_of_birth = attributes[:'place_of_birth']
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'county_of_birth')
|
|
169
|
+
self.county_of_birth = attributes[:'county_of_birth']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'raw_id_card')
|
|
173
|
+
self.raw_id_card = attributes[:'raw_id_card']
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'email')
|
|
177
|
+
self.email = attributes[:'email']
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'digital_address')
|
|
181
|
+
self.digital_address = attributes[:'digital_address']
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'fiscal_number')
|
|
185
|
+
self.fiscal_number = attributes[:'fiscal_number']
|
|
102
186
|
end
|
|
103
187
|
|
|
104
188
|
if attributes.key?(:'iva_code')
|
|
105
189
|
self.iva_code = attributes[:'iva_code']
|
|
106
190
|
end
|
|
107
191
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
self.
|
|
192
|
+
if attributes.key?(:'company_name')
|
|
193
|
+
self.company_name = attributes[:'company_name']
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'company_fiscal_number')
|
|
197
|
+
self.company_fiscal_number = attributes[:'company_fiscal_number']
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'registered_office')
|
|
201
|
+
self.registered_office = attributes[:'registered_office']
|
|
110
202
|
end
|
|
111
203
|
end
|
|
112
204
|
|
|
@@ -115,6 +207,14 @@ module TrinsicApi
|
|
|
115
207
|
def list_invalid_properties
|
|
116
208
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
117
209
|
invalid_properties = Array.new
|
|
210
|
+
if @identity_provider_entity_id.nil?
|
|
211
|
+
invalid_properties.push('invalid value for "identity_provider_entity_id", identity_provider_entity_id cannot be nil.')
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if @spid_code.nil?
|
|
215
|
+
invalid_properties.push('invalid value for "spid_code", spid_code cannot be nil.')
|
|
216
|
+
end
|
|
217
|
+
|
|
118
218
|
invalid_properties
|
|
119
219
|
end
|
|
120
220
|
|
|
@@ -122,19 +222,50 @@ module TrinsicApi
|
|
|
122
222
|
# @return true if the model is valid
|
|
123
223
|
def valid?
|
|
124
224
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
225
|
+
return false if @identity_provider_entity_id.nil?
|
|
226
|
+
return false if @spid_code.nil?
|
|
125
227
|
true
|
|
126
228
|
end
|
|
127
229
|
|
|
230
|
+
# Custom attribute writer method with validation
|
|
231
|
+
# @param [Object] identity_provider_entity_id Value to be assigned
|
|
232
|
+
def identity_provider_entity_id=(identity_provider_entity_id)
|
|
233
|
+
if identity_provider_entity_id.nil?
|
|
234
|
+
fail ArgumentError, 'identity_provider_entity_id cannot be nil'
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
@identity_provider_entity_id = identity_provider_entity_id
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Custom attribute writer method with validation
|
|
241
|
+
# @param [Object] spid_code Value to be assigned
|
|
242
|
+
def spid_code=(spid_code)
|
|
243
|
+
if spid_code.nil?
|
|
244
|
+
fail ArgumentError, 'spid_code cannot be nil'
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
@spid_code = spid_code
|
|
248
|
+
end
|
|
249
|
+
|
|
128
250
|
# Checks equality by comparing each attribute.
|
|
129
251
|
# @param [Object] Object to be compared
|
|
130
252
|
def ==(o)
|
|
131
253
|
return true if self.equal?(o)
|
|
132
254
|
self.class == o.class &&
|
|
133
255
|
billing_information == o.billing_information &&
|
|
134
|
-
|
|
256
|
+
identity_provider_entity_id == o.identity_provider_entity_id &&
|
|
135
257
|
spid_code == o.spid_code &&
|
|
258
|
+
spid_credential_expiration_date == o.spid_credential_expiration_date &&
|
|
259
|
+
place_of_birth == o.place_of_birth &&
|
|
260
|
+
county_of_birth == o.county_of_birth &&
|
|
261
|
+
raw_id_card == o.raw_id_card &&
|
|
262
|
+
email == o.email &&
|
|
263
|
+
digital_address == o.digital_address &&
|
|
264
|
+
fiscal_number == o.fiscal_number &&
|
|
136
265
|
iva_code == o.iva_code &&
|
|
137
|
-
|
|
266
|
+
company_name == o.company_name &&
|
|
267
|
+
company_fiscal_number == o.company_fiscal_number &&
|
|
268
|
+
registered_office == o.registered_office
|
|
138
269
|
end
|
|
139
270
|
|
|
140
271
|
# @see the `==` method
|
|
@@ -146,7 +277,7 @@ module TrinsicApi
|
|
|
146
277
|
# Calculates hash code according to all attributes.
|
|
147
278
|
# @return [Integer] Hash code
|
|
148
279
|
def hash
|
|
149
|
-
[billing_information,
|
|
280
|
+
[billing_information, identity_provider_entity_id, spid_code, spid_credential_expiration_date, place_of_birth, county_of_birth, raw_id_card, email, digital_address, fiscal_number, iva_code, company_name, company_fiscal_number, registered_office].hash
|
|
150
281
|
end
|
|
151
282
|
|
|
152
283
|
# Builds the object from hash
|
data/lib/trinsic_api/version.rb
CHANGED
data/lib/trinsic_api.rb
CHANGED
|
@@ -61,7 +61,10 @@ require 'trinsic_api/models/indonesia_nik_input'
|
|
|
61
61
|
require 'trinsic_api/models/integration_capability'
|
|
62
62
|
require 'trinsic_api/models/integration_launch_method'
|
|
63
63
|
require 'trinsic_api/models/integration_step'
|
|
64
|
+
require 'trinsic_api/models/kenya_nid_biometric2_input'
|
|
64
65
|
require 'trinsic_api/models/kenya_nid_input'
|
|
66
|
+
require 'trinsic_api/models/kenya_nid_lookup2_input'
|
|
67
|
+
require 'trinsic_api/models/kenya_nid_match2_input'
|
|
65
68
|
require 'trinsic_api/models/language'
|
|
66
69
|
require 'trinsic_api/models/list_environment_redirect_uris_response'
|
|
67
70
|
require 'trinsic_api/models/list_provider_contracts_response'
|
|
@@ -82,6 +85,8 @@ require 'trinsic_api/models/order_direction'
|
|
|
82
85
|
require 'trinsic_api/models/person_data'
|
|
83
86
|
require 'trinsic_api/models/philippine_match_input'
|
|
84
87
|
require 'trinsic_api/models/philippine_qr_input'
|
|
88
|
+
require 'trinsic_api/models/philippines_digital_nid_provider_output'
|
|
89
|
+
require 'trinsic_api/models/philippines_physical_nid_provider_output'
|
|
85
90
|
require 'trinsic_api/models/problem_details'
|
|
86
91
|
require 'trinsic_api/models/provider_attachments'
|
|
87
92
|
require 'trinsic_api/models/provider_contract'
|
|
@@ -102,8 +107,10 @@ require 'trinsic_api/models/session'
|
|
|
102
107
|
require 'trinsic_api/models/session_error_code'
|
|
103
108
|
require 'trinsic_api/models/session_ordering'
|
|
104
109
|
require 'trinsic_api/models/sex'
|
|
110
|
+
require 'trinsic_api/models/sex_v1'
|
|
105
111
|
require 'trinsic_api/models/smart_id_input'
|
|
106
112
|
require 'trinsic_api/models/south_africa_nid_input'
|
|
113
|
+
require 'trinsic_api/models/south_africa_nid_lookup2_input'
|
|
107
114
|
require 'trinsic_api/models/spid_billing_information'
|
|
108
115
|
require 'trinsic_api/models/spid_input'
|
|
109
116
|
require 'trinsic_api/models/spid_provider_output'
|
|
@@ -51,6 +51,12 @@ describe TrinsicApi::AttachmentAccessKeys do
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
describe 'test attribute "document_signature"' 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 "provider"' do
|
|
55
61
|
it 'should work' do
|
|
56
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -0,0 +1,48 @@
|
|
|
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::KenyaNidBiometric2Input
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe TrinsicApi::KenyaNidBiometric2Input do
|
|
21
|
+
let(:instance) { TrinsicApi::KenyaNidBiometric2Input.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of KenyaNidBiometric2Input' do
|
|
24
|
+
it 'should create an instance of KenyaNidBiometric2Input' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::KenyaNidBiometric2Input)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "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 "liveness_images"' 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 "test_selfie"' 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
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
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::KenyaNidLookup2Input
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe TrinsicApi::KenyaNidLookup2Input do
|
|
21
|
+
let(:instance) { TrinsicApi::KenyaNidLookup2Input.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of KenyaNidLookup2Input' do
|
|
24
|
+
it 'should create an instance of KenyaNidLookup2Input' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(TrinsicApi::KenyaNidLookup2Input)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "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
|
+
end
|