factpulse 3.0.24 → 3.0.26

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: aec6c8e7039f5afbc6471af5f58687a89598fe01365340776250175d2414c1de
4
- data.tar.gz: ac8d56ca45264368bd14a8129cb74ee0014531cfd64e31e935ae6061d6465a25
3
+ metadata.gz: c60cabc56a3ce46d0538bb280fbfa8730d6eaf93ad9c8b52d8dbc1e01cc0a4d3
4
+ data.tar.gz: c55ccb52a7b1f488075b68e427e198c9cc4773b2e7770a45faee2903aaa9f4bc
5
5
  SHA512:
6
- metadata.gz: c73a56a1e16899b261016363b23faaccac4f2bbbcadf985777bd81c632142f6611f38eede8f191f7f25631466ed03d722112e175471e238c864536d796e70904
7
- data.tar.gz: b7e23db9ac18e69945ece83abbc4a6cbb14b0e87c9c54cba6386c93e9a23dbca7287e7441876cbc0c37defb99c4d63b75047f3e6d03340396a2d661494eacb18
6
+ metadata.gz: c5218b7d860655677afc61890fb45aa7671a3c6805ac9ad4ce87026e93770836c112bf03560a270d0106aa92b0384ed5462a2bad227a3dbea06fe56c831e5452
7
+ data.tar.gz: bac307b11b7aa5e65a8077713358ae89f8e5893234fbafd5878f1d7223e5cd698a2a78bb9c4bda4325fdda27d3bcb06e7cdc838e459c99fefccc70882139c02c
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.24] - 2026-01-15
10
+ ## [3.0.26] - 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.24...HEAD
28
- [3.0.24]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.24
27
+ [Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.26...HEAD
28
+ [3.0.26]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.26
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factpulse (3.0.24)
4
+ factpulse (3.0.26)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -38,37 +38,30 @@ client = FactPulseClient.new(
38
38
  'your_password'
39
39
  )
40
40
 
41
- # Build the invoice with helpers
41
+ # Build the invoice using simplified format (auto-calculates totals)
42
42
  invoice_data = {
43
- invoice_number: 'INV-2025-001',
44
- issue_date: '2025-01-15',
45
- due_date: '2025-02-15',
46
- currency_code: 'EUR',
47
- supplier: supplier(
48
- 'My Company SAS',
49
- '12345678901234',
50
- '123 Example Street',
51
- '75001',
52
- 'Paris'
53
- ),
54
- recipient: recipient(
55
- 'Client SARL',
56
- '98765432109876',
57
- '456 Test Avenue',
58
- '69001',
59
- 'Lyon'
60
- ),
61
- totals: invoice_totals(1000.00, 200.00, 1200.00, 1200.00),
62
- lines: [
63
- invoice_line(1, 'Consulting services', 10, 100.00, 1000.00)
64
- ],
65
- vat_lines: [
66
- vat_line(1000.00, 200.00)
43
+ 'number' => 'INV-2025-001',
44
+ 'supplier' => {
45
+ 'name' => 'My Company SAS',
46
+ 'siret' => '12345678901234',
47
+ 'iban' => 'FR7630001007941234567890185'
48
+ },
49
+ 'recipient' => {
50
+ 'name' => 'Client SARL',
51
+ 'siret' => '98765432109876'
52
+ },
53
+ 'lines' => [
54
+ {
55
+ 'description' => 'Consulting services',
56
+ 'quantity' => 10,
57
+ 'unitPrice' => 100.0,
58
+ 'vatRate' => 20
59
+ }
67
60
  ]
68
61
  }
69
62
 
70
63
  # Generate the Factur-X PDF
71
- pdf_bytes = client.generate_facturx(invoice_data, 'source_invoice.pdf', 'EN16931')
64
+ pdf_bytes = client.generate_facturx(invoice_data, 'source_invoice.pdf')
72
65
 
73
66
  File.binwrite('invoice_facturx.pdf', pdf_bytes)
74
67
  ```