@fleetless/contracts 6.5.0 → 7.0.0-next.1
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 +27 -0
- package/artifacts/openapi.json +5805 -1805
- package/artifacts/routes.json +75 -13
- package/artifacts/schema/addon-catalogue-entry.schema.json +1 -15
- package/artifacts/schema/billing-address.schema.json +7 -1
- package/artifacts/schema/billing-change-request.schema.json +9 -0
- package/artifacts/schema/billing-change-response.schema.json +2219 -625
- package/artifacts/schema/billing-details-update.schema.json +70 -0
- package/artifacts/schema/billing-details.schema.json +27 -3
- package/artifacts/schema/billing-view.schema.json +56 -24
- package/artifacts/schema/checkout-request.schema.json +90 -154
- package/artifacts/schema/checkout-response.schema.json +531 -17
- package/artifacts/schema/invoice-pay-request.schema.json +16 -0
- package/artifacts/schema/payment-method-change-request.schema.json +7 -0
- package/artifacts/schema/plan-catalogue-entry.schema.json +1 -15
- package/artifacts/schema/plan-prices.schema.json +1 -15
- package/artifacts/schema/purchase-billing-details.schema.json +111 -0
- package/artifacts/schema/purchase-conflict-details.schema.json +582 -0
- package/artifacts/schema/purchase-hold-reason.schema.json +9 -0
- package/artifacts/schema/purchase-intent-confirm-request.schema.json +40 -0
- package/artifacts/schema/purchase-intent-lookup-query.schema.json +56 -0
- package/artifacts/schema/purchase-intent-response.schema.json +1554 -0
- package/artifacts/schema/purchase-operation-key.schema.json +7 -0
- package/artifacts/schema/purchase-operation.schema.json +11 -0
- package/artifacts/schema/purchase-quote.schema.json +43 -0
- package/artifacts/schema/purchase-refusal-rule.schema.json +13 -0
- package/artifacts/schema/vat-decision.schema.json +77 -0
- package/artifacts/schema/vat-id-check-response.schema.json +111 -25
- package/artifacts/schema/vies-pending-reason.schema.json +9 -0
- package/dist/billing.d.ts +1128 -75
- package/dist/billing.js +174 -66
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/plans.d.ts +4 -9
- package/dist/plans.js +4 -7
- package/dist/routes.js +33 -60
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,33 @@ version.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **Breaking:** new paid purchases require company billing details. Other EU
|
|
15
|
+
countries require a VAT ID, non-EU purchases a Tax ID, and US purchases a
|
|
16
|
+
two-letter state. Owner edits can update company name, address/state and Tax ID.
|
|
17
|
+
Historical person payers and USD accounts/invoices remain readable.
|
|
18
|
+
- **Breaking:** `vatFor` consumes a definitive VIES verdict and confirmation
|
|
19
|
+
identifier, returning `eligible`, `pending` or `refused`. Unavailable VIES or
|
|
20
|
+
a missing identifier never authorizes reverse charge. Public VAT checks expose
|
|
21
|
+
pending reasons without protected evidence; an unsettled account may have `vat: null`.
|
|
22
|
+
- **Breaking:** catalogue prices and new charge/quote helpers are EUR-only.
|
|
23
|
+
USD amounts are read from historical snapshots, never recalculated as new prices.
|
|
24
|
+
- **Breaking:** checkout, paid changes, invoice payments and method changes require
|
|
25
|
+
a stable `operation_key`. Their intent responses distinguish unpaid pending,
|
|
26
|
+
eligible, refused and held states from `payment_started`. Hosted redirects live
|
|
27
|
+
at `payment.checkout_url` only after a persisted payment exists. A paid change
|
|
28
|
+
can carry its intent alongside the resulting billing view.
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- Owner intent lookup by operation key or intent ID, and current-quote confirmation
|
|
33
|
+
with quote revision and buyer fingerprint. Typed conflict details return the
|
|
34
|
+
current intent for stale confirmations and identify conflicting key reuse.
|
|
35
|
+
- Explicit integration holds for legacy USD invoices, legacy payers and unresolved
|
|
36
|
+
zero-amount mandate setup. Invoice-paying Apple Pay is a separate operation.
|
|
37
|
+
These holds do not authorize a migration or a new provider payment.
|
|
38
|
+
|
|
12
39
|
## [6.5.0] — 2026-10-11
|
|
13
40
|
|
|
14
41
|
### Added
|