preverus 0.1.1 → 0.1.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/README.md +1 -0
- data/lib/preverus/client.rb +6 -0
- data/preverus.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 348ca7814bfafbb2bfed60ec6bb17d31652c21adf8db47ef0084153ed465fb58
|
|
4
|
+
data.tar.gz: 18950cef617b6b0b41a8827b274c172a835bad37a51eae38ef4d2fdea157ea6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92c873a170a704b2f021a3447ecfcb22cd57f7184c42973eba0f655853bb9ea2594b939416033bbe179c936f450478c21242e16de3a7f5a3658d78239eac1fe3
|
|
7
|
+
data.tar.gz: 342037852564d0db7364bed68201af0b28ad64740206c795cffedeb9542c356b5c0df407312b6c812b4ac3e4221cc043e7a99ab07542c75e8634de485b9aea5d
|
data/README.md
CHANGED
|
@@ -237,6 +237,7 @@ visitor = PREVERUS.visitors.lookup(fingerprint: "fp_hash")
|
|
|
237
237
|
|
|
238
238
|
metadata = PREVERUS.metadata.lookup("email", "person@example.com")
|
|
239
239
|
graph = PREVERUS.metadata.graph("v_abc123")
|
|
240
|
+
user_risk_profile = PREVERUS.lookup_user_risk_profile("acct_42")
|
|
240
241
|
```
|
|
241
242
|
|
|
242
243
|
Use lookups for investigation and context. Use `decisions.evaluate` for final enforcement.
|
data/lib/preverus/client.rb
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require_relative "http_client"
|
|
2
2
|
require_relative "resources"
|
|
3
|
+
require "uri"
|
|
3
4
|
|
|
4
5
|
module Preverus
|
|
5
6
|
class Client
|
|
@@ -19,6 +20,11 @@ module Preverus
|
|
|
19
20
|
@visitors = Visitors.new(http)
|
|
20
21
|
@metadata = Metadata.new(http)
|
|
21
22
|
@webhooks = Webhooks.new
|
|
23
|
+
@http = http
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def lookup_user_risk_profile(external_user_id)
|
|
27
|
+
ApiResult.new(@http.get("/v1/users/#{URI.encode_www_form_component(external_user_id)}/risk-profile", {}))
|
|
22
28
|
end
|
|
23
29
|
end
|
|
24
30
|
end
|
data/preverus.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = "preverus"
|
|
3
|
-
spec.version = "0.1.
|
|
3
|
+
spec.version = "0.1.2"
|
|
4
4
|
spec.authors = ["Preverus"]
|
|
5
5
|
spec.summary = "Ruby client for Preverus fraud decisions, events, lookups, and webhooks."
|
|
6
6
|
spec.description = "Framework-agnostic Ruby client for Preverus backend fraud enforcement."
|