@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 +25 -0
- package/dist/index.d.mts +4671 -483
- package/dist/index.d.ts +4671 -483
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -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
|
@@ -43,7 +43,7 @@ Register a new company (NIF) under the account.
|
|
|
43
43
|
- **Parameters:**
|
|
44
44
|
- `body: components['schemas']['CreateCompanyRequest']` — NIF, legal name, entity type and address.
|
|
45
45
|
- **Returns:** The created company. Response `201` `data`: `CompanyCreatedData`.
|
|
46
|
-
- **Throws:** `400`/`402`/`500`/`502` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
46
|
+
- **Throws:** `400`/`402`/`500`/`502` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
47
47
|
|
|
48
48
|
<a id="account-companies-stats"></a>
|
|
49
49
|
### `stats()`
|
|
@@ -37,7 +37,7 @@ Set or move the schedule. One `PUT` replaces the three legacy calls
|
|
|
37
37
|
- `invoiceId: string` — UUID of a draft invoice.
|
|
38
38
|
- `body: components['schemas']['SetInvoiceScheduleRequest']` — `scheduled_for` date and what to do then.
|
|
39
39
|
- **Returns:** The scheduled invoice. Response `200` `data`: `Invoice`.
|
|
40
|
-
- **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
40
|
+
- **Throws:** `400`/`412`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
41
41
|
|
|
42
42
|
<a id="company-invoices-schedule-clear"></a>
|
|
43
43
|
### `clear(invoiceId)`
|
|
@@ -86,7 +86,7 @@ whose outcome you do not know, use `createOnce`.
|
|
|
86
86
|
- `params?: operations['createCompanyInvoice']['parameters']['query']` — `wait_for_pdf`, when issuing directly.
|
|
87
87
|
- `options?: RequestOptions` — Per-call `idempotencyKey`, `signal` and `timeoutMs`. See [`RequestOptions`](types.md#requestoptions).
|
|
88
88
|
- **Returns:** The created invoice. With VeriFactu, `verifactu.submission_status` starts `PENDING`. Response `201` `data`: `Invoice`.
|
|
89
|
-
- **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
89
|
+
- **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
90
90
|
|
|
91
91
|
**Example**
|
|
92
92
|
|
|
@@ -33,4 +33,4 @@ Replace the tax configuration — this is a `PUT`, not a merge: send the whole s
|
|
|
33
33
|
- **Parameters:**
|
|
34
34
|
- `body: components['schemas']['UpdateTaxConfigurationRequest']` — The complete tax configuration.
|
|
35
35
|
- **Returns:** The stored configuration. Response `200` `data`: `TaxConfiguration`.
|
|
36
|
-
- **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
36
|
+
- **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
@@ -56,7 +56,7 @@ Create a new invoice. An idempotency key is automatically added.
|
|
|
56
56
|
- **Parameters:**
|
|
57
57
|
- `body: components['schemas']['CreateInvoiceRequest']` — Type, recipient and lines.
|
|
58
58
|
- **Returns:** The created invoice. Response `201` `data`: `Invoice`.
|
|
59
|
-
- **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
59
|
+
- **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `409` `BeeLConflictError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
60
60
|
|
|
61
61
|
**Example**
|
|
62
62
|
|
|
@@ -147,7 +147,7 @@ Mark an invoice as sent (e.g. delivered by other means).
|
|
|
147
147
|
- `id: string` — Invoice UUID.
|
|
148
148
|
- `options?: { sent_at?: string }` — `sent_at`.
|
|
149
149
|
- **Returns:** The sent invoice. Response `200` `data`: `Invoice`.
|
|
150
|
-
- **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `429` `BeeLRateLimitError`
|
|
150
|
+
- **Throws:** `400`/`500` `BeeLApiError` · `401`/`403` `BeeLAuthError` · `404` `BeeLNotFoundError` · `422` `BeeLValidationError` · `429` `BeeLRateLimitError`
|
|
151
151
|
|
|
152
152
|
<a id="invoices-revert-to-issued"></a>
|
|
153
153
|
### `revertToIssued(id)`
|
package/package.json
CHANGED