@firmenakte/api-client 2.45.0 → 2.47.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/package.json +1 -1
- package/v2/generated/index.d.ts +1 -1
- package/v2/generated/index.d.ts.map +1 -1
- package/v2/generated/sdk.gen.d.ts +22 -10
- package/v2/generated/sdk.gen.d.ts.map +1 -1
- package/v2/generated/sdk.gen.js +37 -9
- package/v2/generated/types.gen.d.ts +275 -7
- package/v2/generated/types.gen.d.ts.map +1 -1
package/v2/generated/sdk.gen.js
CHANGED
|
@@ -943,7 +943,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
943
943
|
/**
|
|
944
944
|
* List billing partners
|
|
945
945
|
*
|
|
946
|
-
* Kunden und Lieferanten mit offenen Beträgen und Umsatz im laufenden Jahr sehen. The Geschäftspartner of the Buchhaltung with
|
|
946
|
+
* Kunden und Lieferanten mit offenen Beträgen und Umsatz im laufenden Jahr sehen. The Geschäftspartner of the Buchhaltung with Kunden- and Lieferantennummer and the role they give (Kunde, Lieferant or both), what each still owes or is owed, the year's revenue and expenses, and whether one is archived.
|
|
947
947
|
*/
|
|
948
948
|
listBillingPartners(options) {
|
|
949
949
|
return (options?.client ?? this.client).get({
|
|
@@ -955,7 +955,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
955
955
|
/**
|
|
956
956
|
* Add billing partner
|
|
957
957
|
*
|
|
958
|
-
* Eine Firma aus dem Register oder einen Partner ohne Firmenbuch als Kunden oder Lieferanten anlegen. Make a company (companyId) or a new own entry (name) a customer or supplier:
|
|
958
|
+
* Eine Firma aus dem Register oder einen Partner ohne Firmenbuch als Kunden oder Lieferanten anlegen. Make a company (companyId) or a new own entry (name) a customer or supplier: the next Kunden- or Lieferantennummer. A supplier who becomes a customer has both; an archived partner comes back.
|
|
959
959
|
*/
|
|
960
960
|
addBillingPartner(options) {
|
|
961
961
|
return (options.client ?? this.client).post({
|
|
@@ -971,7 +971,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
971
971
|
/**
|
|
972
972
|
* Delete billing partner
|
|
973
973
|
*
|
|
974
|
-
* Einen Kunden oder Lieferanten ohne Rechnungen und Belege entfernen. Take a Geschäftspartner without invoices or receipts out of the Buchhaltung with his
|
|
974
|
+
* Einen Kunden oder Lieferanten ohne Rechnungen und Belege entfernen. Take a Geschäftspartner without invoices or receipts out of the Buchhaltung with his numbers. One with invoices or receipts is refused: archive him instead.
|
|
975
975
|
*/
|
|
976
976
|
deleteBillingPartner(options) {
|
|
977
977
|
return (options.client ?? this.client).delete({
|
|
@@ -996,6 +996,34 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
996
996
|
}
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
|
+
/**
|
|
1000
|
+
* Get billing partner defaults
|
|
1001
|
+
*
|
|
1002
|
+
* Sehen, womit eine Rechnung an einen Kunden beginnt. A Geschäftspartner's Vorgabe: his Rechnungs-E-Mail, his Rechnungsanschrift beside what the register or his own entry gives, and his Zahlungsziel beside the Absender's.
|
|
1003
|
+
*/
|
|
1004
|
+
getBillingPartnerDefaults(options) {
|
|
1005
|
+
return (options.client ?? this.client).get({
|
|
1006
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1007
|
+
url: '/api/v2/me/billing/partners/{id}/defaults',
|
|
1008
|
+
...options
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Set billing partner defaults
|
|
1013
|
+
*
|
|
1014
|
+
* Rechnungs-E-Mail, Rechnungsanschrift und Zahlungsziel eines Kunden oder Lieferanten ändern. Replace a Geschäftspartner's Rechnungs-E-Mail, Rechnungsanschrift and Zahlungsziel, the fields an invoice issued „Für den Kunden“ writes. An address the same as the register's, or an empty one, removes the Rechnungsanschrift; an empty Zahlungsziel takes the Absender's.
|
|
1015
|
+
*/
|
|
1016
|
+
updateBillingPartnerDefaults(options) {
|
|
1017
|
+
return (options.client ?? this.client).put({
|
|
1018
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1019
|
+
url: '/api/v2/me/billing/partners/{id}/defaults',
|
|
1020
|
+
...options,
|
|
1021
|
+
headers: {
|
|
1022
|
+
'Content-Type': 'application/json',
|
|
1023
|
+
...options.headers
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
999
1027
|
/**
|
|
1000
1028
|
* Get billing summary
|
|
1001
1029
|
*
|
|
@@ -1023,7 +1051,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1023
1051
|
/**
|
|
1024
1052
|
* Download billing export
|
|
1025
1053
|
*
|
|
1026
|
-
* Das Paket eines Monats oder Quartals für die Steuerberatung herunterladen. The download of
|
|
1054
|
+
* Das Paket eines Monats oder Quartals für die Steuerberatung herunterladen. The download of a period (YYYY-MM, YYYY-Qn or YYYY), running or ended, as a ZIP: Belegliste.csv, the files under Belege/, a Kontoauszug per Konto, Partner.csv and Summen.csv. An ended period's download is noted and its receipts count as exported: from then on they can only be archived. A running period's download changes nothing.
|
|
1027
1055
|
*/
|
|
1028
1056
|
getBillingExportFile(options) {
|
|
1029
1057
|
return (options.client ?? this.client).get({
|
|
@@ -1079,7 +1107,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1079
1107
|
/**
|
|
1080
1108
|
* Get billing setup
|
|
1081
1109
|
*
|
|
1082
|
-
* Vor dem Rechnungschreiben nachsehen, als wer Rechnungen ausgestellt werden können, mit welchen Artikeln und welcher nächsten Nummer. The Absender this workspace may issue invoices as (its Unternehmen) with their Rechnungsdaten and next number, the Artikel, the fields of the Geschäftspartner used for
|
|
1110
|
+
* Vor dem Rechnungschreiben nachsehen, als wer Rechnungen ausgestellt werden können, mit welchen Artikeln und welcher nächsten Nummer. The Absender this workspace may issue invoices as (its Unternehmen) with their Rechnungsdaten and next number, the Artikel, the fields of the Geschäftspartner used for Kunden- and Lieferantennummer (a Kundennummer makes a Kunde, a Lieferantennummer a Lieferant), and the system lists Geschäftspartner, Artikel and Ausgang. Read it before *Create invoice*.
|
|
1083
1111
|
*/
|
|
1084
1112
|
getBillingSetup(options) {
|
|
1085
1113
|
return (options?.client ?? this.client).get({
|
|
@@ -1187,7 +1215,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1187
1215
|
/**
|
|
1188
1216
|
* Issue invoice
|
|
1189
1217
|
*
|
|
1190
|
-
* Einen fertigen Entwurf als gültige Rechnung mit Nummer und PDF festschreiben. Issue a draft after the checks of § 11 UStG: it gets the next number of its Absender, a new customer becomes a Geschäftspartner with
|
|
1218
|
+
* Einen fertigen Entwurf als gültige Rechnung mit Nummer und PDF festschreiben. Issue a draft after the checks of § 11 UStG: it gets the next number of its Absender, a new customer becomes a Geschäftspartner with a Kundennummer, and the PDF is frozen. Afterwards it never changes and is never deleted. Only with the user's explicit consent. Sends nothing.
|
|
1191
1219
|
*/
|
|
1192
1220
|
issueInvoice(options) {
|
|
1193
1221
|
return (options.client ?? this.client).post({
|
|
@@ -1307,7 +1335,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1307
1335
|
/**
|
|
1308
1336
|
* Sync bank connection
|
|
1309
1337
|
*
|
|
1310
|
-
* Neue Stripe-Zahlungen, Gebühren und Auszahlungen sofort statt zur vollen Stunde holen. Pull a connected Konto's new balance transactions now instead of with the hourly pull: payments stay open for the Abgleich, fees are done as Kein Beleg
|
|
1338
|
+
* Neue Stripe-Zahlungen, Gebühren und Auszahlungen sofort statt zur vollen Stunde holen. Pull a connected Konto's new balance transactions now instead of with the hourly pull: payments stay open for the Abgleich, fees are done as Kein Beleg, category bank, payouts become transfers to the payout Konto, refunds and disputes are bookings of their own. Nothing is booked twice. A failed pull answers with the connection's error.
|
|
1311
1339
|
*/
|
|
1312
1340
|
runBankSync(options) {
|
|
1313
1341
|
return (options.client ?? this.client).post({
|
|
@@ -1471,7 +1499,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1471
1499
|
/**
|
|
1472
1500
|
* Assign bank transaction
|
|
1473
1501
|
*
|
|
1474
|
-
* Eine Buchung einer Rechnung oder einem Beleg zuordnen oder als privat markieren. Assign a booking by hand: to an invoice or receipt (targetId), as a private booking, as noReceipt with
|
|
1502
|
+
* Eine Buchung einer Rechnung oder einem Beleg zuordnen oder als privat markieren. Assign a booking by hand: to an invoice or receipt (targetId), as a private booking, as noReceipt with its category (bank, social, staff, tax), or as a transfer to an own Konto. Replaces any assignment or proposal.
|
|
1475
1503
|
*/
|
|
1476
1504
|
setBankMatch(options) {
|
|
1477
1505
|
return (options.client ?? this.client).put({
|
|
@@ -1523,7 +1551,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1523
1551
|
/**
|
|
1524
1552
|
* Match bank transactions
|
|
1525
1553
|
*
|
|
1526
|
-
* Offene Buchungen mit Rechnungen und Belegen abgleichen lassen. Run the Abgleich over open bookings again;
|
|
1554
|
+
* Offene Buchungen mit Rechnungen und Belegen abgleichen lassen. Run the rules of the Abgleich over open bookings again; matched counts what they assigned. The Abgleich also runs by itself: the rules at every import and booking by hand, and within a minute, for bookings whose best candidates changed, a new invoice or receipt among them, the AI if it is on (one of five candidates per booking, or for a booking without any a category: bank, social, staff, tax, private, transfer; sicher or eventuell), then a weaker proposal by rule (amount or number together with the name). Sure rules: amount and number in the reference, a known partner's IBAN, transfers between own IBANs.
|
|
1527
1555
|
*/
|
|
1528
1556
|
runBankMatching(options) {
|
|
1529
1557
|
return (options.client ?? this.client).post({
|
|
@@ -15,7 +15,7 @@ export type AccountLiability = {
|
|
|
15
15
|
};
|
|
16
16
|
export type AddBillingPartnerRequest = {
|
|
17
17
|
/**
|
|
18
|
-
* customer or supplier: the
|
|
18
|
+
* customer or supplier: the number the partner gets, a Kundennummer or a Lieferantennummer. A supplier who becomes a customer keeps his Lieferantennummer.
|
|
19
19
|
*/
|
|
20
20
|
role: string;
|
|
21
21
|
/**
|
|
@@ -26,6 +26,24 @@ export type AddBillingPartnerRequest = {
|
|
|
26
26
|
* The name of a partner outside the register (a private person, a company abroad).
|
|
27
27
|
*/
|
|
28
28
|
name?: null | string;
|
|
29
|
+
/**
|
|
30
|
+
* A partner outside the register: values of this workspace's fields by field key, set with his own entry. Firmenakte gives the Kunden- and Lieferantennummer; they cannot be set here.
|
|
31
|
+
*/
|
|
32
|
+
values?: null | {
|
|
33
|
+
[key: string]: null | string | number | boolean | {
|
|
34
|
+
cents: number;
|
|
35
|
+
currency?: string;
|
|
36
|
+
} | {
|
|
37
|
+
number: number;
|
|
38
|
+
label: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* A partner outside the register: values of Firmenakte fields by field catalog path, for example {"address": "Hauptplatz 1", "seat.zip": "8430", "seat.city": "Leibnitz"}.
|
|
43
|
+
*/
|
|
44
|
+
sourceValues?: null | {
|
|
45
|
+
[key: string]: null | string | number | boolean;
|
|
46
|
+
};
|
|
29
47
|
};
|
|
30
48
|
export type AddLetterAttachmentBody = {
|
|
31
49
|
fileName: string;
|
|
@@ -242,9 +260,13 @@ export type BankAssignInput = {
|
|
|
242
260
|
*/
|
|
243
261
|
targetId?: null | string;
|
|
244
262
|
/**
|
|
245
|
-
* noReceipt:
|
|
263
|
+
* noReceipt: the old free text, read as a category: Bankgebühr, Steuer, Gehalt, Privat (a private booking) and the category labels; send category instead.
|
|
246
264
|
*/
|
|
247
265
|
reason?: null | string;
|
|
266
|
+
/**
|
|
267
|
+
* noReceipt (required, or a reason): bank (Kontoführung, Spesen, Zinsen), social (SVS, ÖGK), staff (Gehalt, Lohn, Lohnabgaben) or tax (the Finanzamt: USt, ESt, KöSt).
|
|
268
|
+
*/
|
|
269
|
+
category?: 'bank' | 'social' | 'staff' | 'tax';
|
|
248
270
|
};
|
|
249
271
|
export type BankBookingInput = {
|
|
250
272
|
/**
|
|
@@ -363,11 +385,11 @@ export type BankMatchDto = {
|
|
|
363
385
|
*/
|
|
364
386
|
id?: null | string;
|
|
365
387
|
/**
|
|
366
|
-
* What it is: an invoice's number, the account's name, Privat, Kein Beleg.
|
|
388
|
+
* What it is: an invoice's number, the account's name, Privat, Kein Beleg with its category such as Kein Beleg: Bank.
|
|
367
389
|
*/
|
|
368
390
|
label: string;
|
|
369
391
|
/**
|
|
370
|
-
*
|
|
392
|
+
* noReceipt: the category's German label (Bank, Sozialversicherung, Personal, Finanzamt). Read category instead.
|
|
371
393
|
*/
|
|
372
394
|
reason?: null | string;
|
|
373
395
|
/**
|
|
@@ -390,6 +412,10 @@ export type BankMatchDto = {
|
|
|
390
412
|
* What fits an invoice or receipt, as in BankCandidateDto.reasons; a transfer by IBAN is iban.
|
|
391
413
|
*/
|
|
392
414
|
reasons: Array<string>;
|
|
415
|
+
/**
|
|
416
|
+
* noReceipt: bank (Kontoführung, Spesen, Zinsen; an expense), social (SVS, ÖGK; an expense), staff (Gehalt, Lohn, Lohnabgaben; an expense) or tax (the Finanzamt: neither expense nor income, shown beside the USt).
|
|
417
|
+
*/
|
|
418
|
+
category?: null | string;
|
|
393
419
|
};
|
|
394
420
|
export type BankSettingsDto = {
|
|
395
421
|
/**
|
|
@@ -544,6 +570,11 @@ export type BillingDocumentDto = {
|
|
|
544
570
|
* When it last changed.
|
|
545
571
|
*/
|
|
546
572
|
changedAt: string;
|
|
573
|
+
/**
|
|
574
|
+
* What is printed on the document, as one record; issuer, recipient, number, the dates, the amounts and vatLines repeat it until v3.
|
|
575
|
+
*/
|
|
576
|
+
content: ReceiptContent;
|
|
577
|
+
readContent?: null | ReceiptContent;
|
|
547
578
|
};
|
|
548
579
|
export type BillingDocumentFileDto = {
|
|
549
580
|
id: string;
|
|
@@ -725,7 +756,7 @@ export type BillingMonthDto = {
|
|
|
725
756
|
};
|
|
726
757
|
export type BillingNumbersDto = {
|
|
727
758
|
/**
|
|
728
|
-
*
|
|
759
|
+
* Always empty: there is no Rolle field. A partner with a Kundennummer is a Kunde, one with a Lieferantennummer a Lieferant.
|
|
729
760
|
*/
|
|
730
761
|
roleField?: null | string;
|
|
731
762
|
/**
|
|
@@ -755,6 +786,30 @@ export type BillingNumbersDto = {
|
|
|
755
786
|
*/
|
|
756
787
|
addressField?: null | string;
|
|
757
788
|
};
|
|
789
|
+
export type BillingPartnerDefaultsDto = {
|
|
790
|
+
/**
|
|
791
|
+
* A company's or person's Firmenakte-ID, or an own entry's ID.
|
|
792
|
+
*/
|
|
793
|
+
id: string;
|
|
794
|
+
/**
|
|
795
|
+
* Rechnungs-E-Mail: where invoices to him are sent by e-mail.
|
|
796
|
+
*/
|
|
797
|
+
email?: null | string;
|
|
798
|
+
address?: null | InvoiceCustomer;
|
|
799
|
+
known?: null | InvoiceCustomer;
|
|
800
|
+
/**
|
|
801
|
+
* register, ownRecord or none.
|
|
802
|
+
*/
|
|
803
|
+
knownSource: string;
|
|
804
|
+
/**
|
|
805
|
+
* His Zahlungsziel in days; empty takes the Absender's.
|
|
806
|
+
*/
|
|
807
|
+
paymentDays?: null | number;
|
|
808
|
+
/**
|
|
809
|
+
* The Absender's Zahlungsziel in days, which applies without his own.
|
|
810
|
+
*/
|
|
811
|
+
senderPaymentDays: number;
|
|
812
|
+
};
|
|
758
813
|
export type BillingPartnerDto = {
|
|
759
814
|
/**
|
|
760
815
|
* company, person or ownRecord.
|
|
@@ -766,7 +821,7 @@ export type BillingPartnerDto = {
|
|
|
766
821
|
id: string;
|
|
767
822
|
name: string;
|
|
768
823
|
/**
|
|
769
|
-
* Kunde, Lieferant or Kunde und Lieferant.
|
|
824
|
+
* Kunde, Lieferant or Kunde und Lieferant, from the numbers he has: a Kundennummer makes a Kunde, a Lieferantennummer a Lieferant.
|
|
770
825
|
*/
|
|
771
826
|
role?: null | string;
|
|
772
827
|
/**
|
|
@@ -938,6 +993,10 @@ export type BillingVatDto = {
|
|
|
938
993
|
* Output less input VAT: positive is owed, negative a credit.
|
|
939
994
|
*/
|
|
940
995
|
payableCents: number;
|
|
996
|
+
/**
|
|
997
|
+
* What bookings without a receipt of category tax paid the Finanzamt in the period, in cents: positive is paid, negative refunded. It is neither income nor expense.
|
|
998
|
+
*/
|
|
999
|
+
taxOfficeCents?: number;
|
|
941
1000
|
};
|
|
942
1001
|
export type CamtImportResultDto = {
|
|
943
1002
|
/**
|
|
@@ -1781,6 +1840,7 @@ export type CreateBillingDocumentRequest = {
|
|
|
1781
1840
|
* Your own key for this document, unique in the workspace: sending it again returns the stored one.
|
|
1782
1841
|
*/
|
|
1783
1842
|
externalId?: null | string;
|
|
1843
|
+
content?: null | ReceiptContent;
|
|
1784
1844
|
};
|
|
1785
1845
|
export type CreateExportRequest = {
|
|
1786
1846
|
format: 'csv' | 'xlsx';
|
|
@@ -2790,7 +2850,7 @@ export type InvoiceLine = {
|
|
|
2790
2850
|
*/
|
|
2791
2851
|
unitPriceCents: number;
|
|
2792
2852
|
/**
|
|
2793
|
-
* VAT rate in percent
|
|
2853
|
+
* VAT rate in percent, from 0 to 100 with at most two decimals; usually 20, 13, 10 or 0. Ignored for a Kleinunternehmer, who charges none.
|
|
2794
2854
|
*/
|
|
2795
2855
|
vatRate?: number;
|
|
2796
2856
|
/**
|
|
@@ -4127,6 +4187,96 @@ export type PublicSourceCapabilities = {
|
|
|
4127
4187
|
documents: boolean;
|
|
4128
4188
|
extracts: boolean;
|
|
4129
4189
|
};
|
|
4190
|
+
export type ReceiptContent = {
|
|
4191
|
+
/**
|
|
4192
|
+
* Who issues the document: seller, supplier.
|
|
4193
|
+
*/
|
|
4194
|
+
issuer: ReceiptParty;
|
|
4195
|
+
/**
|
|
4196
|
+
* Who it is addressed to: buyer, customer.
|
|
4197
|
+
*/
|
|
4198
|
+
recipient: ReceiptParty;
|
|
4199
|
+
/**
|
|
4200
|
+
* Invoice number as printed.
|
|
4201
|
+
*/
|
|
4202
|
+
number?: null | string;
|
|
4203
|
+
/**
|
|
4204
|
+
* Invoice date.
|
|
4205
|
+
*/
|
|
4206
|
+
issueDate?: null | string;
|
|
4207
|
+
/**
|
|
4208
|
+
* Due date, only when printed or clear from the payment terms and the date.
|
|
4209
|
+
*/
|
|
4210
|
+
dueDate?: null | string;
|
|
4211
|
+
/**
|
|
4212
|
+
* ISO currency code, e.g. EUR.
|
|
4213
|
+
*/
|
|
4214
|
+
currency: string;
|
|
4215
|
+
/**
|
|
4216
|
+
* Net total in cents.
|
|
4217
|
+
*/
|
|
4218
|
+
netCents?: null | number;
|
|
4219
|
+
/**
|
|
4220
|
+
* VAT total in cents.
|
|
4221
|
+
*/
|
|
4222
|
+
vatCents?: null | number;
|
|
4223
|
+
/**
|
|
4224
|
+
* Gross total in cents: the amount to pay.
|
|
4225
|
+
*/
|
|
4226
|
+
grossCents?: null | number;
|
|
4227
|
+
/**
|
|
4228
|
+
* One line per VAT rate, none when the document names no VAT.
|
|
4229
|
+
*/
|
|
4230
|
+
vatLines: Array<ReceiptVatLine>;
|
|
4231
|
+
/**
|
|
4232
|
+
* What was sold, in one short line, e.g. Mobilfunk Oktober 2026.
|
|
4233
|
+
*/
|
|
4234
|
+
description?: null | string;
|
|
4235
|
+
/**
|
|
4236
|
+
* True when the document states reverse charge (the recipient owes the VAT).
|
|
4237
|
+
*/
|
|
4238
|
+
reverseCharge?: null | boolean;
|
|
4239
|
+
/**
|
|
4240
|
+
* How it was paid, only when the document shows it was paid already: bar, Bankomat, Visa …1234.
|
|
4241
|
+
*/
|
|
4242
|
+
paidWith?: null | string;
|
|
4243
|
+
};
|
|
4244
|
+
export type ReceiptParty = {
|
|
4245
|
+
/**
|
|
4246
|
+
* Name or company.
|
|
4247
|
+
*/
|
|
4248
|
+
name?: null | string;
|
|
4249
|
+
/**
|
|
4250
|
+
* UID number (VAT ID), e.g. ATU12345678.
|
|
4251
|
+
*/
|
|
4252
|
+
uid?: null | string;
|
|
4253
|
+
/**
|
|
4254
|
+
* IBAN of the bank account.
|
|
4255
|
+
*/
|
|
4256
|
+
iban?: null | string;
|
|
4257
|
+
/**
|
|
4258
|
+
* Firmenbuchnummer, e.g. FN 123456 a.
|
|
4259
|
+
*/
|
|
4260
|
+
fnr?: null | string;
|
|
4261
|
+
/**
|
|
4262
|
+
* Address in one line.
|
|
4263
|
+
*/
|
|
4264
|
+
address?: null | string;
|
|
4265
|
+
};
|
|
4266
|
+
export type ReceiptVatLine = {
|
|
4267
|
+
/**
|
|
4268
|
+
* VAT rate in percent as printed, from 0 to 100.
|
|
4269
|
+
*/
|
|
4270
|
+
rate: number;
|
|
4271
|
+
/**
|
|
4272
|
+
* Net amount at this rate in cents.
|
|
4273
|
+
*/
|
|
4274
|
+
netCents: number;
|
|
4275
|
+
/**
|
|
4276
|
+
* VAT at this rate in cents.
|
|
4277
|
+
*/
|
|
4278
|
+
vatCents: number;
|
|
4279
|
+
};
|
|
4130
4280
|
export type RecordChange = {
|
|
4131
4281
|
/**
|
|
4132
4282
|
* Source record change event identity; distinct from an entity change ID.
|
|
@@ -4573,6 +4723,7 @@ export type UpdateBillingDocumentBody = {
|
|
|
4573
4723
|
* true archives, false takes it back out of the archive.
|
|
4574
4724
|
*/
|
|
4575
4725
|
archived?: null | boolean;
|
|
4726
|
+
content?: null | ReceiptContent;
|
|
4576
4727
|
};
|
|
4577
4728
|
export type UpdateBillingPartnerBody = {
|
|
4578
4729
|
/**
|
|
@@ -4580,6 +4731,17 @@ export type UpdateBillingPartnerBody = {
|
|
|
4580
4731
|
*/
|
|
4581
4732
|
archived: boolean;
|
|
4582
4733
|
};
|
|
4734
|
+
export type UpdateBillingPartnerDefaultsBody = {
|
|
4735
|
+
/**
|
|
4736
|
+
* Rechnungs-E-Mail; empty removes it.
|
|
4737
|
+
*/
|
|
4738
|
+
email?: null | string;
|
|
4739
|
+
address?: null | InvoiceCustomer;
|
|
4740
|
+
/**
|
|
4741
|
+
* Zahlungsziel in days, 0 to 365; empty takes the Absender's.
|
|
4742
|
+
*/
|
|
4743
|
+
paymentDays?: null | number;
|
|
4744
|
+
};
|
|
4583
4745
|
export type UpdateBillingSettingsRequest = {
|
|
4584
4746
|
sender?: null | SenderSettingsBody;
|
|
4585
4747
|
numbers?: null | NumbersSettingsBody;
|
|
@@ -9374,6 +9536,112 @@ export type UpdateBillingPartnerResponses = {
|
|
|
9374
9536
|
200: BillingPartnerDto;
|
|
9375
9537
|
};
|
|
9376
9538
|
export type UpdateBillingPartnerResponse = UpdateBillingPartnerResponses[keyof UpdateBillingPartnerResponses];
|
|
9539
|
+
export type GetBillingPartnerDefaultsData = {
|
|
9540
|
+
body?: never;
|
|
9541
|
+
path: {
|
|
9542
|
+
/**
|
|
9543
|
+
* The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
|
|
9544
|
+
*/
|
|
9545
|
+
id: string;
|
|
9546
|
+
};
|
|
9547
|
+
query?: never;
|
|
9548
|
+
url: '/api/v2/me/billing/partners/{id}/defaults';
|
|
9549
|
+
};
|
|
9550
|
+
export type GetBillingPartnerDefaultsErrors = {
|
|
9551
|
+
/**
|
|
9552
|
+
* Malformed request, or a cursor from another request.
|
|
9553
|
+
*/
|
|
9554
|
+
400: Problem;
|
|
9555
|
+
/**
|
|
9556
|
+
* No valid API key or session.
|
|
9557
|
+
*/
|
|
9558
|
+
401: Problem;
|
|
9559
|
+
/**
|
|
9560
|
+
* This operation needs a dashboard session.
|
|
9561
|
+
*/
|
|
9562
|
+
403: Problem;
|
|
9563
|
+
/**
|
|
9564
|
+
* Not found, or it belongs to another workspace.
|
|
9565
|
+
*/
|
|
9566
|
+
404: Problem;
|
|
9567
|
+
/**
|
|
9568
|
+
* Conflict with the current state; `code` says which.
|
|
9569
|
+
*/
|
|
9570
|
+
409: Problem;
|
|
9571
|
+
/**
|
|
9572
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
9573
|
+
*/
|
|
9574
|
+
422: Problem;
|
|
9575
|
+
/**
|
|
9576
|
+
* Too many requests; retry after `Retry-After`.
|
|
9577
|
+
*/
|
|
9578
|
+
429: Problem;
|
|
9579
|
+
/**
|
|
9580
|
+
* Internal error; quote `requestId` to support.
|
|
9581
|
+
*/
|
|
9582
|
+
500: Problem;
|
|
9583
|
+
};
|
|
9584
|
+
export type GetBillingPartnerDefaultsError = GetBillingPartnerDefaultsErrors[keyof GetBillingPartnerDefaultsErrors];
|
|
9585
|
+
export type GetBillingPartnerDefaultsResponses = {
|
|
9586
|
+
/**
|
|
9587
|
+
* OK
|
|
9588
|
+
*/
|
|
9589
|
+
200: BillingPartnerDefaultsDto;
|
|
9590
|
+
};
|
|
9591
|
+
export type GetBillingPartnerDefaultsResponse = GetBillingPartnerDefaultsResponses[keyof GetBillingPartnerDefaultsResponses];
|
|
9592
|
+
export type UpdateBillingPartnerDefaultsData = {
|
|
9593
|
+
body: UpdateBillingPartnerDefaultsBody;
|
|
9594
|
+
path: {
|
|
9595
|
+
/**
|
|
9596
|
+
* A company's Firmenakte-ID or an own entry's ID.
|
|
9597
|
+
*/
|
|
9598
|
+
id: string;
|
|
9599
|
+
};
|
|
9600
|
+
query?: never;
|
|
9601
|
+
url: '/api/v2/me/billing/partners/{id}/defaults';
|
|
9602
|
+
};
|
|
9603
|
+
export type UpdateBillingPartnerDefaultsErrors = {
|
|
9604
|
+
/**
|
|
9605
|
+
* Malformed request, or a cursor from another request.
|
|
9606
|
+
*/
|
|
9607
|
+
400: Problem;
|
|
9608
|
+
/**
|
|
9609
|
+
* No valid API key or session.
|
|
9610
|
+
*/
|
|
9611
|
+
401: Problem;
|
|
9612
|
+
/**
|
|
9613
|
+
* This operation needs a dashboard session.
|
|
9614
|
+
*/
|
|
9615
|
+
403: Problem;
|
|
9616
|
+
/**
|
|
9617
|
+
* Not found, or it belongs to another workspace.
|
|
9618
|
+
*/
|
|
9619
|
+
404: Problem;
|
|
9620
|
+
/**
|
|
9621
|
+
* Conflict with the current state; `code` says which.
|
|
9622
|
+
*/
|
|
9623
|
+
409: Problem;
|
|
9624
|
+
/**
|
|
9625
|
+
* Validation failed; `errors[]` names each parameter or JSON pointer.
|
|
9626
|
+
*/
|
|
9627
|
+
422: Problem;
|
|
9628
|
+
/**
|
|
9629
|
+
* Too many requests; retry after `Retry-After`.
|
|
9630
|
+
*/
|
|
9631
|
+
429: Problem;
|
|
9632
|
+
/**
|
|
9633
|
+
* Internal error; quote `requestId` to support.
|
|
9634
|
+
*/
|
|
9635
|
+
500: Problem;
|
|
9636
|
+
};
|
|
9637
|
+
export type UpdateBillingPartnerDefaultsError = UpdateBillingPartnerDefaultsErrors[keyof UpdateBillingPartnerDefaultsErrors];
|
|
9638
|
+
export type UpdateBillingPartnerDefaultsResponses = {
|
|
9639
|
+
/**
|
|
9640
|
+
* OK
|
|
9641
|
+
*/
|
|
9642
|
+
200: BillingPartnerDefaultsDto;
|
|
9643
|
+
};
|
|
9644
|
+
export type UpdateBillingPartnerDefaultsResponse = UpdateBillingPartnerDefaultsResponses[keyof UpdateBillingPartnerDefaultsResponses];
|
|
9377
9645
|
export type GetBillingSummaryData = {
|
|
9378
9646
|
body?: never;
|
|
9379
9647
|
path?: never;
|