@firmenakte/api-client 2.41.0 → 2.43.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 +77 -11
- package/v2/generated/sdk.gen.d.ts.map +1 -1
- package/v2/generated/sdk.gen.js +165 -17
- package/v2/generated/types.gen.d.ts +997 -91
- package/v2/generated/types.gen.d.ts.map +1 -1
package/v2/generated/sdk.gen.js
CHANGED
|
@@ -1040,6 +1040,62 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1040
1040
|
...options
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
|
+
/**
|
|
1044
|
+
* List billing partners
|
|
1045
|
+
*
|
|
1046
|
+
* Kunden und Lieferanten mit offenen Beträgen und Umsatz im laufenden Jahr sehen. The Geschäftspartner of the Buchhaltung with Rolle, Kunden- and Lieferantennummer, what each still owes or is owed, the year's revenue and expenses, and whether one is archived.
|
|
1047
|
+
*/
|
|
1048
|
+
listBillingPartners(options) {
|
|
1049
|
+
return (options?.client ?? this.client).get({
|
|
1050
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1051
|
+
url: '/api/v2/me/billing/partners',
|
|
1052
|
+
...options
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Add billing partner
|
|
1057
|
+
*
|
|
1058
|
+
* 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: Rolle and the next Kunden- or Lieferantennummer. A supplier who becomes a customer is Kunde und Lieferant; an archived partner comes back.
|
|
1059
|
+
*/
|
|
1060
|
+
addBillingPartner(options) {
|
|
1061
|
+
return (options.client ?? this.client).post({
|
|
1062
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1063
|
+
url: '/api/v2/me/billing/partners',
|
|
1064
|
+
...options,
|
|
1065
|
+
headers: {
|
|
1066
|
+
'Content-Type': 'application/json',
|
|
1067
|
+
...options.headers
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Delete billing partner
|
|
1073
|
+
*
|
|
1074
|
+
* Einen Kunden oder Lieferanten ohne Rechnungen und Belege entfernen. Take a Geschäftspartner without invoices or receipts out of the Buchhaltung with his Rolle and numbers. One with invoices or receipts is refused: archive him instead.
|
|
1075
|
+
*/
|
|
1076
|
+
deleteBillingPartner(options) {
|
|
1077
|
+
return (options.client ?? this.client).delete({
|
|
1078
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1079
|
+
url: '/api/v2/me/billing/partners/{id}',
|
|
1080
|
+
...options
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Archive billing partner
|
|
1085
|
+
*
|
|
1086
|
+
* Einen Kunden oder Lieferanten archivieren oder zurückholen. Archive a Geschäftspartner (he leaves Kunden, Lieferanten and the invoice editor's search; his invoices and receipts stay) or take him back.
|
|
1087
|
+
*/
|
|
1088
|
+
updateBillingPartner(options) {
|
|
1089
|
+
return (options.client ?? this.client).patch({
|
|
1090
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1091
|
+
url: '/api/v2/me/billing/partners/{id}',
|
|
1092
|
+
...options,
|
|
1093
|
+
headers: {
|
|
1094
|
+
'Content-Type': 'application/json',
|
|
1095
|
+
...options.headers
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1043
1099
|
/**
|
|
1044
1100
|
* Get billing summary
|
|
1045
1101
|
*
|
|
@@ -1077,26 +1133,26 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1077
1133
|
});
|
|
1078
1134
|
}
|
|
1079
1135
|
/**
|
|
1080
|
-
*
|
|
1136
|
+
* List articles
|
|
1081
1137
|
*
|
|
1082
|
-
*
|
|
1138
|
+
* Beim Schreiben einer Position einen passenden Artikel mit Preis und Steuersatz finden. The workspace's Artikel whose name or Artikelnummer contains q, those starting with it first, with unit, net price and VAT rate. A position copies the one chosen (lines[].articleId).
|
|
1083
1139
|
*/
|
|
1084
|
-
|
|
1140
|
+
listArticles(options) {
|
|
1085
1141
|
return (options?.client ?? this.client).get({
|
|
1086
1142
|
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1087
|
-
url: '/api/v2/me/billing/
|
|
1143
|
+
url: '/api/v2/me/billing/articles',
|
|
1088
1144
|
...options
|
|
1089
1145
|
});
|
|
1090
1146
|
}
|
|
1091
1147
|
/**
|
|
1092
|
-
*
|
|
1148
|
+
* Set article
|
|
1093
1149
|
*
|
|
1094
|
-
*
|
|
1150
|
+
* Eine Leistung oder ein Produkt mit Preis und Steuersatz anlegen oder ändern, um es auf Rechnungen zu verwenden. Create an Artikel (name, net price in cents, VAT rate, unit) or change one by id. Invoices copy an Artikel into their positions, so a change never alters an invoice.
|
|
1095
1151
|
*/
|
|
1096
|
-
|
|
1097
|
-
return (options.client ?? this.client).
|
|
1152
|
+
setArticle(options) {
|
|
1153
|
+
return (options.client ?? this.client).post({
|
|
1098
1154
|
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1099
|
-
url: '/api/v2/me/billing/
|
|
1155
|
+
url: '/api/v2/me/billing/articles',
|
|
1100
1156
|
...options,
|
|
1101
1157
|
headers: {
|
|
1102
1158
|
'Content-Type': 'application/json',
|
|
@@ -1105,14 +1161,42 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1105
1161
|
});
|
|
1106
1162
|
}
|
|
1107
1163
|
/**
|
|
1108
|
-
*
|
|
1164
|
+
* Check invoice UID
|
|
1109
1165
|
*
|
|
1110
|
-
*
|
|
1166
|
+
* Die UID eines Kunden vor dem Ausstellen bei VIES prüfen lassen. Checks the UID of a draft's customer (invoiceId, uid as saved) at VIES now: valid, invalid (*Issue invoice* is refused), otherCompany (valid, but another company's; it stays on this invoice), unavailable or rateLimited (blocks nothing). Free up to 50 a day per workspace, then rateLimited; other UIDs go through *Check VAT number*. The answer is stored publicly with the UID.
|
|
1111
1167
|
*/
|
|
1112
|
-
|
|
1168
|
+
checkInvoiceUid(options) {
|
|
1113
1169
|
return (options.client ?? this.client).post({
|
|
1114
1170
|
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1115
|
-
url: '/api/v2/me/billing/
|
|
1171
|
+
url: '/api/v2/me/billing/invoices/uid-checks',
|
|
1172
|
+
...options,
|
|
1173
|
+
headers: {
|
|
1174
|
+
'Content-Type': 'application/json',
|
|
1175
|
+
...options.headers
|
|
1176
|
+
}
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
* Get billing setup
|
|
1181
|
+
*
|
|
1182
|
+
* 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 (released companies and the caller's Rechnungsdaten ohne Firma) with their Rechnungsdaten and next number, the Artikel, the fields of the Geschäftspartner used for Rolle and Kunden- and Lieferantennummer, and the system lists Geschäftspartner, Artikel and Ausgang. Read it before *Create invoice*.
|
|
1183
|
+
*/
|
|
1184
|
+
getBillingSetup(options) {
|
|
1185
|
+
return (options?.client ?? this.client).get({
|
|
1186
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1187
|
+
url: '/api/v2/me/billing/settings/invoices',
|
|
1188
|
+
...options
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
* Update billing settings
|
|
1193
|
+
*
|
|
1194
|
+
* IBAN, Zahlungsziel, Nummernkreis, Fußzeile oder Kleinunternehmer-Regel für die eigenen Rechnungen festlegen. Change one Absender's Rechnungsdaten (IBAN, BIC, UID, payment days, number prefix, next number which only rises, footer, Kleinunternehmer) or which partner fields are Kunden- and Lieferantennummer and give payment days or IBAN. Issued invoices keep what they printed.
|
|
1195
|
+
*/
|
|
1196
|
+
updateBillingSettings(options) {
|
|
1197
|
+
return (options.client ?? this.client).patch({
|
|
1198
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1199
|
+
url: '/api/v2/me/billing/settings/invoices',
|
|
1116
1200
|
...options,
|
|
1117
1201
|
headers: {
|
|
1118
1202
|
'Content-Type': 'application/json',
|
|
@@ -1123,7 +1207,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1123
1207
|
/**
|
|
1124
1208
|
* Delete article
|
|
1125
1209
|
*
|
|
1126
|
-
* Einen Artikel entfernen, der nicht mehr verrechnet wird. Delete an Artikel
|
|
1210
|
+
* Einen Artikel entfernen, der nicht mehr verrechnet wird. Delete an Artikel no invoice uses; one on an invoice is refused, archive it with *Set article* instead.
|
|
1127
1211
|
*/
|
|
1128
1212
|
deleteArticle(options) {
|
|
1129
1213
|
return (options.client ?? this.client).delete({
|
|
@@ -1280,6 +1364,70 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1280
1364
|
...options
|
|
1281
1365
|
});
|
|
1282
1366
|
}
|
|
1367
|
+
/**
|
|
1368
|
+
* Delete bank connection
|
|
1369
|
+
*
|
|
1370
|
+
* Stripe von einem Konto trennen; die Buchungen bleiben. Disconnect a Konto: its stored key is deleted and an OAuth access is ended at Stripe. Its bookings stay, and statements or bookings by hand still go in.
|
|
1371
|
+
*/
|
|
1372
|
+
deleteBankConnection(options) {
|
|
1373
|
+
return (options.client ?? this.client).delete({
|
|
1374
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1375
|
+
url: '/api/v2/me/billing/accounts/{id}/connection',
|
|
1376
|
+
...options
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Get bank connection
|
|
1381
|
+
*
|
|
1382
|
+
* Nachsehen, ob ein Konto mit Stripe verbunden ist, wann zuletzt abgerufen wurde und was fehlt. A Konto's provider connection (Stripe, read only): status none, connected or error, how it was connected, the payout Konto, the last pull and, after a failure, its code and the next step. The credential is never part of it.
|
|
1383
|
+
*/
|
|
1384
|
+
getBankConnection(options) {
|
|
1385
|
+
return (options.client ?? this.client).get({
|
|
1386
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1387
|
+
url: '/api/v2/me/billing/accounts/{id}/connection',
|
|
1388
|
+
...options
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Update bank connection
|
|
1393
|
+
*
|
|
1394
|
+
* Festlegen, auf welches Bankkonto die Stripe-Auszahlungen gehen. Set the own Konto a connected account's payouts go to (an empty string removes it). Open payouts become transfers there, and its statement lines are paired with them.
|
|
1395
|
+
*/
|
|
1396
|
+
updateBankConnection(options) {
|
|
1397
|
+
return (options.client ?? this.client).patch({
|
|
1398
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1399
|
+
url: '/api/v2/me/billing/accounts/{id}/connection',
|
|
1400
|
+
...options,
|
|
1401
|
+
headers: {
|
|
1402
|
+
'Content-Type': 'application/json',
|
|
1403
|
+
...options.headers
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Sync bank connection
|
|
1409
|
+
*
|
|
1410
|
+
* 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 (Stripe-Gebühr), 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.
|
|
1411
|
+
*/
|
|
1412
|
+
runBankSync(options) {
|
|
1413
|
+
return (options.client ?? this.client).post({
|
|
1414
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1415
|
+
url: '/api/v2/me/billing/accounts/{id}/connection/sync',
|
|
1416
|
+
...options
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
/**
|
|
1420
|
+
* List bank match candidates
|
|
1421
|
+
*
|
|
1422
|
+
* Rechnungen und Belege finden, die eine Buchung bezahlen kann, mit Begründung. The open invoices and receipts a booking can pay, best first, each with reasons (amount, number, numberPart, partner, iban, date), the text of the reference naming it and what a part payment leaves open. With q only those whose number, partner or amount (59,90) fits. Assign one with *Assign bank transaction*.
|
|
1423
|
+
*/
|
|
1424
|
+
listBankMatchCandidates(options) {
|
|
1425
|
+
return (options.client ?? this.client).get({
|
|
1426
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1427
|
+
url: '/api/v2/me/billing/transactions/{id}/candidates',
|
|
1428
|
+
...options
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1283
1431
|
/**
|
|
1284
1432
|
* List bank accounts
|
|
1285
1433
|
*
|
|
@@ -1351,7 +1499,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1351
1499
|
/**
|
|
1352
1500
|
* Import bank transactions
|
|
1353
1501
|
*
|
|
1354
|
-
* Buchungen aus einer Bank- oder Zahlungsanbindung in ein Konto übernehmen. Post up to 500 bookings of one Konto from any source (a bank sync, a payment provider): externalId (unique per Konto, a repeat is skipped), bookingDate, valueDate, amount in cents with sign and currency, counterparty {name, iban}, reference, endToEndId, kind (charge, refund, fee, payout), parentId (a fee's payment) and transferTo (an own Konto: a transfer). Date, amount and counterparty stay as sent. New bookings are matched right away.
|
|
1502
|
+
* Buchungen aus einer Bank- oder Zahlungsanbindung in ein Konto übernehmen. Post up to 500 bookings of one Konto from any source (a bank sync, a payment provider): externalId (unique per Konto, a repeat is skipped), bookingDate, valueDate, amount in cents with sign and currency, counterparty {name, iban}, reference, endToEndId, kind (charge, refund, fee, payout, dispute), parentId (a fee's payment) and transferTo (an own Konto: a transfer). Date, amount and counterparty stay as sent. New bookings are matched right away.
|
|
1355
1503
|
*/
|
|
1356
1504
|
addBankTransactions(options) {
|
|
1357
1505
|
return (options.client ?? this.client).post({
|
|
@@ -1451,7 +1599,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1451
1599
|
/**
|
|
1452
1600
|
* Undo bank match
|
|
1453
1601
|
*
|
|
1454
|
-
*
|
|
1602
|
+
* Einen übernommenen Treffer wieder zum Vorschlag machen. Turn a hit of a rule or the AI that was taken over, automatically or by a person, back into a proposal. An assignment by hand is removed with *Remove bank match*.
|
|
1455
1603
|
*/
|
|
1456
1604
|
cancelBankAutoMatch(options) {
|
|
1457
1605
|
return (options.client ?? this.client).post({
|
|
@@ -1475,7 +1623,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1475
1623
|
/**
|
|
1476
1624
|
* Match bank transactions
|
|
1477
1625
|
*
|
|
1478
|
-
* Offene Buchungen mit Rechnungen und Belegen abgleichen lassen. Run the Abgleich over open bookings
|
|
1626
|
+
* Offene Buchungen mit Rechnungen und Belegen abgleichen lassen. Run the Abgleich over open bookings again; it also runs by itself after every import, booking by hand and new invoice or receipt. Sure rules first (amount and number in the reference, a known partner's IBAN, transfers between own IBANs), then the AI if it is on (sicher or eventuell only), then a weaker proposal by rule (amount or number together with the name).
|
|
1479
1627
|
*/
|
|
1480
1628
|
runBankMatching(options) {
|
|
1481
1629
|
return (options.client ?? this.client).post({
|