onfido 0.14.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/.travis.yml +3 -7
- data/CHANGELOG.md +21 -0
- data/LICENSE +2 -1
- data/README.md +59 -73
- data/lib/onfido.rb +1 -1
- data/lib/onfido/api.rb +4 -4
- data/lib/onfido/configuration.rb +4 -4
- data/lib/onfido/resource.rb +3 -6
- data/lib/onfido/resources/address.rb +1 -4
- data/lib/onfido/resources/applicant.rb +6 -6
- data/lib/onfido/resources/check.rb +10 -14
- data/lib/onfido/resources/document.rb +11 -11
- data/lib/onfido/resources/extraction.rb +9 -0
- data/lib/onfido/resources/live_photo.rb +9 -14
- data/lib/onfido/resources/live_video.rb +5 -8
- data/lib/onfido/resources/report.rb +8 -9
- data/lib/onfido/resources/sdk_token.rb +3 -5
- data/lib/onfido/resources/webhook.rb +11 -9
- data/lib/onfido/version.rb +1 -1
- data/onfido.gemspec +6 -7
- data/spec/integrations/address_spec.rb +1 -0
- data/spec/integrations/applicant_spec.rb +21 -37
- data/spec/integrations/check_spec.rb +13 -23
- data/spec/integrations/document_spec.rb +16 -17
- data/spec/integrations/exceptions_spec.rb +12 -14
- data/spec/integrations/extraction_spec.rb +19 -0
- data/spec/integrations/live_photo_spec.rb +12 -13
- data/spec/integrations/live_video_spec.rb +7 -10
- data/spec/integrations/report_spec.rb +11 -13
- data/spec/integrations/sdk_token_spec.rb +5 -5
- data/spec/integrations/webhook_spec.rb +35 -20
- data/spec/onfido/resource_spec.rb +10 -14
- data/spec/onfido_spec.rb +9 -10
- data/spec/support/fake_onfido_api.rb +53 -78
- data/spec/support/fixtures/applicant.json +21 -42
- data/spec/support/fixtures/check.json +4 -4
- data/spec/support/fixtures/checks.json +4 -4
- data/spec/support/fixtures/document.json +2 -2
- data/spec/support/fixtures/documents.json +8 -8
- data/spec/support/fixtures/extraction.json +23 -0
- data/spec/support/fixtures/live_photo.json +3 -3
- data/spec/support/fixtures/live_photos.json +6 -6
- data/spec/support/fixtures/live_video.json +3 -3
- data/spec/support/fixtures/live_videos.json +4 -4
- data/spec/support/fixtures/not_scheduled_for_deletion_error.json +7 -0
- data/spec/support/fixtures/report.json +4 -4
- data/spec/support/fixtures/reports.json +8 -8
- data/spec/support/fixtures/webhook.json +6 -5
- data/spec/support/fixtures/webhooks.json +17 -12
- metadata +19 -40
- data/lib/onfido/resources/report_type_group.rb +0 -11
- data/spec/integrations/report_type_group_spec.rb +0 -19
- data/spec/support/fixtures/check_with_expanded_reports.json +0 -30
- data/spec/support/fixtures/checks_with_expanded_reports.json +0 -34
- data/spec/support/fixtures/report_type_group.json +0 -25
- data/spec/support/fixtures/report_type_groups.json +0 -30
@@ -1,30 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"report_type_groups": [
|
3
|
-
{
|
4
|
-
"id": "8546921-123123-123123",
|
5
|
-
"name": "Senior level",
|
6
|
-
"group_only": false,
|
7
|
-
"report_types": [
|
8
|
-
{
|
9
|
-
"id": "121212-567657-234445",
|
10
|
-
"name": "identity"
|
11
|
-
}
|
12
|
-
]
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"id": "8546921-123123-123123",
|
16
|
-
"name": "Senior level",
|
17
|
-
"group_only": false,
|
18
|
-
"report_types": [
|
19
|
-
{
|
20
|
-
"id": "4566764-567657-234445",
|
21
|
-
"name": "identity"
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"id": "2344556-236767-786868",
|
25
|
-
"name": "right_to_work"
|
26
|
-
}
|
27
|
-
]
|
28
|
-
}
|
29
|
-
]
|
30
|
-
}
|