@fleetless/contracts 17.0.0-next.1 → 17.0.0-next.2
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 +20 -31
- package/artifacts/openapi.json +553 -390
- package/artifacts/routes.json +10 -13
- package/artifacts/schema/billing-change-response.schema.json +1 -24
- package/artifacts/schema/checkout-response.schema.json +136 -103
- package/artifacts/schema/checkout-start-response.schema.json +73 -23
- package/artifacts/schema/purchase-conflict-details.schema.json +137 -80
- package/artifacts/schema/purchase-intent-draft.schema.json +136 -78
- package/artifacts/schema/purchase-intent-payment-started.schema.json +2 -26
- package/artifacts/schema/purchase-intent-response.schema.json +138 -104
- package/artifacts/schema/vat-decision.schema.json +63 -18
- package/artifacts/schema/vat-id-check-response.schema.json +108 -39
- package/artifacts/schema/vies-outage.schema.json +24 -0
- package/artifacts/schema/vies-unavailable-details.schema.json +73 -23
- package/dist/billing.d.ts +237 -115
- package/dist/billing.js +50 -56
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/routes.js +14 -40
- package/package.json +1 -1
- package/artifacts/schema/billing-details-conflict-details.schema.json +0 -78
package/CHANGELOG.md
CHANGED
|
@@ -11,37 +11,26 @@ version.
|
|
|
11
11
|
|
|
12
12
|
### Changed
|
|
13
13
|
|
|
14
|
-
- **BREAKING:
|
|
15
|
-
(fleetless/fleetless#
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`
|
|
19
|
-
`
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
`
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
read at the provider. A mandate setup the provider never answered reads as
|
|
35
|
-
that `502`.
|
|
36
|
-
|
|
37
|
-
### Added
|
|
38
|
-
|
|
39
|
-
- **`billingDetailsConflictDetails`**: the `409` details of
|
|
40
|
-
`PATCH /api/billing/details`. `{ field, rule }` with a
|
|
41
|
-
`purchaseRefusalRule` for a field a purchase would refuse,
|
|
42
|
-
`viesUnavailableDetails` when VIES did not answer, and
|
|
43
|
-
`{ field: billing, rule: buyer_changed }` when the details changed
|
|
44
|
-
meanwhile. Nothing is saved in any of them.
|
|
14
|
+
- **BREAKING: `vies_unavailable` says which side of VIES was down**
|
|
15
|
+
(fleetless/fleetless#1181). A new `viesOutage` is
|
|
16
|
+
`{ scope: 'member_state' | 'vies', country }`: `member_state` when the VAT
|
|
17
|
+
register of `country` does not answer VIES, `vies` when VIES itself does
|
|
18
|
+
not. `country` is the billing address's country, so Greece is `GR`, never
|
|
19
|
+
VIES's `EL`. Every object that answers `reason: 'vies_unavailable'` now
|
|
20
|
+
carries it as a required `vies_outage`, and refuses it beside
|
|
21
|
+
`vies_unverified` and `vies_identifier_missing`, which are no outage:
|
|
22
|
+
`vatDecision` (`pending`), the purchase intent (`awaiting_vies`, in
|
|
23
|
+
`purchaseIntent`, `purchaseIntentDraft`, `purchaseIntentResponse` and
|
|
24
|
+
`checkoutResponse`), `checkoutStartResponse` (`vies_unavailable`),
|
|
25
|
+
`viesUnavailableDetails` and `vatIdCheckResponse` (`pending`). Each is a
|
|
26
|
+
union on `reason` now, so the rule is in the JSON Schema as well, and
|
|
27
|
+
`viesUnavailableDetails` has no `.shape` any more. These objects are strict:
|
|
28
|
+
a consumer on an older version rejects the new key, and a producer that
|
|
29
|
+
omits it no longer parses.
|
|
30
|
+
- **BREAKING: `vatFor` takes the outage with an `unavailable` verdict.**
|
|
31
|
+
`ViesVerdict`'s `unavailable` is `{ status: 'unavailable', outage }`, and
|
|
32
|
+
`vatFor` returns it as `vies_outage` on the pending decision. `invalid` and
|
|
33
|
+
`unverified` are unchanged.
|
|
45
34
|
|
|
46
35
|
## [16.0.0] — 2026-11-19
|
|
47
36
|
|