@firmenakte/api-client 2.47.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.
@@ -831,7 +831,7 @@ class FirmenakteApi extends HeyApiClient {
831
831
  /**
832
832
  * Send letter
833
833
  *
834
- * Posts the Brief to all its recipients through Pingen. 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: the plan's included Briefe of the month first, the rest from the Guthaben; not enough refuses the whole send. dryRun returns the counts and the price only.
834
+ * Posts the Brief to all its recipients through Pingen. Recipients without a deliverable address, deleted ones, those that already received it (unless resendReceived is true) and Robinson entries (every Brief counts as Werbung) are skipped at no cost. Each letter is paid by the workspace: the plan's included Briefe of the month first, the rest from the Guthaben; not enough refuses the whole send. dryRun returns the counts and the price only.
835
835
  */
836
836
  createLetterSendings(options) {
837
837
  return (options.client ?? this.client).post({
@@ -847,7 +847,7 @@ class FirmenakteApi extends HeyApiClient {
847
847
  /**
848
848
  * Send template
849
849
  *
850
- * Sends a Brief by post to companies, a table or some of its entries at the letter prices, skipping companies without a deliverable address, deleted ones, Robinson entries for Werbung and those that already received it (unless resendReceived). dryRun returns the plan only.
850
+ * Sends a Brief by post to companies, a list or some of its entries at the letter prices, skipping companies without a deliverable address, deleted ones, Robinson entries (every Brief counts as Werbung) and those that already received it (unless resendReceived). dryRun returns the plan only.
851
851
  */
852
852
  sendTemplate(options) {
853
853
  return (options.client ?? this.client).post({
@@ -1255,7 +1255,7 @@ class FirmenakteApi extends HeyApiClient {
1255
1255
  /**
1256
1256
  * Send invoice
1257
1257
  *
1258
- * 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.
1258
+ * 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 in the Absender's name, the PDF attached and one link that downloads it. 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.
1259
1259
  */
1260
1260
  sendInvoice(options) {
1261
1261
  return (options.client ?? this.client).post({
@@ -1335,7 +1335,7 @@ class FirmenakteApi extends HeyApiClient {
1335
1335
  /**
1336
1336
  * Sync bank connection
1337
1337
  *
1338
- * Neue Stripe-Zahlungen, Gebühren und Auszahlungen sofort statt zur vollen Stunde holen. Pull a connected Konto's new balance transactions now instead of with the hourly pull: payments stay open for the Abgleich, fees are done as Kein Beleg, category bank, payouts become transfers to the payout Konto, refunds and disputes are bookings of their own. Nothing is booked twice. A failed pull answers with the connection's error.
1338
+ * Neue Stripe-Zahlungen, Gebühren und Auszahlungen sofort statt zur vollen Stunde holen. Pull a connected Konto's new balance transactions now instead of with the hourly pull: payments stay open for the Abgleich, fees are booked by category bank (their Beleg is the Konto's Kontoauszug of the month, filed with *File bank statement*), payouts become transfers to the payout Konto, refunds and disputes are bookings of their own. Nothing is booked twice. A failed pull answers with the connection's error.
1339
1339
  */
1340
1340
  runBankSync(options) {
1341
1341
  return (options.client ?? this.client).post({
@@ -1344,6 +1344,18 @@ class FirmenakteApi extends HeyApiClient {
1344
1344
  ...options
1345
1345
  });
1346
1346
  }
1347
+ /**
1348
+ * List payments of an invoice or receipt
1349
+ *
1350
+ * Sehen, welche Buchung eine Rechnung oder einen Beleg bezahlt oder bezahlen kann. The bookings of an invoice or receipt (targetKind, targetId): those assigned to it (state assigned), a proposal for it (proposed), then the waiting bookings that can pay it, best first, each with reasons as in *List bank match candidates* (candidate). With q the waiting bookings whose counterparty or reference holds the text, or whose amount it is (59,90). Assign one with *Assign bank transaction*, confirm a proposal with *Confirm bank match*.
1351
+ */
1352
+ listBankTargetPayments(options) {
1353
+ return (options?.client ?? this.client).get({
1354
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1355
+ url: '/api/v2/me/billing/payments',
1356
+ ...options
1357
+ });
1358
+ }
1347
1359
  /**
1348
1360
  * List bank match candidates
1349
1361
  *
@@ -1415,7 +1427,7 @@ class FirmenakteApi extends HeyApiClient {
1415
1427
  /**
1416
1428
  * List bank transactions
1417
1429
  *
1418
- * 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.
1430
+ * Die Buchungen eines Kontos sehen, etwa alle noch nicht zugeordneten. Bookings newest first, of one Konto or all, by status (open, suggested, missing, todo, assigned) or text in counterparty and reference, each with what it is assigned to or proposed for and its Beleg: what it is and whether it is there.
1419
1431
  */
1420
1432
  listBankTransactions(options) {
1421
1433
  return (options?.client ?? this.client).get({
@@ -1499,7 +1511,7 @@ class FirmenakteApi extends HeyApiClient {
1499
1511
  /**
1500
1512
  * Assign bank transaction
1501
1513
  *
1502
- * 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 its category (bank, social, staff, tax), or as a transfer to an own Konto. Replaces any assignment or proposal.
1514
+ * 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 (its Beleg is an Eigenbeleg the export writes), as noReceipt with its category (bank, social, staff, tax: the payment then waits for its Beleg, the Kontoauszug, Vorschreibung, Buchungsmitteilung or Lohnabrechnung), as a receipt with category social, staff or tax (the receipt is that Beleg), or as a transfer to an own Konto. Replaces any assignment or proposal.
1503
1515
  */
1504
1516
  setBankMatch(options) {
1505
1517
  return (options.client ?? this.client).put({
@@ -1580,6 +1592,22 @@ class FirmenakteApi extends HeyApiClient {
1580
1592
  }
1581
1593
  });
1582
1594
  }
1595
+ /**
1596
+ * File bank statement
1597
+ *
1598
+ * Den Kontoauszug eines Kontos für einen Monat als PDF oder Foto ablegen: er ist der Beleg der Bankspesen. File a Kontoauszug (PDF or photo, base64) of a Konto for a month (YYYY-MM) or a period. It is kept as a file and is the Beleg of every bank fee (category bank) of that Konto in the period, which then no longer waits. Nothing is booked: a CAMT.053 file is read with *Import bank statement* or *Preview bank statement* and *Create bank transactions*, which keep their file too. The same file for the same Konto and period is filed once.
1599
+ */
1600
+ fileBankStatement(options) {
1601
+ return (options.client ?? this.client).post({
1602
+ security: [{ name: 'x-api-key', type: 'apiKey' }],
1603
+ url: '/api/v2/me/billing/statements/file',
1604
+ ...options,
1605
+ headers: {
1606
+ 'Content-Type': 'application/json',
1607
+ ...options.headers
1608
+ }
1609
+ });
1610
+ }
1583
1611
  /**
1584
1612
  * Preview bank statement
1585
1613
  *