@firmenakte/api-client 2.48.0 → 2.49.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.
@@ -27,7 +27,7 @@ export type AddBillingPartnerRequest = {
27
27
  */
28
28
  name?: null | string;
29
29
  /**
30
- * A partner outside the register: values of this workspace's fields by field key, set with his own entry. A Kunden- or Lieferantennummer given here follows the rules of number.
30
+ * A partner outside the register: values of this workspace's fields by field key, set with his own entry. Firmenakte gives the Kunden- and Lieferantennummer; they cannot be set here.
31
31
  */
32
32
  values?: null | {
33
33
  [key: string]: null | string | number | boolean | {
@@ -45,7 +45,7 @@ export type AddBillingPartnerRequest = {
45
45
  [key: string]: null | string | number | boolean;
46
46
  };
47
47
  /**
48
- * The Kunden- or Lieferantennummer to give instead of the next one, as it reads (K-0042) or bare (42); refused when another partner has it. Empty gives the next.
48
+ * Firmenakte gives the Kunden- and Lieferantennummer in turn; a number sent here is refused. Leave it out.
49
49
  */
50
50
  number?: null | string;
51
51
  };
@@ -253,6 +253,10 @@ export type BankAccountDto = {
253
253
  * Optional BIC; an invoice naming this Konto prints it beside the IBAN.
254
254
  */
255
255
  bic?: null | string;
256
+ /**
257
+ * Kind private of a Kapitalgesellschaft: the Gesellschafter whose Verrechnungskonto it is, by his Firmenakte-ID; null otherwise.
258
+ */
259
+ shareholderId?: null | string;
256
260
  };
257
261
  export type BankAssignInput = {
258
262
  /**
@@ -455,11 +459,25 @@ export type BankMatchDto = {
455
459
  */
456
460
  category?: null | string;
457
461
  };
462
+ export type BankPrivateAccountDto = {
463
+ /**
464
+ * Privat; for a Kapitalgesellschaft Gesellschafter · Name, or Gesellschafter without Gesellschafter in the Firmenbuch.
465
+ */
466
+ name: string;
467
+ /**
468
+ * The Gesellschafter's Firmenakte-ID; null for Privat and Gesellschafter.
469
+ */
470
+ shareholderId?: null | string;
471
+ };
458
472
  export type BankSettingsDto = {
459
473
  /**
460
474
  * The KI-Abgleich. aus: no AI, nothing taken over; pruefen: the AI proposes too, every hit waits for a person; sicher: a sure hit of a rule or the AI is taken over (and can be undone). The rules propose in every mode.
461
475
  */
462
476
  mode: string;
477
+ /**
478
+ * The Konten of kind private a booking can be made on, by the Rechtsform of the Unternehmen: Privat (Einzelunternehmen, Personengesellschaft, none: Privateinlagen and -entnahmen), else one per Gesellschafter of the Firmenbuch (Verrechnung Gesellschafter). One the workspace has not made yet is made with createBankAccount, kind private.
479
+ */
480
+ privateAccounts?: null | Array<BankPrivateAccountDto>;
463
481
  };
464
482
  export type BankStatementDto = {
465
483
  id: string;
@@ -1871,6 +1889,10 @@ export type CreateBankAccountRequest = {
1871
1889
  * Optional, 8 or 11 characters such as GIBAATWW.
1872
1890
  */
1873
1891
  bic?: null | string;
1892
+ /**
1893
+ * Kind private: the Gesellschafter whose Verrechnungskonto it is (a shareholderId of getBankSettings.privateAccounts).
1894
+ */
1895
+ shareholderId?: null | string;
1874
1896
  };
1875
1897
  export type CreateBankTransactionRequest = {
1876
1898
  accountId: string;
@@ -1974,7 +1996,7 @@ export type CreateExportRequest = {
1974
1996
  export type CreateFieldDto = {
1975
1997
  label: string;
1976
1998
  /**
1977
- * Value type: text, one of the options, number, ISO date, boolean, money ({cents, currency}), file (a stored file ID), reference (an entry of targetListId), member (a user ID) or sequence ("next" for the next number, or a typed one no other entry holds).
1999
+ * Value type: text, one of the options, number, ISO date, boolean, money ({cents, currency}), file (a stored file ID), reference (an entry of targetListId), member (a user ID) or sequence (numbered once by Firmenakte).
1978
2000
  */
1979
2001
  type?: 'text' | 'options' | 'number' | 'date' | 'bool' | 'money' | 'file' | 'reference' | 'member' | 'sequence';
1980
2002
  /**
@@ -2068,22 +2090,6 @@ export type CreateOwnRecordDto = {
2068
2090
  };
2069
2091
  };
2070
2092
  };
2071
- export type CreateTargetPaymentRequest = {
2072
- /**
2073
- * invoice or receipt.
2074
- */
2075
- targetKind: 'invoice' | 'receipt';
2076
- targetId: string;
2077
- /**
2078
- * cash: on the workspace's Kassa (kind cash). private: on its Konto Privat (kind private), so the owner's money paid in counts as Einlage, taken out as Entnahme. Either Konto is created when missing.
2079
- */
2080
- method: 'cash' | 'private';
2081
- bookingDate: string;
2082
- /**
2083
- * Signed like a booking, in cents: a receipt paid is negative, an invoice paid positive.
2084
- */
2085
- amountCents: number;
2086
- };
2087
2093
  export type CreditPrices = {
2088
2094
  exportRows: number;
2089
2095
  receiptRead: number;
@@ -4935,11 +4941,11 @@ export type UpdateBillingPartnerDefaultsBody = {
4935
4941
  */
4936
4942
  paymentDays?: null | number;
4937
4943
  /**
4938
- * His Kundennummer, as it reads (K-0042) or bare; refused when another partner has it. Empty leaves it.
4944
+ * Firmenakte gives the Kunden- and Lieferantennummer in turn; a number sent here is refused. Leave it out.
4939
4945
  */
4940
4946
  customerNumber?: null | string;
4941
4947
  /**
4942
- * His Lieferantennummer, as it reads (L-0042) or bare; refused when another partner has it. Empty leaves it.
4948
+ * Firmenakte gives the Kunden- and Lieferantennummer in turn; a number sent here is refused. Leave it out.
4943
4949
  */
4944
4950
  supplierNumber?: null | string;
4945
4951
  };
@@ -11208,54 +11214,6 @@ export type ListBankTargetPaymentsResponses = {
11208
11214
  200: CursorPageOfBankTargetPaymentDto;
11209
11215
  };
11210
11216
  export type ListBankTargetPaymentsResponse = ListBankTargetPaymentsResponses[keyof ListBankTargetPaymentsResponses];
11211
- export type CreateBankTargetPaymentData = {
11212
- body: CreateTargetPaymentRequest;
11213
- path?: never;
11214
- query?: never;
11215
- url: '/api/v2/me/billing/payments';
11216
- };
11217
- export type CreateBankTargetPaymentErrors = {
11218
- /**
11219
- * Malformed request, or a cursor from another request.
11220
- */
11221
- 400: Problem;
11222
- /**
11223
- * No valid API key or session.
11224
- */
11225
- 401: Problem;
11226
- /**
11227
- * This operation needs a dashboard session.
11228
- */
11229
- 403: Problem;
11230
- /**
11231
- * Not found, or it belongs to another workspace.
11232
- */
11233
- 404: Problem;
11234
- /**
11235
- * Conflict with the current state; `code` says which.
11236
- */
11237
- 409: Problem;
11238
- /**
11239
- * Validation failed; `errors[]` names each parameter or JSON pointer.
11240
- */
11241
- 422: Problem;
11242
- /**
11243
- * Too many requests; retry after `Retry-After`.
11244
- */
11245
- 429: Problem;
11246
- /**
11247
- * Internal error; quote `requestId` to support.
11248
- */
11249
- 500: Problem;
11250
- };
11251
- export type CreateBankTargetPaymentError = CreateBankTargetPaymentErrors[keyof CreateBankTargetPaymentErrors];
11252
- export type CreateBankTargetPaymentResponses = {
11253
- /**
11254
- * OK
11255
- */
11256
- 200: BankTransactionDto;
11257
- };
11258
- export type CreateBankTargetPaymentResponse = CreateBankTargetPaymentResponses[keyof CreateBankTargetPaymentResponses];
11259
11217
  export type ListBankMatchCandidatesData = {
11260
11218
  body?: never;
11261
11219
  path: {