onfido 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/onfido/api_client.rb +1 -1
- data/lib/onfido/models/document_types.rb +47 -1
- data/lib/onfido/models/facial_similarity_motion_report.rb +50 -1
- data/lib/onfido/models/facial_similarity_photo_fully_auto_report.rb +50 -1
- data/lib/onfido/models/facial_similarity_photo_report.rb +50 -1
- data/lib/onfido/models/facial_similarity_report_media.rb +222 -0
- data/lib/onfido/models/facial_similarity_report_shared.rb +253 -0
- data/lib/onfido/models/facial_similarity_video_report.rb +50 -1
- data/lib/onfido/version.rb +1 -1
- data/lib/onfido.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5034e103f202342b111c75ed70379932fca1cb6170c6db30a624ca6dc9e80cf8
|
4
|
+
data.tar.gz: e36fe9f6e5d083791e5cb4b11098182804ff5d17a30d760f50943c350d248bdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 372050d0307a31631856a663fec38d6b23c028b024863e6ff602679a7259e7d32cc948e7d55e37a8f5b9b9281fd2a45903e284f2bbf58b101f67a70113eb65bb
|
7
|
+
data.tar.gz: 7f6c49fe07d48ca4ec380cc1dbcbeccc5f4f4f113cc91ba3fcbecd9c5a2c32ff94cf6bfc76129b3f2c18abf2ffd3e262fc636e32f548efe1378ed10a43e1a993
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v4.1.0 8th November 2024
|
4
|
+
|
5
|
+
- Release based on Onfido OpenAPI spec version [v4.1.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v4.1.0):
|
6
|
+
- [CAT-1528] Fix barcode field in document properties object
|
7
|
+
|
3
8
|
## v4.0.0 24th October 2024
|
4
9
|
|
5
10
|
- Release based on Onfido OpenAPI spec version [v4.0.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v4.0.0):
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@ This version uses Onfido API v3.6. Refer to our [API versioning guide](https://d
|
|
14
14
|
### Installation
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
gem onfido, '~> 4.
|
17
|
+
gem onfido, '~> 4.2.0'
|
18
18
|
```
|
19
19
|
|
20
20
|
Configure with your API token, region and optional timeout (default value is 30):
|
data/lib/onfido/api_client.rb
CHANGED
@@ -34,7 +34,7 @@ module Onfido
|
|
34
34
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
35
35
|
def initialize(config = Configuration.default)
|
36
36
|
@config = config
|
37
|
-
@user_agent = "onfido-ruby/4.
|
37
|
+
@user_agent = "onfido-ruby/4.2.0"
|
38
38
|
@default_headers = {
|
39
39
|
'Content-Type' => 'application/json',
|
40
40
|
'User-Agent' => @user_agent
|
@@ -45,10 +45,56 @@ module Onfido
|
|
45
45
|
VEHICLE_REGISTRATION_CERTIFICATE = "vehicle_registration_certificate".freeze
|
46
46
|
FORM_FOR_AFFIXING_THE_VISA = "form_for_affixing_the_visa".freeze
|
47
47
|
IDENTIFICATION_NUMBER_DOCUMENT = "identification_number_document".freeze
|
48
|
+
ADOPTION_CERTIFICATE = "adoption_certificate".freeze
|
49
|
+
BANK_BUILDING_SOCIETY_STATEMENT = "bank_building_society_statement".freeze
|
50
|
+
BANK_STATEMENT = "bank_statement".freeze
|
51
|
+
BENEFIT_LETTERS = "benefit_letters".freeze
|
52
|
+
CBT = "cbt".freeze
|
53
|
+
CERTIFICATE_OF_SPONSORSHIP = "certificate_of_sponsorship".freeze
|
54
|
+
CHARACTER_REFERENCE = "character_reference".freeze
|
55
|
+
CIVIL_PARTNERSHIP_CERTIFICATE = "civil_partnership_certificate".freeze
|
56
|
+
COUNCIL_TAX = "council_tax".freeze
|
57
|
+
CREDIT_CARD_STATEMENT = "credit_card_statement".freeze
|
58
|
+
DEED_POLL = "deed_poll".freeze
|
59
|
+
DIVORCE_ABSOLUTE_DECREE = "divorce_absolute_decree".freeze
|
60
|
+
EDUCATIONAL_STATEMENT = "educational_statement".freeze
|
61
|
+
ELECTRICITY_BILL = "electricity_bill".freeze
|
62
|
+
GAS_BILL = "gas_bill".freeze
|
63
|
+
GOVERNMENT_LETTER = "government_letter".freeze
|
64
|
+
INTERNET_BILL = "internet_bill".freeze
|
65
|
+
MARRIAGE_CERTIFICATE = "marriage_certificate".freeze
|
66
|
+
MOTORCYCLE_INSURANCE = "motorcycle_insurance".freeze
|
67
|
+
NATIONAL_INSURANCE_CARD = "national_insurance_card".freeze
|
68
|
+
NATURALISATION_CERTIFICATE = "naturalisation_certificate".freeze
|
69
|
+
NON_UK_DRIVING_LICENCE = "non_uk_driving_licence".freeze
|
70
|
+
P45_P60 = "p45_p60".freeze
|
71
|
+
PAYSLIP = "payslip".freeze
|
72
|
+
PHONE_BILL = "phone_bill".freeze
|
73
|
+
PROFESSIONAL_IDENTIFICATION_CARD = "professional_identification_card".freeze
|
74
|
+
RIGHT_TO_WORK_SHARE_CODE_RESULT = "right_to_work_share_code_result".freeze
|
75
|
+
STATEMENT_FACT = "statement_fact".freeze
|
76
|
+
T4_STUDENT_UNIVERSITY_TERM_DATES_EVIDENCE = "t4_student_university_term_dates_evidence".freeze
|
77
|
+
UK_BIOMETRIC_RESIDENCE_PERMIT = "uk_biometric_residence_permit".freeze
|
78
|
+
UK_DRIVING_LICENCE = "uk_driving_licence".freeze
|
79
|
+
UNKNOWN = "unknown".freeze
|
80
|
+
UTILITY_BILL = "utility_bill".freeze
|
81
|
+
UTILITY_BILL_ELECTRIC = "utility_bill_electric".freeze
|
82
|
+
UTILITY_BILL_GAS = "utility_bill_gas".freeze
|
83
|
+
UTILITY_BILL_OTHER = "utility_bill_other".freeze
|
84
|
+
WATER_BILL = "water_bill".freeze
|
85
|
+
ADDRESS_CERTIFICATE = "address_certificate".freeze
|
86
|
+
GENERAL_LETTER = "general_letter".freeze
|
87
|
+
INSURANCE_STATEMENT = "insurance_statement".freeze
|
88
|
+
PENSION_PROPERTY_STATEMENT_LETTER = "pension_property_statement_letter".freeze
|
89
|
+
MORTGAGE_STATEMENT = "mortgage_statement".freeze
|
90
|
+
MOBILE_PHONE_BILL = "mobile_phone_bill".freeze
|
91
|
+
IDENTITY_DOCUMENT_WITH_ADDRESS = "identity_document_with_address".freeze
|
92
|
+
EXCHANGE_HOUSE_STATEMENT = "exchange_house_statement".freeze
|
93
|
+
ACCOMMODATION_TENANCY_CERTIFICATE = "accommodation_tenancy_certificate".freeze
|
48
94
|
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
49
95
|
|
50
96
|
def self.all_vars
|
51
|
-
@all_vars ||= [PASSPORT, DRIVING_LICENCE, NATIONAL_IDENTITY_CARD, RESIDENCE_PERMIT, PASSPORT_CARD, TAX_ID, VISA, VOTER_ID, RESIDENCE_STATUS_DOCUMENT, POSTAL_IDENTITY_CARD, SOCIAL_SECURITY_CARD, WORK_PERMIT, ASYLUM_REGISTRATION_CARD, NATIONAL_HEALTH_INSURANCE_CARD, MUNICIPALITY_IDENTITY_CARD, PRIVATE_OPERATORS_CARD, PROOF_OF_CITIZENSHIP, SERVICE_ID_CARD, IMMIGRATION_STATUS_DOCUMENT, INDIGENOUS_CARD, VEHICLE_REGISTRATION_CARD, CERTIFICATE_OF_NATURALISATION, PROFESSIONAL_QUALIFICATION_CARD, CONSULAR_ID, INTERNATIONAL_DRIVING_LICENCE, HOME_OFFICE_LETTER, BIRTH_CERTIFICATE, VEHICLE_REGISTRATION_CERTIFICATE, FORM_FOR_AFFIXING_THE_VISA, IDENTIFICATION_NUMBER_DOCUMENT, UNKNOWN_DEFAULT_OPEN_API].freeze
|
97
|
+
@all_vars ||= [PASSPORT, DRIVING_LICENCE, NATIONAL_IDENTITY_CARD, RESIDENCE_PERMIT, PASSPORT_CARD, TAX_ID, VISA, VOTER_ID, RESIDENCE_STATUS_DOCUMENT, POSTAL_IDENTITY_CARD, SOCIAL_SECURITY_CARD, WORK_PERMIT, ASYLUM_REGISTRATION_CARD, NATIONAL_HEALTH_INSURANCE_CARD, MUNICIPALITY_IDENTITY_CARD, PRIVATE_OPERATORS_CARD, PROOF_OF_CITIZENSHIP, SERVICE_ID_CARD, IMMIGRATION_STATUS_DOCUMENT, INDIGENOUS_CARD, VEHICLE_REGISTRATION_CARD, CERTIFICATE_OF_NATURALISATION, PROFESSIONAL_QUALIFICATION_CARD, CONSULAR_ID, INTERNATIONAL_DRIVING_LICENCE, HOME_OFFICE_LETTER, BIRTH_CERTIFICATE, VEHICLE_REGISTRATION_CERTIFICATE, FORM_FOR_AFFIXING_THE_VISA, IDENTIFICATION_NUMBER_DOCUMENT, ADOPTION_CERTIFICATE, BANK_BUILDING_SOCIETY_STATEMENT, BANK_STATEMENT, BENEFIT_LETTERS, CBT, CERTIFICATE_OF_SPONSORSHIP, CHARACTER_REFERENCE, CIVIL_PARTNERSHIP_CERTIFICATE, COUNCIL_TAX, CREDIT_CARD_STATEMENT, DEED_POLL, DIVORCE_ABSOLUTE_DECREE, EDUCATIONAL_STATEMENT, ELECTRICITY_BILL, GAS_BILL, GOVERNMENT_LETTER, INTERNET_BILL, MARRIAGE_CERTIFICATE, MOTORCYCLE_INSURANCE, NATIONAL_INSURANCE_CARD, NATURALISATION_CERTIFICATE, NON_UK_DRIVING_LICENCE, P45_P60, PAYSLIP, PHONE_BILL, PROFESSIONAL_IDENTIFICATION_CARD, RIGHT_TO_WORK_SHARE_CODE_RESULT, STATEMENT_FACT, T4_STUDENT_UNIVERSITY_TERM_DATES_EVIDENCE, UK_BIOMETRIC_RESIDENCE_PERMIT, UK_DRIVING_LICENCE, UNKNOWN, UTILITY_BILL, UTILITY_BILL_ELECTRIC, UTILITY_BILL_GAS, UTILITY_BILL_OTHER, WATER_BILL, ADDRESS_CERTIFICATE, GENERAL_LETTER, INSURANCE_STATEMENT, PENSION_PROPERTY_STATEMENT_LETTER, MORTGAGE_STATEMENT, MOBILE_PHONE_BILL, IDENTITY_DOCUMENT_WITH_ADDRESS, EXCHANGE_HOUSE_STATEMENT, ACCOMMODATION_TENANCY_CERTIFICATE, UNKNOWN_DEFAULT_OPEN_API].freeze
|
52
98
|
end
|
53
99
|
|
54
100
|
# Builds the enum from string
|
@@ -38,6 +38,18 @@ module Onfido
|
|
38
38
|
|
39
39
|
attr_accessor :name
|
40
40
|
|
41
|
+
# Array of objects with live photo ids that were used in the Onfido engine.
|
42
|
+
attr_accessor :live_photos
|
43
|
+
|
44
|
+
# Array of objects with live video ids that were used in the Onfido engine.
|
45
|
+
attr_accessor :live_videos
|
46
|
+
|
47
|
+
# Array of objects with motion capture ids that were used in the Onfido engine.
|
48
|
+
attr_accessor :motion_captures
|
49
|
+
|
50
|
+
# Array of objects with id photo ids that were used in the Onfido engine.
|
51
|
+
attr_accessor :id_photos
|
52
|
+
|
41
53
|
attr_accessor :breakdown
|
42
54
|
|
43
55
|
attr_accessor :properties
|
@@ -76,6 +88,10 @@ module Onfido
|
|
76
88
|
:'check_id' => :'check_id',
|
77
89
|
:'documents' => :'documents',
|
78
90
|
:'name' => :'name',
|
91
|
+
:'live_photos' => :'live_photos',
|
92
|
+
:'live_videos' => :'live_videos',
|
93
|
+
:'motion_captures' => :'motion_captures',
|
94
|
+
:'id_photos' => :'id_photos',
|
79
95
|
:'breakdown' => :'breakdown',
|
80
96
|
:'properties' => :'properties'
|
81
97
|
}
|
@@ -98,6 +114,10 @@ module Onfido
|
|
98
114
|
:'check_id' => :'String',
|
99
115
|
:'documents' => :'Array<ReportDocument>',
|
100
116
|
:'name' => :'ReportName',
|
117
|
+
:'live_photos' => :'Array<FacialSimilarityReportMedia>',
|
118
|
+
:'live_videos' => :'Array<FacialSimilarityReportMedia>',
|
119
|
+
:'motion_captures' => :'Array<FacialSimilarityReportMedia>',
|
120
|
+
:'id_photos' => :'Array<FacialSimilarityReportMedia>',
|
101
121
|
:'breakdown' => :'FacialSimilarityMotionBreakdown',
|
102
122
|
:'properties' => :'FacialSimilarityMotionProperties'
|
103
123
|
}
|
@@ -112,6 +132,7 @@ module Onfido
|
|
112
132
|
# List of class defined in allOf (OpenAPI v3)
|
113
133
|
def self.openapi_all_of
|
114
134
|
[
|
135
|
+
:'FacialSimilarityReportShared',
|
115
136
|
:'ReportShared'
|
116
137
|
]
|
117
138
|
end
|
@@ -173,6 +194,30 @@ module Onfido
|
|
173
194
|
self.name = nil
|
174
195
|
end
|
175
196
|
|
197
|
+
if attributes.key?(:'live_photos')
|
198
|
+
if (value = attributes[:'live_photos']).is_a?(Array)
|
199
|
+
self.live_photos = value
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.key?(:'live_videos')
|
204
|
+
if (value = attributes[:'live_videos']).is_a?(Array)
|
205
|
+
self.live_videos = value
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.key?(:'motion_captures')
|
210
|
+
if (value = attributes[:'motion_captures']).is_a?(Array)
|
211
|
+
self.motion_captures = value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.key?(:'id_photos')
|
216
|
+
if (value = attributes[:'id_photos']).is_a?(Array)
|
217
|
+
self.id_photos = value
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
176
221
|
if attributes.key?(:'breakdown')
|
177
222
|
self.breakdown = attributes[:'breakdown']
|
178
223
|
end
|
@@ -221,6 +266,10 @@ module Onfido
|
|
221
266
|
check_id == o.check_id &&
|
222
267
|
documents == o.documents &&
|
223
268
|
name == o.name &&
|
269
|
+
live_photos == o.live_photos &&
|
270
|
+
live_videos == o.live_videos &&
|
271
|
+
motion_captures == o.motion_captures &&
|
272
|
+
id_photos == o.id_photos &&
|
224
273
|
breakdown == o.breakdown &&
|
225
274
|
properties == o.properties
|
226
275
|
end
|
@@ -234,7 +283,7 @@ module Onfido
|
|
234
283
|
# Calculates hash code according to all attributes.
|
235
284
|
# @return [Integer] Hash code
|
236
285
|
def hash
|
237
|
-
[id, created_at, href, status, result, sub_result, check_id, documents, name, breakdown, properties].hash
|
286
|
+
[id, created_at, href, status, result, sub_result, check_id, documents, name, live_photos, live_videos, motion_captures, id_photos, breakdown, properties].hash
|
238
287
|
end
|
239
288
|
|
240
289
|
# Builds the object from hash
|
@@ -38,6 +38,18 @@ module Onfido
|
|
38
38
|
|
39
39
|
attr_accessor :name
|
40
40
|
|
41
|
+
# Array of objects with live photo ids that were used in the Onfido engine.
|
42
|
+
attr_accessor :live_photos
|
43
|
+
|
44
|
+
# Array of objects with live video ids that were used in the Onfido engine.
|
45
|
+
attr_accessor :live_videos
|
46
|
+
|
47
|
+
# Array of objects with motion capture ids that were used in the Onfido engine.
|
48
|
+
attr_accessor :motion_captures
|
49
|
+
|
50
|
+
# Array of objects with id photo ids that were used in the Onfido engine.
|
51
|
+
attr_accessor :id_photos
|
52
|
+
|
41
53
|
attr_accessor :breakdown
|
42
54
|
|
43
55
|
attr_accessor :properties
|
@@ -76,6 +88,10 @@ module Onfido
|
|
76
88
|
:'check_id' => :'check_id',
|
77
89
|
:'documents' => :'documents',
|
78
90
|
:'name' => :'name',
|
91
|
+
:'live_photos' => :'live_photos',
|
92
|
+
:'live_videos' => :'live_videos',
|
93
|
+
:'motion_captures' => :'motion_captures',
|
94
|
+
:'id_photos' => :'id_photos',
|
79
95
|
:'breakdown' => :'breakdown',
|
80
96
|
:'properties' => :'properties'
|
81
97
|
}
|
@@ -98,6 +114,10 @@ module Onfido
|
|
98
114
|
:'check_id' => :'String',
|
99
115
|
:'documents' => :'Array<ReportDocument>',
|
100
116
|
:'name' => :'ReportName',
|
117
|
+
:'live_photos' => :'Array<FacialSimilarityReportMedia>',
|
118
|
+
:'live_videos' => :'Array<FacialSimilarityReportMedia>',
|
119
|
+
:'motion_captures' => :'Array<FacialSimilarityReportMedia>',
|
120
|
+
:'id_photos' => :'Array<FacialSimilarityReportMedia>',
|
101
121
|
:'breakdown' => :'FacialSimilarityPhotoFullyAutoBreakdown',
|
102
122
|
:'properties' => :'FacialSimilarityPhotoFullyAutoProperties'
|
103
123
|
}
|
@@ -112,6 +132,7 @@ module Onfido
|
|
112
132
|
# List of class defined in allOf (OpenAPI v3)
|
113
133
|
def self.openapi_all_of
|
114
134
|
[
|
135
|
+
:'FacialSimilarityReportShared',
|
115
136
|
:'ReportShared'
|
116
137
|
]
|
117
138
|
end
|
@@ -173,6 +194,30 @@ module Onfido
|
|
173
194
|
self.name = nil
|
174
195
|
end
|
175
196
|
|
197
|
+
if attributes.key?(:'live_photos')
|
198
|
+
if (value = attributes[:'live_photos']).is_a?(Array)
|
199
|
+
self.live_photos = value
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.key?(:'live_videos')
|
204
|
+
if (value = attributes[:'live_videos']).is_a?(Array)
|
205
|
+
self.live_videos = value
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.key?(:'motion_captures')
|
210
|
+
if (value = attributes[:'motion_captures']).is_a?(Array)
|
211
|
+
self.motion_captures = value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.key?(:'id_photos')
|
216
|
+
if (value = attributes[:'id_photos']).is_a?(Array)
|
217
|
+
self.id_photos = value
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
176
221
|
if attributes.key?(:'breakdown')
|
177
222
|
self.breakdown = attributes[:'breakdown']
|
178
223
|
end
|
@@ -221,6 +266,10 @@ module Onfido
|
|
221
266
|
check_id == o.check_id &&
|
222
267
|
documents == o.documents &&
|
223
268
|
name == o.name &&
|
269
|
+
live_photos == o.live_photos &&
|
270
|
+
live_videos == o.live_videos &&
|
271
|
+
motion_captures == o.motion_captures &&
|
272
|
+
id_photos == o.id_photos &&
|
224
273
|
breakdown == o.breakdown &&
|
225
274
|
properties == o.properties
|
226
275
|
end
|
@@ -234,7 +283,7 @@ module Onfido
|
|
234
283
|
# Calculates hash code according to all attributes.
|
235
284
|
# @return [Integer] Hash code
|
236
285
|
def hash
|
237
|
-
[id, created_at, href, status, result, sub_result, check_id, documents, name, breakdown, properties].hash
|
286
|
+
[id, created_at, href, status, result, sub_result, check_id, documents, name, live_photos, live_videos, motion_captures, id_photos, breakdown, properties].hash
|
238
287
|
end
|
239
288
|
|
240
289
|
# Builds the object from hash
|
@@ -38,6 +38,18 @@ module Onfido
|
|
38
38
|
|
39
39
|
attr_accessor :name
|
40
40
|
|
41
|
+
# Array of objects with live photo ids that were used in the Onfido engine.
|
42
|
+
attr_accessor :live_photos
|
43
|
+
|
44
|
+
# Array of objects with live video ids that were used in the Onfido engine.
|
45
|
+
attr_accessor :live_videos
|
46
|
+
|
47
|
+
# Array of objects with motion capture ids that were used in the Onfido engine.
|
48
|
+
attr_accessor :motion_captures
|
49
|
+
|
50
|
+
# Array of objects with id photo ids that were used in the Onfido engine.
|
51
|
+
attr_accessor :id_photos
|
52
|
+
|
41
53
|
attr_accessor :breakdown
|
42
54
|
|
43
55
|
attr_accessor :properties
|
@@ -76,6 +88,10 @@ module Onfido
|
|
76
88
|
:'check_id' => :'check_id',
|
77
89
|
:'documents' => :'documents',
|
78
90
|
:'name' => :'name',
|
91
|
+
:'live_photos' => :'live_photos',
|
92
|
+
:'live_videos' => :'live_videos',
|
93
|
+
:'motion_captures' => :'motion_captures',
|
94
|
+
:'id_photos' => :'id_photos',
|
79
95
|
:'breakdown' => :'breakdown',
|
80
96
|
:'properties' => :'properties'
|
81
97
|
}
|
@@ -98,6 +114,10 @@ module Onfido
|
|
98
114
|
:'check_id' => :'String',
|
99
115
|
:'documents' => :'Array<ReportDocument>',
|
100
116
|
:'name' => :'ReportName',
|
117
|
+
:'live_photos' => :'Array<FacialSimilarityReportMedia>',
|
118
|
+
:'live_videos' => :'Array<FacialSimilarityReportMedia>',
|
119
|
+
:'motion_captures' => :'Array<FacialSimilarityReportMedia>',
|
120
|
+
:'id_photos' => :'Array<FacialSimilarityReportMedia>',
|
101
121
|
:'breakdown' => :'FacialSimilarityPhotoBreakdown',
|
102
122
|
:'properties' => :'FacialSimilarityPhotoProperties'
|
103
123
|
}
|
@@ -112,6 +132,7 @@ module Onfido
|
|
112
132
|
# List of class defined in allOf (OpenAPI v3)
|
113
133
|
def self.openapi_all_of
|
114
134
|
[
|
135
|
+
:'FacialSimilarityReportShared',
|
115
136
|
:'ReportShared'
|
116
137
|
]
|
117
138
|
end
|
@@ -173,6 +194,30 @@ module Onfido
|
|
173
194
|
self.name = nil
|
174
195
|
end
|
175
196
|
|
197
|
+
if attributes.key?(:'live_photos')
|
198
|
+
if (value = attributes[:'live_photos']).is_a?(Array)
|
199
|
+
self.live_photos = value
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.key?(:'live_videos')
|
204
|
+
if (value = attributes[:'live_videos']).is_a?(Array)
|
205
|
+
self.live_videos = value
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.key?(:'motion_captures')
|
210
|
+
if (value = attributes[:'motion_captures']).is_a?(Array)
|
211
|
+
self.motion_captures = value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.key?(:'id_photos')
|
216
|
+
if (value = attributes[:'id_photos']).is_a?(Array)
|
217
|
+
self.id_photos = value
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
176
221
|
if attributes.key?(:'breakdown')
|
177
222
|
self.breakdown = attributes[:'breakdown']
|
178
223
|
end
|
@@ -221,6 +266,10 @@ module Onfido
|
|
221
266
|
check_id == o.check_id &&
|
222
267
|
documents == o.documents &&
|
223
268
|
name == o.name &&
|
269
|
+
live_photos == o.live_photos &&
|
270
|
+
live_videos == o.live_videos &&
|
271
|
+
motion_captures == o.motion_captures &&
|
272
|
+
id_photos == o.id_photos &&
|
224
273
|
breakdown == o.breakdown &&
|
225
274
|
properties == o.properties
|
226
275
|
end
|
@@ -234,7 +283,7 @@ module Onfido
|
|
234
283
|
# Calculates hash code according to all attributes.
|
235
284
|
# @return [Integer] Hash code
|
236
285
|
def hash
|
237
|
-
[id, created_at, href, status, result, sub_result, check_id, documents, name, breakdown, properties].hash
|
286
|
+
[id, created_at, href, status, result, sub_result, check_id, documents, name, live_photos, live_videos, motion_captures, id_photos, breakdown, properties].hash
|
238
287
|
end
|
239
288
|
|
240
289
|
# Builds the object from hash
|
@@ -0,0 +1,222 @@
|
|
1
|
+
=begin
|
2
|
+
#Onfido API v3.6
|
3
|
+
|
4
|
+
#The Onfido API (v3.6)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3.6
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Onfido
|
17
|
+
class FacialSimilarityReportMedia
|
18
|
+
# ID of uploaded biometric media to use.
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'id' => :'id'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.openapi_types
|
35
|
+
{
|
36
|
+
:'id' => :'String'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# List of attributes with nullable: true
|
41
|
+
def self.openapi_nullable
|
42
|
+
Set.new([
|
43
|
+
])
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::FacialSimilarityReportMedia` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::FacialSimilarityReportMedia`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
end
|
58
|
+
h[k.to_sym] = v
|
59
|
+
}
|
60
|
+
|
61
|
+
if attributes.key?(:'id')
|
62
|
+
self.id = attributes[:'id']
|
63
|
+
else
|
64
|
+
self.id = nil
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
69
|
+
# @return Array for valid properties with the reasons
|
70
|
+
def list_invalid_properties
|
71
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
72
|
+
invalid_properties = Array.new
|
73
|
+
if @id.nil?
|
74
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
75
|
+
end
|
76
|
+
|
77
|
+
invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
84
|
+
return false if @id.nil?
|
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 == o.id
|
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].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 = Onfido.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
|
@@ -0,0 +1,253 @@
|
|
1
|
+
=begin
|
2
|
+
#Onfido API v3.6
|
3
|
+
|
4
|
+
#The Onfido API (v3.6)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3.6
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Onfido
|
17
|
+
class FacialSimilarityReportShared
|
18
|
+
# Array of objects with live photo ids that were used in the Onfido engine.
|
19
|
+
attr_accessor :live_photos
|
20
|
+
|
21
|
+
# Array of objects with live video ids that were used in the Onfido engine.
|
22
|
+
attr_accessor :live_videos
|
23
|
+
|
24
|
+
# Array of objects with motion capture ids that were used in the Onfido engine.
|
25
|
+
attr_accessor :motion_captures
|
26
|
+
|
27
|
+
# Array of objects with id photo ids that were used in the Onfido engine.
|
28
|
+
attr_accessor :id_photos
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'live_photos' => :'live_photos',
|
34
|
+
:'live_videos' => :'live_videos',
|
35
|
+
:'motion_captures' => :'motion_captures',
|
36
|
+
:'id_photos' => :'id_photos'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns all the JSON keys this model knows about
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.openapi_types
|
47
|
+
{
|
48
|
+
:'live_photos' => :'Array<FacialSimilarityReportMedia>',
|
49
|
+
:'live_videos' => :'Array<FacialSimilarityReportMedia>',
|
50
|
+
:'motion_captures' => :'Array<FacialSimilarityReportMedia>',
|
51
|
+
:'id_photos' => :'Array<FacialSimilarityReportMedia>'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# List of attributes with nullable: true
|
56
|
+
def self.openapi_nullable
|
57
|
+
Set.new([
|
58
|
+
])
|
59
|
+
end
|
60
|
+
|
61
|
+
# Initializes the object
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::FacialSimilarityReportShared` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::FacialSimilarityReportShared`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
|
+
end
|
73
|
+
h[k.to_sym] = v
|
74
|
+
}
|
75
|
+
|
76
|
+
if attributes.key?(:'live_photos')
|
77
|
+
if (value = attributes[:'live_photos']).is_a?(Array)
|
78
|
+
self.live_photos = value
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'live_videos')
|
83
|
+
if (value = attributes[:'live_videos']).is_a?(Array)
|
84
|
+
self.live_videos = value
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'motion_captures')
|
89
|
+
if (value = attributes[:'motion_captures']).is_a?(Array)
|
90
|
+
self.motion_captures = value
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'id_photos')
|
95
|
+
if (value = attributes[:'id_photos']).is_a?(Array)
|
96
|
+
self.id_photos = value
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
102
|
+
# @return Array for valid properties with the reasons
|
103
|
+
def list_invalid_properties
|
104
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
105
|
+
invalid_properties = Array.new
|
106
|
+
invalid_properties
|
107
|
+
end
|
108
|
+
|
109
|
+
# Check to see if the all the properties in the model are valid
|
110
|
+
# @return true if the model is valid
|
111
|
+
def valid?
|
112
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
113
|
+
true
|
114
|
+
end
|
115
|
+
|
116
|
+
# Checks equality by comparing each attribute.
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
live_photos == o.live_photos &&
|
122
|
+
live_videos == o.live_videos &&
|
123
|
+
motion_captures == o.motion_captures &&
|
124
|
+
id_photos == o.id_photos
|
125
|
+
end
|
126
|
+
|
127
|
+
# @see the `==` method
|
128
|
+
# @param [Object] Object to be compared
|
129
|
+
def eql?(o)
|
130
|
+
self == o
|
131
|
+
end
|
132
|
+
|
133
|
+
# Calculates hash code according to all attributes.
|
134
|
+
# @return [Integer] Hash code
|
135
|
+
def hash
|
136
|
+
[live_photos, live_videos, motion_captures, id_photos].hash
|
137
|
+
end
|
138
|
+
|
139
|
+
# Builds the object from hash
|
140
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
141
|
+
# @return [Object] Returns the model itself
|
142
|
+
def self.build_from_hash(attributes)
|
143
|
+
return nil unless attributes.is_a?(Hash)
|
144
|
+
attributes = attributes.transform_keys(&:to_sym)
|
145
|
+
transformed_hash = {}
|
146
|
+
openapi_types.each_pair do |key, type|
|
147
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
148
|
+
transformed_hash["#{key}"] = nil
|
149
|
+
elsif type =~ /\AArray<(.*)>/i
|
150
|
+
# check to ensure the input is an array given that the attribute
|
151
|
+
# is documented as an array but the input is not
|
152
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
153
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
154
|
+
end
|
155
|
+
elsif !attributes[attribute_map[key]].nil?
|
156
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
157
|
+
end
|
158
|
+
end
|
159
|
+
new(transformed_hash)
|
160
|
+
end
|
161
|
+
|
162
|
+
# Deserializes the data based on type
|
163
|
+
# @param string type Data type
|
164
|
+
# @param string value Value to be deserialized
|
165
|
+
# @return [Object] Deserialized data
|
166
|
+
def self._deserialize(type, value)
|
167
|
+
case type.to_sym
|
168
|
+
when :Time
|
169
|
+
Time.parse(value)
|
170
|
+
when :Date
|
171
|
+
Date.parse(value)
|
172
|
+
when :String
|
173
|
+
value.to_s
|
174
|
+
when :Integer
|
175
|
+
value.to_i
|
176
|
+
when :Float
|
177
|
+
value.to_f
|
178
|
+
when :Boolean
|
179
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
180
|
+
true
|
181
|
+
else
|
182
|
+
false
|
183
|
+
end
|
184
|
+
when :Object
|
185
|
+
# generic object (usually a Hash), return directly
|
186
|
+
value
|
187
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
188
|
+
inner_type = Regexp.last_match[:inner_type]
|
189
|
+
value.map { |v| _deserialize(inner_type, v) }
|
190
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
191
|
+
k_type = Regexp.last_match[:k_type]
|
192
|
+
v_type = Regexp.last_match[:v_type]
|
193
|
+
{}.tap do |hash|
|
194
|
+
value.each do |k, v|
|
195
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
196
|
+
end
|
197
|
+
end
|
198
|
+
else # model
|
199
|
+
# models (e.g. Pet) or oneOf
|
200
|
+
klass = Onfido.const_get(type)
|
201
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the string representation of the object
|
206
|
+
# @return [String] String presentation of the object
|
207
|
+
def to_s
|
208
|
+
to_hash.to_s
|
209
|
+
end
|
210
|
+
|
211
|
+
# to_body is an alias to to_hash (backward compatibility)
|
212
|
+
# @return [Hash] Returns the object in the form of hash
|
213
|
+
def to_body
|
214
|
+
to_hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Returns the object in the form of hash
|
218
|
+
# @return [Hash] Returns the object in the form of hash
|
219
|
+
def to_hash
|
220
|
+
hash = {}
|
221
|
+
self.class.attribute_map.each_pair do |attr, param|
|
222
|
+
value = self.send(attr)
|
223
|
+
if value.nil?
|
224
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
225
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
226
|
+
end
|
227
|
+
|
228
|
+
hash[param] = _to_hash(value)
|
229
|
+
end
|
230
|
+
hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Outputs non-array value in the form of hash
|
234
|
+
# For object, use to_hash. Otherwise, just return the value
|
235
|
+
# @param [Object] value Any valid value
|
236
|
+
# @return [Hash] Returns the value in the form of hash
|
237
|
+
def _to_hash(value)
|
238
|
+
if value.is_a?(Array)
|
239
|
+
value.compact.map { |v| _to_hash(v) }
|
240
|
+
elsif value.is_a?(Hash)
|
241
|
+
{}.tap do |hash|
|
242
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
243
|
+
end
|
244
|
+
elsif value.respond_to? :to_hash
|
245
|
+
value.to_hash
|
246
|
+
else
|
247
|
+
value
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
end
|
252
|
+
|
253
|
+
end
|
@@ -38,6 +38,18 @@ module Onfido
|
|
38
38
|
|
39
39
|
attr_accessor :name
|
40
40
|
|
41
|
+
# Array of objects with live photo ids that were used in the Onfido engine.
|
42
|
+
attr_accessor :live_photos
|
43
|
+
|
44
|
+
# Array of objects with live video ids that were used in the Onfido engine.
|
45
|
+
attr_accessor :live_videos
|
46
|
+
|
47
|
+
# Array of objects with motion capture ids that were used in the Onfido engine.
|
48
|
+
attr_accessor :motion_captures
|
49
|
+
|
50
|
+
# Array of objects with id photo ids that were used in the Onfido engine.
|
51
|
+
attr_accessor :id_photos
|
52
|
+
|
41
53
|
attr_accessor :breakdown
|
42
54
|
|
43
55
|
attr_accessor :properties
|
@@ -76,6 +88,10 @@ module Onfido
|
|
76
88
|
:'check_id' => :'check_id',
|
77
89
|
:'documents' => :'documents',
|
78
90
|
:'name' => :'name',
|
91
|
+
:'live_photos' => :'live_photos',
|
92
|
+
:'live_videos' => :'live_videos',
|
93
|
+
:'motion_captures' => :'motion_captures',
|
94
|
+
:'id_photos' => :'id_photos',
|
79
95
|
:'breakdown' => :'breakdown',
|
80
96
|
:'properties' => :'properties'
|
81
97
|
}
|
@@ -98,6 +114,10 @@ module Onfido
|
|
98
114
|
:'check_id' => :'String',
|
99
115
|
:'documents' => :'Array<ReportDocument>',
|
100
116
|
:'name' => :'ReportName',
|
117
|
+
:'live_photos' => :'Array<FacialSimilarityReportMedia>',
|
118
|
+
:'live_videos' => :'Array<FacialSimilarityReportMedia>',
|
119
|
+
:'motion_captures' => :'Array<FacialSimilarityReportMedia>',
|
120
|
+
:'id_photos' => :'Array<FacialSimilarityReportMedia>',
|
101
121
|
:'breakdown' => :'FacialSimilarityVideoBreakdown',
|
102
122
|
:'properties' => :'FacialSimilarityVideoProperties'
|
103
123
|
}
|
@@ -112,6 +132,7 @@ module Onfido
|
|
112
132
|
# List of class defined in allOf (OpenAPI v3)
|
113
133
|
def self.openapi_all_of
|
114
134
|
[
|
135
|
+
:'FacialSimilarityReportShared',
|
115
136
|
:'ReportShared'
|
116
137
|
]
|
117
138
|
end
|
@@ -173,6 +194,30 @@ module Onfido
|
|
173
194
|
self.name = nil
|
174
195
|
end
|
175
196
|
|
197
|
+
if attributes.key?(:'live_photos')
|
198
|
+
if (value = attributes[:'live_photos']).is_a?(Array)
|
199
|
+
self.live_photos = value
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.key?(:'live_videos')
|
204
|
+
if (value = attributes[:'live_videos']).is_a?(Array)
|
205
|
+
self.live_videos = value
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.key?(:'motion_captures')
|
210
|
+
if (value = attributes[:'motion_captures']).is_a?(Array)
|
211
|
+
self.motion_captures = value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.key?(:'id_photos')
|
216
|
+
if (value = attributes[:'id_photos']).is_a?(Array)
|
217
|
+
self.id_photos = value
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
176
221
|
if attributes.key?(:'breakdown')
|
177
222
|
self.breakdown = attributes[:'breakdown']
|
178
223
|
end
|
@@ -221,6 +266,10 @@ module Onfido
|
|
221
266
|
check_id == o.check_id &&
|
222
267
|
documents == o.documents &&
|
223
268
|
name == o.name &&
|
269
|
+
live_photos == o.live_photos &&
|
270
|
+
live_videos == o.live_videos &&
|
271
|
+
motion_captures == o.motion_captures &&
|
272
|
+
id_photos == o.id_photos &&
|
224
273
|
breakdown == o.breakdown &&
|
225
274
|
properties == o.properties
|
226
275
|
end
|
@@ -234,7 +283,7 @@ module Onfido
|
|
234
283
|
# Calculates hash code according to all attributes.
|
235
284
|
# @return [Integer] Hash code
|
236
285
|
def hash
|
237
|
-
[id, created_at, href, status, result, sub_result, check_id, documents, name, breakdown, properties].hash
|
286
|
+
[id, created_at, href, status, result, sub_result, check_id, documents, name, live_photos, live_videos, motion_captures, id_photos, breakdown, properties].hash
|
238
287
|
end
|
239
288
|
|
240
289
|
# Builds the object from hash
|
data/lib/onfido/version.rb
CHANGED
data/lib/onfido.rb
CHANGED
@@ -151,6 +151,8 @@ require 'onfido/models/facial_similarity_photo_fully_auto_properties'
|
|
151
151
|
require 'onfido/models/facial_similarity_photo_fully_auto_report'
|
152
152
|
require 'onfido/models/facial_similarity_photo_properties'
|
153
153
|
require 'onfido/models/facial_similarity_photo_report'
|
154
|
+
require 'onfido/models/facial_similarity_report_media'
|
155
|
+
require 'onfido/models/facial_similarity_report_shared'
|
154
156
|
require 'onfido/models/facial_similarity_video_breakdown'
|
155
157
|
require 'onfido/models/facial_similarity_video_breakdown_face_comparison'
|
156
158
|
require 'onfido/models/facial_similarity_video_breakdown_image_integrity'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onfido
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -272,6 +272,8 @@ files:
|
|
272
272
|
- lib/onfido/models/facial_similarity_photo_fully_auto_report.rb
|
273
273
|
- lib/onfido/models/facial_similarity_photo_properties.rb
|
274
274
|
- lib/onfido/models/facial_similarity_photo_report.rb
|
275
|
+
- lib/onfido/models/facial_similarity_report_media.rb
|
276
|
+
- lib/onfido/models/facial_similarity_report_shared.rb
|
275
277
|
- lib/onfido/models/facial_similarity_video_breakdown.rb
|
276
278
|
- lib/onfido/models/facial_similarity_video_breakdown_face_comparison.rb
|
277
279
|
- lib/onfido/models/facial_similarity_video_breakdown_image_integrity.rb
|