factur-x-builder 0.1.2 → 0.1.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/.rubocop.yml +3 -0
- data/Gemfile.lock +4 -1
- data/README.md +17 -0
- data/lib/factur_x/party.rb +6 -0
- data/lib/factur_x/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: 224858d0b676c38126632f450793b3ea65302d795ee6eba2f5fd34c532d7bc51
|
|
4
|
+
data.tar.gz: 67e574e617b043c7e2e433b95c17193c31dcd98df49d0d454338773a2b461acc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a674455d7d5c036df7469dd489cd4d932912b1f0113a2aaecb48508a4f48abd4efd42174cdc525123f69e48b81193f8e052b8cbf2c72abe196f55f74d7c747d
|
|
7
|
+
data.tar.gz: d283359e423f7e88dcfd0a88cd56721812ed6be147dc9de9ce39f5cc784740115531011a43941c4174673c3b1baf137e47d91e9a88cdb266af24af783139c7e0
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
factur-x-builder (0.1.
|
|
4
|
+
factur-x-builder (0.1.3)
|
|
5
5
|
nokogiri (~> 1.15, < 1.16)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -12,6 +12,8 @@ GEM
|
|
|
12
12
|
language_server-protocol (3.17.0.6)
|
|
13
13
|
lint_roller (1.1.0)
|
|
14
14
|
minitest (5.26.1)
|
|
15
|
+
nokogiri (1.15.7-arm64-darwin)
|
|
16
|
+
racc (~> 1.4)
|
|
15
17
|
nokogiri (1.15.7-x86_64-darwin)
|
|
16
18
|
racc (~> 1.4)
|
|
17
19
|
parallel (1.28.0)
|
|
@@ -43,6 +45,7 @@ GEM
|
|
|
43
45
|
unicode-emoji (4.2.0)
|
|
44
46
|
|
|
45
47
|
PLATFORMS
|
|
48
|
+
arm64-darwin-25
|
|
46
49
|
x86_64-darwin-21
|
|
47
50
|
|
|
48
51
|
DEPENDENCIES
|
data/README.md
CHANGED
|
@@ -133,6 +133,23 @@ anything is generated.
|
|
|
133
133
|
A credit note carries **positive** amounts; the type code conveys the direction. Negative unit
|
|
134
134
|
prices are rejected (`BR-27`, `BR-28`).
|
|
135
135
|
|
|
136
|
+
### Routing address
|
|
137
|
+
|
|
138
|
+
`routing_id` is the electronic address the platform delivers to (BT-34 for the seller, BT-49 for the
|
|
139
|
+
buyer). It defaults to the SIRET, and its scheme identifier — mandatory under BR-62 and BR-63 — is
|
|
140
|
+
filled in as `0225`.
|
|
141
|
+
|
|
142
|
+
That code designates the addressing of the French reform itself, not a particular identifier, so it
|
|
143
|
+
stays `0225` whatever the directory registered: SIREN, SIRET, `SIREN_SIRET`, or
|
|
144
|
+
`SIREN_SIRET_CODE_ROUTAGE` for an address finer than the establishment. The value is opaque to the
|
|
145
|
+
gem — forwarded verbatim, never parsed — and every shape is covered by the conformance suite.
|
|
146
|
+
|
|
147
|
+
```ruby
|
|
148
|
+
FacturX::Party.new(name: "…", siret: "39876543800005",
|
|
149
|
+
routing_id: "398765438_39876543800005_COMPTA")
|
|
150
|
+
# => <ram:URIID schemeID="0225">398765438_39876543800005_COMPTA</ram:URIID>
|
|
151
|
+
```
|
|
152
|
+
|
|
136
153
|
### Payment instructions are optional
|
|
137
154
|
|
|
138
155
|
`payment_means` maps to BG-16 *Payment instructions*, which both schematrons accept as absent. It
|
data/lib/factur_x/party.rb
CHANGED
|
@@ -10,6 +10,12 @@ module FacturX
|
|
|
10
10
|
# `routing_id` the electronic address (scheme 0225) used to route the
|
|
11
11
|
# invoice through the PPF, defaulting to the SIRET.
|
|
12
12
|
#
|
|
13
|
+
# Scheme 0225 designates the addressing of the French reform itself, not a
|
|
14
|
+
# particular identifier, so it holds whatever shape the directory registered:
|
|
15
|
+
# SIREN, SIRET, SIREN_SIRET, or SIREN_SIRET_CODE_ROUTAGE for an address finer
|
|
16
|
+
# than the establishment. The value is opaque here - it is forwarded verbatim,
|
|
17
|
+
# never parsed - so a new directory shape needs no change to this gem.
|
|
18
|
+
#
|
|
13
19
|
# `legal_information` is BT-33, the seller's additional legal information:
|
|
14
20
|
# legal form, share capital, RCS registration, and any other statement the
|
|
15
21
|
# printed invoice must carry. A party holds a single postal address, so this
|
data/lib/factur_x/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: factur-x-builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hotentic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|