apiverve_sanctionscreening 1.2.2 → 1.2.4

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: 87af8b9f1c911b2625884bfd1a94644662079b3250e5bf68d2058b830347d612
4
- data.tar.gz: 85ad822a3d777b688491e46281673670e62e0421e0d239f5ec27578866626bcc
3
+ metadata.gz: a373b5b25d65afe92e3a39971dfe7b0feea49e164c59245d7ea684316eb30035
4
+ data.tar.gz: 22fd558481e1ca9542f925b5fe9b256077be87352e03240ef5b673e303b6633b
5
5
  SHA512:
6
- metadata.gz: 1eba2f2dcaeab925770ca1c18845e60640a6a3e7bfd40479b96b8b54266a071cf98c32530c59324feb3a136ddf414983522ab73a293ef9fbb742901f74a141e6
7
- data.tar.gz: 336e7def7a525fdd4aac7ed521acffc9cf3914ebbd91e70020fd21e3674910e76c92f8772a60eadcdc9821cd7b9ec3f7c48f191f63f96b367e84b849933336e3
6
+ metadata.gz: 23828356ae81989a47fd890254e156f520557bacebee30bfeae09ac82acd7eb9db2e3c2c9840059f91619cd87bdc7c240f6565738fb2e216e937cfc976f9e03b
7
+ data.tar.gz: 1da610742377fa697b1c7fb414d6bf93dc974c79d2a84416cceac9f8211cbaeb439ecb04aa2f67a627c3b97e35e024c6157c3abb1242d7ec818da928452c9f5a
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Sanctions Screening API - Ruby Gem
2
2
 
3
- Sanctions Screening checks a person or company name against the US Treasury OFAC Specially Designated Nationals (SDN) list. It returns scored matches with aliases, dates of birth, addresses and sanctions programs so you can decide whether to block or review.
3
+ Sanctions Screening is an OFAC API that checks a person, company or vessel name against the US Treasury OFAC SDN and Consolidated lists, the UN Security Council Consolidated List, the EU consolidated financial sanctions list and the UK Sanctions List. It returns scored JSON matches with the list each hit came from, aliases, dates of birth, addresses and sanctions programs so you can decide whether to block or review.
4
4
 
5
5
  ## Installation
6
6
 
@@ -39,7 +39,8 @@ response = client.execute({
39
39
  name: "Banco Nacional de Cuba",
40
40
  threshold: 0.85,
41
41
  limit: 10,
42
- type: "individual"
42
+ type: "individual",
43
+ lists: "ofac_sdn,un,eu,uk"
43
44
  })
44
45
 
45
46
  # Print the response
@@ -51,7 +52,7 @@ puts response
51
52
 
52
53
  ```ruby
53
54
  begin
54
- response = client.execute({ name: "Banco Nacional de Cuba", threshold: 0.85, limit: 10, type: "individual" })
55
+ response = client.execute({ name: "Banco Nacional de Cuba", threshold: 0.85, limit: 10, type: "individual", lists: "ofac_sdn,un,eu,uk" })
55
56
  puts response["data"]
56
57
  rescue APIVerve::Sanctionscreening::ValidationError => e
57
58
  puts "Validation error: #{e.errors.join(', ')}"
@@ -139,16 +140,64 @@ client = APIVerve::Sanctionscreening::Client.new(
139
140
  }
140
141
  ],
141
142
  "ids": [],
142
- "remarks": null
143
+ "remarks": null,
144
+ "source": "ofac_sdn",
145
+ "sourceId": "306",
146
+ "listedOn": null
143
147
  }
144
148
  ],
149
+ "matchedLists": [
150
+ "ofac_sdn"
151
+ ],
145
152
  "list": {
146
153
  "source": "OFAC SDN",
147
154
  "authority": "US Department of the Treasury, Office of Foreign Assets Control",
148
- "publishDate": "07/15/2026",
149
- "recordCount": 19217,
150
- "lastUpdated": "2026-07-16T05:00:12.431Z"
151
- }
155
+ "publishDate": "10/21/2026",
156
+ "recordCount": 19471,
157
+ "lastUpdated": "2026-10-22T10:00:41.118Z"
158
+ },
159
+ "lists": [
160
+ {
161
+ "code": "ofac_sdn",
162
+ "source": "OFAC SDN",
163
+ "authority": "US Department of the Treasury, Office of Foreign Assets Control",
164
+ "publishDate": "10/21/2026",
165
+ "recordCount": 19471,
166
+ "lastUpdated": "2026-10-22T10:00:41.118Z"
167
+ },
168
+ {
169
+ "code": "ofac_cons",
170
+ "source": "OFAC Consolidated (non-SDN)",
171
+ "authority": "US Department of the Treasury, Office of Foreign Assets Control",
172
+ "publishDate": "10/19/2026",
173
+ "recordCount": 486,
174
+ "lastUpdated": "2026-10-22T10:01:02.540Z"
175
+ },
176
+ {
177
+ "code": "un",
178
+ "source": "UN Security Council Consolidated List",
179
+ "authority": "United Nations Security Council",
180
+ "publishDate": "2026-10-21",
181
+ "recordCount": 1010,
182
+ "lastUpdated": "2026-10-22T10:01:09.876Z"
183
+ },
184
+ {
185
+ "code": "eu",
186
+ "source": "EU Consolidated Financial Sanctions List",
187
+ "authority": "European Union (European Commission, Financial Sanctions Files)",
188
+ "publishDate": "2026-10-15",
189
+ "recordCount": 6234,
190
+ "lastUpdated": "2026-10-22T10:01:31.204Z"
191
+ },
192
+ {
193
+ "code": "uk",
194
+ "source": "UK Sanctions List",
195
+ "authority": "UK Foreign, Commonwealth & Development Office",
196
+ "publishDate": "2026-10-16",
197
+ "recordCount": 6408,
198
+ "lastUpdated": "2026-10-22T10:01:52.663Z"
199
+ }
200
+ ]
152
201
  }
153
202
  }
154
203
  ```
