parseapi 1.10.2 → 1.10.3
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 +2 -11
- data/lib/parseapi/client.rb +0 -14
- data/lib/parseapi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5d77aa0696ab480d22cfd25418d327958794636f2ccbfa0e3ef49caf1b4adfc
|
|
4
|
+
data.tar.gz: 90937689e56a2b1657c255b206817058650d1462823b8b3d0a8825e0f791ef98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca73d21823c8bc5e0a9c9c1b493e9960527dff057a7e1e5a6e9fa1c46398c33d6cfa30075dcd5d4fbf2aa2a69be84989f699d782e160600e2e8cd0d0e6726f2f
|
|
7
|
+
data.tar.gz: ff49b8c7f444731da4d4160a2882fd1c7c791b77fb52c233b0f6d776aa35c9afe6cebb04acf72bc0e807c2693fd737de568134df772d4d86fc57c5f23ad9748d
|
data/README.md
CHANGED
|
@@ -81,7 +81,6 @@ One method per endpoint, named after the route.
|
|
|
81
81
|
parse.ip('8.8.8.8')
|
|
82
82
|
parse.ip_self
|
|
83
83
|
parse.email('hello@gmail.com')
|
|
84
|
-
parse.bank('DE89370400440532013000')
|
|
85
84
|
parse.card('424242')
|
|
86
85
|
parse.phone('+14155552671')
|
|
87
86
|
parse.carrier('+14155552671')
|
|
@@ -253,16 +252,8 @@ Address search uses context from the form: prefer postal, or city and state. An
|
|
|
253
252
|
|
|
254
253
|
HLR reports status at the last check. `live` means assigned and `connected` means reachable at that check. Cached results may be returned. Null means unconfirmed. Deep diagnostics stay within the same metered lookup.
|
|
255
254
|
|
|
256
|
-
Bank returns core `checks` for input, country, length, structure, checksum and national rules, plus an `issues` list. States are `passed`, `failed`, `not_checked` or `not_supported`. Unsupported national checking is not a failure. `valid` covers the implemented format and checksum rules, not account existence, ownership or payment reachability. Directory names and BICs may be null independently. Older responses may omit `checks` and `issues`, and future states and issue codes remain strings. Pass the original input unchanged so the API can report invalid characters. Deep `account` remains the BBAN remainder.
|
|
257
|
-
|
|
258
255
|
Bank inputs use `POST /bank` JSON bodies, keeping IBAN and account values out of request URLs. Pass original strings; the server owns normalization and validation. Avoid logging request bodies. IBAN deep can include `directory` with the immutable `edition`, resolved `country` and actual `match` grain (`bank`, `branch`, `prefix` or `none`); it is absent if no directory lookup ran. A match does not prove complete country coverage or payment reachability.
|
|
259
256
|
|
|
260
|
-
Use country requirements to build supported input fields. US ACH has an explicit helper with no deep option. It checks the routing format/ABA checksum and account-field syntax; `account_checksum` is `not_supported`. It preserves account characters and leading zeros. A nullable bank name is routing-directory identity, not account existence, ownership or ACH eligibility. The examples below are synthetic test inputs, not payment instructions.
|
|
261
|
-
|
|
262
|
-
```ruby
|
|
263
|
-
parse.bank_requirements('US', format: 'us_ach')
|
|
264
|
-
parse.bank_us_ach(routing: '011000015', account: '0001234567')
|
|
265
|
-
```
|
|
266
257
|
|
|
267
258
|
## Deep
|
|
268
259
|
|
|
@@ -273,7 +264,7 @@ Choose enrichment for the question you need answered.
|
|
|
273
264
|
| IP | Richer IP fields included with a paid plan. No separate check meter. |
|
|
274
265
|
| Domain | Registration dates, registrar, status and DNSSEC, included with a paid plan. Use `dns` for DNS records and `mx` for mail routing. |
|
|
275
266
|
| Email | A metered mailbox check with deliverability, catch-all, status, reason and address hints, using included email checks or enabled on-demand usage. |
|
|
276
|
-
| Phone, Time, Date, Currency, Language, Emoji,
|
|
267
|
+
| Phone, Time, Date, Currency, Language, Emoji, Point | Optional detail in the same pooled request on every plan. |
|
|
277
268
|
| Country, State, District, City, Postal | The place profile on paid plans, including demographic and tax facts where held. |
|
|
278
269
|
| Name, Industry | Name evidence or the industry definition profile on paid plans. |
|
|
279
270
|
| Company | The complete product detail bag on paid plans. |
|
|
@@ -326,7 +317,7 @@ Reuse one client for successive lookups. Call `parse.close` to release its conne
|
|
|
326
317
|
|
|
327
318
|
Network failures raise native Ruby exceptions. An invalid JSON response raises `JSON::ParserError`.
|
|
328
319
|
|
|
329
|
-
For testing or instrumentation, pass a callable as `transport:`. For GET it receives the URL and request-header hash. For
|
|
320
|
+
For testing or instrumentation, pass a callable as `transport:`. For GET it receives the URL and request-header hash. For JSON POST it also receives a third `"POST"` argument and fourth serialized JSON body argument. Accept optional method/body parameters when supplying a custom transport. It returns `[status, lowercase_response_headers, body]`. Custom transports should use the supplied headers and keep redirect following disabled.
|
|
330
321
|
|
|
331
322
|
Requires Ruby 3.0 or later. Standard library only, zero dependencies.
|
|
332
323
|
|
data/lib/parseapi/client.rb
CHANGED
|
@@ -216,18 +216,12 @@ module ParseAPI
|
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
|
|
219
|
-
def iban(iban, country: nil, deep: false)
|
|
220
|
-
get("/iban/#{seg(iban)}", country: country, deep: deep)
|
|
221
|
-
end
|
|
222
219
|
|
|
223
220
|
def bin(bin, deep: false)
|
|
224
221
|
get("/bin/#{seg(bin)}", deep: deep)
|
|
225
222
|
end
|
|
226
223
|
|
|
227
224
|
|
|
228
|
-
def bank(iban, country: nil, deep: false)
|
|
229
|
-
get("/bank", {}, {}, { iban: iban, country: country, deep: deep }.reject { |_key, value| value.nil? })
|
|
230
|
-
end
|
|
231
225
|
|
|
232
226
|
# Look up a 2-11 digit card prefix, preserving leading zeros.
|
|
233
227
|
def card(bin, deep: false)
|
|
@@ -236,15 +230,7 @@ module ParseAPI
|
|
|
236
230
|
end
|
|
237
231
|
|
|
238
232
|
|
|
239
|
-
# US routing/account syntax only; not account or ACH eligibility verification.
|
|
240
|
-
def bank_us_ach(routing:, account:)
|
|
241
|
-
get('/bank', {}, {}, { format: 'us_ach', country: 'US', routing: routing, account: account })
|
|
242
|
-
end
|
|
243
233
|
|
|
244
|
-
# Describe accepted fields and check scope, not directory completeness.
|
|
245
|
-
def bank_requirements(country, format: nil)
|
|
246
|
-
get('/bank/requirements', country: country, format: format)
|
|
247
|
-
end
|
|
248
234
|
|
|
249
235
|
|
|
250
236
|
# Parse a phone number and its formats. Pass country for national numbers when needed. Deep
|
data/lib/parseapi/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: parseapi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.10.
|
|
4
|
+
version: 1.10.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ParseAPI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|