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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ab154ac98fb078f5dc89e9f33b8b0ccb92c1d7f20315a3ed333fabb90a94b88
4
- data.tar.gz: 1cbf55f1d433638da836e30fed472a342316eac2421123dad7e07b7d58a4e408
3
+ metadata.gz: 15a17e869952e2a54b65ac606df35c2f9cefa53008b4787c54182ada8fa53964
4
+ data.tar.gz: 46a3dbfac1dcf2cac434b633abad0100f1585239ec9beacc21fe21640c0914d0
5
5
  SHA512:
6
- metadata.gz: 54296fc332f7a3150a433f2fba6edc4aa8c429dd44fc388ace3e5b1d9521671c5292ac2c0ebd74a52e2ce0703e7903c42aa41fd9ea0a10ffd53b82359d96025b
7
- data.tar.gz: 88180a75cf60688b524879c048a5ec4b3486ce1a93c7e8762d2df1162fb8b69485ece8206e5ea26157447fc58ac1d715f0ab8ea1f3b70f27b090217430f49654
6
+ metadata.gz: 451e17d631c364b04f405342589d9decfe973737f115e76ce98c1f745e0a3b5333cc5e0446a93a9523aa72e5e8bff604e97f0e4e97cf020688de669939e4dfa8
7
+ data.tar.gz: 29fdc4b5aa91e21b67872fc261b99b6e992d5ac5939ad827e8089adda8ab6495840db423b64c8df103d3e1d77e453f6e7e249eb22a2cdc21bee756f59fa7cf60
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ == [0.3.2] - 2023-06-30
2
+
3
+ * Add Selfie Verification Endpoint
4
+
1
5
  == [0.3.1.1] - 2022-12-06
2
6
 
3
7
  * Bug fixes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- persona_api (0.3.1)
4
+ persona_api (0.3.2)
5
5
  faraday (~> 1.7)
6
6
  faraday_middleware (~> 1.1)
7
7
 
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
 
@@ -68,6 +68,10 @@ module PersonaApi
68
68
  ReportsResource.new(self)
69
69
  end
70
70
 
71
+ def selfie_verifications
72
+ SelfieVerificationsResource.new(self)
73
+ end
74
+
71
75
  def tin_database_verifications
72
76
  TinDatabaseVerificationsResource.new(self)
73
77
  end
@@ -0,0 +1,4 @@
1
+ module PersonaApi
2
+ class SelfieVerification < Object
3
+ end
4
+ end
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PersonaApi
4
- VERSION = "0.3.1.1"
4
+ VERSION = "0.3.2"
5
5
  end
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.1.1
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: 2022-12-06 00:00:00.000000000 Z
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: Write more in here later.
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.3.7
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.