@firmenakte/api-client 2.43.0 → 2.44.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.
@@ -227,6 +227,10 @@ export type BankAccountDto = {
227
227
  * The last day a Kontoauszug read into this Konto covers; null before the first.
228
228
  */
229
229
  statementUntil?: null | string;
230
+ /**
231
+ * Optional BIC; an invoice naming this Konto prints it beside the IBAN.
232
+ */
233
+ bic?: null | string;
230
234
  };
231
235
  export type BankAssignInput = {
232
236
  /**
@@ -242,6 +246,31 @@ export type BankAssignInput = {
242
246
  */
243
247
  reason?: null | string;
244
248
  };
249
+ export type BankBookingInput = {
250
+ /**
251
+ * The row's ID, unique per Konto: a statement line's externalId, else a key of your own. A repeat is skipped, so a retry creates nothing twice.
252
+ */
253
+ externalId: string;
254
+ bookingDate: string;
255
+ /**
256
+ * Signed, in cents: money in is positive.
257
+ */
258
+ amountCents: number;
259
+ counterparty?: null | BankCounterpartyDto;
260
+ /**
261
+ * Verwendungszweck.
262
+ */
263
+ reference?: null | string;
264
+ /**
265
+ * Valuta; the booking date if omitted.
266
+ */
267
+ valueDate?: null | string;
268
+ endToEndId?: null | string;
269
+ /**
270
+ * The number of the statement in statements the line is from; without it the row is a booking by hand.
271
+ */
272
+ statement?: null | string;
273
+ };
245
274
  export type BankCandidateDto = {
246
275
  /**
247
276
  * invoice or receipt.
@@ -264,7 +293,7 @@ export type BankCandidateDto = {
264
293
  currency: string;
265
294
  date: string;
266
295
  /**
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).
296
+ * 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), account (on the own Konto the invoice asks to be paid to).
268
297
  */
269
298
  reasons: Array<string>;
270
299
  /**
@@ -660,7 +689,7 @@ export type BillingNumbersDto = {
660
689
  */
661
690
  paymentDaysField?: null | string;
662
691
  /**
663
- * Field key of a text field whose value overrides the IBAN.
692
+ * Field key of a text field once read as the partner's IBAN; no longer read since an invoice names the Absender's Konto or its own IBAN (#3397).
664
693
  */
665
694
  ibanField?: null | string;
666
695
  /**
@@ -732,6 +761,9 @@ export type BillingSenderDto = {
732
761
  * details only: none, pending, verified, rejected or revoked. Sending by e-mail or post needs verified.
733
762
  */
734
763
  verification?: null | string;
764
+ /**
765
+ * The IBAN its invoices print: the one of the Konto in accountId.
766
+ */
735
767
  iban?: null | string;
736
768
  bic?: null | string;
737
769
  paymentDays: number;
@@ -743,6 +775,10 @@ export type BillingSenderDto = {
743
775
  nextSequence: number;
744
776
  footer?: null | string;
745
777
  smallBusiness: boolean;
778
+ /**
779
+ * The Konto („Zahlung auf“) its invoices name for payment, a bank account with an IBAN; null for none.
780
+ */
781
+ accountId?: null | string;
746
782
  };
747
783
  export type BillingSetupDto = {
748
784
  senders: Array<BillingSenderDto>;
@@ -849,6 +885,55 @@ export type CamtImportResultDto = {
849
885
  */
850
886
  assigned: number;
851
887
  };
888
+ export type CamtPreviewDto = {
889
+ /**
890
+ * The IBAN the file is for; null when it names none.
891
+ */
892
+ iban?: null | string;
893
+ /**
894
+ * The Konto with that IBAN, else the one asked for; null when no Konto has the IBAN: create one with it.
895
+ */
896
+ accountId?: null | string;
897
+ statements: Array<CamtStatementDto>;
898
+ lines: Array<CamtPreviewLineDto>;
899
+ /**
900
+ * Statement numbers missing between those of the Konto and the file's.
901
+ */
902
+ gaps: Array<string>;
903
+ warnings: Array<string>;
904
+ };
905
+ export type CamtPreviewLineDto = {
906
+ /**
907
+ * The bank's reference (AcctSvcrRef), the line's externalId.
908
+ */
909
+ externalId: string;
910
+ /**
911
+ * The number of the statement it is on.
912
+ */
913
+ statement: string;
914
+ bookingDate: string;
915
+ valueDate: string;
916
+ /**
917
+ * Signed, in cents: money in is positive.
918
+ */
919
+ amountCents: number;
920
+ currency: string;
921
+ counterparty: BankCounterpartyDto;
922
+ reference?: null | string;
923
+ endToEndId?: null | string;
924
+ /**
925
+ * The Konto has this line already (same bank reference, as addBankStatement skips it); it is not booked again.
926
+ */
927
+ duplicate: boolean;
928
+ };
929
+ export type CamtStatementDto = {
930
+ /**
931
+ * LglSeqNb, such as 007/2026.
932
+ */
933
+ number: string;
934
+ periodFrom: string;
935
+ periodTo: string;
936
+ };
852
937
  export type CancelInvoiceBody = {
853
938
  /**
854
939
  * Also open a new draft with the original's positions.
@@ -1042,6 +1127,7 @@ export type ChangeEntry = {
1042
1127
  detail: string;
1043
1128
  fieldsChanged: Array<string>;
1044
1129
  data: ChangeData;
1130
+ source?: null | SourceKey;
1045
1131
  };
1046
1132
  export type ChangeSubject = {
1047
1133
  id: string;
@@ -1549,6 +1635,10 @@ export type CreateBankAccountRequest = {
1549
1635
  * bank (default), cash, card or provider.
1550
1636
  */
1551
1637
  kind?: null | string;
1638
+ /**
1639
+ * Optional, 8 or 11 characters such as GIBAATWW.
1640
+ */
1641
+ bic?: null | string;
1552
1642
  };
1553
1643
  export type CreateBankTransactionRequest = {
1554
1644
  accountId: string;
@@ -1566,6 +1656,43 @@ export type CreateBankTransactionRequest = {
1566
1656
  transferTo?: null | string;
1567
1657
  assign?: null | BankAssignInput;
1568
1658
  };
1659
+ export type CreateBankTransactionsRequest = {
1660
+ accountId: string;
1661
+ /**
1662
+ * 1 to 500 rows.
1663
+ */
1664
+ bookings: Array<BankBookingInput>;
1665
+ /**
1666
+ * The statements the rows come from, as previewBankStatement read them; each one is recorded on the Konto.
1667
+ */
1668
+ statements?: null | Array<CamtStatementDto>;
1669
+ /**
1670
+ * The IBAN of the statement; refused when the Konto has another.
1671
+ */
1672
+ iban?: null | string;
1673
+ };
1674
+ export type CreateBankTransactionsResult = {
1675
+ /**
1676
+ * Bookings created.
1677
+ */
1678
+ created: number;
1679
+ /**
1680
+ * externalIds the Konto had, skipped.
1681
+ */
1682
+ skipped: Array<string>;
1683
+ /**
1684
+ * New bookings the Abgleich assigned or proposed something for.
1685
+ */
1686
+ matched: number;
1687
+ /**
1688
+ * New bookings assigned without a person.
1689
+ */
1690
+ assigned: number;
1691
+ /**
1692
+ * Statement numbers missing between those read so far.
1693
+ */
1694
+ gaps: Array<string>;
1695
+ };
1569
1696
  export type CreateBillingDocumentRequest = {
1570
1697
  /**
1571
1698
  * One PDF or image, or several photos of one receipt (pages in order), which become one PDF.
@@ -2775,8 +2902,17 @@ export type LetterPreviewDto = {
2775
2902
  qrText?: null | string;
2776
2903
  };
2777
2904
  export type LetterPricesDto = {
2905
+ /**
2906
+ * One letter, with up to one attachment.
2907
+ */
2778
2908
  letter: number;
2909
+ /**
2910
+ * Each attachment after the first.
2911
+ */
2779
2912
  attachment: number;
2913
+ /**
2914
+ * Each sheet from the third (printed duplex).
2915
+ */
2780
2916
  sheet: number;
2781
2917
  weeklySharePercent: number;
2782
2918
  };
@@ -3082,6 +3218,10 @@ export type MatchBankTransactionsRequest = {
3082
3218
  export type MatchBankTransactionsResult = {
3083
3219
  matched: number;
3084
3220
  };
3221
+ export type MeClassPricesDto = {
3222
+ basic: number;
3223
+ expensive: number;
3224
+ };
3085
3225
  export type MeCreditsDto = {
3086
3226
  week: string;
3087
3227
  allowance: number;
@@ -3090,6 +3230,7 @@ export type MeCreditsDto = {
3090
3230
  balance: number;
3091
3231
  resetsAt: string;
3092
3232
  prices: CreditPrices;
3233
+ classes?: null | MeClassPricesDto;
3093
3234
  };
3094
3235
  export type MeDto = {
3095
3236
  workspace: MeWorkspaceDto;
@@ -3385,6 +3526,16 @@ export type PersonSearchSort = {
3385
3526
  by?: string;
3386
3527
  direction?: string;
3387
3528
  };
3529
+ export type PreviewCamtRequest = {
3530
+ /**
3531
+ * The CAMT.053 XML file, base64, at most 10 MB.
3532
+ */
3533
+ contentBase64: string;
3534
+ /**
3535
+ * The Konto chosen on the page. The file's IBAN decides; this counts where the file names none, or this Konto has none.
3536
+ */
3537
+ accountId?: null | string;
3538
+ };
3388
3539
  export type Problem = {
3389
3540
  type: string;
3390
3541
  title: string;
@@ -4200,8 +4351,17 @@ export type SelectionHandle = {
4200
4351
  };
4201
4352
  export type SenderSettingsBody = {
4202
4353
  senderId: string;
4354
+ /**
4355
+ * Used when accountId is not sent: the Konto with this IBAN becomes „Zahlung auf“, created as a bank account if there is none; empty or null removes it.
4356
+ */
4203
4357
  iban?: null | string;
4358
+ /**
4359
+ * Used with iban when accountId is not sent: it becomes that Konto's BIC.
4360
+ */
4204
4361
  bic?: null | string;
4362
+ /**
4363
+ * Overrides the Absender's UID from the Firmenbuch or the Rechnungsdaten ohne Firma; an empty string removes the override, omitted keeps it.
4364
+ */
4205
4365
  uid?: null | string;
4206
4366
  paymentDays?: null | number;
4207
4367
  /**
@@ -4220,6 +4380,10 @@ export type SenderSettingsBody = {
4220
4380
  * Kleinunternehmer (§ 6 Abs. 1 Z 27 UStG): no VAT, and the note on the invoice.
4221
4381
  */
4222
4382
  smallBusiness?: null | boolean;
4383
+ /**
4384
+ * The Konto invoices name for payment, one with an IBAN; an empty string removes it. Takes precedence over iban.
4385
+ */
4386
+ accountId?: null | string;
4223
4387
  };
4224
4388
  export type SendInvoiceBody = {
4225
4389
  /**
@@ -4371,6 +4535,10 @@ export type UpdateBankAccountBody = {
4371
4535
  * bank, cash, card or provider.
4372
4536
  */
4373
4537
  kind?: null | string;
4538
+ /**
4539
+ * 8 or 11 characters; an empty string removes it.
4540
+ */
4541
+ bic?: null | string;
4374
4542
  };
4375
4543
  export type UpdateBankConnectionBody = {
4376
4544
  /**
@@ -11952,6 +12120,102 @@ export type AddBankStatementResponses = {
11952
12120
  200: CamtImportResultDto;
11953
12121
  };
11954
12122
  export type AddBankStatementResponse = AddBankStatementResponses[keyof AddBankStatementResponses];
12123
+ export type PreviewBankStatementData = {
12124
+ body: PreviewCamtRequest;
12125
+ path?: never;
12126
+ query?: never;
12127
+ url: '/api/v2/me/billing/statements/preview';
12128
+ };
12129
+ export type PreviewBankStatementErrors = {
12130
+ /**
12131
+ * Malformed request, or a cursor from another request.
12132
+ */
12133
+ 400: Problem;
12134
+ /**
12135
+ * No valid API key or session.
12136
+ */
12137
+ 401: Problem;
12138
+ /**
12139
+ * This operation needs a dashboard session.
12140
+ */
12141
+ 403: Problem;
12142
+ /**
12143
+ * Not found, or it belongs to another workspace.
12144
+ */
12145
+ 404: Problem;
12146
+ /**
12147
+ * Conflict with the current state; `code` says which.
12148
+ */
12149
+ 409: Problem;
12150
+ /**
12151
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
12152
+ */
12153
+ 422: Problem;
12154
+ /**
12155
+ * Too many requests; retry after `Retry-After`.
12156
+ */
12157
+ 429: Problem;
12158
+ /**
12159
+ * Internal error; quote `requestId` to support.
12160
+ */
12161
+ 500: Problem;
12162
+ };
12163
+ export type PreviewBankStatementError = PreviewBankStatementErrors[keyof PreviewBankStatementErrors];
12164
+ export type PreviewBankStatementResponses = {
12165
+ /**
12166
+ * OK
12167
+ */
12168
+ 200: CamtPreviewDto;
12169
+ };
12170
+ export type PreviewBankStatementResponse = PreviewBankStatementResponses[keyof PreviewBankStatementResponses];
12171
+ export type CreateBankTransactionsData = {
12172
+ body: CreateBankTransactionsRequest;
12173
+ path?: never;
12174
+ query?: never;
12175
+ url: '/api/v2/me/billing/transactions/batch';
12176
+ };
12177
+ export type CreateBankTransactionsErrors = {
12178
+ /**
12179
+ * Malformed request, or a cursor from another request.
12180
+ */
12181
+ 400: Problem;
12182
+ /**
12183
+ * No valid API key or session.
12184
+ */
12185
+ 401: Problem;
12186
+ /**
12187
+ * This operation needs a dashboard session.
12188
+ */
12189
+ 403: Problem;
12190
+ /**
12191
+ * Not found, or it belongs to another workspace.
12192
+ */
12193
+ 404: Problem;
12194
+ /**
12195
+ * Conflict with the current state; `code` says which.
12196
+ */
12197
+ 409: Problem;
12198
+ /**
12199
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
12200
+ */
12201
+ 422: Problem;
12202
+ /**
12203
+ * Too many requests; retry after `Retry-After`.
12204
+ */
12205
+ 429: Problem;
12206
+ /**
12207
+ * Internal error; quote `requestId` to support.
12208
+ */
12209
+ 500: Problem;
12210
+ };
12211
+ export type CreateBankTransactionsError = CreateBankTransactionsErrors[keyof CreateBankTransactionsErrors];
12212
+ export type CreateBankTransactionsResponses = {
12213
+ /**
12214
+ * OK
12215
+ */
12216
+ 200: CreateBankTransactionsResult;
12217
+ };
12218
+ export type CreateBankTransactionsResponse = CreateBankTransactionsResponses[keyof CreateBankTransactionsResponses];
11955
12219
  export type GetBankSettingsData = {
11956
12220
  body?: never;
11957
12221
  path?: never;