@firmenakte/api-client 2.40.0 → 2.41.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.
@@ -47,7 +47,7 @@ class FirmenakteApi extends HeyApiClient {
47
47
  /**
48
48
  * Get stored result
49
49
  *
50
- * Read an unchanged stored result or a specific JSON Pointer section without repeating the source query. Arrays are paginated; large objects expose field paths. Follow nextOffset or choose a field path. References are reader-scoped and expire after 24 hours. This is the stored snapshot, not live data.
50
+ * Ein früheres Ergebnis weiterlesen, ohne die Abfrage zu wiederholen. Read an unchanged stored result or a specific JSON Pointer section without repeating the source query. Arrays are paginated; large objects expose field paths. Follow nextOffset or choose a field path. References are reader-scoped and expire after 24 hours. This is the stored snapshot, not live data.
51
51
  */
52
52
  readResult(options) {
53
53
  return (options.client ?? this.client).get({
@@ -183,7 +183,7 @@ class FirmenakteApi extends HeyApiClient {
183
183
  /**
184
184
  * Preview rule for a new list
185
185
  *
186
- * Validate a rule before creating a list. Returns the same price, next run, match count and bounded sample as *Preview list rule*, without requiring or creating a list. Does not save, execute or charge.
186
+ * Vor dem Erstellen einer Liste prüfen, wie viele Firmen eine Regel finden würde und was sie kostet. Validate a rule before creating a list. Returns the same price, next run, match count and bounded sample as *Preview list rule*, without requiring or creating a list. Does not save, execute or charge.
187
187
  */
188
188
  previewNewListRule(options) {
189
189
  return (options.client ?? this.client).post({
@@ -199,7 +199,7 @@ class FirmenakteApi extends HeyApiClient {
199
199
  /**
200
200
  * Preview list rule
201
201
  *
202
- * Validate a typed rule for an existing list identified by id, before saving it to that list. Creating a new list with rules uses *Create list* and does not require this existing-list preview. Query rules return credits per execution, nextRunAt, matches (how many companies a run would newly add now, counted up to 10000) and at most five of them as a sample; neither is a reserved selection. Notification rules return zero credits, no matches and no sample. Does not save or execute.
202
+ * Vor dem Speichern prüfen, wie viele Firmen eine Regel einer Liste finden würde und was sie kostet. Validate a typed rule for an existing list identified by id, before saving it to that list. Creating a new list with rules uses *Create list* and does not require this existing-list preview. Query rules return credits per execution, nextRunAt, matches (how many companies a run would newly add now, counted up to 10000) and at most five of them as a sample; neither is a reserved selection. Notification rules return zero credits, no matches and no sample. Does not save or execute.
203
203
  */
204
204
  previewRule(options) {
205
205
  return (options.client ?? this.client).post({
@@ -215,7 +215,7 @@ class FirmenakteApi extends HeyApiClient {
215
215
  /**
216
216
  * List list rules
217
217
  *
218
- * Read cursor-paged rules with typed rule configuration, revision, credits per execution and latest query run. Filter operationId to applyListQuery, notifyListEntries or sendLetter; keep this filter unchanged when paging.
218
+ * Die Regeln einer Liste ansehen: automatische Aktualisierungen, Benachrichtigungen und Briefe. Read cursor-paged rules with typed rule configuration, revision, credits per execution and latest query run. Filter operationId to applyListQuery, notifyListEntries or sendLetter; keep this filter unchanged when paging.
219
219
  */
220
220
  listRules(options) {
221
221
  return (options.client ?? this.client).get({
@@ -227,7 +227,7 @@ class FirmenakteApi extends HeyApiClient {
227
227
  /**
228
228
  * Create list rule
229
229
  *
230
- * Save one typed rule: applyListQuery for company queries or notifyListEntries for one inApp/email channel; sendLetter rules start with a Brief send and save here only switched off. runNow optionally starts an enabled query at the quoted list-update price; recurrence is controlled separately by its trigger. Notification channels are unique per list. Creation is free; scheduled and manual executions charge the server list-update price.
230
+ * Eine Regel für eine Liste einrichten: neue passende Firmen automatisch aufnehmen oder bei neuen Einträgen in der App oder per E-Mail benachrichtigen. Save one typed rule: applyListQuery for company queries or notifyListEntries for one inApp/email channel; sendLetter rules start with a Brief send and save here only switched off. runNow optionally starts an enabled query at the quoted list-update price; recurrence is controlled separately by its trigger. Notification channels are unique per list. Creation is free; scheduled and manual executions charge the server list-update price.
231
231
  */
232
232
  createRule(options) {
233
233
  return (options.client ?? this.client).post({
@@ -243,7 +243,7 @@ class FirmenakteApi extends HeyApiClient {
243
243
  /**
244
244
  * Delete list rule
245
245
  *
246
- * Delete one rule while keeping entries, values and historical runs. Copy its revision string from *List list rules* unchanged. Pause instead with *Update list rule*.
246
+ * Eine Regel einer Liste löschen, etwa eine automatische Aktualisierung oder Benachrichtigung. Delete one rule while keeping entries, values and historical runs. Copy its revision string from *List list rules* unchanged. Pause instead with *Update list rule*.
247
247
  */
248
248
  deleteRule(options) {
249
249
  return (options.client ?? this.client).delete({
@@ -255,7 +255,7 @@ class FirmenakteApi extends HeyApiClient {
255
255
  /**
256
256
  * Update list rule
257
257
  *
258
- * Replace a rule configuration using its unchanged revision from *List list rules*. Function and notification channel stay fixed. enabled:false pauses it; entries and values remain. Re-enabling notifications starts at the current event horizon. Changes fence older executions.
258
+ * Eine Regel einer Liste ändern oder pausieren. Replace a rule configuration using its unchanged revision from *List list rules*. Function and notification channel stay fixed. enabled:false pauses it; entries and values remain. Re-enabling notifications starts at the current event horizon. Changes fence older executions.
259
259
  */
260
260
  updateRule(options) {
261
261
  return (options.client ?? this.client).patch({
@@ -271,7 +271,7 @@ class FirmenakteApi extends HeyApiClient {
271
271
  /**
272
272
  * Run list rule
273
273
  *
274
- * Run an enabled applyListQuery rule using its unchanged revision from *List list rules*. dryRun previews; execution charges the list-update price, adds matches and preserves entries/exclusions. Notification rules run only from events. Read status with *List rule runs* and additions with *List list entries* with runId. Additions respect list-wide exclusions and never remove members.
274
+ * Eine Liste jetzt aktualisieren, also neue passende Firmen aufnehmen. Run an enabled applyListQuery rule using its unchanged revision from *List list rules*. dryRun previews; execution charges the list-update price, adds matches and preserves entries/exclusions. Notification rules run only from events. Read status with *List rule runs* and additions with *List list entries* with runId. Additions respect list-wide exclusions and never remove members.
275
275
  */
276
276
  runRule(options) {
277
277
  return (options.client ?? this.client).post({
@@ -299,7 +299,7 @@ class FirmenakteApi extends HeyApiClient {
299
299
  /**
300
300
  * Create list
301
301
  *
302
- * Create a list atomically with optional items (up to 500) and rules (up to 100). Each rule contains its typed rule configuration and runNow flag. Use applyListQuery for reusable queries instead of enumerating matches. At most one enabled query may runNow; trigger manual is one-time, trigger schedule adds independent recurrence. Notification rules use notifyListEntries with one channel each.
302
+ * Eine neue Liste anlegen, etwa eine Merkliste, Zielgruppe oder Leadliste, auch mit Firmen oder einer Regel, die sie laufend füllt. Create a list atomically with optional items (up to 500) and rules (up to 100). Each rule contains its typed rule configuration and runNow flag. Use applyListQuery for reusable queries instead of enumerating matches. At most one enabled query may runNow; trigger manual is one-time, trigger schedule adds independent recurrence. Notification rules use notifyListEntries with one channel each.
303
303
  */
304
304
  createList(options) {
305
305
  return (options.client ?? this.client).post({
@@ -327,7 +327,7 @@ class FirmenakteApi extends HeyApiClient {
327
327
  /**
328
328
  * Get list
329
329
  *
330
- * Read list metadata, statistics, latest run and rev_ revision for *Update list*. Independent rules and their revision strings: *List list rules*.
330
+ * Eine Liste mit Anzahl der Einträge und letzter Aktualisierung lesen. Read list metadata, statistics, latest run and rev_ revision for *Update list*. Independent rules and their revision strings: *List list rules*.
331
331
  */
332
332
  getList(options) {
333
333
  return (options.client ?? this.client).get({
@@ -339,7 +339,7 @@ class FirmenakteApi extends HeyApiClient {
339
339
  /**
340
340
  * Update list
341
341
  *
342
- * Rename a list or change its color. Add independent rules with *Create list rule*; edit or pause with *Update list rule*. Optional If-Match checks the revision and returns 412 revision_conflict without saving if it changed.
342
+ * Eine Liste umbenennen oder ihre Farbe ändern. Rename a list or change its color. Add independent rules with *Create list rule*; edit or pause with *Update list rule*. Optional If-Match checks the revision and returns 412 revision_conflict without saving if it changed.
343
343
  */
344
344
  updateList(options) {
345
345
  return (options.client ?? this.client).patch({
@@ -947,7 +947,7 @@ class FirmenakteApi extends HeyApiClient {
947
947
  /**
948
948
  * Send letter
949
949
  *
950
- * Posts the Brief to all its recipients through Pingen; each ongoing list then keeps sending it to every new entry, within its budget. Recipients without a deliverable address, deleted ones, those that already received it and, for Werbung, Robinson entries are skipped at no cost. Each letter is paid by the workspace: weekly credits up to the letters' share, the rest from topped-up credits; not enough refuses the whole send. dryRun returns the counts and the price only.
950
+ * Posts the Brief to all its recipients through Pingen; each ongoing list then keeps sending it to every new entry, within its budget. Recipients without a deliverable address, deleted ones, those that already received it (unless resendReceived is true) and, for Werbung, Robinson entries are skipped at no cost. Each letter is paid by the workspace: weekly credits up to the letters' share, the rest from topped-up credits; not enough refuses the whole send. dryRun returns the counts and the price only.
951
951
  */
952
952
  createLetterSendings(options) {
953
953
  return (options.client ?? this.client).post({
@@ -960,6 +960,578 @@ class FirmenakteApi extends HeyApiClient {
960
960
  }
961
961
  });
962
962
  }
963
+ /**
964
+ * List billing documents
965
+ *
966
+ * The workspace's documents, newest first.
967
+ */
968
+ listBillingDocuments(options) {
969
+ return (options?.client ?? this.client).get({
970
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
971
+ url: '/api/v2/me/billing/documents',
972
+ ...options
973
+ });
974
+ }
975
+ /**
976
+ * Upload billing document
977
+ *
978
+ * Stores a receipt or an invoice from outside and queues it for reading: one PDF or image, or several photos of one receipt that become one PDF. Reading costs the read price once per file; without enough credits the document is stored and marked unread. Issued by one of the workspace's own Absender it goes to the Ausgang, all else to the Eingang; its Geschäftspartner is matched or created. The same file or externalId again returns the stored document with duplicate true.
979
+ */
980
+ createBillingDocument(options) {
981
+ return (options.client ?? this.client).post({
982
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
983
+ url: '/api/v2/me/billing/documents',
984
+ ...options,
985
+ headers: {
986
+ 'Content-Type': 'application/json',
987
+ ...options.headers
988
+ }
989
+ });
990
+ }
991
+ /**
992
+ * Delete billing document
993
+ *
994
+ * Deletes the document and its file. Once its period was exported it can only be archived.
995
+ */
996
+ deleteBillingDocument(options) {
997
+ return (options.client ?? this.client).delete({
998
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
999
+ url: '/api/v2/me/billing/documents/{id}',
1000
+ ...options
1001
+ });
1002
+ }
1003
+ /**
1004
+ * Get billing document
1005
+ *
1006
+ * One document with what was read, its Geschäftspartner and its file.
1007
+ */
1008
+ getBillingDocument(options) {
1009
+ return (options.client ?? this.client).get({
1010
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1011
+ url: '/api/v2/me/billing/documents/{id}',
1012
+ ...options
1013
+ });
1014
+ }
1015
+ /**
1016
+ * Update billing document
1017
+ *
1018
+ * Corrects read data, moves the document between Eingang and Ausgang, sets its Geschäftspartner or archives it. Only the fields sent change; the file never does.
1019
+ */
1020
+ updateBillingDocument(options) {
1021
+ return (options.client ?? this.client).patch({
1022
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1023
+ url: '/api/v2/me/billing/documents/{id}',
1024
+ ...options,
1025
+ headers: {
1026
+ 'Content-Type': 'application/json',
1027
+ ...options.headers
1028
+ }
1029
+ });
1030
+ }
1031
+ /**
1032
+ * Read billing document again
1033
+ *
1034
+ * Queues the document for reading again; a file read once costs nothing again.
1035
+ */
1036
+ readBillingDocument(options) {
1037
+ return (options.client ?? this.client).post({
1038
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1039
+ url: '/api/v2/me/billing/documents/{id}/read',
1040
+ ...options
1041
+ });
1042
+ }
1043
+ /**
1044
+ * Get billing summary
1045
+ *
1046
+ * Wie lief ein Monat, ein Quartal oder ein Jahr: Einnahmen, Ausgaben, Ergebnis, Kontostand, offene Beträge und die vorläufige Umsatzsteuer. The figures of a period (from, to; default the running month): net income, expenses and result, by payment (default, what was paid in the period) or by invoice date; the Konten's balance and what customers and suppliers still owe today; the VAT of the period, provisional and no tax calculation; the bookings not yet assigned, which are missing from the figures; and income and expenses per month.
1047
+ */
1048
+ getBillingSummary(options) {
1049
+ return (options?.client ?? this.client).get({
1050
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1051
+ url: '/api/v2/me/billing/summary',
1052
+ ...options
1053
+ });
1054
+ }
1055
+ /**
1056
+ * List billing exports
1057
+ *
1058
+ * Welche Monate oder Quartale für die Steuerberatung bereitliegen. The months (or quarters) newest first, from the running one back to the first with documents: state running, empty, ready (ended, not downloaded yet) or downloaded, with the number of documents, bookings and unassigned bookings.
1059
+ */
1060
+ listBillingExports(options) {
1061
+ return (options?.client ?? this.client).get({
1062
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1063
+ url: '/api/v2/me/billing/exports',
1064
+ ...options
1065
+ });
1066
+ }
1067
+ /**
1068
+ * Download billing export
1069
+ *
1070
+ * Das Paket eines Monats oder Quartals für die Steuerberatung herunterladen. The download of an ended period (YYYY-MM or YYYY-Qn) as a ZIP: Belegliste.csv, the files under Belege/, a Kontoauszug per Konto, Partner.csv and Summen.csv. The download is noted and the period's receipts count as exported: from then on they can only be archived.
1071
+ */
1072
+ getBillingExportFile(options) {
1073
+ return (options.client ?? this.client).get({
1074
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1075
+ url: '/api/v2/me/billing/exports/{period}/file',
1076
+ ...options
1077
+ });
1078
+ }
1079
+ /**
1080
+ * Get billing setup
1081
+ *
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 (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*.
1083
+ */
1084
+ getBillingSetup(options) {
1085
+ return (options?.client ?? this.client).get({
1086
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1087
+ url: '/api/v2/me/billing/settings/invoices',
1088
+ ...options
1089
+ });
1090
+ }
1091
+ /**
1092
+ * Update billing settings
1093
+ *
1094
+ * 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.
1095
+ */
1096
+ updateBillingSettings(options) {
1097
+ return (options.client ?? this.client).patch({
1098
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1099
+ url: '/api/v2/me/billing/settings/invoices',
1100
+ ...options,
1101
+ headers: {
1102
+ 'Content-Type': 'application/json',
1103
+ ...options.headers
1104
+ }
1105
+ });
1106
+ }
1107
+ /**
1108
+ * Set article
1109
+ *
1110
+ * 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.
1111
+ */
1112
+ setArticle(options) {
1113
+ return (options.client ?? this.client).post({
1114
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1115
+ url: '/api/v2/me/billing/articles',
1116
+ ...options,
1117
+ headers: {
1118
+ 'Content-Type': 'application/json',
1119
+ ...options.headers
1120
+ }
1121
+ });
1122
+ }
1123
+ /**
1124
+ * Delete article
1125
+ *
1126
+ * Einen Artikel entfernen, der nicht mehr verrechnet wird. Delete an Artikel. Invoices keep the positions copied from it.
1127
+ */
1128
+ deleteArticle(options) {
1129
+ return (options.client ?? this.client).delete({
1130
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1131
+ url: '/api/v2/me/billing/articles/{id}',
1132
+ ...options
1133
+ });
1134
+ }
1135
+ /**
1136
+ * List invoices
1137
+ *
1138
+ * Die eigenen Rechnungen sehen: Entwürfe, offene, überfällige und bezahlte. The workspace's Rechnungen and Stornorechnungen, drafts first, then newest first, with number, customer, gross amount and Zahlung (draft, open, overdue, partlyPaid, paid, cancelled, cancellation). q searches number and customer.
1139
+ */
1140
+ listInvoices(options) {
1141
+ return (options?.client ?? this.client).get({
1142
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1143
+ url: '/api/v2/me/billing/invoices',
1144
+ ...options
1145
+ });
1146
+ }
1147
+ /**
1148
+ * Create invoice
1149
+ *
1150
+ * Eine Rechnung an einen Kunden vorbereiten, ohne sie schon auszustellen. Create a draft invoice in the list Ausgang: Absender, customer (a Geschäftspartner by customerRef, or described in customer), positions (copies of Artikel or free), dates and terms. Issues nothing and creates no Geschäftspartner.
1151
+ */
1152
+ createInvoice(options) {
1153
+ return (options.client ?? this.client).post({
1154
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1155
+ url: '/api/v2/me/billing/invoices',
1156
+ ...options,
1157
+ headers: {
1158
+ 'Content-Type': 'application/json',
1159
+ ...options.headers
1160
+ }
1161
+ });
1162
+ }
1163
+ /**
1164
+ * Delete invoice
1165
+ *
1166
+ * Einen Rechnungsentwurf verwerfen, der nicht ausgestellt wird. Delete a draft. An issued invoice is never deleted.
1167
+ */
1168
+ deleteInvoice(options) {
1169
+ return (options.client ?? this.client).delete({
1170
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1171
+ url: '/api/v2/me/billing/invoices/{id}',
1172
+ ...options
1173
+ });
1174
+ }
1175
+ /**
1176
+ * Get invoice
1177
+ *
1178
+ * Eine Rechnung mit Kunde, Positionen, Beträgen und Zahlungsstand ansehen, oder was einem Entwurf noch fehlt. One invoice by ID: Absender, customer, positions, totals by VAT rate, terms and where they come from, due date, Zahlung, original or Stornorechnung, and for a draft what is still missing before it can be issued.
1179
+ */
1180
+ getInvoice(options) {
1181
+ return (options.client ?? this.client).get({
1182
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1183
+ url: '/api/v2/me/billing/invoices/{id}',
1184
+ ...options
1185
+ });
1186
+ }
1187
+ /**
1188
+ * Update invoice
1189
+ *
1190
+ * Kunde, Positionen, Datum oder Zahlungsziel eines Rechnungsentwurfs ändern. Replace a draft's whole content. An issued invoice cannot change: cancel it instead.
1191
+ */
1192
+ updateInvoice(options) {
1193
+ return (options.client ?? this.client).put({
1194
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1195
+ url: '/api/v2/me/billing/invoices/{id}',
1196
+ ...options,
1197
+ headers: {
1198
+ 'Content-Type': 'application/json',
1199
+ ...options.headers
1200
+ }
1201
+ });
1202
+ }
1203
+ /**
1204
+ * Issue invoice
1205
+ *
1206
+ * 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 Rolle Kunde and a Kundennummer, and the PDF is frozen. Afterwards it never changes and is never deleted. Only with the user's explicit consent. Sends nothing.
1207
+ */
1208
+ issueInvoice(options) {
1209
+ return (options.client ?? this.client).post({
1210
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1211
+ url: '/api/v2/me/billing/invoices/{id}/issue',
1212
+ ...options
1213
+ });
1214
+ }
1215
+ /**
1216
+ * Cancel invoice
1217
+ *
1218
+ * Eine ausgestellte Rechnung mit einer Stornorechnung aufheben, etwa wegen eines Fehlers. Cancel an issued invoice with a Stornorechnung: own number from the same range, the positions negated, a reference to the original, which stays unchanged and reads cancelled. newDraft also opens a draft with the original's positions. Only with the user's explicit consent.
1219
+ */
1220
+ cancelInvoice(options) {
1221
+ return (options.client ?? this.client).post({
1222
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1223
+ url: '/api/v2/me/billing/invoices/{id}/cancel',
1224
+ ...options,
1225
+ headers: {
1226
+ 'Content-Type': 'application/json',
1227
+ ...options.headers
1228
+ }
1229
+ });
1230
+ }
1231
+ /**
1232
+ * Duplicate invoice
1233
+ *
1234
+ * Eine neue Rechnung wie eine frühere beginnen, etwa für einen wiederkehrenden Auftrag. A new draft with the Absender, customer, positions and terms of an invoice; dates start empty.
1235
+ */
1236
+ duplicateInvoice(options) {
1237
+ return (options.client ?? this.client).post({
1238
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1239
+ url: '/api/v2/me/billing/invoices/{id}/duplicate',
1240
+ ...options
1241
+ });
1242
+ }
1243
+ /**
1244
+ * Send invoice
1245
+ *
1246
+ * Eine ausgestellte Rechnung dem Kunden per E-Mail schicken oder an eine offene erinnern. Send an issued invoice by e-mail to the Geschäftspartner's Rechnungs-E-Mail: fixed text, the PDF attached and one link to the customer page. reminder sends it again as Erinnerung for an open invoice; note adds one sentence without links. Only for an Absender the member may send as (*Get invoice* email.state ready). Only with the user's explicit consent.
1247
+ */
1248
+ sendInvoice(options) {
1249
+ return (options.client ?? this.client).post({
1250
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1251
+ url: '/api/v2/me/billing/invoices/{id}/send',
1252
+ ...options,
1253
+ headers: {
1254
+ 'Content-Type': 'application/json',
1255
+ ...options.headers
1256
+ }
1257
+ });
1258
+ }
1259
+ /**
1260
+ * Revoke invoice links
1261
+ *
1262
+ * Den Kundenlink einer Rechnung sperren, etwa wenn die E-Mail an die falsche Adresse ging. End every customer link (/r/…) of an invoice at once; the mails already sent keep their PDF. A new mail makes a new link.
1263
+ */
1264
+ revokeInvoiceLinks(options) {
1265
+ return (options.client ?? this.client).post({
1266
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1267
+ url: '/api/v2/me/billing/invoices/{id}/revoke-links',
1268
+ ...options
1269
+ });
1270
+ }
1271
+ /**
1272
+ * Get invoice PDF
1273
+ *
1274
+ * Eine Rechnung als PDF holen, zum Ablegen, Weitergeben oder als Vorschau eines Entwurfs. The PDF of an invoice: an issued one's frozen file, a draft's preview marked VORSCHAU.
1275
+ */
1276
+ getInvoicePdf(options) {
1277
+ return (options.client ?? this.client).get({
1278
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1279
+ url: '/api/v2/me/billing/invoices/{id}/pdf',
1280
+ ...options
1281
+ });
1282
+ }
1283
+ /**
1284
+ * List bank accounts
1285
+ *
1286
+ * Die eigenen Konten mit Kontostand und offenen Buchungen sehen. The workspace's Konten (bank, cash, card, payment provider: all alike) with balance, number of bookings and how many are open or proposed.
1287
+ */
1288
+ listBankAccounts(options) {
1289
+ return (options?.client ?? this.client).get({
1290
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1291
+ url: '/api/v2/me/billing/accounts',
1292
+ ...options
1293
+ });
1294
+ }
1295
+ /**
1296
+ * Create bank account
1297
+ *
1298
+ * Ein Bankkonto, eine Kassa oder eine Karte anlegen, um ihre Buchungen abzugleichen. Create a Konto: name, IBAN (optional; a Kassa has none), currency and opening balance in cents. Its bookings form a list of their own.
1299
+ */
1300
+ createBankAccount(options) {
1301
+ return (options.client ?? this.client).post({
1302
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1303
+ url: '/api/v2/me/billing/accounts',
1304
+ ...options,
1305
+ headers: {
1306
+ 'Content-Type': 'application/json',
1307
+ ...options.headers
1308
+ }
1309
+ });
1310
+ }
1311
+ /**
1312
+ * Delete bank account
1313
+ *
1314
+ * Ein Konto ohne Buchungen entfernen. Delete a Konto that has no bookings, with its list.
1315
+ */
1316
+ deleteBankAccount(options) {
1317
+ return (options.client ?? this.client).delete({
1318
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1319
+ url: '/api/v2/me/billing/accounts/{id}',
1320
+ ...options
1321
+ });
1322
+ }
1323
+ /**
1324
+ * Update bank account
1325
+ *
1326
+ * Name, IBAN oder Anfangsstand eines Kontos ändern. Change a Konto's name, IBAN or opening balance; only the fields sent change.
1327
+ */
1328
+ updateBankAccount(options) {
1329
+ return (options.client ?? this.client).patch({
1330
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1331
+ url: '/api/v2/me/billing/accounts/{id}',
1332
+ ...options,
1333
+ headers: {
1334
+ 'Content-Type': 'application/json',
1335
+ ...options.headers
1336
+ }
1337
+ });
1338
+ }
1339
+ /**
1340
+ * List bank transactions
1341
+ *
1342
+ * Die Buchungen eines Kontos sehen, etwa alle noch nicht zugeordneten. Bookings newest first, of one Konto or all, by status (open, suggested, assigned) or text in counterparty and reference, each with what it is assigned to or proposed for.
1343
+ */
1344
+ listBankTransactions(options) {
1345
+ return (options?.client ?? this.client).get({
1346
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1347
+ url: '/api/v2/me/billing/transactions',
1348
+ ...options
1349
+ });
1350
+ }
1351
+ /**
1352
+ * Import bank transactions
1353
+ *
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.
1355
+ */
1356
+ addBankTransactions(options) {
1357
+ return (options.client ?? this.client).post({
1358
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1359
+ url: '/api/v2/me/billing/transactions',
1360
+ ...options,
1361
+ headers: {
1362
+ 'Content-Type': 'application/json',
1363
+ ...options.headers
1364
+ }
1365
+ });
1366
+ }
1367
+ /**
1368
+ * Create bank transaction
1369
+ *
1370
+ * Eine Buchung von Hand erfassen, etwa eine Barzahlung oder eine Umbuchung. Enter a booking by hand (Kassa, corrections, a payment at an invoice). With transferTo it is a transfer to an own Konto and the counter booking is created there; assign assigns it right away.
1371
+ */
1372
+ createBankTransaction(options) {
1373
+ return (options.client ?? this.client).post({
1374
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1375
+ url: '/api/v2/me/billing/transactions/manual',
1376
+ ...options,
1377
+ headers: {
1378
+ 'Content-Type': 'application/json',
1379
+ ...options.headers
1380
+ }
1381
+ });
1382
+ }
1383
+ /**
1384
+ * Delete bank transaction
1385
+ *
1386
+ * Eine von Hand erfasste Buchung entfernen. Delete a booking entered by hand; a transfer with its counter booking. Imported bookings stay.
1387
+ */
1388
+ deleteBankTransaction(options) {
1389
+ return (options.client ?? this.client).delete({
1390
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1391
+ url: '/api/v2/me/billing/transactions/{id}',
1392
+ ...options
1393
+ });
1394
+ }
1395
+ /**
1396
+ * Get bank transaction
1397
+ *
1398
+ * Eine Buchung mit ihrer Zuordnung oder ihrem Vorschlag ansehen. One booking by ID with its assignment or proposal.
1399
+ */
1400
+ getBankTransaction(options) {
1401
+ return (options.client ?? this.client).get({
1402
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1403
+ url: '/api/v2/me/billing/transactions/{id}',
1404
+ ...options
1405
+ });
1406
+ }
1407
+ /**
1408
+ * Update bank transaction
1409
+ *
1410
+ * Eine von Hand erfasste Buchung oder die Notiz einer Buchung ändern. Change a booking: one by hand wholly (a transfer's counter booking follows), an imported one only its note.
1411
+ */
1412
+ updateBankTransaction(options) {
1413
+ return (options.client ?? this.client).patch({
1414
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1415
+ url: '/api/v2/me/billing/transactions/{id}',
1416
+ ...options,
1417
+ headers: {
1418
+ 'Content-Type': 'application/json',
1419
+ ...options.headers
1420
+ }
1421
+ });
1422
+ }
1423
+ /**
1424
+ * Assign bank transaction
1425
+ *
1426
+ * 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 a reason, or as a transfer to an own Konto. Replaces any assignment or proposal.
1427
+ */
1428
+ setBankMatch(options) {
1429
+ return (options.client ?? this.client).put({
1430
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1431
+ url: '/api/v2/me/billing/transactions/{id}/match',
1432
+ ...options,
1433
+ headers: {
1434
+ 'Content-Type': 'application/json',
1435
+ ...options.headers
1436
+ }
1437
+ });
1438
+ }
1439
+ /**
1440
+ * Confirm bank match
1441
+ *
1442
+ * Den Vorschlag für eine Buchung übernehmen. Take over a booking's proposal. An agent confirms an eventuell proposal only when the user said so.
1443
+ */
1444
+ confirmBankMatch(options) {
1445
+ return (options.client ?? this.client).post({
1446
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1447
+ url: '/api/v2/me/billing/transactions/{id}/match/confirm',
1448
+ ...options
1449
+ });
1450
+ }
1451
+ /**
1452
+ * Undo bank match
1453
+ *
1454
+ * Eine automatisch übernommene Zuordnung wieder zum Vorschlag machen. Turn a sure AI hit that was taken over automatically back into a proposal.
1455
+ */
1456
+ cancelBankAutoMatch(options) {
1457
+ return (options.client ?? this.client).post({
1458
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1459
+ url: '/api/v2/me/billing/transactions/{id}/match/undo',
1460
+ ...options
1461
+ });
1462
+ }
1463
+ /**
1464
+ * Remove bank match
1465
+ *
1466
+ * Eine falsche Zuordnung oder einen unpassenden Vorschlag einer Buchung verwerfen. Remove a booking's assignment or turn down its proposal; a turned-down invoice or receipt is not proposed for it again.
1467
+ */
1468
+ removeBankMatch(options) {
1469
+ return (options.client ?? this.client).post({
1470
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1471
+ url: '/api/v2/me/billing/transactions/{id}/match/remove',
1472
+ ...options
1473
+ });
1474
+ }
1475
+ /**
1476
+ * Match bank transactions
1477
+ *
1478
+ * Offene Buchungen mit Rechnungen und Belegen abgleichen lassen. Run the Abgleich over open bookings: 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).
1479
+ */
1480
+ runBankMatching(options) {
1481
+ return (options.client ?? this.client).post({
1482
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1483
+ url: '/api/v2/me/billing/match',
1484
+ ...options,
1485
+ headers: {
1486
+ 'Content-Type': 'application/json',
1487
+ ...options.headers
1488
+ }
1489
+ });
1490
+ }
1491
+ /**
1492
+ * Import bank statement
1493
+ *
1494
+ * Einen Kontoauszug der Bank als Datei in ein Konto einlesen. Read a CAMT.053 file (base64) into a Konto. Lines already booked are skipped; gaps names statement numbers missing in between.
1495
+ */
1496
+ addBankStatement(options) {
1497
+ return (options.client ?? this.client).post({
1498
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1499
+ url: '/api/v2/me/billing/statements',
1500
+ ...options,
1501
+ headers: {
1502
+ 'Content-Type': 'application/json',
1503
+ ...options.headers
1504
+ }
1505
+ });
1506
+ }
1507
+ /**
1508
+ * Get bank settings
1509
+ *
1510
+ * Nachsehen, ob die KI Buchungen zuordnet und sichere Treffer selbst übernimmt. Whether the AI matches bookings no rule assigns, and whether its sure hits are taken over (sicher) or always wait (nie).
1511
+ */
1512
+ getBankSettings(options) {
1513
+ return (options?.client ?? this.client).get({
1514
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1515
+ url: '/api/v2/me/billing/settings',
1516
+ ...options
1517
+ });
1518
+ }
1519
+ /**
1520
+ * Update bank settings
1521
+ *
1522
+ * Festlegen, ob die KI Buchungen zuordnet und sichere Treffer selbst übernimmt. Switch the AI matching on or off, and set autoAccept to sicher or nie.
1523
+ */
1524
+ updateBankSettings(options) {
1525
+ return (options.client ?? this.client).patch({
1526
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1527
+ url: '/api/v2/me/billing/settings',
1528
+ ...options,
1529
+ headers: {
1530
+ 'Content-Type': 'application/json',
1531
+ ...options.headers
1532
+ }
1533
+ });
1534
+ }
963
1535
  /**
964
1536
  * Get account
965
1537
  *
@@ -1011,7 +1583,7 @@ class FirmenakteApi extends HeyApiClient {
1011
1583
  /**
1012
1584
  * Search entities
1013
1585
  *
1014
- * Find companies and people, and the references they point to, whose name or code contains q: places (geography) and the reference vocabularies legalForm, court, industry, trade, functionType and keyFigure. Vocabularies also match by code, such as GmbH, 62.10 or GF; a postcode finds its place. types narrows the search to the listed types; addresses are searched only when types names address, by street, house number, postcode and town. Names of companies and people compare case-, accent- and punctuation-insensitively, with ä = ae = a, ß = ss and legal forms as one word (GmbH = Ges.m.b.H.). Results rank by where q sits in the name (the whole name, its start, a later word start, inside a word), then name length, then companies, people, places, vocabularies and addresses, then name and ID. When q finds nothing, companies and people whose name differs from q by one letter in a word of five to eight letters, or two in a longer word, come back with match: similar; a page holds only exact or only similar items.
1586
+ * Find companies and people, and the references they point to, whose name or code contains q: places (geography) and the reference vocabularies legalForm, court, industry, trade, functionType and keyFigure. Vocabularies also match by code, such as GmbH, 62.10 or GF; a postcode finds its place. types narrows the search to the listed types; addresses are searched only when types names address, by street, house number, postcode and town. Names of companies and people compare case-, accent- and punctuation-insensitively, with ä = ae = a, ß = ss and legal forms as one word (GmbH = Ges.m.b.H.). A domain, URL or mail address finds the companies whose shown website has that host or a host below it; an FN, GISA number or UID finds the company it names. Each item says in matched what q matched (field name, identifiers, website or address, the value, and tier 1 for an identifier or website, 2 for a name, 3 for an address); searchIn narrows the fields searched. Results rank by where q sits (the whole name, identifier or host; its start; a later word start; inside a word, or a host below q), then identifiers and websites before names, then companies, people, places, vocabularies and addresses, then name length, name and ID. When q finds nothing, companies and people whose name differs from q by one letter in a word of five to eight letters, or two in a longer word, come back with match: similar; a page holds only exact or only similar items.
1015
1587
  */
1016
1588
  searchPublicEntities(options) {
1017
1589
  return (options?.client ?? this.client).get({
@@ -1023,7 +1595,7 @@ class FirmenakteApi extends HeyApiClient {
1023
1595
  /**
1024
1596
  * Search entities (POST)
1025
1597
  *
1026
- * Find companies and people, and the references they point to, whose name or code contains q: places (geography) and the reference vocabularies legalForm, court, industry, trade, functionType and keyFigure. Vocabularies also match by code, such as GmbH, 62.10 or GF; a postcode finds its place. types narrows the search to the listed types; addresses are searched only when types names address, by street, house number, postcode and town. Names of companies and people compare case-, accent- and punctuation-insensitively, with ä = ae = a, ß = ss and legal forms as one word (GmbH = Ges.m.b.H.). Results rank by where q sits in the name (the whole name, its start, a later word start, inside a word), then name length, then companies, people, places, vocabularies and addresses, then name and ID. When q finds nothing, companies and people whose name differs from q by one letter in a word of five to eight letters, or two in a longer word, come back with match: similar; a page holds only exact or only similar items.
1598
+ * Find companies and people, and the references they point to, whose name or code contains q: places (geography) and the reference vocabularies legalForm, court, industry, trade, functionType and keyFigure. Vocabularies also match by code, such as GmbH, 62.10 or GF; a postcode finds its place. types narrows the search to the listed types; addresses are searched only when types names address, by street, house number, postcode and town. Names of companies and people compare case-, accent- and punctuation-insensitively, with ä = ae = a, ß = ss and legal forms as one word (GmbH = Ges.m.b.H.). A domain, URL or mail address finds the companies whose shown website has that host or a host below it; an FN, GISA number or UID finds the company it names. Each item says in matched what q matched (field name, identifiers, website or address, the value, and tier 1 for an identifier or website, 2 for a name, 3 for an address); searchIn narrows the fields searched. Results rank by where q sits (the whole name, identifier or host; its start; a later word start; inside a word, or a host below q), then identifiers and websites before names, then companies, people, places, vocabularies and addresses, then name length, name and ID. When q finds nothing, companies and people whose name differs from q by one letter in a word of five to eight letters, or two in a longer word, come back with match: similar; a page holds only exact or only similar items.
1027
1599
  */
1028
1600
  searchPublicEntitiesQuery(options) {
1029
1601
  return (options.client ?? this.client).post({
@@ -1051,7 +1623,7 @@ class FirmenakteApi extends HeyApiClient {
1051
1623
  /**
1052
1624
  * Search places
1053
1625
  *
1054
- * Search published BEV places (states, political districts, municipalities, municipal districts, localities, streets, postal codes) by ref, source code or name; kind restricts the type. Returns their refs (state:6, gemeinde:60101, postal-code:8010 …) and typed parent relations without an automatic total. A ref is a place value for the place filters of *Search companies*, *Aggregate companies* and *Search people*; a place name or postcode works there too. Read one ref, including retired geography, with *Get reference*. A person's residence is not inferred from a company's seat.
1626
+ * Orte finden. Search published BEV places (states, political districts, municipalities, municipal districts, localities, streets, postal codes) by ref, source code or name; several words match word by word, each in the place itself or the Gemeinde it lies in, such as a postcode with its place. kind restricts the type. Returns their refs (state:6, gemeinde:60101, postal-code:8010 …) and typed parent relations without an automatic total. A ref is a place value for the place filters of *Search companies*, *Aggregate companies* and *Search people*; a place name or postcode works there too, so a company search needs no lookup first. Read one ref, including retired geography, with *Get reference*. A person's residence is not inferred from a company's seat.
1055
1627
  */
1056
1628
  searchPublicRefPlaces(options) {
1057
1629
  return (options?.client ?? this.client).get({
@@ -1099,7 +1671,7 @@ class FirmenakteApi extends HeyApiClient {
1099
1671
  /**
1100
1672
  * Validate address
1101
1673
  *
1102
- * Compare one address with the active Austrian BEV snapshot without storing it. Returns exact, normalized, ambiguous, not_found, unsupported_country or unavailable. A match confirms only the snapshot base address; units, deliverability, people and company occupancy remain unverified. International addresses may still be stored in own entries.
1674
+ * Prüfen, ob es eine österreichische Adresse gibt und wie sie richtig geschrieben wird. Compare one address with the active Austrian BEV snapshot without storing it. Returns exact, normalized, ambiguous, not_found, unsupported_country or unavailable. A match confirms only the snapshot base address; units, deliverability, people and company occupancy remain unverified. International addresses may still be stored in own entries.
1103
1675
  */
1104
1676
  checkPublicRefAddress(options) {
1105
1677
  return (options.client ?? this.client).post({
@@ -1115,7 +1687,7 @@ class FirmenakteApi extends HeyApiClient {
1115
1687
  /**
1116
1688
  * Get address snapshot status
1117
1689
  *
1118
- * Read snapshot date, availability and refresh health. Validation covers Austrian snapshot base addresses; worldwide address storage remains available independently.
1690
+ * Nachsehen, wie aktuell das Adressregister ist. Read snapshot date, availability and refresh health. Validation covers Austrian snapshot base addresses; worldwide address storage remains available independently.
1119
1691
  */
1120
1692
  getPublicRefAddressStatus(options) {
1121
1693
  return (options?.client ?? this.client).get({
@@ -1139,7 +1711,7 @@ class FirmenakteApi extends HeyApiClient {
1139
1711
  /**
1140
1712
  * Get address
1141
1713
  *
1142
- * One BEV address by its code, such as 5151833. Its old Firmenakte-ID (A-…) and the source alias bev:5151833 resolve too; the response names the current reference ID. One basic credit.
1714
+ * One BEV address by its code, such as 5151833. Its old Firmenakte-ID (A-…) and the source alias bev:5151833 resolve too; the response names the current reference ID. include takes the vocabulary and filters of *Get reference*: stats (active companies, deleted ones), facets (the list's filters with their counts), companies (the active companies with their seat or a GISA location here, the largest Bilanzsumme first, with the companies/search body that finds them live); children is always empty for an address. One basic credit.
1143
1715
  */
1144
1716
  getAddressRef(options) {
1145
1717
  return (options.client ?? this.client).get({
@@ -1163,7 +1735,7 @@ class FirmenakteApi extends HeyApiClient {
1163
1735
  /**
1164
1736
  * Get reference
1165
1737
  *
1166
- * Returns one reference by its namespace and code, such as legal-form/ges, court/007, oenace-2025/62.01 or gemeinde/90101. code also takes the full ref ID (gemeinde:90101), an old Firmenakte-ID of the reference (R-, J-, N-, T-, F-, K-, G-) or a source alias (gkz:90101); the response names the current reference ID. A place, current or retired, comes with its BEV kind, source code, snapshot date and all parent refs. Free. Addresses are read with *Get address*.
1738
+ * Einen einzelnen Code nachschlagen, etwa eine Rechtsform, ein Gericht, eine Branche oder eine Gemeinde. Returns one ref by namespace and code: legal-form/ges, oenace-2025/62.01, gemeinde/90101. code also takes the ref ID, an old Firmenakte-ID, an alias (gkz:90101) or a page slug (gemeinde/moedling); oenace-2025/root is the root, registered/2026-11-18 a Neugründungen day, month or year. The response names the current ref ID; a place adds its BEV kind, source code and parents. For a place, ÖNACE class or period, include embeds its catalog page; sort, legalForm, registeredFrom/To, industry, place and deleted narrow its companies and facets. Free; one basic credit with include=companies. Addresses: *Get address*.
1167
1739
  */
1168
1740
  getPublicRef(options) {
1169
1741
  return (options.client ?? this.client).get({
@@ -1275,7 +1847,7 @@ class FirmenakteApi extends HeyApiClient {
1275
1847
  /**
1276
1848
  * Get entity
1277
1849
  *
1278
- * Returns a company or person whose type is unknown, by Firmenakte ID or scoped source alias, in the shape of its typed collection and without related collections. One basic credit. Use *Get company* to embed a company's related collections and *Get companies in batch* for several companies. References (legal forms, courts, places, addresses …) are not entities; read them with *Get reference*.
1850
+ * Eine Firma oder Person nachschlagen, wenn nur ihre ID bekannt ist. Returns a company or person whose type is unknown, by Firmenakte ID or scoped source alias, in the shape of its typed collection and without related collections. One basic credit. Use *Get company* to embed a company's related collections and *Get companies in batch* for several companies. References (legal forms, courts, places, addresses …) are not entities; read them with *Get reference*.
1279
1851
  */
1280
1852
  getPublicEntity(options) {
1281
1853
  return (options.client ?? this.client).get({