onfido 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +161 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/Gemfile +14 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +22 -0
- data/README.md +154 -0
- data/Rakefile +2 -0
- data/lib/onfido.rb +23 -0
- data/lib/onfido/address.rb +10 -0
- data/lib/onfido/api.rb +18 -0
- data/lib/onfido/applicant.rb +18 -0
- data/lib/onfido/check.rb +21 -0
- data/lib/onfido/configuration.rb +35 -0
- data/lib/onfido/document.rb +13 -0
- data/lib/onfido/null_logger.rb +6 -0
- data/lib/onfido/report.rb +11 -0
- data/lib/onfido/request_error.rb +23 -0
- data/lib/onfido/requestable.rb +12 -0
- data/lib/onfido/resource.rb +48 -0
- data/lib/onfido/response_handler.rb +38 -0
- data/lib/onfido/version.rb +3 -0
- data/onfido.gemspec +25 -0
- data/spec/integrations/4xx_response_spec.rb +35 -0
- data/spec/integrations/address_spec.rb +10 -0
- data/spec/integrations/applicant_spec.rb +73 -0
- data/spec/integrations/check_spec.rb +36 -0
- data/spec/integrations/document_spec.rb +27 -0
- data/spec/integrations/report_spec.rb +20 -0
- data/spec/onfido/request_error_spec.rb +39 -0
- data/spec/onfido/resource_spec.rb +63 -0
- data/spec/onfido/response_handler_spec.rb +79 -0
- data/spec/onfido_spec.rb +55 -0
- data/spec/spec_helper.rb +45 -0
- data/spec/support/fake_onfido_api.rb +55 -0
- data/spec/support/fixtures/4xx_response.json +14 -0
- data/spec/support/fixtures/addresses.json +24 -0
- data/spec/support/fixtures/applicant.json +44 -0
- data/spec/support/fixtures/applicants.json +12 -0
- data/spec/support/fixtures/check.json +30 -0
- data/spec/support/fixtures/checks.json +34 -0
- data/spec/support/fixtures/document.json +10 -0
- data/spec/support/fixtures/report.json +10 -0
- data/spec/support/fixtures/reports.json +24 -0
- metadata +151 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"id": "8546921-123123-123123",
|
3
|
+
"created_at": "2014-05-23T13:50:33Z",
|
4
|
+
"href": "/v1/applicants/61f659cb-c90b-4067-808a-6136b5c01351/checks/8546921-123123-123123",
|
5
|
+
"type": "standard",
|
6
|
+
"status": "pending",
|
7
|
+
"result": "pending",
|
8
|
+
"reports": [
|
9
|
+
{
|
10
|
+
"id": "6951786-123123-422221",
|
11
|
+
"name": "identity",
|
12
|
+
"created_at": "2014-05-23T13:50:33Z",
|
13
|
+
"status": "awaiting_applicant",
|
14
|
+
"result": "pending",
|
15
|
+
"href": "/v1/checks/8546921-123123-123123/reports/6951786-123123-422221",
|
16
|
+
"breakdown": {},
|
17
|
+
"properties": {}
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"id": "6951786-123123-316712",
|
21
|
+
"name": "document",
|
22
|
+
"created_at": "2014-05-23T13:50:33Z",
|
23
|
+
"status": "awaiting_applicant",
|
24
|
+
"result": "pending",
|
25
|
+
"href": "/v1/checks/8546921-123123-123123/reports/6951786-123123-316712",
|
26
|
+
"breakdown": {},
|
27
|
+
"properties": {}
|
28
|
+
}
|
29
|
+
]
|
30
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"checks": [
|
3
|
+
{
|
4
|
+
"id": "8546921-123123-123123",
|
5
|
+
"created_at": "2014-05-23T13:50:33Z",
|
6
|
+
"href": "/v1/applicants/61f659cb-c90b-4067-808a-6136b5c01351/checks/8546921-123123-123123",
|
7
|
+
"type": "standard",
|
8
|
+
"status": "pending",
|
9
|
+
"result": "pending",
|
10
|
+
"reports": [
|
11
|
+
{
|
12
|
+
"id": "6951786-123123-422221",
|
13
|
+
"name": "identity",
|
14
|
+
"created_at": "2014-05-23T13:50:33Z",
|
15
|
+
"status": "awaiting_applicant",
|
16
|
+
"result": "pending",
|
17
|
+
"href": "/v1/checks/8546921-123123-123123/reports/6951786-123123-422221",
|
18
|
+
"breakdown": {},
|
19
|
+
"properties": {}
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"id": "6951786-123123-316712",
|
23
|
+
"name": "document",
|
24
|
+
"created_at": "2014-05-23T13:50:33Z",
|
25
|
+
"status": "awaiting_applicant",
|
26
|
+
"result": "pending",
|
27
|
+
"href": "/v1/checks/8546921-123123-123123/reports/6951786-123123-316712",
|
28
|
+
"breakdown": {},
|
29
|
+
"properties": {}
|
30
|
+
}
|
31
|
+
]
|
32
|
+
}
|
33
|
+
]
|
34
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"id": "7568415-123123-123123",
|
3
|
+
"created_at": "2014-05-23 13:50:33Z",
|
4
|
+
"href": "/v1/applicants/1030303-123123-123123/documents/7568415-123123-123123",
|
5
|
+
"file_name": "passport.jpg",
|
6
|
+
"file_type": "png",
|
7
|
+
"file_size": 282870,
|
8
|
+
"type": "passport",
|
9
|
+
"side": 'back'
|
10
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"id": "6951786-123123-422221",
|
3
|
+
"name": "identity",
|
4
|
+
"created_at": "2014-05-23T13:50:33Z",
|
5
|
+
"status": "awaiting_applicant",
|
6
|
+
"result": "pending",
|
7
|
+
"href": "/v1/checks/8546921-123123-123123/reports/6951786-123123-422221",
|
8
|
+
"breakdown": {},
|
9
|
+
"properties": {}
|
10
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"reports": [
|
3
|
+
{
|
4
|
+
"id": "6951786-123123-422221",
|
5
|
+
"name": "identity",
|
6
|
+
"created_at": "2014-05-23T13:50:33Z",
|
7
|
+
"status": "awaiting_applicant",
|
8
|
+
"result": "pending",
|
9
|
+
"href": "/v1/checks/8546921-123123-123123/reports/6951786-123123-422221",
|
10
|
+
"breakdown": {},
|
11
|
+
"properties": {}
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"id": "6951786-123123-316712",
|
15
|
+
"name": "document",
|
16
|
+
"created_at": "2014-05-23T13:50:33Z",
|
17
|
+
"status": "awaiting_applicant",
|
18
|
+
"result": "pending",
|
19
|
+
"href": "/v1/checks/8546921-123123-123123/reports/6951786-123123-316712",
|
20
|
+
"breakdown": {},
|
21
|
+
"properties": {}
|
22
|
+
}
|
23
|
+
]
|
24
|
+
}
|
metadata
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: onfido
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Pericles Theodorou
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rest-client
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.8.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.8.0
|
55
|
+
description: A wrapper for Onfido API 1.0
|
56
|
+
email:
|
57
|
+
- periclestheo@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".rspec"
|
64
|
+
- ".ruby-version"
|
65
|
+
- Gemfile
|
66
|
+
- LICENSE
|
67
|
+
- LICENSE.txt
|
68
|
+
- README.md
|
69
|
+
- Rakefile
|
70
|
+
- lib/onfido.rb
|
71
|
+
- lib/onfido/address.rb
|
72
|
+
- lib/onfido/api.rb
|
73
|
+
- lib/onfido/applicant.rb
|
74
|
+
- lib/onfido/check.rb
|
75
|
+
- lib/onfido/configuration.rb
|
76
|
+
- lib/onfido/document.rb
|
77
|
+
- lib/onfido/null_logger.rb
|
78
|
+
- lib/onfido/report.rb
|
79
|
+
- lib/onfido/request_error.rb
|
80
|
+
- lib/onfido/requestable.rb
|
81
|
+
- lib/onfido/resource.rb
|
82
|
+
- lib/onfido/response_handler.rb
|
83
|
+
- lib/onfido/version.rb
|
84
|
+
- onfido.gemspec
|
85
|
+
- spec/integrations/4xx_response_spec.rb
|
86
|
+
- spec/integrations/address_spec.rb
|
87
|
+
- spec/integrations/applicant_spec.rb
|
88
|
+
- spec/integrations/check_spec.rb
|
89
|
+
- spec/integrations/document_spec.rb
|
90
|
+
- spec/integrations/report_spec.rb
|
91
|
+
- spec/onfido/request_error_spec.rb
|
92
|
+
- spec/onfido/resource_spec.rb
|
93
|
+
- spec/onfido/response_handler_spec.rb
|
94
|
+
- spec/onfido_spec.rb
|
95
|
+
- spec/spec_helper.rb
|
96
|
+
- spec/support/fake_onfido_api.rb
|
97
|
+
- spec/support/fixtures/4xx_response.json
|
98
|
+
- spec/support/fixtures/addresses.json
|
99
|
+
- spec/support/fixtures/applicant.json
|
100
|
+
- spec/support/fixtures/applicants.json
|
101
|
+
- spec/support/fixtures/check.json
|
102
|
+
- spec/support/fixtures/checks.json
|
103
|
+
- spec/support/fixtures/document.json
|
104
|
+
- spec/support/fixtures/report.json
|
105
|
+
- spec/support/fixtures/reports.json
|
106
|
+
homepage: http://github.com/hvssle/onfido
|
107
|
+
licenses:
|
108
|
+
- MIT
|
109
|
+
metadata: {}
|
110
|
+
post_install_message:
|
111
|
+
rdoc_options: []
|
112
|
+
require_paths:
|
113
|
+
- lib
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
requirements: []
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 2.2.2
|
127
|
+
signing_key:
|
128
|
+
specification_version: 4
|
129
|
+
summary: A wrapper for Onfido API 1.0
|
130
|
+
test_files:
|
131
|
+
- spec/integrations/4xx_response_spec.rb
|
132
|
+
- spec/integrations/address_spec.rb
|
133
|
+
- spec/integrations/applicant_spec.rb
|
134
|
+
- spec/integrations/check_spec.rb
|
135
|
+
- spec/integrations/document_spec.rb
|
136
|
+
- spec/integrations/report_spec.rb
|
137
|
+
- spec/onfido/request_error_spec.rb
|
138
|
+
- spec/onfido/resource_spec.rb
|
139
|
+
- spec/onfido/response_handler_spec.rb
|
140
|
+
- spec/onfido_spec.rb
|
141
|
+
- spec/spec_helper.rb
|
142
|
+
- spec/support/fake_onfido_api.rb
|
143
|
+
- spec/support/fixtures/4xx_response.json
|
144
|
+
- spec/support/fixtures/addresses.json
|
145
|
+
- spec/support/fixtures/applicant.json
|
146
|
+
- spec/support/fixtures/applicants.json
|
147
|
+
- spec/support/fixtures/check.json
|
148
|
+
- spec/support/fixtures/checks.json
|
149
|
+
- spec/support/fixtures/document.json
|
150
|
+
- spec/support/fixtures/report.json
|
151
|
+
- spec/support/fixtures/reports.json
|