@beliq/sdk 0.3.1 → 0.4.1
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.
- package/CHANGELOG.md +68 -0
- package/README.md +24 -3
- package/dist/index.d.cts +156 -46
- package/dist/index.d.ts +156 -46
- package/examples/invoice.json +64 -0
- package/package.json +6 -3
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"number": "INV-2026-001",
|
|
3
|
+
"issueDate": "2026-01-15",
|
|
4
|
+
"currencyCode": "EUR",
|
|
5
|
+
"buyerReference": "04011000-12345-06",
|
|
6
|
+
"seller": {
|
|
7
|
+
"name": "Seller GmbH",
|
|
8
|
+
"vatId": "DE123456789",
|
|
9
|
+
"contactName": "Anna Muster",
|
|
10
|
+
"email": "billing@seller.example",
|
|
11
|
+
"phone": "+49 30 1234567",
|
|
12
|
+
"address": {
|
|
13
|
+
"street": "Hauptstr. 1",
|
|
14
|
+
"city": "Berlin",
|
|
15
|
+
"postalCode": "10115",
|
|
16
|
+
"countryCode": "DE"
|
|
17
|
+
},
|
|
18
|
+
"peppol": {
|
|
19
|
+
"schemeId": "9930",
|
|
20
|
+
"id": "DE123456789"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"buyer": {
|
|
24
|
+
"name": "Buyer GmbH",
|
|
25
|
+
"email": "ap@buyer.example",
|
|
26
|
+
"address": {
|
|
27
|
+
"street": "Marktweg 2",
|
|
28
|
+
"city": "Munich",
|
|
29
|
+
"postalCode": "80331",
|
|
30
|
+
"countryCode": "DE"
|
|
31
|
+
},
|
|
32
|
+
"vatId": "DE987654321",
|
|
33
|
+
"peppol": {
|
|
34
|
+
"schemeId": "9930",
|
|
35
|
+
"id": "DE987654321"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"lines": [
|
|
39
|
+
{
|
|
40
|
+
"description": "Consulting",
|
|
41
|
+
"quantity": 10,
|
|
42
|
+
"unitCode": "HUR",
|
|
43
|
+
"unitPrice": 100,
|
|
44
|
+
"lineTotal": 1000,
|
|
45
|
+
"vatRate": 19,
|
|
46
|
+
"vatCategoryCode": "S"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"taxSummary": [
|
|
50
|
+
{
|
|
51
|
+
"vatCategoryCode": "S",
|
|
52
|
+
"vatRate": 19,
|
|
53
|
+
"taxableAmount": 1000,
|
|
54
|
+
"taxAmount": 190
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"paymentMeans": {
|
|
58
|
+
"typeCode": "58",
|
|
59
|
+
"iban": "DE89370400440532013000"
|
|
60
|
+
},
|
|
61
|
+
"totalNetAmount": 1000,
|
|
62
|
+
"totalTaxAmount": 190,
|
|
63
|
+
"totalGrossAmount": 1190
|
|
64
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beliq/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Official beliq SDK: generate, validate, parse, and convert EU-compliant e-invoices (XRechnung, ZUGFeRD, Factur-X, Peppol BIS) against authority-pinned, drift-checked rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"beliq",
|
|
@@ -54,7 +54,9 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"files": [
|
|
57
|
-
"dist"
|
|
57
|
+
"dist",
|
|
58
|
+
"examples",
|
|
59
|
+
"CHANGELOG.md"
|
|
58
60
|
],
|
|
59
61
|
"publishConfig": {
|
|
60
62
|
"access": "public",
|
|
@@ -69,6 +71,7 @@
|
|
|
69
71
|
"typecheck": "tsc --noEmit",
|
|
70
72
|
"lint": "eslint src test",
|
|
71
73
|
"lint:fix": "eslint src test --fix",
|
|
74
|
+
"scrub:check": "bash scripts/scrub-check.sh",
|
|
72
75
|
"sync:spec": "node scripts/sync-spec.mjs",
|
|
73
76
|
"gen:types": "node scripts/gen-types.mjs",
|
|
74
77
|
"openapi:check": "node scripts/gen-types.mjs --check",
|
|
@@ -81,7 +84,7 @@
|
|
|
81
84
|
"dependencies": {},
|
|
82
85
|
"overrides": {
|
|
83
86
|
"esbuild": "^0.28.1",
|
|
84
|
-
"js-yaml": "^4.3.
|
|
87
|
+
"js-yaml": "^4.3.2"
|
|
85
88
|
},
|
|
86
89
|
"devDependencies": {
|
|
87
90
|
"@eslint/js": "^10.0.0",
|