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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 208399eb0d04aa5df78529d97f6b49699c8e3d9a70f996fe0efca2730a689f88
4
- data.tar.gz: a02c042c59671d3880901c194955ecc58534bac6e096a8c8b0b77b81d15bfa62
3
+ metadata.gz: aec6c8e7039f5afbc6471af5f58687a89598fe01365340776250175d2414c1de
4
+ data.tar.gz: ac8d56ca45264368bd14a8129cb74ee0014531cfd64e31e935ae6061d6465a25
5
5
  SHA512:
6
- metadata.gz: be7ce1738c2e6ec98c681736b1cfe55da0fdb5d1605f7e8c9fcf424c9e9efb4193cfa5d6f3c6b9bf071b9489c78648b2d359db9a119ea365ad00847469ed324e
7
- data.tar.gz: 383e68dda93ab90208f4d6ed4e85861128e8d3cff986e6165bd0fc18d9a16f82cd122e91de4b2ac1fd12ada6d3e0ae341d56775f9483c6751c42701b84fb72fa
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.23] - 2026-01-15
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.23...HEAD
28
- [3.0.23]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.23
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factpulse (3.0.23)
4
+ factpulse (3.0.24)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -462,19 +462,48 @@ module FactPulse
462
462
 
463
463
  # ==================== AFNOR Directory ====================
464
464
 
465
- # Searches for a company by SIRET in the AFNOR directory.
466
- def search_siret_afnor(siret)
467
- make_afnor_request('GET', "/directory/siret/#{siret}")
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
- # Searches for a company by SIREN in the AFNOR directory.
471
- def search_siren_afnor(siren)
472
- make_afnor_request('GET', "/directory/siren/#{siren}")
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
- # Lists available routing codes for a SIREN.
476
- def list_routing_codes_afnor(siren)
477
- make_afnor_request('GET', "/directory/siren/#{siren}/routing-codes")
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
  # =========================================================================
@@ -11,5 +11,5 @@ Generator version: 7.19.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module FactPulse
14
- VERSION = '3.0.23'
14
+ VERSION = '3.0.24'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factpulse
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.23
4
+ version: 3.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator