persona_api 0.3.1.1 → 0.3.2
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 +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +7 -0
- data/lib/persona_api/client.rb +4 -0
- data/lib/persona_api/objects/selfie_verification.rb +4 -0
- data/lib/persona_api/resources/selfie_verifications.rb +17 -0
- data/lib/persona_api/version.rb +1 -1
- data/lib/persona_api.rb +2 -0
- metadata +9 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15a17e869952e2a54b65ac606df35c2f9cefa53008b4787c54182ada8fa53964
|
|
4
|
+
data.tar.gz: 46a3dbfac1dcf2cac434b633abad0100f1585239ec9beacc21fe21640c0914d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 451e17d631c364b04f405342589d9decfe973737f115e76ce98c1f745e0a3b5333cc5e0446a93a9523aa72e5e8bff604e97f0e4e97cf020688de669939e4dfa8
|
|
7
|
+
data.tar.gz: 29fdc4b5aa91e21b67872fc261b99b6e992d5ac5939ad827e8089adda8ab6495840db423b64c8df103d3e1d77e453f6e7e249eb22a2cdc21bee756f59fa7cf60
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -185,6 +185,13 @@ client.reports.add_tag(rep_id: "id", {})
|
|
|
185
185
|
client.reports.remove_tag(rep_id: "id", {})
|
|
186
186
|
client.reports.set_all_tags(rep_id: "id", {})
|
|
187
187
|
```
|
|
188
|
+
### Selfie Verifications
|
|
189
|
+
|
|
190
|
+
```ruby
|
|
191
|
+
client.selfie_verifications.create({})
|
|
192
|
+
client.selfie_verifications.retrieve(ver_id: "id")
|
|
193
|
+
client.selfie_verifications.submit(ver_id: "id")
|
|
194
|
+
```
|
|
188
195
|
|
|
189
196
|
### TIN Database Verifications
|
|
190
197
|
|
data/lib/persona_api/client.rb
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module PersonaApi
|
|
2
|
+
class SelfieVerificationsResource < Resource
|
|
3
|
+
def create(**attributes)
|
|
4
|
+
# Selfie attributes must include a 'verification-template-id' as well as other fields as laid out
|
|
5
|
+
# in the documentation https://docs.withpersona.com/reference/create-a-selfie-verification
|
|
6
|
+
SelfieVerification.new post_request("verification/selfies", body: attributes).body.dig("data")
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def retrieve(ver_id:)
|
|
10
|
+
SelfieVerification.new get_request("verification/selfies/#{ver_id}").body.dig("data")
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def submit(ver_id:)
|
|
14
|
+
SelfieVerification.new post_request("verification/selfies/#{ver_id}/submit").body.dig("data")
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
data/lib/persona_api/version.rb
CHANGED
data/lib/persona_api.rb
CHANGED
|
@@ -23,6 +23,7 @@ module PersonaApi
|
|
|
23
23
|
autoload :UserAuditLog, "persona_api/objects/user_audit_log"
|
|
24
24
|
autoload :ListItem, "persona_api/objects/list_item"
|
|
25
25
|
autoload :GovernmentIdVerification, "persona_api/objects/government_id_verification"
|
|
26
|
+
autoload :SelfieVerification, "persona_api/objects/selfie_verification"
|
|
26
27
|
autoload :DatabaseVerification, "persona_api/objects/database_verification"
|
|
27
28
|
autoload :PhoneNumberVerification, "persona_api/objects/phone_number_verification"
|
|
28
29
|
autoload :PhoneCarrierVerification, "persona_api/objects/phone_carrier_verification"
|
|
@@ -43,6 +44,7 @@ module PersonaApi
|
|
|
43
44
|
autoload :UserAuditLogsResource, "persona_api/resources/user_audit_logs"
|
|
44
45
|
autoload :ListItemsResource, "persona_api/resources/list_items"
|
|
45
46
|
autoload :GovernmentIdVerificationsResource, "persona_api/resources/government_id_verifications"
|
|
47
|
+
autoload :SelfieVerificationsResource, "persona_api/resources/selfie_verifications"
|
|
46
48
|
autoload :DatabaseVerificationsResource, "persona_api/resources/database_verifications"
|
|
47
49
|
autoload :PhoneNumberVerificationsResource, "persona_api/resources/phone_number_verifications"
|
|
48
50
|
autoload :PhoneCarrierVerificationsResource, "persona_api/resources/phone_carrier_verifications"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: persona_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Griffith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -38,7 +38,10 @@ dependencies:
|
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '1.1'
|
|
41
|
-
description:
|
|
41
|
+
description: Persona provides a powerful, secure platform to help organizations collect,
|
|
42
|
+
verify, store, and analyze the identity of any individual in the world. A frontend,
|
|
43
|
+
conversion-optimized user interface makes it easy to start verifying identities
|
|
44
|
+
in minutes.
|
|
42
45
|
email:
|
|
43
46
|
- mattgriffith0@gmail.com
|
|
44
47
|
executables: []
|
|
@@ -72,6 +75,7 @@ files:
|
|
|
72
75
|
- lib/persona_api/objects/phone_carrier_verification.rb
|
|
73
76
|
- lib/persona_api/objects/phone_number_verification.rb
|
|
74
77
|
- lib/persona_api/objects/report.rb
|
|
78
|
+
- lib/persona_api/objects/selfie_verification.rb
|
|
75
79
|
- lib/persona_api/objects/tin_database_verification.rb
|
|
76
80
|
- lib/persona_api/objects/transaction.rb
|
|
77
81
|
- lib/persona_api/objects/user_audit_log.rb
|
|
@@ -91,6 +95,7 @@ files:
|
|
|
91
95
|
- lib/persona_api/resources/phone_carrier_verifications.rb
|
|
92
96
|
- lib/persona_api/resources/phone_number_verifications.rb
|
|
93
97
|
- lib/persona_api/resources/reports.rb
|
|
98
|
+
- lib/persona_api/resources/selfie_verifications.rb
|
|
94
99
|
- lib/persona_api/resources/tin_database_verifications.rb
|
|
95
100
|
- lib/persona_api/resources/transactions.rb
|
|
96
101
|
- lib/persona_api/resources/user_audit_logs.rb
|
|
@@ -119,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
119
124
|
- !ruby/object:Gem::Version
|
|
120
125
|
version: '0'
|
|
121
126
|
requirements: []
|
|
122
|
-
rubygems_version: 3.
|
|
127
|
+
rubygems_version: 3.4.12
|
|
123
128
|
signing_key:
|
|
124
129
|
specification_version: 4
|
|
125
130
|
summary: An API wrapper for the public Persona API.
|