@beel_es/sdk 2.1.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 +42 -0
- package/dist/index.d.mts +4702 -488
- package/dist/index.d.ts +4702 -488
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/docs/reference/account-companies.md +1 -1
- package/docs/reference/company-invoices-schedule.md +1 -1
- package/docs/reference/company-invoices.md +1 -1
- package/docs/reference/company-tax-configuration.md +1 -1
- package/docs/reference/invoices.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,48 @@ 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
|
+
|
|
35
|
+
## [2.2.0] - 2026-09-28
|
|
36
|
+
|
|
37
|
+
Contract resynced with the API as it runs in production today and types regenerated.
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
- **The VeriFactu status webhook says which record changed.** The `verifactu.status.updated`
|
|
41
|
+
payload (`WebhookEventDataVeriFactuStatusUpdated`) carries `operation`: `REGISTRATION` for
|
|
42
|
+
the invoice's registration, `VOID` for the cancellation of a voided invoice. The API always
|
|
43
|
+
sends it. The enum is exported as `VeriFactuRecordOperation`.
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
- **`province` is optional in the `Address` you send.** It is only required for an address in
|
|
47
|
+
Spain (`country_code` `ES`, or no country); the API rejects a Spanish address without it with
|
|
48
|
+
a `422`. Code that sets it still compiles.
|
|
49
|
+
- Recurring invoices: `payment_term_days` documents how the due date of each generated invoice
|
|
50
|
+
is computed.
|
|
51
|
+
|
|
10
52
|
## [2.1.0] - 2026-09-28
|
|
11
53
|
|
|
12
54
|
### Fixed
|