@fleetless/contracts 15.6.0-next.1 → 15.6.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
@@ -9,6 +9,8 @@ version.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [15.6.0] — 2026-11-18
13
+
12
14
  ### Added
13
15
 
14
16
  - **`plan_purchase_closed`, and `paid_plans` on the org's plan**
@@ -16,15 +18,18 @@ version.
16
18
  organizations Fleetless has unlocked for them. A new `403` code,
17
19
  `plan_purchase_closed`, is listed on the six routes that refuse an org
18
20
  that is not unlocked: `POST /api/billing/checkout`,
19
- `POST /api/billing/intents/:id/display` and `/confirm`,
21
+ `POST /api/billing/intents/:id/display`, `/confirm` of a checkout or paid
22
+ change,
20
23
  `POST /api/billing/change`, and `POST /api/org/plan/change/prepare` and
21
24
  `PUT /api/org/plan/change` when the target is not Basic. Cancel, resume,
22
- the details, the payment method, invoices, charges, the documents, the
23
- checkout poll and `DELETE /api/org/plan/change` never answer it.
25
+ the details, the payment method, invoices, charges (their confirm
26
+ included), the documents, the checkout poll and `DELETE /api/org/plan/change` never answer it.
24
27
  - `orgPlan.paid_plans`, required, `open` or `closed`: `closed` exactly when
25
28
  those routes answer `plan_purchase_closed` for this org. A consumer that
26
29
  builds an `orgPlan` by hand adds the field; one that parses the cloud's
27
- answer reads it.
30
+ answer reads it. It travels wherever `orgPlan` does: `GET`, `PUT` and
31
+ `DELETE /api/org/plan/change`'s answers, the accepted `result` of the
32
+ decision lookup, and `PATCH /api/admin/orgs/:id/plan`.
28
33
 
29
34
  ## [15.5.0] — 2026-11-14
30
35
 
@@ -10141,7 +10141,7 @@
10141
10141
  }
10142
10142
  }
10143
10143
  },
10144
- "description": "`available: false` when `MOLLIE_API_KEY` is not configured — this cloud takes no payments, and every billing route that charges or opens a Mollie checkout answers `503 billing_unavailable` instead of acting; plan-change prepare, resume, the details and the VAT-ID check need no Mollie and answer normally. `account` is `null` before the org has ever checked out; the plan and its limits still come from `GET /api/org/plan` (fleetless/fleetless issue 103) and are not repeated here. Where this cloud sells paid plans only to organizations Fleetless has unlocked, an org that is not unlocked reads `paid_plans: closed` there, and checkout, the decision display and confirm, `POST /api/billing/change`, and a plan-change prepare or final PUT whose target is not Basic answer `403 plan_purchase_closed`; this read, the checkout poll, cancel, resume, the details, the payment method, invoices and charges, the documents and a Basic target are never refused by it."
10144
+ "description": "`available: false` when `MOLLIE_API_KEY` is not configured — this cloud takes no payments, and every billing route that charges or opens a Mollie checkout answers `503 billing_unavailable` instead of acting; plan-change prepare, resume, the details and the VAT-ID check need no Mollie and answer normally. `account` is `null` before the org has ever checked out; the plan and its limits still come from `GET /api/org/plan` (fleetless/fleetless issue 103) and are not repeated here. Where this cloud sells paid plans only to organizations Fleetless has unlocked, an org that is not unlocked reads `paid_plans: closed` there, and checkout, the decision display, the confirm of a checkout or paid change, `POST /api/billing/change`, and a plan-change prepare or final PUT whose target is not Basic answer `403 plan_purchase_closed`; this read, the checkout poll, cancel, resume, the details, the payment method, invoices and charges (their confirm included), the documents and a Basic target are never refused by it."
10145
10145
  }
10146
10146
  },
10147
10147
  "/api/billing/checkout": {
@@ -6840,7 +6840,7 @@
6840
6840
  "tier_required"
6841
6841
  ],
6842
6842
  "transport": "http",
6843
- "notes": "`available: false` when `MOLLIE_API_KEY` is not configured — this cloud takes no payments, and every billing route that charges or opens a Mollie checkout answers `503 billing_unavailable` instead of acting; plan-change prepare, resume, the details and the VAT-ID check need no Mollie and answer normally. `account` is `null` before the org has ever checked out; the plan and its limits still come from `GET /api/org/plan` (fleetless/fleetless issue 103) and are not repeated here. Where this cloud sells paid plans only to organizations Fleetless has unlocked, an org that is not unlocked reads `paid_plans: closed` there, and checkout, the decision display and confirm, `POST /api/billing/change`, and a plan-change prepare or final PUT whose target is not Basic answer `403 plan_purchase_closed`; this read, the checkout poll, cancel, resume, the details, the payment method, invoices and charges, the documents and a Basic target are never refused by it."
6843
+ "notes": "`available: false` when `MOLLIE_API_KEY` is not configured — this cloud takes no payments, and every billing route that charges or opens a Mollie checkout answers `503 billing_unavailable` instead of acting; plan-change prepare, resume, the details and the VAT-ID check need no Mollie and answer normally. `account` is `null` before the org has ever checked out; the plan and its limits still come from `GET /api/org/plan` (fleetless/fleetless issue 103) and are not repeated here. Where this cloud sells paid plans only to organizations Fleetless has unlocked, an org that is not unlocked reads `paid_plans: closed` there, and checkout, the decision display, the confirm of a checkout or paid change, `POST /api/billing/change`, and a plan-change prepare or final PUT whose target is not Basic answer `403 plan_purchase_closed`; this read, the checkout poll, cancel, resume, the details, the payment method, invoices and charges (their confirm included), the documents and a Basic target are never refused by it."
6844
6844
  },
6845
6845
  {
6846
6846
  "method": "POST",
package/dist/routes.js CHANGED
@@ -3192,9 +3192,9 @@ export const ROUTES = [
3192
3192
  'VAT-ID check need no Mollie and answer normally. `account` is `null` before the org has ever checked out; the plan ' +
3193
3193
  'and its limits still come from `GET /api/org/plan` (fleetless/fleetless issue 103) and are not repeated here. ' +
3194
3194
  'Where this cloud sells paid plans only to organizations Fleetless has unlocked, an org that is not unlocked reads ' +
3195
- '`paid_plans: closed` there, and checkout, the decision display and confirm, `POST /api/billing/change`, and a plan-change ' +
3195
+ '`paid_plans: closed` there, and checkout, the decision display, the confirm of a checkout or paid change, `POST /api/billing/change`, and a plan-change ' +
3196
3196
  'prepare or final PUT whose target is not Basic answer `403 plan_purchase_closed`; this read, the checkout poll, cancel, ' +
3197
- 'resume, the details, the payment method, invoices and charges, the documents and a Basic target are never refused by it.',
3197
+ 'resume, the details, the payment method, invoices and charges (their confirm included), the documents and a Basic target are never refused by it.',
3198
3198
  },
3199
3199
  {
3200
3200
  method: 'POST', path: '/api/billing/checkout', section: 'billing',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetless/contracts",
3
- "version": "15.6.0-next.1",
3
+ "version": "15.6.0",
4
4
  "description": "Fleetless wire contracts: the bridge-cloud protocol, the REST API schemas and the error codes, as zod schemas with generated JSON Schema and OpenAPI artifacts.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Dehne Robotik GmbH",