@@ -10,7 +10,7 @@ module APIVerve
10
10
  #
11
11
  # @example Basic usage
12
12
  # client = APIVerve::Sanctionscreening::Client.new(api_key: "your_api_key")
13
- # response = client.execute({ name: "Banco Nacional de Cuba", threshold: 0.85, limit: 10, type: "individual" })
13
+ # response = client.execute({ name: "Banco Nacional de Cuba", threshold: 0.85, limit: 10, type: "individual", lists: "ofac_sdn,un,eu,uk" })
14
14
  # puts response
15
15
  #
16
16
  # @see https://apiverve.com/marketplace/sanctionscreening?utm_source=ruby&utm_medium=referral&utm_content=readme
@@ -19,7 +19,7 @@ module APIVerve
19
19
  DEFAULT_TIMEOUT = 30
20
20
 
21
21
  # Validation rules for parameters
22
- VALIDATION_RULES = { 'name' => { type: 'string', required: true }, 'threshold' => { type: 'number', required: false }, 'limit' => { type: 'number', required: false }, 'type' => { type: 'string', required: false } }
22
+ VALIDATION_RULES = { 'name' => { type: 'string', required: true }, 'threshold' => { type: 'number', required: false }, 'limit' => { type: 'number', required: false }, 'type' => { type: 'string', required: false }, 'lists' => { type: 'string', required: false } }
23
23
 
24
24
  # Format validation patterns
25
25
  FORMAT_PATTERNS = {
@@ -4,6 +4,6 @@ require_relative "apiverve_sanctionscreening/client"
4
4
 
5
5
  module APIVerve
6
6
  module Sanctionscreening
7
- VERSION = "1.2.2"
7
+ VERSION = "1.2.4"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiverve_sanctionscreening
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIVerve
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-10-21 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -58,8 +57,10 @@ dependencies:
58
57
  - - "~>"
59
58
  - !ruby/object:Gem::Version
60
59
  version: '2.0'
61
- description: Sanctions Screening checks a person or company name against the US Treasury
62
- OFAC Specially Designated Nationals (SDN) list. It returns scored matches with aliases,
60
+ description: Sanctions Screening is an OFAC API that checks a person, company or vessel
61
+ name against the US Treasury OFAC SDN and Consolidated lists, the UN Security Council
62
+ Consolidated List, the EU consolidated financial sanctions list and the UK Sanctions
63
+ List. It returns scored JSON matches with the list each hit came from, aliases,
63
64
  dates of birth, addresses and sanctions programs so you can decide whether to block
64
65
  or review.
65
66
  email:
@@ -80,7 +81,6 @@ metadata:
80
81
  source_code_uri: https://github.com/apiverve/sanctionscreening-API/tree/main/ruby
81
82
  changelog_uri: https://apiverve.com/changelog
82
83
  documentation_uri: https://docs.apiverve.com/ref/sanctionscreening
83
- post_install_message:
84
84
  rdoc_options: []
85
85
  require_paths:
86
86
  - lib
@@ -95,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubygems_version: 3.0.3.1
99
- signing_key:
98
+ rubygems_version: 4.0.23
100
99
  specification_version: 4
101
100
  summary: Sanctions Screening API - Ruby Client
102
101
  test_files: []