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