@firmenakte/api-client 2.41.0 → 2.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,20 @@ export type AccountLiability = {
13
13
  amount: number;
14
14
  after: string;
15
15
  };
16
+ export type AddBillingPartnerRequest = {
17
+ /**
18
+ * customer or supplier: the role the partner takes on. A supplier who becomes a customer is Kunde und Lieferant.
19
+ */
20
+ role: string;
21
+ /**
22
+ * A company of the register by Firmenakte-ID or FN; leave out to create an own entry from name.
23
+ */
24
+ companyId?: null | string;
25
+ /**
26
+ * The name of a partner outside the register (a private person, a company abroad).
27
+ */
28
+ name?: null | string;
29
+ };
16
30
  export type AddLetterAttachmentBody = {
17
31
  fileName: string;
18
32
  contentBase64: string;
@@ -167,6 +181,14 @@ export type ArticleDto = {
167
181
  unit?: null | string;
168
182
  priceCents: number;
169
183
  vatRate: number;
184
+ /**
185
+ * The Artikelnummer, if it has one.
186
+ */
187
+ number?: null | string;
188
+ /**
189
+ * Archived: kept in the list Artikel under „Archiviert“, no longer offered on invoices.
190
+ */
191
+ archived?: boolean;
170
192
  };
171
193
  export type BankAccountDto = {
172
194
  id: string;
@@ -197,6 +219,14 @@ export type BankAccountDto = {
197
219
  * The list of its bookings.
198
220
  */
199
221
  listId?: null | string;
222
+ /**
223
+ * bank, cash, card or provider. It only names the Konto: every kind takes statements, bookings by hand and a connection.
224
+ */
225
+ kind: string;
226
+ /**
227
+ * The last day a Kontoauszug read into this Konto covers; null before the first.
228
+ */
229
+ statementUntil?: null | string;
200
230
  };
201
231
  export type BankAssignInput = {
202
232
  /**
@@ -212,6 +242,84 @@ export type BankAssignInput = {
212
242
  */
213
243
  reason?: null | string;
214
244
  };
245
+ export type BankCandidateDto = {
246
+ /**
247
+ * invoice or receipt.
248
+ */
249
+ kind: string;
250
+ id: string;
251
+ /**
252
+ * What it is: Rechnung or Beleg with its number.
253
+ */
254
+ label: string;
255
+ number?: null | string;
256
+ /**
257
+ * The customer of an invoice, the supplier of a receipt.
258
+ */
259
+ partnerName?: null | string;
260
+ /**
261
+ * What is still open, in cents, signed like a booking: an invoice expects money in.
262
+ */
263
+ openCents: number;
264
+ currency: string;
265
+ date: string;
266
+ /**
267
+ * What fits: amount (the open amount exactly), number (its number in the reference), numberPart (the number's last digits in the reference), partner (the counterparty's name), iban (the partner's IBAN), date (booked within days of it).
268
+ */
269
+ reasons: Array<string>;
270
+ /**
271
+ * The text of the booking's reference that names it, to highlight.
272
+ */
273
+ mark?: null | string;
274
+ /**
275
+ * A part payment: what stays open after this booking, in cents.
276
+ */
277
+ remainderCents?: null | number;
278
+ };
279
+ export type BankConnectionDto = {
280
+ accountId: string;
281
+ /**
282
+ * stripe, or null while the Konto is not connected.
283
+ */
284
+ provider?: null | string;
285
+ /**
286
+ * none (not connected), connected, or error (only a person can fix it: see error).
287
+ */
288
+ status: string;
289
+ /**
290
+ * key (a restricted Stripe key) or oauth (Stripe's read_only consent).
291
+ */
292
+ method?: null | string;
293
+ /**
294
+ * The connected Stripe account (acct_…) of an oauth connection.
295
+ */
296
+ externalAccountId?: null | string;
297
+ /**
298
+ * The own Konto payouts go to: a payout is a transfer there and its statement line is matched to it.
299
+ */
300
+ payoutAccountId?: null | string;
301
+ /**
302
+ * When bookings were last pulled, successful or not.
303
+ */
304
+ lastSyncAt?: null | string;
305
+ /**
306
+ * When the last pull succeeded.
307
+ */
308
+ lastSuccessAt?: null | string;
309
+ /**
310
+ * The last pull's failure: invalid_key, missing_permission, revoked or unavailable.
311
+ */
312
+ error?: null | string;
313
+ /**
314
+ * What failed and the next step, in German.
315
+ */
316
+ errorMessage?: null | string;
317
+ /**
318
+ * Whether this server offers connecting through Stripe's consent page (startBankStripeOAuth).
319
+ */
320
+ oauthAvailable: boolean;
321
+ connectedAt?: null | string;
322
+ };
215
323
  export type BankCounterpartyDto = {
216
324
  name: null | string;
217
325
  iban: null | string;
@@ -242,13 +350,17 @@ export type BankMatchDto = {
242
350
  */
243
351
  by: string;
244
352
  /**
245
- * The AI's level: sicher or eventuell.
353
+ * How sure: sicher or eventuell. A rule's hit is sicher, its weaker proposal eventuell.
246
354
  */
247
355
  confidence?: null | string;
248
356
  /**
249
- * A sure AI hit taken over automatically: cancelBankAutoMatch turns it back into a proposal.
357
+ * A sure hit taken over without a person: cancelBankAutoMatch turns it back into a proposal.
250
358
  */
251
359
  auto: boolean;
360
+ /**
361
+ * What fits an invoice or receipt, as in BankCandidateDto.reasons; a transfer by IBAN is iban.
362
+ */
363
+ reasons: Array<string>;
252
364
  };
253
365
  export type BankSettingsDto = {
254
366
  /**
@@ -256,7 +368,7 @@ export type BankSettingsDto = {
256
368
  */
257
369
  aiMatch: boolean;
258
370
  /**
259
- * sicher: a sure AI hit is taken over (and can be undone); nie: every hit waits for a person.
371
+ * sicher: a sure hit of a rule or the AI is taken over (and can be undone); nie: every hit waits for a person.
260
372
  */
261
373
  autoAccept: string;
262
374
  };
@@ -264,7 +376,7 @@ export type BankTransactionDto = {
264
376
  id: string;
265
377
  accountId: string;
266
378
  /**
267
- * How it came in: api, camt or manual.
379
+ * How it came in: api, camt, manual or stripe (a connected Stripe account).
268
380
  */
269
381
  via: string;
270
382
  /**
@@ -282,7 +394,7 @@ export type BankTransactionDto = {
282
394
  reference?: null | string;
283
395
  endToEndId?: null | string;
284
396
  /**
285
- * charge, refund, fee, payout or transfer.
397
+ * charge, refund, fee, payout, transfer or dispute.
286
398
  */
287
399
  kind: string;
288
400
  /**
@@ -304,6 +416,10 @@ export type BankTransactionDto = {
304
416
  editable: boolean;
305
417
  match?: null | BankMatchDto;
306
418
  createdAt: string;
419
+ /**
420
+ * While nothing is assigned: the invoices and receipts it can pay, best first, at most four; a proposal's target first. Empty once assigned.
421
+ */
422
+ candidates: Array<BankCandidateDto>;
307
423
  };
308
424
  export type BankTransactionInput = {
309
425
  /**
@@ -330,7 +446,7 @@ export type BankTransactionInput = {
330
446
  reference?: null | string;
331
447
  endToEndId?: null | string;
332
448
  /**
333
- * charge (default), refund, fee or payout.
449
+ * charge (default), refund, fee, payout or dispute.
334
450
  */
335
451
  kind?: null | string;
336
452
  /**
@@ -507,6 +623,10 @@ export type BillingListsDto = {
507
623
  partners: string;
508
624
  articles: string;
509
625
  outgoing: string;
626
+ /**
627
+ * The system list Eingang: receipts from outside.
628
+ */
629
+ incoming?: null | string;
510
630
  };
511
631
  export type BillingMonthDto = {
512
632
  /**
@@ -549,6 +669,55 @@ export type BillingNumbersDto = {
549
669
  emailField?: null | string;
550
670
  nextCustomerNumber?: null | string;
551
671
  nextSupplierNumber?: null | string;
672
+ /**
673
+ * Field key of the Rechnungsanschrift, a text field: name, street, postal code and city, country and UID line by line.
674
+ */
675
+ addressField?: null | string;
676
+ };
677
+ export type BillingPartnerDto = {
678
+ /**
679
+ * company, person or ownRecord.
680
+ */
681
+ kind: string;
682
+ /**
683
+ * A company's or person's Firmenakte-ID, or an own entry's ID.
684
+ */
685
+ id: string;
686
+ name: string;
687
+ /**
688
+ * Kunde, Lieferant or Kunde und Lieferant.
689
+ */
690
+ role?: null | string;
691
+ /**
692
+ * Kundennummer, once the partner is a customer.
693
+ */
694
+ customerNumber?: null | string;
695
+ /**
696
+ * Lieferantennummer, once the partner is a supplier.
697
+ */
698
+ supplierNumber?: null | string;
699
+ /**
700
+ * What the partner still owes on issued invoices, in cents.
701
+ */
702
+ receivableCents: number;
703
+ /**
704
+ * What is still owed to the partner on his receipts in the Eingang, in cents.
705
+ */
706
+ payableCents: number;
707
+ /**
708
+ * Net revenue of the invoices issued to him this calendar year, in cents.
709
+ */
710
+ revenueCents: number;
711
+ /**
712
+ * Net amount of his receipts in the Eingang dated this calendar year, in cents.
713
+ */
714
+ expensesCents: number;
715
+ invoices: number;
716
+ receipts: number;
717
+ /**
718
+ * Archived: left out of Kunden, Lieferanten and the customer search of the invoice editor.
719
+ */
720
+ archived: boolean;
552
721
  };
553
722
  export type BillingSenderDto = {
554
723
  id: string;
@@ -675,6 +844,10 @@ export type CamtImportResultDto = {
675
844
  */
676
845
  gaps: Array<string>;
677
846
  warnings: Array<string>;
847
+ /**
848
+ * New bookings assigned without a person; the rest of created waits.
849
+ */
850
+ assigned: number;
678
851
  };
679
852
  export type CancelInvoiceBody = {
680
853
  /**
@@ -875,6 +1048,17 @@ export type ChangeSubject = {
875
1048
  type: string;
876
1049
  name?: null | string;
877
1050
  };
1051
+ export type CheckInvoiceUidRequest = {
1052
+ /**
1053
+ * The UID, such as ATU12345678: the customer's UID of the draft invoiceId names, as last saved.
1054
+ */
1055
+ uid: string;
1056
+ customerRef?: null | InvoiceCustomerRef;
1057
+ /**
1058
+ * Required: the draft whose customer has this UID. Other UIDs go through checkUid.
1059
+ */
1060
+ invoiceId?: null | string;
1061
+ };
878
1062
  export type CheckUidRequest = {
879
1063
  /**
880
1064
  * Complete EU or XI VAT number including country prefix, for example ATU14490102. Spaces and letter case are normalized; leading zeros are retained.
@@ -1302,7 +1486,7 @@ export type CompanySearchRequest = {
1302
1486
  */
1303
1487
  court?: string | Array<string>;
1304
1488
  /**
1305
- * Key-figure ranges, for example [{"figure":"revenue","min":1000000}]; each requires min, max or both.
1489
+ * Key-figure ranges, for example [{"figure":"revenue","min":1000000}]; each requires min, max or both. Growth in % p.a. (CAGR) over 1, 3 or 5 years: <figure>Growth<n>y for totalAssets, equity, employees, revenue, netIncome, e.g. {"figure":"revenueGrowth3y","min":20}; no value without both accounts.
1306
1490
  */
1307
1491
  figures?: null | Array<FigureRange>;
1308
1492
  };
@@ -1361,6 +1545,10 @@ export type CreateBankAccountRequest = {
1361
1545
  * The balance before the first booking, in cents.
1362
1546
  */
1363
1547
  openingBalanceCents?: number;
1548
+ /**
1549
+ * bank (default), cash, card or provider.
1550
+ */
1551
+ kind?: null | string;
1364
1552
  };
1365
1553
  export type CreateBankTransactionRequest = {
1366
1554
  accountId: string;
@@ -1520,7 +1708,6 @@ export type CreateRuleDto = {
1520
1708
  };
1521
1709
  export type CreditPrices = {
1522
1710
  listUpdate: number;
1523
- digestEmail: number;
1524
1711
  exportRows: number;
1525
1712
  exportMinimum: number;
1526
1713
  };
@@ -1529,11 +1716,21 @@ export type CursorPageOfAkteRefDto = {
1529
1716
  nextCursor?: null | string;
1530
1717
  total?: null | number;
1531
1718
  };
1719
+ export type CursorPageOfArticleDto = {
1720
+ items: Array<ArticleDto>;
1721
+ nextCursor?: null | string;
1722
+ total?: null | number;
1723
+ };
1532
1724
  export type CursorPageOfBankAccountDto = {
1533
1725
  items: Array<BankAccountDto>;
1534
1726
  nextCursor?: null | string;
1535
1727
  total?: null | number;
1536
1728
  };
1729
+ export type CursorPageOfBankCandidateDto = {
1730
+ items: Array<BankCandidateDto>;
1731
+ nextCursor?: null | string;
1732
+ total?: null | number;
1733
+ };
1537
1734
  export type CursorPageOfBankTransactionDto = {
1538
1735
  items: Array<BankTransactionDto>;
1539
1736
  nextCursor?: null | string;
@@ -1549,6 +1746,11 @@ export type CursorPageOfBillingExportDto = {
1549
1746
  nextCursor?: null | string;
1550
1747
  total?: null | number;
1551
1748
  };
1749
+ export type CursorPageOfBillingPartnerDto = {
1750
+ items: Array<BillingPartnerDto>;
1751
+ nextCursor?: null | string;
1752
+ total?: null | number;
1753
+ };
1552
1754
  export type CursorPageOfChangeEntry = {
1553
1755
  items: Array<ChangeEntry>;
1554
1756
  nextCursor?: null | string;
@@ -1924,6 +2126,7 @@ export type FieldDefinition = {
1924
2126
  filterVia?: null | string;
1925
2127
  searchTerms?: null | Array<string>;
1926
2128
  searchable?: null | boolean;
2129
+ growth?: null | FieldGrowth;
1927
2130
  };
1928
2131
  export type FieldDto = {
1929
2132
  id: string;
@@ -1950,6 +2153,10 @@ export type FieldGroup = {
1950
2153
  label: string;
1951
2154
  rank?: null | number;
1952
2155
  };
2156
+ export type FieldGrowth = {
2157
+ of: string;
2158
+ years: number;
2159
+ };
1953
2160
  export type FieldListDto = {
1954
2161
  id: string;
1955
2162
  name: string;
@@ -2097,6 +2304,10 @@ export type ImportBankTransactionsResult = {
2097
2304
  * New bookings the matching assigned or proposed something for.
2098
2305
  */
2099
2306
  matched: number;
2307
+ /**
2308
+ * New bookings assigned without a person: nothing left to do for them.
2309
+ */
2310
+ assigned: number;
2100
2311
  };
2101
2312
  export type ImportCamtRequest = {
2102
2313
  accountId: string;
@@ -2210,6 +2421,7 @@ export type InvoiceCustomerDto = {
2210
2421
  * The Rechnungs-E-Mail: the invoice's, else the Geschäftspartner's field.
2211
2422
  */
2212
2423
  email?: null | string;
2424
+ uidCheck?: null | InvoiceUidDto;
2213
2425
  };
2214
2426
  export type InvoiceCustomerRef = {
2215
2427
  /**
@@ -2218,6 +2430,23 @@ export type InvoiceCustomerRef = {
2218
2430
  kind: string;
2219
2431
  id: string;
2220
2432
  };
2433
+ export type InvoiceDefaultsDto = {
2434
+ customer: InvoiceCustomer;
2435
+ /**
2436
+ * rechnungsanschrift, register, ownRecord or none.
2437
+ */
2438
+ customerSource: string;
2439
+ paymentDays: number;
2440
+ /**
2441
+ * partner or sender.
2442
+ */
2443
+ paymentDaysSource: string;
2444
+ iban?: null | string;
2445
+ /**
2446
+ * partner or sender.
2447
+ */
2448
+ ibanSource: string;
2449
+ };
2221
2450
  export type InvoiceDraftBody = {
2222
2451
  /**
2223
2452
  * Absender: one of get_billing_setup's senders (a company's Firmenakte-ID or user:<id>). Default: the only one, or the one of the workspace's latest invoice.
@@ -2250,6 +2479,21 @@ export type InvoiceDraftBody = {
2250
2479
  * A line above the positions.
2251
2480
  */
2252
2481
  note?: null | string;
2482
+ scope?: null | InvoiceDraftScope;
2483
+ };
2484
+ export type InvoiceDraftScope = {
2485
+ /**
2486
+ * partner (the default: issuing makes the customer a Geschäftspartner) or invoice (no Geschäftspartner is created or changed).
2487
+ */
2488
+ customer?: null | string;
2489
+ /**
2490
+ * invoice (the default) or partner: issuing saves name, address and UID as the Geschäftspartner's Rechnungsanschrift.
2491
+ */
2492
+ address?: null | string;
2493
+ /**
2494
+ * invoice (the default), partner (payment days and IBAN become the Geschäftspartner's) or all (the Absender's Rechnungsdaten).
2495
+ */
2496
+ payment?: null | string;
2253
2497
  };
2254
2498
  export type InvoiceDto = {
2255
2499
  id: string;
@@ -2314,6 +2558,8 @@ export type InvoiceDto = {
2314
2558
  * Sending by e-mail: whether it can go now, to where, and the mails sent so far.
2315
2559
  */
2316
2560
  email: InvoiceEmailDto;
2561
+ scope?: null | InvoiceDraftScope;
2562
+ defaults?: null | InvoiceDefaultsDto;
2317
2563
  };
2318
2564
  export type InvoiceEmailDto = {
2319
2565
  /**
@@ -2366,6 +2612,10 @@ export type InvoiceLine = {
2366
2612
  * The Artikel the position was copied from; the copy does not change with it.
2367
2613
  */
2368
2614
  articleId?: null | string;
2615
+ /**
2616
+ * What issuing does beyond this invoice: invoice (nothing, the default), article (also change the Artikel articleId names) or newArticle (save it as a new Artikel).
2617
+ */
2618
+ scope?: null | string;
2369
2619
  };
2370
2620
  export type InvoiceMailDto = {
2371
2621
  /**
@@ -2392,6 +2642,23 @@ export type InvoiceSummaryDto = {
2392
2642
  dueDate?: null | string;
2393
2643
  originalNumber?: null | string;
2394
2644
  };
2645
+ export type InvoiceUidCompanyDto = {
2646
+ id: string;
2647
+ name: string;
2648
+ };
2649
+ export type InvoiceUidDto = {
2650
+ uid: string;
2651
+ /**
2652
+ * valid, invalid (issuing is refused), otherCompany (valid but another company's: it stays on this invoice), unchecked, unavailable (VIES did not answer) or rateLimited.
2653
+ */
2654
+ status: string;
2655
+ verifiedAt?: null | string;
2656
+ /**
2657
+ * The name VIES gives for the UID.
2658
+ */
2659
+ name?: null | string;
2660
+ company?: null | InvoiceUidCompanyDto;
2661
+ };
2395
2662
  export type InvoiceVatDto = {
2396
2663
  rate: number;
2397
2664
  netCents: number;
@@ -2682,6 +2949,7 @@ export type ListDto = {
2682
2949
  hasRules?: boolean;
2683
2950
  allSelectedPresent?: null | boolean;
2684
2951
  run?: null | ListRunDto;
2952
+ system?: null | string;
2685
2953
  };
2686
2954
  export type ListEntryAkteDto = {
2687
2955
  id: string;
@@ -2791,6 +3059,7 @@ export type ListSubjectProperty = {
2791
3059
  path: string;
2792
3060
  label: string;
2793
3061
  type: string;
3062
+ options?: null | Array<string>;
2794
3063
  };
2795
3064
  export type ListWriteJobDto = {
2796
3065
  id: string;
@@ -3051,6 +3320,7 @@ export type NumbersSettingsBody = {
3051
3320
  paymentDaysField?: null | string;
3052
3321
  ibanField?: null | string;
3053
3322
  emailField?: null | string;
3323
+ addressField?: null | string;
3054
3324
  };
3055
3325
  export type OwnRecordDto = {
3056
3326
  id: string;
@@ -3907,6 +4177,14 @@ export type SaveArticleRequest = {
3907
4177
  * An Artikel to change; empty creates one.
3908
4178
  */
3909
4179
  id?: null | string;
4180
+ /**
4181
+ * Artikelnummer, at most 30 characters.
4182
+ */
4183
+ number?: null | string;
4184
+ /**
4185
+ * True archives the Artikel (no longer offered on invoices), false takes it back; leave out to keep it.
4186
+ */
4187
+ archived?: null | boolean;
3910
4188
  };
3911
4189
  export type SearchMatch = {
3912
4190
  field: string;
@@ -4002,6 +4280,20 @@ export type StoredResultReference = {
4002
4280
  bytes: number;
4003
4281
  expiresAt: string;
4004
4282
  };
4283
+ export type SyncBankConnectionResult = {
4284
+ /**
4285
+ * Bookings created; one already there is skipped.
4286
+ */
4287
+ created: number;
4288
+ /**
4289
+ * New bookings assigned or proposed, fees and payouts included.
4290
+ */
4291
+ matched: number;
4292
+ /**
4293
+ * The connection after the pull; error says why a pull failed.
4294
+ */
4295
+ connection: BankConnectionDto;
4296
+ };
4005
4297
  export type SyncedCell = {
4006
4298
  value: any;
4007
4299
  asOf?: null | string;
@@ -4075,6 +4367,16 @@ export type UpdateBankAccountBody = {
4075
4367
  */
4076
4368
  iban?: null | string;
4077
4369
  openingBalanceCents?: null | number;
4370
+ /**
4371
+ * bank, cash, card or provider.
4372
+ */
4373
+ kind?: null | string;
4374
+ };
4375
+ export type UpdateBankConnectionBody = {
4376
+ /**
4377
+ * The own Konto payouts go to; an empty string removes it.
4378
+ */
4379
+ payoutAccountId?: null | string;
4078
4380
  };
4079
4381
  export type UpdateBankSettingsRequest = {
4080
4382
  aiMatch?: null | boolean;
@@ -4125,6 +4427,12 @@ export type UpdateBillingDocumentBody = {
4125
4427
  */
4126
4428
  archived?: null | boolean;
4127
4429
  };
4430
+ export type UpdateBillingPartnerBody = {
4431
+ /**
4432
+ * True archives the partner, false takes him back.
4433
+ */
4434
+ archived: boolean;
4435
+ };
4128
4436
  export type UpdateBillingSettingsRequest = {
4129
4437
  sender?: null | SenderSettingsBody;
4130
4438
  numbers?: null | NumbersSettingsBody;
@@ -9239,26 +9547,22 @@ export type ReadBillingDocumentResponses = {
9239
9547
  200: BillingDocumentDto;
9240
9548
  };
9241
9549
  export type ReadBillingDocumentResponse = ReadBillingDocumentResponses[keyof ReadBillingDocumentResponses];
9242
- export type GetBillingSummaryData = {
9550
+ export type ListBillingPartnersData = {
9243
9551
  body?: never;
9244
9552
  path?: never;
9245
9553
  query?: {
9246
9554
  /**
9247
- * First day, YYYY-MM-DD; the first of the running month if omitted.
9248
- */
9249
- from?: string;
9250
- /**
9251
- * Last day, YYYY-MM-DD; the last of from's month if omitted. At most 24 months after from.
9555
+ * Page size, default 50, maximum 200.
9252
9556
  */
9253
- to?: string;
9557
+ limit?: number;
9254
9558
  /**
9255
- * payment (default): what was paid in the period, as the Einnahmen-Ausgaben-Rechnung counts; invoice: invoices and receipts by their date, paid or not.
9559
+ * Opaque cursor from the previous page.
9256
9560
  */
9257
- basis?: 'payment' | 'invoice';
9561
+ cursor?: string;
9258
9562
  };
9259
- url: '/api/v2/me/billing/summary';
9563
+ url: '/api/v2/me/billing/partners';
9260
9564
  };
9261
- export type GetBillingSummaryErrors = {
9565
+ export type ListBillingPartnersErrors = {
9262
9566
  /**
9263
9567
  * Malformed request, or a cursor from another request.
9264
9568
  */
@@ -9292,34 +9596,21 @@ export type GetBillingSummaryErrors = {
9292
9596
  */
9293
9597
  500: Problem;
9294
9598
  };
9295
- export type GetBillingSummaryError = GetBillingSummaryErrors[keyof GetBillingSummaryErrors];
9296
- export type GetBillingSummaryResponses = {
9599
+ export type ListBillingPartnersError = ListBillingPartnersErrors[keyof ListBillingPartnersErrors];
9600
+ export type ListBillingPartnersResponses = {
9297
9601
  /**
9298
9602
  * OK
9299
9603
  */
9300
- 200: BillingSummaryDto;
9604
+ 200: CursorPageOfBillingPartnerDto;
9301
9605
  };
9302
- export type GetBillingSummaryResponse = GetBillingSummaryResponses[keyof GetBillingSummaryResponses];
9303
- export type ListBillingExportsData = {
9304
- body?: never;
9606
+ export type ListBillingPartnersResponse = ListBillingPartnersResponses[keyof ListBillingPartnersResponses];
9607
+ export type AddBillingPartnerData = {
9608
+ body: AddBillingPartnerRequest;
9305
9609
  path?: never;
9306
- query?: {
9307
- /**
9308
- * month (default) or quarter.
9309
- */
9310
- kind?: 'month' | 'quarter';
9311
- /**
9312
- * Page size, default 12, maximum 60.
9313
- */
9314
- limit?: number;
9315
- /**
9316
- * Opaque cursor from the previous page.
9317
- */
9318
- cursor?: string;
9319
- };
9320
- url: '/api/v2/me/billing/exports';
9610
+ query?: never;
9611
+ url: '/api/v2/me/billing/partners';
9321
9612
  };
9322
- export type ListBillingExportsErrors = {
9613
+ export type AddBillingPartnerErrors = {
9323
9614
  /**
9324
9615
  * Malformed request, or a cursor from another request.
9325
9616
  */
@@ -9353,26 +9644,26 @@ export type ListBillingExportsErrors = {
9353
9644
  */
9354
9645
  500: Problem;
9355
9646
  };
9356
- export type ListBillingExportsError = ListBillingExportsErrors[keyof ListBillingExportsErrors];
9357
- export type ListBillingExportsResponses = {
9647
+ export type AddBillingPartnerError = AddBillingPartnerErrors[keyof AddBillingPartnerErrors];
9648
+ export type AddBillingPartnerResponses = {
9358
9649
  /**
9359
- * OK
9650
+ * Created
9360
9651
  */
9361
- 200: CursorPageOfBillingExportDto;
9652
+ 201: BillingPartnerDto;
9362
9653
  };
9363
- export type ListBillingExportsResponse = ListBillingExportsResponses[keyof ListBillingExportsResponses];
9364
- export type GetBillingExportFileData = {
9654
+ export type AddBillingPartnerResponse = AddBillingPartnerResponses[keyof AddBillingPartnerResponses];
9655
+ export type DeleteBillingPartnerData = {
9365
9656
  body?: never;
9366
9657
  path: {
9367
9658
  /**
9368
- * The period: YYYY-MM for a month, YYYY-Qn for a quarter.
9659
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
9369
9660
  */
9370
- period: string;
9661
+ id: string;
9371
9662
  };
9372
9663
  query?: never;
9373
- url: '/api/v2/me/billing/exports/{period}/file';
9664
+ url: '/api/v2/me/billing/partners/{id}';
9374
9665
  };
9375
- export type GetBillingExportFileErrors = {
9666
+ export type DeleteBillingPartnerErrors = {
9376
9667
  /**
9377
9668
  * Malformed request, or a cursor from another request.
9378
9669
  */
@@ -9406,20 +9697,26 @@ export type GetBillingExportFileErrors = {
9406
9697
  */
9407
9698
  500: Problem;
9408
9699
  };
9409
- export type GetBillingExportFileError = GetBillingExportFileErrors[keyof GetBillingExportFileErrors];
9410
- export type GetBillingExportFileResponses = {
9700
+ export type DeleteBillingPartnerError = DeleteBillingPartnerErrors[keyof DeleteBillingPartnerErrors];
9701
+ export type DeleteBillingPartnerResponses = {
9411
9702
  /**
9412
9703
  * OK
9413
9704
  */
9414
- 200: any;
9705
+ 200: BillingPartnerDto;
9415
9706
  };
9416
- export type GetBillingSetupData = {
9417
- body?: never;
9418
- path?: never;
9707
+ export type DeleteBillingPartnerResponse = DeleteBillingPartnerResponses[keyof DeleteBillingPartnerResponses];
9708
+ export type UpdateBillingPartnerData = {
9709
+ body: UpdateBillingPartnerBody;
9710
+ path: {
9711
+ /**
9712
+ * A company's Firmenakte-ID or an own entry's ID.
9713
+ */
9714
+ id: string;
9715
+ };
9419
9716
  query?: never;
9420
- url: '/api/v2/me/billing/settings/invoices';
9717
+ url: '/api/v2/me/billing/partners/{id}';
9421
9718
  };
9422
- export type GetBillingSetupErrors = {
9719
+ export type UpdateBillingPartnerErrors = {
9423
9720
  /**
9424
9721
  * Malformed request, or a cursor from another request.
9425
9722
  */
@@ -9453,21 +9750,34 @@ export type GetBillingSetupErrors = {
9453
9750
  */
9454
9751
  500: Problem;
9455
9752
  };
9456
- export type GetBillingSetupError = GetBillingSetupErrors[keyof GetBillingSetupErrors];
9457
- export type GetBillingSetupResponses = {
9753
+ export type UpdateBillingPartnerError = UpdateBillingPartnerErrors[keyof UpdateBillingPartnerErrors];
9754
+ export type UpdateBillingPartnerResponses = {
9458
9755
  /**
9459
9756
  * OK
9460
9757
  */
9461
- 200: BillingSetupDto;
9758
+ 200: BillingPartnerDto;
9462
9759
  };
9463
- export type GetBillingSetupResponse = GetBillingSetupResponses[keyof GetBillingSetupResponses];
9464
- export type UpdateBillingSettingsData = {
9465
- body: UpdateBillingSettingsRequest;
9760
+ export type UpdateBillingPartnerResponse = UpdateBillingPartnerResponses[keyof UpdateBillingPartnerResponses];
9761
+ export type GetBillingSummaryData = {
9762
+ body?: never;
9466
9763
  path?: never;
9467
- query?: never;
9468
- url: '/api/v2/me/billing/settings/invoices';
9764
+ query?: {
9765
+ /**
9766
+ * First day, YYYY-MM-DD; the first of the running month if omitted.
9767
+ */
9768
+ from?: string;
9769
+ /**
9770
+ * Last day, YYYY-MM-DD; the last of from's month if omitted. At most 24 months after from.
9771
+ */
9772
+ to?: string;
9773
+ /**
9774
+ * payment (default): what was paid in the period, as the Einnahmen-Ausgaben-Rechnung counts; invoice: invoices and receipts by their date, paid or not.
9775
+ */
9776
+ basis?: 'payment' | 'invoice';
9777
+ };
9778
+ url: '/api/v2/me/billing/summary';
9469
9779
  };
9470
- export type UpdateBillingSettingsErrors = {
9780
+ export type GetBillingSummaryErrors = {
9471
9781
  /**
9472
9782
  * Malformed request, or a cursor from another request.
9473
9783
  */
@@ -9501,21 +9811,339 @@ export type UpdateBillingSettingsErrors = {
9501
9811
  */
9502
9812
  500: Problem;
9503
9813
  };
9504
- export type UpdateBillingSettingsError = UpdateBillingSettingsErrors[keyof UpdateBillingSettingsErrors];
9505
- export type UpdateBillingSettingsResponses = {
9814
+ export type GetBillingSummaryError = GetBillingSummaryErrors[keyof GetBillingSummaryErrors];
9815
+ export type GetBillingSummaryResponses = {
9506
9816
  /**
9507
9817
  * OK
9508
9818
  */
9509
- 200: BillingSetupDto;
9819
+ 200: BillingSummaryDto;
9510
9820
  };
9511
- export type UpdateBillingSettingsResponse = UpdateBillingSettingsResponses[keyof UpdateBillingSettingsResponses];
9821
+ export type GetBillingSummaryResponse = GetBillingSummaryResponses[keyof GetBillingSummaryResponses];
9822
+ export type ListBillingExportsData = {
9823
+ body?: never;
9824
+ path?: never;
9825
+ query?: {
9826
+ /**
9827
+ * month (default) or quarter.
9828
+ */
9829
+ kind?: 'month' | 'quarter';
9830
+ /**
9831
+ * Page size, default 12, maximum 60.
9832
+ */
9833
+ limit?: number;
9834
+ /**
9835
+ * Opaque cursor from the previous page.
9836
+ */
9837
+ cursor?: string;
9838
+ };
9839
+ url: '/api/v2/me/billing/exports';
9840
+ };
9841
+ export type ListBillingExportsErrors = {
9842
+ /**
9843
+ * Malformed request, or a cursor from another request.
9844
+ */
9845
+ 400: Problem;
9846
+ /**
9847
+ * No valid API key or session.
9848
+ */
9849
+ 401: Problem;
9850
+ /**
9851
+ * This operation needs a dashboard session.
9852
+ */
9853
+ 403: Problem;
9854
+ /**
9855
+ * Not found, or it belongs to another workspace.
9856
+ */
9857
+ 404: Problem;
9858
+ /**
9859
+ * Conflict with the current state; `code` says which.
9860
+ */
9861
+ 409: Problem;
9862
+ /**
9863
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9864
+ */
9865
+ 422: Problem;
9866
+ /**
9867
+ * Too many requests; retry after `Retry-After`.
9868
+ */
9869
+ 429: Problem;
9870
+ /**
9871
+ * Internal error; quote `requestId` to support.
9872
+ */
9873
+ 500: Problem;
9874
+ };
9875
+ export type ListBillingExportsError = ListBillingExportsErrors[keyof ListBillingExportsErrors];
9876
+ export type ListBillingExportsResponses = {
9877
+ /**
9878
+ * OK
9879
+ */
9880
+ 200: CursorPageOfBillingExportDto;
9881
+ };
9882
+ export type ListBillingExportsResponse = ListBillingExportsResponses[keyof ListBillingExportsResponses];
9883
+ export type GetBillingExportFileData = {
9884
+ body?: never;
9885
+ path: {
9886
+ /**
9887
+ * The period: YYYY-MM for a month, YYYY-Qn for a quarter.
9888
+ */
9889
+ period: string;
9890
+ };
9891
+ query?: never;
9892
+ url: '/api/v2/me/billing/exports/{period}/file';
9893
+ };
9894
+ export type GetBillingExportFileErrors = {
9895
+ /**
9896
+ * Malformed request, or a cursor from another request.
9897
+ */
9898
+ 400: Problem;
9899
+ /**
9900
+ * No valid API key or session.
9901
+ */
9902
+ 401: Problem;
9903
+ /**
9904
+ * This operation needs a dashboard session.
9905
+ */
9906
+ 403: Problem;
9907
+ /**
9908
+ * Not found, or it belongs to another workspace.
9909
+ */
9910
+ 404: Problem;
9911
+ /**
9912
+ * Conflict with the current state; `code` says which.
9913
+ */
9914
+ 409: Problem;
9915
+ /**
9916
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9917
+ */
9918
+ 422: Problem;
9919
+ /**
9920
+ * Too many requests; retry after `Retry-After`.
9921
+ */
9922
+ 429: Problem;
9923
+ /**
9924
+ * Internal error; quote `requestId` to support.
9925
+ */
9926
+ 500: Problem;
9927
+ };
9928
+ export type GetBillingExportFileError = GetBillingExportFileErrors[keyof GetBillingExportFileErrors];
9929
+ export type GetBillingExportFileResponses = {
9930
+ /**
9931
+ * OK
9932
+ */
9933
+ 200: any;
9934
+ };
9935
+ export type ListArticlesData = {
9936
+ body?: never;
9937
+ path?: never;
9938
+ query?: {
9939
+ /**
9940
+ * Searches name and Artikelnummer.
9941
+ */
9942
+ q?: string;
9943
+ /**
9944
+ * Page size, default 20, maximum 100.
9945
+ */
9946
+ limit?: number;
9947
+ /**
9948
+ * Opaque cursor from the previous page.
9949
+ */
9950
+ cursor?: string;
9951
+ };
9952
+ url: '/api/v2/me/billing/articles';
9953
+ };
9954
+ export type ListArticlesErrors = {
9955
+ /**
9956
+ * Malformed request, or a cursor from another request.
9957
+ */
9958
+ 400: Problem;
9959
+ /**
9960
+ * No valid API key or session.
9961
+ */
9962
+ 401: Problem;
9963
+ /**
9964
+ * This operation needs a dashboard session.
9965
+ */
9966
+ 403: Problem;
9967
+ /**
9968
+ * Not found, or it belongs to another workspace.
9969
+ */
9970
+ 404: Problem;
9971
+ /**
9972
+ * Conflict with the current state; `code` says which.
9973
+ */
9974
+ 409: Problem;
9975
+ /**
9976
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9977
+ */
9978
+ 422: Problem;
9979
+ /**
9980
+ * Too many requests; retry after `Retry-After`.
9981
+ */
9982
+ 429: Problem;
9983
+ /**
9984
+ * Internal error; quote `requestId` to support.
9985
+ */
9986
+ 500: Problem;
9987
+ };
9988
+ export type ListArticlesError = ListArticlesErrors[keyof ListArticlesErrors];
9989
+ export type ListArticlesResponses = {
9990
+ /**
9991
+ * OK
9992
+ */
9993
+ 200: CursorPageOfArticleDto;
9994
+ };
9995
+ export type ListArticlesResponse = ListArticlesResponses[keyof ListArticlesResponses];
9512
9996
  export type SetArticleData = {
9513
9997
  body: SaveArticleRequest;
9514
9998
  path?: never;
9515
9999
  query?: never;
9516
- url: '/api/v2/me/billing/articles';
10000
+ url: '/api/v2/me/billing/articles';
10001
+ };
10002
+ export type SetArticleErrors = {
10003
+ /**
10004
+ * Malformed request, or a cursor from another request.
10005
+ */
10006
+ 400: Problem;
10007
+ /**
10008
+ * No valid API key or session.
10009
+ */
10010
+ 401: Problem;
10011
+ /**
10012
+ * This operation needs a dashboard session.
10013
+ */
10014
+ 403: Problem;
10015
+ /**
10016
+ * Not found, or it belongs to another workspace.
10017
+ */
10018
+ 404: Problem;
10019
+ /**
10020
+ * Conflict with the current state; `code` says which.
10021
+ */
10022
+ 409: Problem;
10023
+ /**
10024
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
10025
+ */
10026
+ 422: Problem;
10027
+ /**
10028
+ * Too many requests; retry after `Retry-After`.
10029
+ */
10030
+ 429: Problem;
10031
+ /**
10032
+ * Internal error; quote `requestId` to support.
10033
+ */
10034
+ 500: Problem;
10035
+ };
10036
+ export type SetArticleError = SetArticleErrors[keyof SetArticleErrors];
10037
+ export type SetArticleResponses = {
10038
+ /**
10039
+ * OK
10040
+ */
10041
+ 200: ArticleDto;
10042
+ };
10043
+ export type SetArticleResponse = SetArticleResponses[keyof SetArticleResponses];
10044
+ export type CheckInvoiceUidData = {
10045
+ body: CheckInvoiceUidRequest;
10046
+ path?: never;
10047
+ query?: never;
10048
+ url: '/api/v2/me/billing/invoices/uid-checks';
10049
+ };
10050
+ export type CheckInvoiceUidErrors = {
10051
+ /**
10052
+ * Malformed request, or a cursor from another request.
10053
+ */
10054
+ 400: Problem;
10055
+ /**
10056
+ * No valid API key or session.
10057
+ */
10058
+ 401: Problem;
10059
+ /**
10060
+ * This operation needs a dashboard session.
10061
+ */
10062
+ 403: Problem;
10063
+ /**
10064
+ * Not found, or it belongs to another workspace.
10065
+ */
10066
+ 404: Problem;
10067
+ /**
10068
+ * Conflict with the current state; `code` says which.
10069
+ */
10070
+ 409: Problem;
10071
+ /**
10072
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
10073
+ */
10074
+ 422: Problem;
10075
+ /**
10076
+ * Too many requests; retry after `Retry-After`.
10077
+ */
10078
+ 429: Problem;
10079
+ /**
10080
+ * Internal error; quote `requestId` to support.
10081
+ */
10082
+ 500: Problem;
10083
+ };
10084
+ export type CheckInvoiceUidError = CheckInvoiceUidErrors[keyof CheckInvoiceUidErrors];
10085
+ export type CheckInvoiceUidResponses = {
10086
+ /**
10087
+ * OK
10088
+ */
10089
+ 200: InvoiceUidDto;
10090
+ };
10091
+ export type CheckInvoiceUidResponse = CheckInvoiceUidResponses[keyof CheckInvoiceUidResponses];
10092
+ export type GetBillingSetupData = {
10093
+ body?: never;
10094
+ path?: never;
10095
+ query?: never;
10096
+ url: '/api/v2/me/billing/settings/invoices';
10097
+ };
10098
+ export type GetBillingSetupErrors = {
10099
+ /**
10100
+ * Malformed request, or a cursor from another request.
10101
+ */
10102
+ 400: Problem;
10103
+ /**
10104
+ * No valid API key or session.
10105
+ */
10106
+ 401: Problem;
10107
+ /**
10108
+ * This operation needs a dashboard session.
10109
+ */
10110
+ 403: Problem;
10111
+ /**
10112
+ * Not found, or it belongs to another workspace.
10113
+ */
10114
+ 404: Problem;
10115
+ /**
10116
+ * Conflict with the current state; `code` says which.
10117
+ */
10118
+ 409: Problem;
10119
+ /**
10120
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
10121
+ */
10122
+ 422: Problem;
10123
+ /**
10124
+ * Too many requests; retry after `Retry-After`.
10125
+ */
10126
+ 429: Problem;
10127
+ /**
10128
+ * Internal error; quote `requestId` to support.
10129
+ */
10130
+ 500: Problem;
10131
+ };
10132
+ export type GetBillingSetupError = GetBillingSetupErrors[keyof GetBillingSetupErrors];
10133
+ export type GetBillingSetupResponses = {
10134
+ /**
10135
+ * OK
10136
+ */
10137
+ 200: BillingSetupDto;
10138
+ };
10139
+ export type GetBillingSetupResponse = GetBillingSetupResponses[keyof GetBillingSetupResponses];
10140
+ export type UpdateBillingSettingsData = {
10141
+ body: UpdateBillingSettingsRequest;
10142
+ path?: never;
10143
+ query?: never;
10144
+ url: '/api/v2/me/billing/settings/invoices';
9517
10145
  };
9518
- export type SetArticleErrors = {
10146
+ export type UpdateBillingSettingsErrors = {
9519
10147
  /**
9520
10148
  * Malformed request, or a cursor from another request.
9521
10149
  */
@@ -9549,19 +10177,19 @@ export type SetArticleErrors = {
9549
10177
  */
9550
10178
  500: Problem;
9551
10179
  };
9552
- export type SetArticleError = SetArticleErrors[keyof SetArticleErrors];
9553
- export type SetArticleResponses = {
10180
+ export type UpdateBillingSettingsError = UpdateBillingSettingsErrors[keyof UpdateBillingSettingsErrors];
10181
+ export type UpdateBillingSettingsResponses = {
9554
10182
  /**
9555
10183
  * OK
9556
10184
  */
9557
- 200: ArticleDto;
10185
+ 200: BillingSetupDto;
9558
10186
  };
9559
- export type SetArticleResponse = SetArticleResponses[keyof SetArticleResponses];
10187
+ export type UpdateBillingSettingsResponse = UpdateBillingSettingsResponses[keyof UpdateBillingSettingsResponses];
9560
10188
  export type DeleteArticleData = {
9561
10189
  body?: never;
9562
10190
  path: {
9563
10191
  /**
9564
- * The invoice's or article's ID.
10192
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
9565
10193
  */
9566
10194
  id: string;
9567
10195
  };
@@ -9731,7 +10359,7 @@ export type DeleteInvoiceData = {
9731
10359
  body?: never;
9732
10360
  path: {
9733
10361
  /**
9734
- * The invoice's or article's ID.
10362
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
9735
10363
  */
9736
10364
  id: string;
9737
10365
  };
@@ -9784,7 +10412,7 @@ export type GetInvoiceData = {
9784
10412
  body?: never;
9785
10413
  path: {
9786
10414
  /**
9787
- * The invoice's or article's ID.
10415
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
9788
10416
  */
9789
10417
  id: string;
9790
10418
  };
@@ -9837,7 +10465,7 @@ export type UpdateInvoiceData = {
9837
10465
  body: InvoiceDraftBody;
9838
10466
  path: {
9839
10467
  /**
9840
- * The invoice's or article's ID.
10468
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
9841
10469
  */
9842
10470
  id: string;
9843
10471
  };
@@ -9890,7 +10518,7 @@ export type IssueInvoiceData = {
9890
10518
  body?: never;
9891
10519
  path: {
9892
10520
  /**
9893
- * The invoice's or article's ID.
10521
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
9894
10522
  */
9895
10523
  id: string;
9896
10524
  };
@@ -9943,7 +10571,7 @@ export type CancelInvoiceData = {
9943
10571
  body: CancelInvoiceBody;
9944
10572
  path: {
9945
10573
  /**
9946
- * The invoice's or article's ID.
10574
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
9947
10575
  */
9948
10576
  id: string;
9949
10577
  };
@@ -9996,7 +10624,7 @@ export type DuplicateInvoiceData = {
9996
10624
  body?: never;
9997
10625
  path: {
9998
10626
  /**
9999
- * The invoice's or article's ID.
10627
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
10000
10628
  */
10001
10629
  id: string;
10002
10630
  };
@@ -10049,7 +10677,7 @@ export type SendInvoiceData = {
10049
10677
  body: SendInvoiceBody;
10050
10678
  path: {
10051
10679
  /**
10052
- * The invoice's or article's ID.
10680
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
10053
10681
  */
10054
10682
  id: string;
10055
10683
  };
@@ -10102,7 +10730,7 @@ export type RevokeInvoiceLinksData = {
10102
10730
  body?: never;
10103
10731
  path: {
10104
10732
  /**
10105
- * The invoice's or article's ID.
10733
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
10106
10734
  */
10107
10735
  id: string;
10108
10736
  };
@@ -10155,7 +10783,7 @@ export type GetInvoicePdfData = {
10155
10783
  body?: never;
10156
10784
  path: {
10157
10785
  /**
10158
- * The invoice's or article's ID.
10786
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
10159
10787
  */
10160
10788
  id: string;
10161
10789
  };
@@ -10203,12 +10831,290 @@ export type GetInvoicePdfResponses = {
10203
10831
  */
10204
10832
  200: any;
10205
10833
  };
10834
+ export type DeleteBankConnectionData = {
10835
+ body?: never;
10836
+ path: {
10837
+ /**
10838
+ * The Konto's or booking's ID.
10839
+ */
10840
+ id: string;
10841
+ };
10842
+ query?: never;
10843
+ url: '/api/v2/me/billing/accounts/{id}/connection';
10844
+ };
10845
+ export type DeleteBankConnectionErrors = {
10846
+ /**
10847
+ * Malformed request, or a cursor from another request.
10848
+ */
10849
+ 400: Problem;
10850
+ /**
10851
+ * No valid API key or session.
10852
+ */
10853
+ 401: Problem;
10854
+ /**
10855
+ * This operation needs a dashboard session.
10856
+ */
10857
+ 403: Problem;
10858
+ /**
10859
+ * Not found, or it belongs to another workspace.
10860
+ */
10861
+ 404: Problem;
10862
+ /**
10863
+ * Conflict with the current state; `code` says which.
10864
+ */
10865
+ 409: Problem;
10866
+ /**
10867
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
10868
+ */
10869
+ 422: Problem;
10870
+ /**
10871
+ * Too many requests; retry after `Retry-After`.
10872
+ */
10873
+ 429: Problem;
10874
+ /**
10875
+ * Internal error; quote `requestId` to support.
10876
+ */
10877
+ 500: Problem;
10878
+ };
10879
+ export type DeleteBankConnectionError = DeleteBankConnectionErrors[keyof DeleteBankConnectionErrors];
10880
+ export type DeleteBankConnectionResponses = {
10881
+ /**
10882
+ * OK
10883
+ */
10884
+ 200: BankConnectionDto;
10885
+ };
10886
+ export type DeleteBankConnectionResponse = DeleteBankConnectionResponses[keyof DeleteBankConnectionResponses];
10887
+ export type GetBankConnectionData = {
10888
+ body?: never;
10889
+ path: {
10890
+ /**
10891
+ * The Konto's or booking's ID.
10892
+ */
10893
+ id: string;
10894
+ };
10895
+ query?: never;
10896
+ url: '/api/v2/me/billing/accounts/{id}/connection';
10897
+ };
10898
+ export type GetBankConnectionErrors = {
10899
+ /**
10900
+ * Malformed request, or a cursor from another request.
10901
+ */
10902
+ 400: Problem;
10903
+ /**
10904
+ * No valid API key or session.
10905
+ */
10906
+ 401: Problem;
10907
+ /**
10908
+ * This operation needs a dashboard session.
10909
+ */
10910
+ 403: Problem;
10911
+ /**
10912
+ * Not found, or it belongs to another workspace.
10913
+ */
10914
+ 404: Problem;
10915
+ /**
10916
+ * Conflict with the current state; `code` says which.
10917
+ */
10918
+ 409: Problem;
10919
+ /**
10920
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
10921
+ */
10922
+ 422: Problem;
10923
+ /**
10924
+ * Too many requests; retry after `Retry-After`.
10925
+ */
10926
+ 429: Problem;
10927
+ /**
10928
+ * Internal error; quote `requestId` to support.
10929
+ */
10930
+ 500: Problem;
10931
+ };
10932
+ export type GetBankConnectionError = GetBankConnectionErrors[keyof GetBankConnectionErrors];
10933
+ export type GetBankConnectionResponses = {
10934
+ /**
10935
+ * OK
10936
+ */
10937
+ 200: BankConnectionDto;
10938
+ };
10939
+ export type GetBankConnectionResponse = GetBankConnectionResponses[keyof GetBankConnectionResponses];
10940
+ export type UpdateBankConnectionData = {
10941
+ body: UpdateBankConnectionBody;
10942
+ path: {
10943
+ /**
10944
+ * The Konto's or booking's ID.
10945
+ */
10946
+ id: string;
10947
+ };
10948
+ query?: never;
10949
+ url: '/api/v2/me/billing/accounts/{id}/connection';
10950
+ };
10951
+ export type UpdateBankConnectionErrors = {
10952
+ /**
10953
+ * Malformed request, or a cursor from another request.
10954
+ */
10955
+ 400: Problem;
10956
+ /**
10957
+ * No valid API key or session.
10958
+ */
10959
+ 401: Problem;
10960
+ /**
10961
+ * This operation needs a dashboard session.
10962
+ */
10963
+ 403: Problem;
10964
+ /**
10965
+ * Not found, or it belongs to another workspace.
10966
+ */
10967
+ 404: Problem;
10968
+ /**
10969
+ * Conflict with the current state; `code` says which.
10970
+ */
10971
+ 409: Problem;
10972
+ /**
10973
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
10974
+ */
10975
+ 422: Problem;
10976
+ /**
10977
+ * Too many requests; retry after `Retry-After`.
10978
+ */
10979
+ 429: Problem;
10980
+ /**
10981
+ * Internal error; quote `requestId` to support.
10982
+ */
10983
+ 500: Problem;
10984
+ };
10985
+ export type UpdateBankConnectionError = UpdateBankConnectionErrors[keyof UpdateBankConnectionErrors];
10986
+ export type UpdateBankConnectionResponses = {
10987
+ /**
10988
+ * OK
10989
+ */
10990
+ 200: BankConnectionDto;
10991
+ };
10992
+ export type UpdateBankConnectionResponse = UpdateBankConnectionResponses[keyof UpdateBankConnectionResponses];
10993
+ export type RunBankSyncData = {
10994
+ body?: never;
10995
+ path: {
10996
+ /**
10997
+ * The Konto's or booking's ID.
10998
+ */
10999
+ id: string;
11000
+ };
11001
+ query?: never;
11002
+ url: '/api/v2/me/billing/accounts/{id}/connection/sync';
11003
+ };
11004
+ export type RunBankSyncErrors = {
11005
+ /**
11006
+ * Malformed request, or a cursor from another request.
11007
+ */
11008
+ 400: Problem;
11009
+ /**
11010
+ * No valid API key or session.
11011
+ */
11012
+ 401: Problem;
11013
+ /**
11014
+ * This operation needs a dashboard session.
11015
+ */
11016
+ 403: Problem;
11017
+ /**
11018
+ * Not found, or it belongs to another workspace.
11019
+ */
11020
+ 404: Problem;
11021
+ /**
11022
+ * Conflict with the current state; `code` says which.
11023
+ */
11024
+ 409: Problem;
11025
+ /**
11026
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
11027
+ */
11028
+ 422: Problem;
11029
+ /**
11030
+ * Too many requests; retry after `Retry-After`.
11031
+ */
11032
+ 429: Problem;
11033
+ /**
11034
+ * Internal error; quote `requestId` to support.
11035
+ */
11036
+ 500: Problem;
11037
+ };
11038
+ export type RunBankSyncError = RunBankSyncErrors[keyof RunBankSyncErrors];
11039
+ export type RunBankSyncResponses = {
11040
+ /**
11041
+ * OK
11042
+ */
11043
+ 200: SyncBankConnectionResult;
11044
+ };
11045
+ export type RunBankSyncResponse = RunBankSyncResponses[keyof RunBankSyncResponses];
11046
+ export type ListBankMatchCandidatesData = {
11047
+ body?: never;
11048
+ path: {
11049
+ /**
11050
+ * The Konto's or booking's ID.
11051
+ */
11052
+ id: string;
11053
+ };
11054
+ query?: {
11055
+ /**
11056
+ * A number, a name or an amount such as 59,90.
11057
+ */
11058
+ q?: string;
11059
+ /**
11060
+ * Page size: bookings and Konten default 50, at most 200; candidates default 10, at most 50.
11061
+ */
11062
+ limit?: number;
11063
+ /**
11064
+ * Opaque cursor from the previous page.
11065
+ */
11066
+ cursor?: string;
11067
+ };
11068
+ url: '/api/v2/me/billing/transactions/{id}/candidates';
11069
+ };
11070
+ export type ListBankMatchCandidatesErrors = {
11071
+ /**
11072
+ * Malformed request, or a cursor from another request.
11073
+ */
11074
+ 400: Problem;
11075
+ /**
11076
+ * No valid API key or session.
11077
+ */
11078
+ 401: Problem;
11079
+ /**
11080
+ * This operation needs a dashboard session.
11081
+ */
11082
+ 403: Problem;
11083
+ /**
11084
+ * Not found, or it belongs to another workspace.
11085
+ */
11086
+ 404: Problem;
11087
+ /**
11088
+ * Conflict with the current state; `code` says which.
11089
+ */
11090
+ 409: Problem;
11091
+ /**
11092
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
11093
+ */
11094
+ 422: Problem;
11095
+ /**
11096
+ * Too many requests; retry after `Retry-After`.
11097
+ */
11098
+ 429: Problem;
11099
+ /**
11100
+ * Internal error; quote `requestId` to support.
11101
+ */
11102
+ 500: Problem;
11103
+ };
11104
+ export type ListBankMatchCandidatesError = ListBankMatchCandidatesErrors[keyof ListBankMatchCandidatesErrors];
11105
+ export type ListBankMatchCandidatesResponses = {
11106
+ /**
11107
+ * OK
11108
+ */
11109
+ 200: CursorPageOfBankCandidateDto;
11110
+ };
11111
+ export type ListBankMatchCandidatesResponse = ListBankMatchCandidatesResponses[keyof ListBankMatchCandidatesResponses];
10206
11112
  export type ListBankAccountsData = {
10207
11113
  body?: never;
10208
11114
  path?: never;
10209
11115
  query?: {
10210
11116
  /**
10211
- * Page size, default 50, maximum 200.
11117
+ * Page size: bookings and Konten default 50, at most 200; candidates default 10, at most 50.
10212
11118
  */
10213
11119
  limit?: number;
10214
11120
  /**
@@ -10423,7 +11329,7 @@ export type ListBankTransactionsData = {
10423
11329
  */
10424
11330
  accountId?: string;
10425
11331
  /**
10426
- * open, suggested or assigned.
11332
+ * open, suggested, todo (open or suggested) or assigned.
10427
11333
  */
10428
11334
  status?: string;
10429
11335
  /**
@@ -10431,7 +11337,7 @@ export type ListBankTransactionsData = {
10431
11337
  */
10432
11338
  q?: string;
10433
11339
  /**
10434
- * Page size, default 50, maximum 200.
11340
+ * Page size: bookings and Konten default 50, at most 200; candidates default 10, at most 50.
10435
11341
  */
10436
11342
  limit?: number;
10437
11343
  /**