@beel_es/sdk 2.2.0 → 2.3.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/CHANGELOG.md CHANGED
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.3.0] - 2026-10-16
11
+
12
+ Contract resynced with the API as it runs in production today and types regenerated.
13
+
14
+ ### Added
15
+ - **VeriFactu status `ACCEPTED_WITH_ERRORS`.** `VeriFactuSubmissionStatus` (and the
16
+ `verifactu.status.updated` webhook) can say the AEAT accepted the record but reported errors in
17
+ it. The record stands; review `error_code` and `error_message`. An exhaustive `switch` over the
18
+ status needs the new case.
19
+ - **`pending_collection_only` filter** on `company.invoices.list()`: only invoices pending
20
+ collection (issued, sent, overdue or rectified, with no payment recorded).
21
+ - `error_code` on VeriFactu outcomes is typed as `VeriFactuErrorCode`, whose JSDoc lists the
22
+ codes BeeL. returns when a submission is rejected before reaching the AEAT. It is still a
23
+ `string | null`.
24
+ - `DocumentType` includes `SIMPLIFIED_CORRECTIVE`, and the lines of a `PARTIAL` corrective
25
+ accept `line_type` (only `NORMAL`).
26
+
27
+ ### Changed
28
+ - **`fiscal_only` defaults to `true`** on the invoice lists: proformas are left out unless you
29
+ pass `fiscal_only: false` or `type: 'PROFORMA'`. This is the API's behaviour; the SDK sends
30
+ nothing when you omit it.
31
+ - `date_from` / `date_to` apply to the operation date when the invoice has one, and to the issue
32
+ date otherwise. Sorting by `invoice_number` compares the number within the series numerically.
33
+ - The API now sets `OVERDUE` in `InvoiceStatus`: handle it wherever you branch on the status.
34
+
10
35
  ## [2.2.0] - 2026-09-28
11
36
 
12
37
  Contract resynced with the API as it runs in production today and types regenerated.