factpulse 3.0.23 → 3.0.24
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 +3 -3
- data/Gemfile.lock +1 -1
- data/lib/factpulse/helpers/client.rb +38 -9
- data/lib/factpulse/version.rb +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: aec6c8e7039f5afbc6471af5f58687a89598fe01365340776250175d2414c1de
|
|
4
|
+
data.tar.gz: ac8d56ca45264368bd14a8129cb74ee0014531cfd64e31e935ae6061d6465a25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c73a56a1e16899b261016363b23faaccac4f2bbbcadf985777bd81c632142f6611f38eede8f191f7f25631466ed03d722112e175471e238c864536d796e70904
|
|
7
|
+
data.tar.gz: b7e23db9ac18e69945ece83abbc4a6cbb14b0e87c9c54cba6386c93e9a23dbca7287e7441876cbc0c37defb99c4d63b75047f3e6d03340396a2d661494eacb18
|
data/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [3.0.
|
|
10
|
+
## [3.0.24] - 2026-01-15
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
- Version initiale du SDK ruby
|
|
@@ -24,5 +24,5 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
24
24
|
- Guide d'authentification JWT
|
|
25
25
|
- Configuration avancée (timeout, proxy, debug)
|
|
26
26
|
|
|
27
|
-
[Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.
|
|
28
|
-
[3.0.
|
|
27
|
+
[Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.24...HEAD
|
|
28
|
+
[3.0.24]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.24
|
data/Gemfile.lock
CHANGED
|
@@ -462,19 +462,48 @@ module FactPulse
|
|
|
462
462
|
|
|
463
463
|
# ==================== AFNOR Directory ====================
|
|
464
464
|
|
|
465
|
-
#
|
|
466
|
-
|
|
467
|
-
|
|
465
|
+
# Gets a company (legal unit) by SIRET in the AFNOR directory.
|
|
466
|
+
# @param siret [String] 14-digit SIRET number
|
|
467
|
+
# @return [Hash] Company information
|
|
468
|
+
def get_siret_afnor(siret)
|
|
469
|
+
make_afnor_request('GET', "/directory/v1/siret/code-insee:#{siret}")
|
|
468
470
|
end
|
|
469
471
|
|
|
470
|
-
#
|
|
471
|
-
|
|
472
|
-
|
|
472
|
+
# Gets a company (legal unit) by SIREN in the AFNOR directory.
|
|
473
|
+
# @param siren [String] 9-digit SIREN number
|
|
474
|
+
# @return [Hash] Company information
|
|
475
|
+
def get_siren_afnor(siren)
|
|
476
|
+
make_afnor_request('GET', "/directory/v1/siren/code-insee:#{siren}")
|
|
473
477
|
end
|
|
474
478
|
|
|
475
|
-
#
|
|
476
|
-
|
|
477
|
-
|
|
479
|
+
# Searches for SIRENs (legal units) in the AFNOR directory.
|
|
480
|
+
# @param criteria [Hash] Search criteria (filters, sorting, fields, limit)
|
|
481
|
+
# @return [Hash] Search results
|
|
482
|
+
def search_siren_afnor(**criteria)
|
|
483
|
+
search_body = {
|
|
484
|
+
'limit' => criteria[:limit] || 25,
|
|
485
|
+
'filters' => criteria[:filters] || {}
|
|
486
|
+
}
|
|
487
|
+
make_afnor_request('POST', '/directory/v1/siren/search', json_data: search_body)
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
# Searches for routing codes in the AFNOR directory.
|
|
491
|
+
# @param criteria [Hash] Search criteria (filters, sorting, fields, limit)
|
|
492
|
+
# @return [Hash] Search results with routing codes
|
|
493
|
+
def search_routing_codes_afnor(**criteria)
|
|
494
|
+
search_body = {
|
|
495
|
+
'limit' => criteria[:limit] || 25,
|
|
496
|
+
'filters' => criteria[:filters] || {}
|
|
497
|
+
}
|
|
498
|
+
make_afnor_request('POST', '/directory/v1/routing-code/search', json_data: search_body)
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
# Gets a routing code by SIRET and routing identifier.
|
|
502
|
+
# @param siret [String] 14-digit SIRET number
|
|
503
|
+
# @param routing_identifier [String] Routing code identifier
|
|
504
|
+
# @return [Hash] Routing code information
|
|
505
|
+
def get_routing_code_afnor(siret, routing_identifier)
|
|
506
|
+
make_afnor_request('GET', "/directory/v1/routing-code/siret:#{siret}/code:#{routing_identifier}")
|
|
478
507
|
end
|
|
479
508
|
|
|
480
509
|
# =========================================================================
|
data/lib/factpulse/version.rb
CHANGED