@firmenakte/api-client 2.40.0 → 2.42.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 +309 -21
- package/v2/generated/sdk.gen.d.ts.map +1 -1
- package/v2/generated/sdk.gen.js +676 -20
- package/v2/generated/types.gen.d.ts +8211 -4138
- package/v2/generated/types.gen.d.ts.map +1 -1
package/v2/generated/sdk.gen.js
CHANGED
|
@@ -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,662 @@ 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
|
+
* 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
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Get billing summary
|
|
1101
|
+
*
|
|
1102
|
+
* 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.
|
|
1103
|
+
*/
|
|
1104
|
+
getBillingSummary(options) {
|
|
1105
|
+
return (options?.client ?? this.client).get({
|
|
1106
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1107
|
+
url: '/api/v2/me/billing/summary',
|
|
1108
|
+
...options
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* List billing exports
|
|
1113
|
+
*
|
|
1114
|
+
* 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.
|
|
1115
|
+
*/
|
|
1116
|
+
listBillingExports(options) {
|
|
1117
|
+
return (options?.client ?? this.client).get({
|
|
1118
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1119
|
+
url: '/api/v2/me/billing/exports',
|
|
1120
|
+
...options
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* Download billing export
|
|
1125
|
+
*
|
|
1126
|
+
* 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.
|
|
1127
|
+
*/
|
|
1128
|
+
getBillingExportFile(options) {
|
|
1129
|
+
return (options.client ?? this.client).get({
|
|
1130
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1131
|
+
url: '/api/v2/me/billing/exports/{period}/file',
|
|
1132
|
+
...options
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
/**
|
|
1136
|
+
* List articles
|
|
1137
|
+
*
|
|
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).
|
|
1139
|
+
*/
|
|
1140
|
+
listArticles(options) {
|
|
1141
|
+
return (options?.client ?? this.client).get({
|
|
1142
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1143
|
+
url: '/api/v2/me/billing/articles',
|
|
1144
|
+
...options
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Set article
|
|
1149
|
+
*
|
|
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.
|
|
1151
|
+
*/
|
|
1152
|
+
setArticle(options) {
|
|
1153
|
+
return (options.client ?? this.client).post({
|
|
1154
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1155
|
+
url: '/api/v2/me/billing/articles',
|
|
1156
|
+
...options,
|
|
1157
|
+
headers: {
|
|
1158
|
+
'Content-Type': 'application/json',
|
|
1159
|
+
...options.headers
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Check invoice UID
|
|
1165
|
+
*
|
|
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.
|
|
1167
|
+
*/
|
|
1168
|
+
checkInvoiceUid(options) {
|
|
1169
|
+
return (options.client ?? this.client).post({
|
|
1170
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
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',
|
|
1200
|
+
...options,
|
|
1201
|
+
headers: {
|
|
1202
|
+
'Content-Type': 'application/json',
|
|
1203
|
+
...options.headers
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Delete article
|
|
1209
|
+
*
|
|
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.
|
|
1211
|
+
*/
|
|
1212
|
+
deleteArticle(options) {
|
|
1213
|
+
return (options.client ?? this.client).delete({
|
|
1214
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1215
|
+
url: '/api/v2/me/billing/articles/{id}',
|
|
1216
|
+
...options
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* List invoices
|
|
1221
|
+
*
|
|
1222
|
+
* 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.
|
|
1223
|
+
*/
|
|
1224
|
+
listInvoices(options) {
|
|
1225
|
+
return (options?.client ?? this.client).get({
|
|
1226
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1227
|
+
url: '/api/v2/me/billing/invoices',
|
|
1228
|
+
...options
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Create invoice
|
|
1233
|
+
*
|
|
1234
|
+
* 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.
|
|
1235
|
+
*/
|
|
1236
|
+
createInvoice(options) {
|
|
1237
|
+
return (options.client ?? this.client).post({
|
|
1238
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1239
|
+
url: '/api/v2/me/billing/invoices',
|
|
1240
|
+
...options,
|
|
1241
|
+
headers: {
|
|
1242
|
+
'Content-Type': 'application/json',
|
|
1243
|
+
...options.headers
|
|
1244
|
+
}
|
|
1245
|
+
});
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Delete invoice
|
|
1249
|
+
*
|
|
1250
|
+
* Einen Rechnungsentwurf verwerfen, der nicht ausgestellt wird. Delete a draft. An issued invoice is never deleted.
|
|
1251
|
+
*/
|
|
1252
|
+
deleteInvoice(options) {
|
|
1253
|
+
return (options.client ?? this.client).delete({
|
|
1254
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1255
|
+
url: '/api/v2/me/billing/invoices/{id}',
|
|
1256
|
+
...options
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
/**
|
|
1260
|
+
* Get invoice
|
|
1261
|
+
*
|
|
1262
|
+
* 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.
|
|
1263
|
+
*/
|
|
1264
|
+
getInvoice(options) {
|
|
1265
|
+
return (options.client ?? this.client).get({
|
|
1266
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1267
|
+
url: '/api/v2/me/billing/invoices/{id}',
|
|
1268
|
+
...options
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Update invoice
|
|
1273
|
+
*
|
|
1274
|
+
* Kunde, Positionen, Datum oder Zahlungsziel eines Rechnungsentwurfs ändern. Replace a draft's whole content. An issued invoice cannot change: cancel it instead.
|
|
1275
|
+
*/
|
|
1276
|
+
updateInvoice(options) {
|
|
1277
|
+
return (options.client ?? this.client).put({
|
|
1278
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1279
|
+
url: '/api/v2/me/billing/invoices/{id}',
|
|
1280
|
+
...options,
|
|
1281
|
+
headers: {
|
|
1282
|
+
'Content-Type': 'application/json',
|
|
1283
|
+
...options.headers
|
|
1284
|
+
}
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* Issue invoice
|
|
1289
|
+
*
|
|
1290
|
+
* 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.
|
|
1291
|
+
*/
|
|
1292
|
+
issueInvoice(options) {
|
|
1293
|
+
return (options.client ?? this.client).post({
|
|
1294
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1295
|
+
url: '/api/v2/me/billing/invoices/{id}/issue',
|
|
1296
|
+
...options
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Cancel invoice
|
|
1301
|
+
*
|
|
1302
|
+
* 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.
|
|
1303
|
+
*/
|
|
1304
|
+
cancelInvoice(options) {
|
|
1305
|
+
return (options.client ?? this.client).post({
|
|
1306
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1307
|
+
url: '/api/v2/me/billing/invoices/{id}/cancel',
|
|
1308
|
+
...options,
|
|
1309
|
+
headers: {
|
|
1310
|
+
'Content-Type': 'application/json',
|
|
1311
|
+
...options.headers
|
|
1312
|
+
}
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Duplicate invoice
|
|
1317
|
+
*
|
|
1318
|
+
* 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.
|
|
1319
|
+
*/
|
|
1320
|
+
duplicateInvoice(options) {
|
|
1321
|
+
return (options.client ?? this.client).post({
|
|
1322
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1323
|
+
url: '/api/v2/me/billing/invoices/{id}/duplicate',
|
|
1324
|
+
...options
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Send invoice
|
|
1329
|
+
*
|
|
1330
|
+
* 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.
|
|
1331
|
+
*/
|
|
1332
|
+
sendInvoice(options) {
|
|
1333
|
+
return (options.client ?? this.client).post({
|
|
1334
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1335
|
+
url: '/api/v2/me/billing/invoices/{id}/send',
|
|
1336
|
+
...options,
|
|
1337
|
+
headers: {
|
|
1338
|
+
'Content-Type': 'application/json',
|
|
1339
|
+
...options.headers
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* Revoke invoice links
|
|
1345
|
+
*
|
|
1346
|
+
* 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.
|
|
1347
|
+
*/
|
|
1348
|
+
revokeInvoiceLinks(options) {
|
|
1349
|
+
return (options.client ?? this.client).post({
|
|
1350
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1351
|
+
url: '/api/v2/me/billing/invoices/{id}/revoke-links',
|
|
1352
|
+
...options
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* Get invoice PDF
|
|
1357
|
+
*
|
|
1358
|
+
* 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.
|
|
1359
|
+
*/
|
|
1360
|
+
getInvoicePdf(options) {
|
|
1361
|
+
return (options.client ?? this.client).get({
|
|
1362
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1363
|
+
url: '/api/v2/me/billing/invoices/{id}/pdf',
|
|
1364
|
+
...options
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* List bank accounts
|
|
1369
|
+
*
|
|
1370
|
+
* 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.
|
|
1371
|
+
*/
|
|
1372
|
+
listBankAccounts(options) {
|
|
1373
|
+
return (options?.client ?? this.client).get({
|
|
1374
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1375
|
+
url: '/api/v2/me/billing/accounts',
|
|
1376
|
+
...options
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Create bank account
|
|
1381
|
+
*
|
|
1382
|
+
* 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.
|
|
1383
|
+
*/
|
|
1384
|
+
createBankAccount(options) {
|
|
1385
|
+
return (options.client ?? this.client).post({
|
|
1386
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1387
|
+
url: '/api/v2/me/billing/accounts',
|
|
1388
|
+
...options,
|
|
1389
|
+
headers: {
|
|
1390
|
+
'Content-Type': 'application/json',
|
|
1391
|
+
...options.headers
|
|
1392
|
+
}
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
/**
|
|
1396
|
+
* Delete bank account
|
|
1397
|
+
*
|
|
1398
|
+
* Ein Konto ohne Buchungen entfernen. Delete a Konto that has no bookings, with its list.
|
|
1399
|
+
*/
|
|
1400
|
+
deleteBankAccount(options) {
|
|
1401
|
+
return (options.client ?? this.client).delete({
|
|
1402
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1403
|
+
url: '/api/v2/me/billing/accounts/{id}',
|
|
1404
|
+
...options
|
|
1405
|
+
});
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Update bank account
|
|
1409
|
+
*
|
|
1410
|
+
* Name, IBAN oder Anfangsstand eines Kontos ändern. Change a Konto's name, IBAN or opening balance; only the fields sent change.
|
|
1411
|
+
*/
|
|
1412
|
+
updateBankAccount(options) {
|
|
1413
|
+
return (options.client ?? this.client).patch({
|
|
1414
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1415
|
+
url: '/api/v2/me/billing/accounts/{id}',
|
|
1416
|
+
...options,
|
|
1417
|
+
headers: {
|
|
1418
|
+
'Content-Type': 'application/json',
|
|
1419
|
+
...options.headers
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* List bank transactions
|
|
1425
|
+
*
|
|
1426
|
+
* 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.
|
|
1427
|
+
*/
|
|
1428
|
+
listBankTransactions(options) {
|
|
1429
|
+
return (options?.client ?? this.client).get({
|
|
1430
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1431
|
+
url: '/api/v2/me/billing/transactions',
|
|
1432
|
+
...options
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* Import bank transactions
|
|
1437
|
+
*
|
|
1438
|
+
* 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.
|
|
1439
|
+
*/
|
|
1440
|
+
addBankTransactions(options) {
|
|
1441
|
+
return (options.client ?? this.client).post({
|
|
1442
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1443
|
+
url: '/api/v2/me/billing/transactions',
|
|
1444
|
+
...options,
|
|
1445
|
+
headers: {
|
|
1446
|
+
'Content-Type': 'application/json',
|
|
1447
|
+
...options.headers
|
|
1448
|
+
}
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
* Create bank transaction
|
|
1453
|
+
*
|
|
1454
|
+
* 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.
|
|
1455
|
+
*/
|
|
1456
|
+
createBankTransaction(options) {
|
|
1457
|
+
return (options.client ?? this.client).post({
|
|
1458
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1459
|
+
url: '/api/v2/me/billing/transactions/manual',
|
|
1460
|
+
...options,
|
|
1461
|
+
headers: {
|
|
1462
|
+
'Content-Type': 'application/json',
|
|
1463
|
+
...options.headers
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* Delete bank transaction
|
|
1469
|
+
*
|
|
1470
|
+
* Eine von Hand erfasste Buchung entfernen. Delete a booking entered by hand; a transfer with its counter booking. Imported bookings stay.
|
|
1471
|
+
*/
|
|
1472
|
+
deleteBankTransaction(options) {
|
|
1473
|
+
return (options.client ?? this.client).delete({
|
|
1474
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1475
|
+
url: '/api/v2/me/billing/transactions/{id}',
|
|
1476
|
+
...options
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Get bank transaction
|
|
1481
|
+
*
|
|
1482
|
+
* Eine Buchung mit ihrer Zuordnung oder ihrem Vorschlag ansehen. One booking by ID with its assignment or proposal.
|
|
1483
|
+
*/
|
|
1484
|
+
getBankTransaction(options) {
|
|
1485
|
+
return (options.client ?? this.client).get({
|
|
1486
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1487
|
+
url: '/api/v2/me/billing/transactions/{id}',
|
|
1488
|
+
...options
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* Update bank transaction
|
|
1493
|
+
*
|
|
1494
|
+
* 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.
|
|
1495
|
+
*/
|
|
1496
|
+
updateBankTransaction(options) {
|
|
1497
|
+
return (options.client ?? this.client).patch({
|
|
1498
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1499
|
+
url: '/api/v2/me/billing/transactions/{id}',
|
|
1500
|
+
...options,
|
|
1501
|
+
headers: {
|
|
1502
|
+
'Content-Type': 'application/json',
|
|
1503
|
+
...options.headers
|
|
1504
|
+
}
|
|
1505
|
+
});
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* Assign bank transaction
|
|
1509
|
+
*
|
|
1510
|
+
* 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.
|
|
1511
|
+
*/
|
|
1512
|
+
setBankMatch(options) {
|
|
1513
|
+
return (options.client ?? this.client).put({
|
|
1514
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1515
|
+
url: '/api/v2/me/billing/transactions/{id}/match',
|
|
1516
|
+
...options,
|
|
1517
|
+
headers: {
|
|
1518
|
+
'Content-Type': 'application/json',
|
|
1519
|
+
...options.headers
|
|
1520
|
+
}
|
|
1521
|
+
});
|
|
1522
|
+
}
|
|
1523
|
+
/**
|
|
1524
|
+
* Confirm bank match
|
|
1525
|
+
*
|
|
1526
|
+
* 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.
|
|
1527
|
+
*/
|
|
1528
|
+
confirmBankMatch(options) {
|
|
1529
|
+
return (options.client ?? this.client).post({
|
|
1530
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1531
|
+
url: '/api/v2/me/billing/transactions/{id}/match/confirm',
|
|
1532
|
+
...options
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Undo bank match
|
|
1537
|
+
*
|
|
1538
|
+
* Eine automatisch übernommene Zuordnung wieder zum Vorschlag machen. Turn a sure AI hit that was taken over automatically back into a proposal.
|
|
1539
|
+
*/
|
|
1540
|
+
cancelBankAutoMatch(options) {
|
|
1541
|
+
return (options.client ?? this.client).post({
|
|
1542
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1543
|
+
url: '/api/v2/me/billing/transactions/{id}/match/undo',
|
|
1544
|
+
...options
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* Remove bank match
|
|
1549
|
+
*
|
|
1550
|
+
* 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.
|
|
1551
|
+
*/
|
|
1552
|
+
removeBankMatch(options) {
|
|
1553
|
+
return (options.client ?? this.client).post({
|
|
1554
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1555
|
+
url: '/api/v2/me/billing/transactions/{id}/match/remove',
|
|
1556
|
+
...options
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
/**
|
|
1560
|
+
* Match bank transactions
|
|
1561
|
+
*
|
|
1562
|
+
* 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).
|
|
1563
|
+
*/
|
|
1564
|
+
runBankMatching(options) {
|
|
1565
|
+
return (options.client ?? this.client).post({
|
|
1566
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1567
|
+
url: '/api/v2/me/billing/match',
|
|
1568
|
+
...options,
|
|
1569
|
+
headers: {
|
|
1570
|
+
'Content-Type': 'application/json',
|
|
1571
|
+
...options.headers
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
* Import bank statement
|
|
1577
|
+
*
|
|
1578
|
+
* 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.
|
|
1579
|
+
*/
|
|
1580
|
+
addBankStatement(options) {
|
|
1581
|
+
return (options.client ?? this.client).post({
|
|
1582
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1583
|
+
url: '/api/v2/me/billing/statements',
|
|
1584
|
+
...options,
|
|
1585
|
+
headers: {
|
|
1586
|
+
'Content-Type': 'application/json',
|
|
1587
|
+
...options.headers
|
|
1588
|
+
}
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* Get bank settings
|
|
1593
|
+
*
|
|
1594
|
+
* 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).
|
|
1595
|
+
*/
|
|
1596
|
+
getBankSettings(options) {
|
|
1597
|
+
return (options?.client ?? this.client).get({
|
|
1598
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1599
|
+
url: '/api/v2/me/billing/settings',
|
|
1600
|
+
...options
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* Update bank settings
|
|
1605
|
+
*
|
|
1606
|
+
* 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.
|
|
1607
|
+
*/
|
|
1608
|
+
updateBankSettings(options) {
|
|
1609
|
+
return (options.client ?? this.client).patch({
|
|
1610
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
1611
|
+
url: '/api/v2/me/billing/settings',
|
|
1612
|
+
...options,
|
|
1613
|
+
headers: {
|
|
1614
|
+
'Content-Type': 'application/json',
|
|
1615
|
+
...options.headers
|
|
1616
|
+
}
|
|
1617
|
+
});
|
|
1618
|
+
}
|
|
963
1619
|
/**
|
|
964
1620
|
* Get account
|
|
965
1621
|
*
|
|
@@ -1011,7 +1667,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1011
1667
|
/**
|
|
1012
1668
|
* Search entities
|
|
1013
1669
|
*
|
|
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
|
|
1670
|
+
* 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
1671
|
*/
|
|
1016
1672
|
searchPublicEntities(options) {
|
|
1017
1673
|
return (options?.client ?? this.client).get({
|
|
@@ -1023,7 +1679,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1023
1679
|
/**
|
|
1024
1680
|
* Search entities (POST)
|
|
1025
1681
|
*
|
|
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
|
|
1682
|
+
* 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
1683
|
*/
|
|
1028
1684
|
searchPublicEntitiesQuery(options) {
|
|
1029
1685
|
return (options.client ?? this.client).post({
|
|
@@ -1051,7 +1707,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1051
1707
|
/**
|
|
1052
1708
|
* Search places
|
|
1053
1709
|
*
|
|
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.
|
|
1710
|
+
* 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
1711
|
*/
|
|
1056
1712
|
searchPublicRefPlaces(options) {
|
|
1057
1713
|
return (options?.client ?? this.client).get({
|
|
@@ -1099,7 +1755,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1099
1755
|
/**
|
|
1100
1756
|
* Validate address
|
|
1101
1757
|
*
|
|
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.
|
|
1758
|
+
* 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
1759
|
*/
|
|
1104
1760
|
checkPublicRefAddress(options) {
|
|
1105
1761
|
return (options.client ?? this.client).post({
|
|
@@ -1115,7 +1771,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1115
1771
|
/**
|
|
1116
1772
|
* Get address snapshot status
|
|
1117
1773
|
*
|
|
1118
|
-
* Read snapshot date, availability and refresh health. Validation covers Austrian snapshot base addresses; worldwide address storage remains available independently.
|
|
1774
|
+
* 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
1775
|
*/
|
|
1120
1776
|
getPublicRefAddressStatus(options) {
|
|
1121
1777
|
return (options?.client ?? this.client).get({
|
|
@@ -1139,7 +1795,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1139
1795
|
/**
|
|
1140
1796
|
* Get address
|
|
1141
1797
|
*
|
|
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.
|
|
1798
|
+
* 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
1799
|
*/
|
|
1144
1800
|
getAddressRef(options) {
|
|
1145
1801
|
return (options.client ?? this.client).get({
|
|
@@ -1163,7 +1819,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1163
1819
|
/**
|
|
1164
1820
|
* Get reference
|
|
1165
1821
|
*
|
|
1166
|
-
* Returns one
|
|
1822
|
+
* 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
1823
|
*/
|
|
1168
1824
|
getPublicRef(options) {
|
|
1169
1825
|
return (options.client ?? this.client).get({
|
|
@@ -1275,7 +1931,7 @@ class FirmenakteApi extends HeyApiClient {
|
|
|
1275
1931
|
/**
|
|
1276
1932
|
* Get entity
|
|
1277
1933
|
*
|
|
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*.
|
|
1934
|
+
* 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
1935
|
*/
|
|
1280
1936
|
getPublicEntity(options) {
|
|
1281
1937
|
return (options.client ?? this.client).get({
|