# Licences and sources RuleStamp re-implements published validation rules. This file lists every external source, its licence as published, and how this project uses it. A legal review of this position is a blocking step in `ops/GO-LIVE.md`. | Source | Version | Licence as published | Use in this project | Files | |---|---|---|---|---| | CEN/TC 434 EN 16931 validation artefacts, UBL binding (github.com/ConnectingEurope/eInvoicing-EN16931) | `validation-1.3.17` | EUPL-1.2 (repository licence) | Rule logic, identifiers, severities and code lists re-expressed in TypeScript | `src/lib/engine/rules-en16931.ts`, `rules-en16931-vat.ts`, `rules-ubl-syntax.ts`, `codelists.ts`, `codelists-units.ts`, `ubl-cr-table.ts` (each carries `SPDX-License-Identifier: EUPL-1.2`) | | The same CEN artefacts as bundled by OpenPeppol (`rules/sch/CEN-EN16931-UBL.sch` in github.com/OpenPEPPOL/peppol-bis-invoice-3) | 1.3.16 inside Peppol 3.0.22 | The file header states EUPL-1.2 | Release differences (renamed families, older code lists, BR-CO-09, UBL-SR-25) | same files, marked "1.3.16" | | OpenPeppol BIS Billing 3.0 rules (`rules/sch/PEPPOL-EN16931-UBL.sch`) | 3.0.22 | No licence file in the repository at this tag; the Schematron header says CEN business terms are reproduced with permission from CEN | Rule identifiers, severities and tests re-implemented in this project's own code; rule texts are this project's own short wording, and rule pages link to the official text | `src/lib/engine/rules-peppol.ts` | | OASIS UBL 2.1 schemas (docs.oasis-open.org/ubl/os-UBL-2.1/) | 2.1 OS | OASIS IPR policy (schemas may be copied and implemented) | Element order and cardinality of 42 complex types | `src/lib/engine/ubl-xsd-table.ts`, `structure.ts` | | UN/ECE Recommendations 20 and 21 (unit codes), ISO 4217, ISO 3166-1, ISO 6523 ICD, UNTDID code lists | as included in the CEN artefacts | as distributed with the CEN artefacts | Code-list membership only | `codelists.ts`, `codelists-units.ts` | ## Publication of the EUPL-derived modules EUPL-1.2 treats making software available over a network as distribution. The CEN-derived modules listed above are therefore published unchanged at `/source/` on every deployment (copied by `scripts/postbuild.mjs`), under EUPL-1.2, with this file. The rest of the application (HTTP API, billing, user interface) does not contain or adapt CEN material and is not a derivative work of it; it only calls the engine through `validateInvoiceXml`. ## Peppol rule module OpenPeppol publishes no licence for the 3.0.22 rule files. `rules-peppol.ts` contains no copied Schematron text: it implements, in TypeScript, the behaviour identified by each published rule identifier, which is the information an implementer needs to interoperate. Rule pages show the identifier, severity, this project's own one-line description and a link to the official rule documentation instead of reproducing the official message text. If the legal review concludes that this is not sufficient, the Peppol rule set can be switched off by removing `peppol-bis-3` from the rule-set choices without affecting the EN 16931 rule set. ## Third-party packages Runtime dependencies: `next`, `react`, `react-dom` (MIT), `zod` (MIT), `@noble/hashes` (MIT). Development-only: SaxonJS 2.7 (Saxonica licence; used only by `scripts/conformance-diff.mts`, never deployed), plus the MIT/Apache-2.0 tooling listed in `package.json`.