@kreiseck/kasseneck-api 0.19.0 → 0.21.0
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 +25 -0
- package/README.md +17 -4
- package/dist/cjs/rechnung/index.d.ts +1 -1
- package/dist/cjs/rechnung/index.js +3 -1
- package/dist/cjs/rechnung/texte.d.ts +20 -4
- package/dist/cjs/rechnung/texte.js +48 -8
- package/dist/cjs/rechnung/typen.d.ts +27 -2
- package/dist/cjs/rechnung/vertrag.d.ts +85 -7
- package/dist/cjs/rechnung/vertrag.js +90 -8
- package/dist/esm/rechnung/index.d.ts +1 -1
- package/dist/esm/rechnung/index.js +1 -1
- package/dist/esm/rechnung/texte.d.ts +20 -4
- package/dist/esm/rechnung/texte.js +48 -8
- package/dist/esm/rechnung/typen.d.ts +27 -2
- package/dist/esm/rechnung/vertrag.d.ts +85 -7
- package/dist/esm/rechnung/vertrag.js +89 -7
- package/fixtures/hobex-hps-codes.json +1 -1
- package/fixtures/kasse-texte.json +1 -1
- package/fixtures/oberflaeche.json +19 -4
- package/fixtures/rechnung-api-beispiele/zahlung-fehler-vor-ort.json +15 -0
- package/fixtures/rechnung-api.schema.json +45 -4
- package/fixtures/rechnung-texte.json +41 -9
- package/package.json +1 -1
|
@@ -40,11 +40,26 @@ declare const DE: {
|
|
|
40
40
|
readonly 'pdf.summe.gesamt.rechnung': "Gesamtbetrag";
|
|
41
41
|
readonly 'pdf.summe.gesamt.gutschrift': "Gutschriftsbetrag";
|
|
42
42
|
readonly 'steuer.kleinunternehmer': "Gemäß § 6 Abs. 1 Z 27 UStG wird keine Umsatzsteuer verrechnet (Kleinunternehmer).";
|
|
43
|
-
readonly 'steuer.igLieferung': "Steuerfreie innergemeinschaftliche Lieferung
|
|
43
|
+
readonly 'steuer.igLieferung.titel': "Steuerfreie innergemeinschaftliche Lieferung. ";
|
|
44
|
+
readonly 'steuer.igLieferung.text': "Gemäß Art. 6 Abs. 1 UStG (Art. 138 MwSt-RL 2006/112/EG). Die Erwerbsbesteuerung erfolgt durch den Abnehmer im Bestimmungsland.";
|
|
44
45
|
readonly 'steuer.ausfuhr': "Steuerfreie Ausfuhrlieferung (§ 6 Abs. 1 Z 1 UStG).";
|
|
45
|
-
readonly 'steuer.reverseCharge.titel': "
|
|
46
|
-
readonly 'steuer.reverseCharge.text': "Übergang der
|
|
47
|
-
readonly 'steuer.
|
|
46
|
+
readonly 'steuer.reverseCharge.titel': "Steuerschuldnerschaft des Leistungsempfängers. ";
|
|
47
|
+
readonly 'steuer.reverseCharge.text': "Übergang der Steuerschuld gem. Art. 196 MwSt-RL 2006/112/EG (innergemeinschaftliche Leistung). Die Leistung ist nicht steuerfrei — die Umsatzsteuer schuldet und entrichtet der Leistungsempfänger in seinem Land.";
|
|
48
|
+
readonly 'steuer.uidZeile': "UID Leistungserbringer: {verkaeufer} · UID Leistungsempfänger: {kaeufer}";
|
|
49
|
+
readonly 'steuer.rcGrund.construction': "Bauleistung gemäß § 19 Abs. 1a UStG.";
|
|
50
|
+
readonly 'steuer.rcGrund.scrap': "Schrott und Abfallstoffe gemäß Schrott-Umsatzsteuerverordnung (BGBl. II Nr. 129/2007).";
|
|
51
|
+
readonly 'steuer.rcGrund.mobile_devices': "Mobilfunkgeräte bzw. integrierte Schaltkreise gemäß § 19 Abs. 1e lit. b UStG.";
|
|
52
|
+
readonly 'steuer.rcGrund.it_devices': "Laptops, Tablets bzw. Videospielkonsolen gemäß § 2 Z 1 Umsatzsteuerbetrugsbekämpfungsverordnung (BGBl. II Nr. 369/2013).";
|
|
53
|
+
readonly 'steuer.rcGrund.metals': "Metalle gemäß § 2 Z 4 Umsatzsteuerbetrugsbekämpfungsverordnung.";
|
|
54
|
+
readonly 'steuer.rcGrund.emission_certificates': "Treibhausgasemissionszertifikate gemäß § 19 Abs. 1e lit. a UStG.";
|
|
55
|
+
readonly 'steuer.rcGrund.gas_electricity': "Lieferung von Gas oder Elektrizität an einen Wiederverkäufer gemäß § 2 Z 2 Umsatzsteuerbetrugsbekämpfungsverordnung.";
|
|
56
|
+
readonly 'steuer.rcGrund.energy_certificates': "Gas- und Elektrizitätszertifikate gemäß § 2 Z 3 Umsatzsteuerbetrugsbekämpfungsverordnung.";
|
|
57
|
+
readonly 'steuer.rcGrund.investment_gold': "Steuerpflichtige Lieferung von Anlagegold gemäß § 2 Z 5 Umsatzsteuerbetrugsbekämpfungsverordnung.";
|
|
58
|
+
readonly 'steuer.rcGrund.security_transfer': "Lieferung von Sicherungs- bzw. Vorbehaltseigentum gemäß § 19 Abs. 1b UStG.";
|
|
59
|
+
readonly 'steuer.rcGrund.foreign_supplier': "Leistung eines nicht im Inland ansässigen Unternehmers gemäß § 19 Abs. 1 zweiter Satz UStG.";
|
|
60
|
+
readonly 'steuer.domestic.text': "Die Umsatzsteuer schuldet und entrichtet der Leistungsempfänger. Die Leistung ist nicht steuerfrei.";
|
|
61
|
+
readonly 'steuer.outsideScope.titel': "Nicht steuerbarer Umsatz. ";
|
|
62
|
+
readonly 'steuer.outsideScope.text': "Der Leistungsort liegt gemäß § 3a Abs. 6 UStG im Ansässigkeitsstaat des Leistungsempfängers; in Österreich fällt keine Umsatzsteuer an.";
|
|
48
63
|
readonly 'pdf.zahlung.titel': "ZAHLUNGSINFORMATIONEN";
|
|
49
64
|
readonly 'pdf.zahlung.empfaenger': "Empfänger";
|
|
50
65
|
readonly 'pdf.zahlung.iban': "IBAN";
|
|
@@ -94,6 +109,7 @@ declare const DE: {
|
|
|
94
109
|
readonly 'einvoice.befreiung.reverseCharge': "Steuerschuldnerschaft des Leistungsempfängers (Reverse Charge)";
|
|
95
110
|
readonly 'einvoice.befreiung.kleinunternehmer': "Steuerbefreit — Kleinunternehmer gemäß §6 Abs. 1 Z 27 UStG";
|
|
96
111
|
readonly 'einvoice.befreiung.igLieferung': "Steuerfreie innergemeinschaftliche Lieferung gemäß Art. 6 Abs. 1 UStG";
|
|
112
|
+
readonly 'einvoice.befreiung.outsideScope': "Nicht steuerbarer Umsatz — Leistungsort im Ausland (§ 3a Abs. 6 UStG)";
|
|
97
113
|
readonly 'einvoice.befreiung.ausfuhr': "Steuerfreie Ausfuhrlieferung gemäß §6 Abs. 1 Z 1 UStG";
|
|
98
114
|
readonly 'einvoice.zahlbarBis': "Zahlbar bis {datum}";
|
|
99
115
|
readonly 'einheit.piece': "Stk";
|
|
@@ -25,11 +25,34 @@ const DE = {
|
|
|
25
25
|
'pdf.summe.gesamt.rechnung': 'Gesamtbetrag',
|
|
26
26
|
'pdf.summe.gesamt.gutschrift': 'Gutschriftsbetrag',
|
|
27
27
|
'steuer.kleinunternehmer': 'Gemäß § 6 Abs. 1 Z 27 UStG wird keine Umsatzsteuer verrechnet (Kleinunternehmer).',
|
|
28
|
-
'steuer.igLieferung': 'Steuerfreie innergemeinschaftliche Lieferung
|
|
28
|
+
'steuer.igLieferung.titel': 'Steuerfreie innergemeinschaftliche Lieferung. ',
|
|
29
|
+
'steuer.igLieferung.text': 'Gemäß Art. 6 Abs. 1 UStG (Art. 138 MwSt-RL 2006/112/EG). Die Erwerbsbesteuerung erfolgt durch den Abnehmer im Bestimmungsland.',
|
|
29
30
|
'steuer.ausfuhr': 'Steuerfreie Ausfuhrlieferung (§ 6 Abs. 1 Z 1 UStG).',
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
// Reverse Charge ist KEINE Steuerbefreiung: der Umsatz bleibt steuerpflichtig,
|
|
32
|
+
// nur die Steuer schuldet der Empfaenger (§ 11 Abs. 1a UStG; der Begriff steht
|
|
33
|
+
// wortgleich in Art. 226 Nr. 11a MwSt-RL). „Steuerfrei" waere sachlich falsch
|
|
34
|
+
// und erbraechte den vorgeschriebenen Hinweis nicht.
|
|
35
|
+
'steuer.reverseCharge.titel': 'Steuerschuldnerschaft des Leistungsempfängers. ',
|
|
36
|
+
'steuer.reverseCharge.text': 'Übergang der Steuerschuld gem. Art. 196 MwSt-RL 2006/112/EG (innergemeinschaftliche Leistung). Die Leistung ist nicht steuerfrei — die Umsatzsteuer schuldet und entrichtet der Leistungsempfänger in seinem Land.',
|
|
37
|
+
// Beide UID-Nummern: bei Reverse Charge § 11 Abs. 1a, bei der ig. Lieferung
|
|
38
|
+
// Art. 11 Abs. 2 UStG.
|
|
39
|
+
'steuer.uidZeile': 'UID Leistungserbringer: {verkaeufer} · UID Leistungsempfänger: {kaeufer}',
|
|
40
|
+
// Inlands-Reverse-Charge: je Grund ein Satz, der die Gesetzesstelle nennt —
|
|
41
|
+
// sie traegt den Hinweis nach § 11 Abs. 1a UStG.
|
|
42
|
+
'steuer.rcGrund.construction': 'Bauleistung gemäß § 19 Abs. 1a UStG.',
|
|
43
|
+
'steuer.rcGrund.scrap': 'Schrott und Abfallstoffe gemäß Schrott-Umsatzsteuerverordnung (BGBl. II Nr. 129/2007).',
|
|
44
|
+
'steuer.rcGrund.mobile_devices': 'Mobilfunkgeräte bzw. integrierte Schaltkreise gemäß § 19 Abs. 1e lit. b UStG.',
|
|
45
|
+
'steuer.rcGrund.it_devices': 'Laptops, Tablets bzw. Videospielkonsolen gemäß § 2 Z 1 Umsatzsteuerbetrugsbekämpfungsverordnung (BGBl. II Nr. 369/2013).',
|
|
46
|
+
'steuer.rcGrund.metals': 'Metalle gemäß § 2 Z 4 Umsatzsteuerbetrugsbekämpfungsverordnung.',
|
|
47
|
+
'steuer.rcGrund.emission_certificates': 'Treibhausgasemissionszertifikate gemäß § 19 Abs. 1e lit. a UStG.',
|
|
48
|
+
'steuer.rcGrund.gas_electricity': 'Lieferung von Gas oder Elektrizität an einen Wiederverkäufer gemäß § 2 Z 2 Umsatzsteuerbetrugsbekämpfungsverordnung.',
|
|
49
|
+
'steuer.rcGrund.energy_certificates': 'Gas- und Elektrizitätszertifikate gemäß § 2 Z 3 Umsatzsteuerbetrugsbekämpfungsverordnung.',
|
|
50
|
+
'steuer.rcGrund.investment_gold': 'Steuerpflichtige Lieferung von Anlagegold gemäß § 2 Z 5 Umsatzsteuerbetrugsbekämpfungsverordnung.',
|
|
51
|
+
'steuer.rcGrund.security_transfer': 'Lieferung von Sicherungs- bzw. Vorbehaltseigentum gemäß § 19 Abs. 1b UStG.',
|
|
52
|
+
'steuer.rcGrund.foreign_supplier': 'Leistung eines nicht im Inland ansässigen Unternehmers gemäß § 19 Abs. 1 zweiter Satz UStG.',
|
|
53
|
+
'steuer.domestic.text': 'Die Umsatzsteuer schuldet und entrichtet der Leistungsempfänger. Die Leistung ist nicht steuerfrei.',
|
|
54
|
+
'steuer.outsideScope.titel': 'Nicht steuerbarer Umsatz. ',
|
|
55
|
+
'steuer.outsideScope.text': 'Der Leistungsort liegt gemäß § 3a Abs. 6 UStG im Ansässigkeitsstaat des Leistungsempfängers; in Österreich fällt keine Umsatzsteuer an.',
|
|
33
56
|
'pdf.zahlung.titel': 'ZAHLUNGSINFORMATIONEN',
|
|
34
57
|
'pdf.zahlung.empfaenger': 'Empfänger',
|
|
35
58
|
'pdf.zahlung.iban': 'IBAN',
|
|
@@ -79,6 +102,7 @@ const DE = {
|
|
|
79
102
|
'einvoice.befreiung.reverseCharge': 'Steuerschuldnerschaft des Leistungsempfängers (Reverse Charge)',
|
|
80
103
|
'einvoice.befreiung.kleinunternehmer': 'Steuerbefreit — Kleinunternehmer gemäß §6 Abs. 1 Z 27 UStG',
|
|
81
104
|
'einvoice.befreiung.igLieferung': 'Steuerfreie innergemeinschaftliche Lieferung gemäß Art. 6 Abs. 1 UStG',
|
|
105
|
+
'einvoice.befreiung.outsideScope': 'Nicht steuerbarer Umsatz — Leistungsort im Ausland (§ 3a Abs. 6 UStG)',
|
|
82
106
|
'einvoice.befreiung.ausfuhr': 'Steuerfreie Ausfuhrlieferung gemäß §6 Abs. 1 Z 1 UStG',
|
|
83
107
|
'einvoice.zahlbarBis': 'Zahlbar bis {datum}',
|
|
84
108
|
'einheit.piece': 'Stk',
|
|
@@ -207,11 +231,26 @@ const EN = {
|
|
|
207
231
|
'pdf.summe.gesamt.rechnung': 'Total',
|
|
208
232
|
'pdf.summe.gesamt.gutschrift': 'Credit total',
|
|
209
233
|
'steuer.kleinunternehmer': 'No VAT charged pursuant to § 6 (1) no. 27 UStG (small business exemption).',
|
|
210
|
-
'steuer.igLieferung': 'VAT-exempt intra-Community supply
|
|
234
|
+
'steuer.igLieferung.titel': 'VAT-exempt intra-Community supply. ',
|
|
235
|
+
'steuer.igLieferung.text': 'Pursuant to Art. 6 (1) UStG (Art. 138 of VAT Directive 2006/112/EC). The acquisition is taxed by the customer in the country of destination.',
|
|
211
236
|
'steuer.ausfuhr': 'VAT-exempt export delivery (§ 6 (1) no. 1 UStG).',
|
|
212
|
-
'steuer.reverseCharge.titel': '
|
|
213
|
-
'steuer.reverseCharge.text': 'VAT liability transferred
|
|
214
|
-
'steuer.
|
|
237
|
+
'steuer.reverseCharge.titel': 'Reverse charge – VAT liability of the recipient. ',
|
|
238
|
+
'steuer.reverseCharge.text': 'VAT liability transferred pursuant to Art. 196 of VAT Directive 2006/112/EC (intra-Community service). The service is not VAT-exempt — the recipient owes and accounts for the VAT in their country.',
|
|
239
|
+
'steuer.uidZeile': 'VAT ID supplier: {verkaeufer} · VAT ID recipient: {kaeufer}',
|
|
240
|
+
'steuer.rcGrund.construction': 'Construction work pursuant to § 19 (1a) UStG.',
|
|
241
|
+
'steuer.rcGrund.scrap': 'Scrap and waste materials pursuant to the Austrian scrap VAT regulation (BGBl. II No. 129/2007).',
|
|
242
|
+
'steuer.rcGrund.mobile_devices': 'Mobile phones or integrated circuits pursuant to § 19 (1e) (b) UStG.',
|
|
243
|
+
'steuer.rcGrund.it_devices': 'Laptops, tablets or games consoles pursuant to § 2 no. 1 of the Austrian VAT anti-fraud regulation (BGBl. II No. 369/2013).',
|
|
244
|
+
'steuer.rcGrund.metals': 'Metals pursuant to § 2 no. 4 of the Austrian VAT anti-fraud regulation.',
|
|
245
|
+
'steuer.rcGrund.emission_certificates': 'Greenhouse gas emission allowances pursuant to § 19 (1e) (a) UStG.',
|
|
246
|
+
'steuer.rcGrund.gas_electricity': 'Supply of gas or electricity to a reseller pursuant to § 2 no. 2 of the Austrian VAT anti-fraud regulation.',
|
|
247
|
+
'steuer.rcGrund.energy_certificates': 'Gas and electricity certificates pursuant to § 2 no. 3 of the Austrian VAT anti-fraud regulation.',
|
|
248
|
+
'steuer.rcGrund.investment_gold': 'Taxable supply of investment gold pursuant to § 2 no. 5 of the Austrian VAT anti-fraud regulation.',
|
|
249
|
+
'steuer.rcGrund.security_transfer': 'Supply of goods under a security or retention of title arrangement pursuant to § 19 (1b) UStG.',
|
|
250
|
+
'steuer.rcGrund.foreign_supplier': 'Supply by a business not established in Austria pursuant to § 19 (1) second sentence UStG.',
|
|
251
|
+
'steuer.domestic.text': 'The recipient owes and accounts for the VAT. The supply is not VAT-exempt.',
|
|
252
|
+
'steuer.outsideScope.titel': 'Outside the scope of Austrian VAT. ',
|
|
253
|
+
'steuer.outsideScope.text': 'The place of supply is the recipient\'s country pursuant to § 3a (6) UStG; no Austrian VAT applies.',
|
|
215
254
|
'pdf.zahlung.titel': 'PAYMENT DETAILS',
|
|
216
255
|
'pdf.zahlung.empfaenger': 'Payee',
|
|
217
256
|
'pdf.zahlung.iban': 'IBAN',
|
|
@@ -261,6 +300,7 @@ const EN = {
|
|
|
261
300
|
'einvoice.befreiung.reverseCharge': 'Reverse charge – VAT liability of the recipient',
|
|
262
301
|
'einvoice.befreiung.kleinunternehmer': 'VAT exempt — small business pursuant to § 6 (1) no. 27 UStG',
|
|
263
302
|
'einvoice.befreiung.igLieferung': 'VAT-exempt intra-Community supply pursuant to Art. 6 (1) UStG',
|
|
303
|
+
'einvoice.befreiung.outsideScope': 'Outside the scope of VAT — place of supply abroad (§ 3a (6) UStG)',
|
|
264
304
|
'einvoice.befreiung.ausfuhr': 'VAT-exempt export delivery pursuant to § 6 (1) no. 1 UStG',
|
|
265
305
|
'einvoice.zahlbarBis': 'Payable by {datum}',
|
|
266
306
|
'einheit.piece': 'pcs',
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Betraege sind ueberall ganze Cent. Datumsangaben sind `YYYY-MM-DD` nach
|
|
6
6
|
* Wiener Kalender.
|
|
7
7
|
*/
|
|
8
|
-
import type { CreditNoteReason, CustomerType, DocType, InvoiceLanguage, InvoiceNoticeCode, InvoicePaymentMethod, InvoiceUnit, InvoiceSetupRequirement, InvoiceListStatus, PriceMode, TaxScheme, VatRatePercent } from './vertrag.js';
|
|
8
|
+
import type { CreditNoteReason, CustomerType, DocType, InvoiceLanguage, InvoiceNoticeCode, ItemKind, ReverseChargeReason, InvoicePaymentMethod, InvoiceUnit, InvoiceSetupRequirement, InvoiceListStatus, PriceMode, TaxScheme, VatRatePercent } from './vertrag.js';
|
|
9
9
|
export interface CustomerInput {
|
|
10
10
|
type: CustomerType;
|
|
11
11
|
name: string;
|
|
@@ -71,6 +71,8 @@ export interface InvoiceItemInput {
|
|
|
71
71
|
quantity: number;
|
|
72
72
|
/** Einheit aus `INVOICE_UNITS`; ohne Angabe `piece`. */
|
|
73
73
|
unit?: InvoiceUnit;
|
|
74
|
+
/** Ware oder Leistung; ohne Angabe `goods`. Entscheidet ueber den Steuerfall. */
|
|
75
|
+
kind?: ItemKind;
|
|
74
76
|
/** Einzelpreis in ganzen Cent, im `priceMode` der Rechnung (netto oder brutto). */
|
|
75
77
|
unitPriceCents: number;
|
|
76
78
|
vatRate: VatRatePercent;
|
|
@@ -82,7 +84,10 @@ export interface IssueInvoiceRequest {
|
|
|
82
84
|
idempotencyKey: string;
|
|
83
85
|
/** Pflicht ueber 400 € brutto sowie bei Reverse Charge und ig. Lieferung. */
|
|
84
86
|
customerId?: string;
|
|
85
|
-
|
|
87
|
+
/** Optional: der Server leitet den Fall ab und prueft eine Angabe dagegen. */
|
|
88
|
+
taxScheme?: TaxScheme;
|
|
89
|
+
/** Pflicht bei `domesticReverseCharge`. */
|
|
90
|
+
reverseChargeReason?: ReverseChargeReason;
|
|
86
91
|
priceMode: PriceMode;
|
|
87
92
|
/** Leistungsdatum bzw. Beginn des Leistungszeitraums. */
|
|
88
93
|
serviceStart: string;
|
|
@@ -118,6 +123,13 @@ export interface PaymentInput {
|
|
|
118
123
|
paidAt?: string;
|
|
119
124
|
/** Zahlungskennung des Fremdsystems — gespeichert, aber nicht gedruckt. */
|
|
120
125
|
reference?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Die Zahlung erfolgte vor Ort beim Unternehmer (Terminal an der Kasse).
|
|
128
|
+
* Dann ist sie ein Barumsatz — auch mit Karte (§ 131b Abs. 1 Z 3 UStG) — und
|
|
129
|
+
* die Antwort traegt den Hinweis `cash_receipt_required`. Zu `transfer`
|
|
130
|
+
* passt das Kennzeichen nicht und wird abgewiesen.
|
|
131
|
+
*/
|
|
132
|
+
onSite?: boolean;
|
|
121
133
|
}
|
|
122
134
|
export interface RecordPaymentRequest extends PaymentInput {
|
|
123
135
|
/** Pflicht: ohne ihn bucht eine Wiederholung eine zweite Zahlung. */
|
|
@@ -220,6 +232,8 @@ export interface InvoiceItem {
|
|
|
220
232
|
subtitle: string;
|
|
221
233
|
quantity: number;
|
|
222
234
|
unit: string;
|
|
235
|
+
/** Ware oder Leistung — Altbestand ohne Angabe zaehlt als `goods`. */
|
|
236
|
+
kind: ItemKind;
|
|
223
237
|
unitPriceCents: number;
|
|
224
238
|
vatRate: number;
|
|
225
239
|
discountPct: number;
|
|
@@ -228,6 +242,10 @@ export interface InvoiceDetail extends Invoice {
|
|
|
228
242
|
items: InvoiceItem[];
|
|
229
243
|
customer: InvoiceRecipient | null;
|
|
230
244
|
taxScheme: TaxScheme;
|
|
245
|
+
/** Nur bei `domesticReverseCharge`. */
|
|
246
|
+
reverseChargeReason: ReverseChargeReason | null;
|
|
247
|
+
/** Land, dessen Steuer die Rechnung traegt; Altbestand `AT`. */
|
|
248
|
+
taxCountry: string;
|
|
231
249
|
priceMode: PriceMode;
|
|
232
250
|
serviceStart: string | null;
|
|
233
251
|
serviceEnd: string | null;
|
|
@@ -273,6 +291,13 @@ export interface IssueResult {
|
|
|
273
291
|
invoice: Invoice;
|
|
274
292
|
/** `true`, wenn die Anfrage schon einmal ausgefuehrt wurde und die bestehende Rechnung zurueckkommt. */
|
|
275
293
|
replayed: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* Hinweise zu dieser Rechnung — kein Fehler, sondern etwas, das der Aufrufer
|
|
296
|
+
* wissen sollte. Eine **Liste**, weil mehrere zugleich anfallen koennen: eine
|
|
297
|
+
* bar bezahlte ig. Lieferung traegt sowohl `cash_receipt_required` als auch
|
|
298
|
+
* `recapitulative_statement_due`.
|
|
299
|
+
*/
|
|
300
|
+
notice?: InvoiceNotice[];
|
|
276
301
|
}
|
|
277
302
|
export interface CancelResult {
|
|
278
303
|
creditNote: Invoice;
|
|
@@ -24,13 +24,88 @@ export type RechnungAufruf = (typeof RECHNUNG_AUFRUFE)[number];
|
|
|
24
24
|
* Stabile Fehlercodes. Das Fremdsystem verzweigt am Code, der Text darf sich
|
|
25
25
|
* aendern. `validation` traegt zusaetzlich `errors: [{ field, message }]`.
|
|
26
26
|
*/
|
|
27
|
-
export declare const INVOICE_ERROR_CODES: readonly ["validation", "idempotency_conflict", "module_inactive", "customer_not_found", "customer_exists", "short_code_taken", "short_code_immutable", "recipient_required", "invoice_requirements_missing", "invoice_not_found", "invoice_ambiguous", "not_cancellable", "partial_credit_exists", "credit_exceeds_invoice", "einvoice_incomplete", "invoice_api_not_enabled", "invoice_setup_incomplete", "language_not_allowed", "brand_not_found", "not_payable", "payment_exceeds_invoice"];
|
|
27
|
+
export declare const INVOICE_ERROR_CODES: readonly ["validation", "idempotency_conflict", "module_inactive", "customer_not_found", "customer_exists", "short_code_taken", "short_code_immutable", "recipient_required", "invoice_requirements_missing", "invoice_not_found", "invoice_ambiguous", "not_cancellable", "partial_credit_exists", "credit_exceeds_invoice", "einvoice_incomplete", "invoice_api_not_enabled", "invoice_setup_incomplete", "language_not_allowed", "brand_not_found", "not_payable", "payment_exceeds_invoice", "tax_scheme_mismatch", "vat_rate_not_in_country", "reverse_charge_reason_required", "reverse_charge_threshold", "mixed_supply_not_allowed", "oss_not_enabled"];
|
|
28
28
|
export type InvoiceErrorCode = (typeof INVOICE_ERROR_CODES)[number];
|
|
29
29
|
/** Gruende einer Gutschrift. Der Server druckt den deutschen Anzeigetext. */
|
|
30
30
|
export declare const CREDIT_NOTE_REASONS: readonly ["cancellation", "price_reduction", "return", "incorrect_invoice", "other"];
|
|
31
31
|
export type CreditNoteReason = (typeof CREDIT_NOTE_REASONS)[number];
|
|
32
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Der Steuerfall einer Rechnung. Er wird vom Server **abgeleitet** (Kundenland,
|
|
34
|
+
* Kundenart, UID, Ware oder Leistung); eine mitgeschickte Angabe muss dazu
|
|
35
|
+
* passen, sonst `tax_scheme_mismatch`. Neue Faelle stehen hinten, damit
|
|
36
|
+
* gespeicherte Reihenfolgen gueltig bleiben.
|
|
37
|
+
*
|
|
38
|
+
* - `normal` oesterreichische Umsatzsteuer
|
|
39
|
+
* - `smallBusiness` Kleinunternehmer (§ 6 Abs. 1 Z 27 UStG)
|
|
40
|
+
* - `reverseCharge` Leistung an ein Unternehmen in der EU (Art. 196 MwSt-RL)
|
|
41
|
+
* - `igLieferung` Ware an ein Unternehmen in der EU (Art. 6 Abs. 1 UStG)
|
|
42
|
+
* - `exportThirdCountry` Ware ins Drittland (§ 6 Abs. 1 Z 1 UStG)
|
|
43
|
+
* - `domesticReverseCharge` Uebergang der Steuerschuld im Inland, Grund aus `REVERSE_CHARGE_REASONS`
|
|
44
|
+
* - `oss` B2C in der EU ueber den One-Stop-Shop, Satz des Ziellandes
|
|
45
|
+
* - `outsideScope` Leistung an ein Drittlandsunternehmen — in Oesterreich nicht steuerbar
|
|
46
|
+
*/
|
|
47
|
+
export declare const TAX_SCHEMES: readonly ["normal", "smallBusiness", "reverseCharge", "igLieferung", "exportThirdCountry", "domesticReverseCharge", "oss", "outsideScope"];
|
|
33
48
|
export type TaxScheme = (typeof TAX_SCHEMES)[number];
|
|
49
|
+
/**
|
|
50
|
+
* Gruende fuer den Uebergang der Steuerschuld **im Inland**. Ohne Grund gibt es
|
|
51
|
+
* kein `domesticReverseCharge`: die Bedingungen sind je Fall verschieden, und
|
|
52
|
+
* keine davon laesst sich aus Betrag und Land erraten.
|
|
53
|
+
*
|
|
54
|
+
* `schwelleCents` ist das Entgelt, ab dem der Fall greift — maßgeblich ist das
|
|
55
|
+
* **in der Rechnung ausgewiesene** Entgelt, nicht der Einzelpreis; ein
|
|
56
|
+
* einheitlicher Liefervorgang darf dafuer nicht auf mehrere Rechnungen
|
|
57
|
+
* aufgeteilt werden (UStR Rz 2605d).
|
|
58
|
+
*/
|
|
59
|
+
export declare const REVERSE_CHARGE_REASONS: Readonly<{
|
|
60
|
+
construction: {
|
|
61
|
+
stelle: string;
|
|
62
|
+
schwelleCents: null;
|
|
63
|
+
};
|
|
64
|
+
scrap: {
|
|
65
|
+
stelle: string;
|
|
66
|
+
schwelleCents: null;
|
|
67
|
+
};
|
|
68
|
+
mobile_devices: {
|
|
69
|
+
stelle: string;
|
|
70
|
+
schwelleCents: number;
|
|
71
|
+
};
|
|
72
|
+
it_devices: {
|
|
73
|
+
stelle: string;
|
|
74
|
+
schwelleCents: number;
|
|
75
|
+
};
|
|
76
|
+
metals: {
|
|
77
|
+
stelle: string;
|
|
78
|
+
schwelleCents: null;
|
|
79
|
+
};
|
|
80
|
+
emission_certificates: {
|
|
81
|
+
stelle: string;
|
|
82
|
+
schwelleCents: null;
|
|
83
|
+
};
|
|
84
|
+
gas_electricity: {
|
|
85
|
+
stelle: string;
|
|
86
|
+
schwelleCents: null;
|
|
87
|
+
};
|
|
88
|
+
energy_certificates: {
|
|
89
|
+
stelle: string;
|
|
90
|
+
schwelleCents: null;
|
|
91
|
+
};
|
|
92
|
+
investment_gold: {
|
|
93
|
+
stelle: string;
|
|
94
|
+
schwelleCents: null;
|
|
95
|
+
};
|
|
96
|
+
security_transfer: {
|
|
97
|
+
stelle: string;
|
|
98
|
+
schwelleCents: null;
|
|
99
|
+
};
|
|
100
|
+
foreign_supplier: {
|
|
101
|
+
stelle: string;
|
|
102
|
+
schwelleCents: null;
|
|
103
|
+
};
|
|
104
|
+
}>;
|
|
105
|
+
export type ReverseChargeReason = keyof typeof REVERSE_CHARGE_REASONS;
|
|
106
|
+
/** Ware oder Leistung — ohne das laesst sich ig. Lieferung nicht von Reverse Charge trennen. */
|
|
107
|
+
export declare const ITEM_KINDS: readonly ["goods", "service"];
|
|
108
|
+
export type ItemKind = (typeof ITEM_KINDS)[number];
|
|
34
109
|
export declare const PRICE_MODES: readonly ["net", "gross"];
|
|
35
110
|
export type PriceMode = (typeof PRICE_MODES)[number];
|
|
36
111
|
export declare const VAT_RATES: readonly [0, 10, 13, 20];
|
|
@@ -52,10 +127,13 @@ export type EInvoiceFormat = (typeof EINVOICE_FORMATS)[number];
|
|
|
52
127
|
export declare const INVOICE_LANGUAGES: readonly ["de", "en"];
|
|
53
128
|
export type InvoiceLanguage = (typeof INVOICE_LANGUAGES)[number];
|
|
54
129
|
/**
|
|
55
|
-
* Wie eine Rechnung bezahlt wurde. Der Vermerk ist Buchhaltung, kein Beleg
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
130
|
+
* Wie eine Rechnung bezahlt wurde. Der Vermerk ist Buchhaltung, kein Beleg.
|
|
131
|
+
*
|
|
132
|
+
* Ein **Barumsatz** ist nicht nur Bargeld: als Barzahlung gilt auch die Zahlung
|
|
133
|
+
* mit Bankomat- oder Kreditkarte **vor Ort** (§ 131b Abs. 1 Z 3 UStG), nicht
|
|
134
|
+
* aber dieselbe Karte im Internet. Weil `card` und `online` beides sein
|
|
135
|
+
* koennen, sagt das Feld `onSite` es dem Server — und nur dann traegt die
|
|
136
|
+
* Antwort den Hinweis `cash_receipt_required` (bei `cash` immer).
|
|
59
137
|
*/
|
|
60
138
|
export declare const INVOICE_PAYMENT_METHODS: readonly ["transfer", "card", "online", "cash"];
|
|
61
139
|
export type InvoicePaymentMethod = (typeof INVOICE_PAYMENT_METHODS)[number];
|
|
@@ -63,7 +141,7 @@ export type InvoicePaymentMethod = (typeof INVOICE_PAYMENT_METHODS)[number];
|
|
|
63
141
|
* Hinweise, die eine erfolgreiche Antwort zusaetzlich tragen kann (`data.notice`).
|
|
64
142
|
* Sie sind keine Fehler: der Aufruf hat gewirkt, es gibt nur etwas zu wissen.
|
|
65
143
|
*/
|
|
66
|
-
export declare const INVOICE_NOTICE_CODES: readonly ["cash_receipt_required"];
|
|
144
|
+
export declare const INVOICE_NOTICE_CODES: readonly ["cash_receipt_required", "recapitulative_statement_due", "place_of_supply_check"];
|
|
67
145
|
export type InvoiceNoticeCode = (typeof INVOICE_NOTICE_CODES)[number];
|
|
68
146
|
/**
|
|
69
147
|
* Einheiten einer Position. Die API nimmt nur diese Schluessel an; gedruckt
|
|
@@ -60,6 +60,12 @@ export const INVOICE_ERROR_CODES = [
|
|
|
60
60
|
'brand_not_found',
|
|
61
61
|
'not_payable',
|
|
62
62
|
'payment_exceeds_invoice',
|
|
63
|
+
'tax_scheme_mismatch',
|
|
64
|
+
'vat_rate_not_in_country',
|
|
65
|
+
'reverse_charge_reason_required',
|
|
66
|
+
'reverse_charge_threshold',
|
|
67
|
+
'mixed_supply_not_allowed',
|
|
68
|
+
'oss_not_enabled',
|
|
63
69
|
];
|
|
64
70
|
/** Gruende einer Gutschrift. Der Server druckt den deutschen Anzeigetext. */
|
|
65
71
|
export const CREDIT_NOTE_REASONS = [
|
|
@@ -69,7 +75,56 @@ export const CREDIT_NOTE_REASONS = [
|
|
|
69
75
|
'incorrect_invoice',
|
|
70
76
|
'other',
|
|
71
77
|
];
|
|
72
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Der Steuerfall einer Rechnung. Er wird vom Server **abgeleitet** (Kundenland,
|
|
80
|
+
* Kundenart, UID, Ware oder Leistung); eine mitgeschickte Angabe muss dazu
|
|
81
|
+
* passen, sonst `tax_scheme_mismatch`. Neue Faelle stehen hinten, damit
|
|
82
|
+
* gespeicherte Reihenfolgen gueltig bleiben.
|
|
83
|
+
*
|
|
84
|
+
* - `normal` oesterreichische Umsatzsteuer
|
|
85
|
+
* - `smallBusiness` Kleinunternehmer (§ 6 Abs. 1 Z 27 UStG)
|
|
86
|
+
* - `reverseCharge` Leistung an ein Unternehmen in der EU (Art. 196 MwSt-RL)
|
|
87
|
+
* - `igLieferung` Ware an ein Unternehmen in der EU (Art. 6 Abs. 1 UStG)
|
|
88
|
+
* - `exportThirdCountry` Ware ins Drittland (§ 6 Abs. 1 Z 1 UStG)
|
|
89
|
+
* - `domesticReverseCharge` Uebergang der Steuerschuld im Inland, Grund aus `REVERSE_CHARGE_REASONS`
|
|
90
|
+
* - `oss` B2C in der EU ueber den One-Stop-Shop, Satz des Ziellandes
|
|
91
|
+
* - `outsideScope` Leistung an ein Drittlandsunternehmen — in Oesterreich nicht steuerbar
|
|
92
|
+
*/
|
|
93
|
+
export const TAX_SCHEMES = [
|
|
94
|
+
'normal',
|
|
95
|
+
'smallBusiness',
|
|
96
|
+
'reverseCharge',
|
|
97
|
+
'igLieferung',
|
|
98
|
+
'exportThirdCountry',
|
|
99
|
+
'domesticReverseCharge',
|
|
100
|
+
'oss',
|
|
101
|
+
'outsideScope',
|
|
102
|
+
];
|
|
103
|
+
/**
|
|
104
|
+
* Gruende fuer den Uebergang der Steuerschuld **im Inland**. Ohne Grund gibt es
|
|
105
|
+
* kein `domesticReverseCharge`: die Bedingungen sind je Fall verschieden, und
|
|
106
|
+
* keine davon laesst sich aus Betrag und Land erraten.
|
|
107
|
+
*
|
|
108
|
+
* `schwelleCents` ist das Entgelt, ab dem der Fall greift — maßgeblich ist das
|
|
109
|
+
* **in der Rechnung ausgewiesene** Entgelt, nicht der Einzelpreis; ein
|
|
110
|
+
* einheitlicher Liefervorgang darf dafuer nicht auf mehrere Rechnungen
|
|
111
|
+
* aufgeteilt werden (UStR Rz 2605d).
|
|
112
|
+
*/
|
|
113
|
+
export const REVERSE_CHARGE_REASONS = Object.freeze({
|
|
114
|
+
construction: { stelle: '§ 19 Abs. 1a UStG', schwelleCents: null },
|
|
115
|
+
scrap: { stelle: 'Schrott-UStV, BGBl. II Nr. 129/2007', schwelleCents: null },
|
|
116
|
+
mobile_devices: { stelle: '§ 19 Abs. 1e lit. b UStG', schwelleCents: 500_000 },
|
|
117
|
+
it_devices: { stelle: '§ 2 Z 1 UStBBKV, BGBl. II Nr. 369/2013', schwelleCents: 500_000 },
|
|
118
|
+
metals: { stelle: '§ 2 Z 4 UStBBKV', schwelleCents: null },
|
|
119
|
+
emission_certificates: { stelle: '§ 19 Abs. 1e lit. a UStG', schwelleCents: null },
|
|
120
|
+
gas_electricity: { stelle: '§ 2 Z 2 UStBBKV', schwelleCents: null },
|
|
121
|
+
energy_certificates: { stelle: '§ 2 Z 3 UStBBKV', schwelleCents: null },
|
|
122
|
+
investment_gold: { stelle: '§ 2 Z 5 UStBBKV', schwelleCents: null },
|
|
123
|
+
security_transfer: { stelle: '§ 19 Abs. 1b UStG', schwelleCents: null },
|
|
124
|
+
foreign_supplier: { stelle: '§ 19 Abs. 1 zweiter Satz UStG', schwelleCents: null },
|
|
125
|
+
});
|
|
126
|
+
/** Ware oder Leistung — ohne das laesst sich ig. Lieferung nicht von Reverse Charge trennen. */
|
|
127
|
+
export const ITEM_KINDS = ['goods', 'service'];
|
|
73
128
|
export const PRICE_MODES = ['net', 'gross'];
|
|
74
129
|
export const VAT_RATES = [0, 10, 13, 20];
|
|
75
130
|
export const CUSTOMER_TYPES = ['private', 'company'];
|
|
@@ -84,17 +139,28 @@ export const EINVOICE_FORMATS = ['ubl', 'cii'];
|
|
|
84
139
|
*/
|
|
85
140
|
export const INVOICE_LANGUAGES = ['de', 'en'];
|
|
86
141
|
/**
|
|
87
|
-
* Wie eine Rechnung bezahlt wurde. Der Vermerk ist Buchhaltung, kein Beleg
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
142
|
+
* Wie eine Rechnung bezahlt wurde. Der Vermerk ist Buchhaltung, kein Beleg.
|
|
143
|
+
*
|
|
144
|
+
* Ein **Barumsatz** ist nicht nur Bargeld: als Barzahlung gilt auch die Zahlung
|
|
145
|
+
* mit Bankomat- oder Kreditkarte **vor Ort** (§ 131b Abs. 1 Z 3 UStG), nicht
|
|
146
|
+
* aber dieselbe Karte im Internet. Weil `card` und `online` beides sein
|
|
147
|
+
* koennen, sagt das Feld `onSite` es dem Server — und nur dann traegt die
|
|
148
|
+
* Antwort den Hinweis `cash_receipt_required` (bei `cash` immer).
|
|
91
149
|
*/
|
|
92
150
|
export const INVOICE_PAYMENT_METHODS = ['transfer', 'card', 'online', 'cash'];
|
|
93
151
|
/**
|
|
94
152
|
* Hinweise, die eine erfolgreiche Antwort zusaetzlich tragen kann (`data.notice`).
|
|
95
153
|
* Sie sind keine Fehler: der Aufruf hat gewirkt, es gibt nur etwas zu wissen.
|
|
96
154
|
*/
|
|
97
|
-
export const INVOICE_NOTICE_CODES = [
|
|
155
|
+
export const INVOICE_NOTICE_CODES = [
|
|
156
|
+
'cash_receipt_required',
|
|
157
|
+
/** Ig. Lieferung und grenzueberschreitendes Reverse Charge: die Zusammenfassende
|
|
158
|
+
* Meldung ist materielle Voraussetzung (Art. 7 Abs. 1 Z 5 UStG). */
|
|
159
|
+
'recapitulative_statement_due',
|
|
160
|
+
/** Leistung an eine Privatperson im Drittland: der Leistungsort haengt von der
|
|
161
|
+
* Art der Leistung ab — wir nehmen den oesterreichischen Fall an. */
|
|
162
|
+
'place_of_supply_check',
|
|
163
|
+
];
|
|
98
164
|
/**
|
|
99
165
|
* Einheiten einer Position. Die API nimmt nur diese Schluessel an; gedruckt
|
|
100
166
|
* wird das Kuerzel in der Sprache der Rechnung (`RECHNUNG_TEXTE`,
|
|
@@ -271,6 +337,8 @@ export const POSITION_FELDER = Object.freeze({
|
|
|
271
337
|
quantity: { typ: 'number', pflicht: true, min: 0, exklusivMin: true, max: 1_000_000, nachkomma: 3 },
|
|
272
338
|
/** Einheit aus `INVOICE_UNITS`; ohne Angabe `piece`. */
|
|
273
339
|
unit: { typ: 'enum', pflicht: false, werte: INVOICE_UNITS },
|
|
340
|
+
/** Ware oder Leistung; ohne Angabe `goods`. Entscheidet ueber den Steuerfall. */
|
|
341
|
+
kind: { typ: 'enum', pflicht: false, werte: ITEM_KINDS },
|
|
274
342
|
unitPriceCents: { typ: 'integer', pflicht: true, min: 0, max: 100_000_000 },
|
|
275
343
|
vatRate: { typ: 'enum', pflicht: true, werte: VAT_RATES },
|
|
276
344
|
discountPct: { typ: 'number', pflicht: false, min: 0, max: 100, nachkomma: 2 },
|
|
@@ -288,6 +356,12 @@ export const PAYMENT_FELDER = Object.freeze({
|
|
|
288
356
|
amountCents: { typ: 'integer', pflicht: false, min: 1, max: 100_000_000 },
|
|
289
357
|
paidAt: datum(),
|
|
290
358
|
reference: text(100),
|
|
359
|
+
/**
|
|
360
|
+
* Die Zahlung erfolgte **vor Ort** beim Unternehmer (Terminal an der Kasse,
|
|
361
|
+
* Zahlung per App am Tresen). Dann ist sie ein Barumsatz. Zu `transfer` passt
|
|
362
|
+
* das nicht — eine Ueberweisung erfolgt nie vor Ort — und wird abgewiesen.
|
|
363
|
+
*/
|
|
364
|
+
onSite: { typ: 'boolean', pflicht: false },
|
|
291
365
|
});
|
|
292
366
|
export const RECHNUNG_ANFRAGEN = Object.freeze({
|
|
293
367
|
createCustomer: {
|
|
@@ -313,7 +387,14 @@ export const RECHNUNG_ANFRAGEN = Object.freeze({
|
|
|
313
387
|
issueInvoice: {
|
|
314
388
|
idempotencyKey: idempotencyKey(true),
|
|
315
389
|
customerId: id,
|
|
316
|
-
|
|
390
|
+
/**
|
|
391
|
+
* Optional: der Server leitet den Fall ab. Eine Angabe wird geprueft und
|
|
392
|
+
* muss passen (`tax_scheme_mismatch`) — so faellt eine falsche Zuordnung
|
|
393
|
+
* im Fremdsystem auf, statt eine falsche Rechnung zu erzeugen.
|
|
394
|
+
*/
|
|
395
|
+
taxScheme: { typ: 'enum', pflicht: false, werte: TAX_SCHEMES },
|
|
396
|
+
/** Pflicht bei `domesticReverseCharge`, sonst nicht erlaubt. */
|
|
397
|
+
reverseChargeReason: { typ: 'enum', pflicht: false, werte: Object.keys(REVERSE_CHARGE_REASONS) },
|
|
317
398
|
priceMode: { typ: 'enum', pflicht: true, werte: PRICE_MODES },
|
|
318
399
|
serviceStart: datum(true),
|
|
319
400
|
serviceEnd: datum(),
|
|
@@ -381,6 +462,7 @@ export const RECHNUNG_ANFRAGEN = Object.freeze({
|
|
|
381
462
|
amountCents: { typ: 'integer', pflicht: false, min: 1, max: 100_000_000 },
|
|
382
463
|
paidAt: datum(),
|
|
383
464
|
reference: text(100),
|
|
465
|
+
onSite: { typ: 'boolean', pflicht: false },
|
|
384
466
|
},
|
|
385
467
|
});
|
|
386
468
|
/** Genau eines dieser Felder muss gesetzt sein (je Aufruf, je Gruppe). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.21.0",
|
|
3
3
|
"aufrufe": [
|
|
4
4
|
"activateCashregister",
|
|
5
5
|
"cancelInvoice",
|
|
@@ -404,7 +404,13 @@
|
|
|
404
404
|
"language_not_allowed",
|
|
405
405
|
"brand_not_found",
|
|
406
406
|
"not_payable",
|
|
407
|
-
"payment_exceeds_invoice"
|
|
407
|
+
"payment_exceeds_invoice",
|
|
408
|
+
"tax_scheme_mismatch",
|
|
409
|
+
"vat_rate_not_in_country",
|
|
410
|
+
"reverse_charge_reason_required",
|
|
411
|
+
"reverse_charge_threshold",
|
|
412
|
+
"mixed_supply_not_allowed",
|
|
413
|
+
"oss_not_enabled"
|
|
408
414
|
],
|
|
409
415
|
"invoiceLanguages": [
|
|
410
416
|
"de",
|
|
@@ -418,7 +424,9 @@
|
|
|
418
424
|
"overdue"
|
|
419
425
|
],
|
|
420
426
|
"invoiceNoticeCodes": [
|
|
421
|
-
"cash_receipt_required"
|
|
427
|
+
"cash_receipt_required",
|
|
428
|
+
"recapitulative_statement_due",
|
|
429
|
+
"place_of_supply_check"
|
|
422
430
|
],
|
|
423
431
|
"invoicePaymentMethods": [
|
|
424
432
|
"transfer",
|
|
@@ -487,6 +495,10 @@
|
|
|
487
495
|
"bag",
|
|
488
496
|
"pallet"
|
|
489
497
|
],
|
|
498
|
+
"itemKinds": [
|
|
499
|
+
"goods",
|
|
500
|
+
"service"
|
|
501
|
+
],
|
|
490
502
|
"priceModes": [
|
|
491
503
|
"net",
|
|
492
504
|
"gross"
|
|
@@ -512,7 +524,10 @@
|
|
|
512
524
|
"smallBusiness",
|
|
513
525
|
"reverseCharge",
|
|
514
526
|
"igLieferung",
|
|
515
|
-
"exportThirdCountry"
|
|
527
|
+
"exportThirdCountry",
|
|
528
|
+
"domesticReverseCharge",
|
|
529
|
+
"oss",
|
|
530
|
+
"outsideScope"
|
|
516
531
|
],
|
|
517
532
|
"vatRates": [
|
|
518
533
|
0,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"aufruf": "recordInvoicePayment",
|
|
3
|
+
"beschreibung": "Ueberweisung kann nicht vor Ort erfolgen",
|
|
4
|
+
"anfrage": {
|
|
5
|
+
"idempotencyKey": "bsp-vor-ort",
|
|
6
|
+
"invoiceId": "rechnung_beispiel",
|
|
7
|
+
"method": "transfer",
|
|
8
|
+
"onSite": true
|
|
9
|
+
},
|
|
10
|
+
"erwartet": {
|
|
11
|
+
"ok": false,
|
|
12
|
+
"code": "validation",
|
|
13
|
+
"fields": ["onSite"]
|
|
14
|
+
}
|
|
15
|
+
}
|