@fleetless/contracts 6.3.0-next.3 → 6.3.0-next.5
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 +9 -42
- package/artifacts/openapi.json +1841 -4344
- package/artifacts/routes.json +5 -330
- package/dist/errors.d.ts +5 -17
- package/dist/errors.js +6 -31
- package/dist/index.d.ts +2 -4
- package/dist/index.js +1 -5
- package/dist/plans.d.ts +9 -9
- package/dist/realtime.d.ts +2 -2
- package/dist/rest.d.ts +11 -10
- package/dist/rest.js +8 -7
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +12 -194
- package/package.json +1 -1
- package/artifacts/schema/billing-address.schema.json +0 -49
- package/artifacts/schema/billing-cancel-request.schema.json +0 -12
- package/artifacts/schema/billing-change-request.schema.json +0 -60
- package/artifacts/schema/billing-change-response.schema.json +0 -799
- package/artifacts/schema/billing-details-update.schema.json +0 -25
- package/artifacts/schema/billing-details.schema.json +0 -176
- package/artifacts/schema/billing-invoice.schema.json +0 -76
- package/artifacts/schema/billing-view.schema.json +0 -705
- package/artifacts/schema/checkout-request.schema.json +0 -252
- package/artifacts/schema/checkout-response.schema.json +0 -22
- package/artifacts/schema/checkout-status.schema.json +0 -49
- package/artifacts/schema/payment-method-change-request.schema.json +0 -19
- package/artifacts/schema/payment-method.schema.json +0 -86
- package/artifacts/schema/payment-provider-unavailable-details.schema.json +0 -29
- package/artifacts/schema/vat-id-check-request.schema.json +0 -22
- package/artifacts/schema/vat-id-check-response.schema.json +0 -36
- package/dist/billing.d.ts +0 -812
- package/dist/billing.js +0 -462
package/CHANGELOG.md
CHANGED
|
@@ -11,51 +11,18 @@ version.
|
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
integer cents (`periodNetCents`, `periodDays`, `remainingDays`,
|
|
20
|
-
`prorateCents`, `changeNetCents`, `chargeAmounts`, `checkoutQuote`); and
|
|
21
|
-
the dunning schedule `BILLING_RETRY_DAYS` and `BILLING_LOCK_DAY`.
|
|
22
|
-
- **The billing read model and requests.** `billingView` (the account, the
|
|
23
|
-
payment method on file, the `payment_method_options` a change may offer
|
|
24
|
-
now, the last 24 invoices), `billingAccount`, `billingInvoice`,
|
|
25
|
-
`paymentMethod`, `billingDetails` and `billingAddress`;
|
|
26
|
-
the requests `checkoutRequest`, `vatIdCheckRequest`,
|
|
27
|
-
`billingChangeRequest` (absolute counts, not deltas),
|
|
28
|
-
`billingCancelRequest`, `billingDetailsUpdate` and
|
|
29
|
-
`paymentMethodChangeRequest`; the answers `checkoutResponse`,
|
|
30
|
-
`checkoutStatus`, `vatIdCheckResponse` and `billingChangeResponse`. Each
|
|
31
|
-
has a JSON Schema in `artifacts/schema/`.
|
|
32
|
-
- **Card, PayPal and Apple Pay.** `paymentMethodKind`
|
|
33
|
-
(`card | paypal | applepay`) is what `paymentMethodChangeRequest` names
|
|
34
|
-
and what `paymentMethod` shows: `applepay` carries the card fields,
|
|
35
|
-
because Mollie stores an Apple Pay mandate as a card mandate. A change
|
|
36
|
-
to Apple Pay may be refused with `400 validation_error`, rule
|
|
37
|
-
`applepay_needs_open_invoice`, where it can only be made while paying an
|
|
38
|
-
open invoice; `payment_method_options` says which applies.
|
|
39
|
-
- **The `billing` route section**, twelve routes: `GET /api/billing`, the
|
|
40
|
-
checkout and its status, the VAT-ID check, billing details, changes,
|
|
41
|
-
the payment method, cancel and resume, an invoice's PDF and paying an
|
|
42
|
-
open invoice, all owner-tier; and Mollie's webhook
|
|
43
|
-
(`POST /api/billing/mollie/webhook`, internal, no auth).
|
|
44
|
-
- **`billing_unavailable`** (`503`): this cloud has no payment provider
|
|
45
|
-
configured, so it takes no payments. Retrying does not help.
|
|
46
|
-
- **`payment_provider_unavailable`** (`502`): Mollie did not answer, or
|
|
47
|
-
answered with an error; nothing was charged. `details` is
|
|
48
|
-
`paymentProviderUnavailableDetails` (`provider`, Mollie's HTTP `status`
|
|
49
|
-
or `null` for a timeout). Retrying may work.
|
|
14
|
+
- **`history_migrating`** (`409`): a slug rename refused while the robot's
|
|
15
|
+
recorded history is being migrated to a new storage layout. Temporary;
|
|
16
|
+
nothing is written, and the same request succeeds once the migration has
|
|
17
|
+
finished. Listed on `POST /api/robots/:id/config/rename-slug`. A consumer
|
|
18
|
+
that switches exhaustively over `ErrorCode` gains one case.
|
|
50
19
|
|
|
51
20
|
### Changed
|
|
52
21
|
|
|
53
|
-
-
|
|
54
|
-
`
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
say payment is missing; an upgrade of a billed org goes through the
|
|
58
|
-
billing routes.
|
|
22
|
+
- `POST /api/robots/:id/config/rename-slug`: the summary and notes, and the
|
|
23
|
+
`renameSlugRequest` doc comment, now say the history moves with the name
|
|
24
|
+
without rewriting stored samples, and that samples sent under the old slug
|
|
25
|
+
before the publish join the renamed history. No wire shape changed.
|
|
59
26
|
|
|
60
27
|
## [6.2.0] — 2026-10-04
|
|
61
28
|
|