@beel_es/sdk 2.2.0 → 2.4.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,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.4.0] - 2026-10-19
11
+
12
+ Contract resynced with the API as it runs in production today and types regenerated.
13
+
14
+ ### Added
15
+ - **Custom invoice fields.** Invoices and recurring invoices accept and return `custom_fields`, a
16
+ list of `{ key, label, value }` for labels such as a store or a cost centre. Invoice lists
17
+ filter by them with `custom_fields[<key>]`. The fields themselves are managed under
18
+ `/v1/companies/{company_id}/custom-fields` (scopes `custom-fields:read` and
19
+ `custom-fields:write`); those routes are typed but not yet wrapped as resource methods.
20
+
21
+ ## [2.3.0] - 2026-10-16
22
+
23
+ Contract resynced with the API as it runs in production today and types regenerated.
24
+
25
+ ### Added
26
+ - **VeriFactu status `ACCEPTED_WITH_ERRORS`.** `VeriFactuSubmissionStatus` (and the
27
+ `verifactu.status.updated` webhook) can say the AEAT accepted the record but reported errors in
28
+ it. The record stands; review `error_code` and `error_message`. An exhaustive `switch` over the
29
+ status needs the new case.
30
+ - **`pending_collection_only` filter** on `company.invoices.list()`: only invoices pending
31
+ collection (issued, sent, overdue or rectified, with no payment recorded).
32
+ - `error_code` on VeriFactu outcomes is typed as `VeriFactuErrorCode`, whose JSDoc lists the
33
+ codes BeeL. returns when a submission is rejected before reaching the AEAT. It is still a
34
+ `string | null`.
35
+ - `DocumentType` includes `SIMPLIFIED_CORRECTIVE`, and the lines of a `PARTIAL` corrective
36
+ accept `line_type` (only `NORMAL`).
37
+
38
+ ### Changed
39
+ - **`fiscal_only` defaults to `true`** on the invoice lists: proformas are left out unless you
40
+ pass `fiscal_only: false` or `type: 'PROFORMA'`. This is the API's behaviour; the SDK sends
41
+ nothing when you omit it.
42
+ - `date_from` / `date_to` apply to the operation date when the invoice has one, and to the issue
43
+ date otherwise. Sorting by `invoice_number` compares the number within the series numerically.
44
+ - The API now sets `OVERDUE` in `InvoiceStatus`: handle it wherever you branch on the status.
45
+
10
46
  ## [2.2.0] - 2026-09-28
11
47
 
12
48
  Contract resynced with the API as it runs in production today and types regenerated.