@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.
- package/CHANGELOG.md +29 -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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"operation_key": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
9
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
10
|
+
},
|
|
11
|
+
"operation": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"checkout",
|
|
15
|
+
"paid_change",
|
|
16
|
+
"invoice_payment",
|
|
17
|
+
"payment_method_invoice"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"quote_revision": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 200,
|
|
24
|
+
"description": "Opaque revision of the displayed quote; echo it when confirming."
|
|
25
|
+
},
|
|
26
|
+
"buyer_fingerprint": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"maxLength": 200,
|
|
30
|
+
"description": "Opaque revision of buyer details and email policy; never full VIES evidence."
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"operation_key",
|
|
35
|
+
"operation",
|
|
36
|
+
"quote_revision",
|
|
37
|
+
"buyer_fingerprint"
|
|
38
|
+
],
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"operation_key": {
|
|
6
|
+
"description": "The client operation key; supply this or intent_id, never both.",
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid",
|
|
9
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
10
|
+
},
|
|
11
|
+
"intent_id": {
|
|
12
|
+
"description": "The persisted intent ID; supply this or operation_key, never both.",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "uuid",
|
|
15
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
16
|
+
},
|
|
17
|
+
"operation": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"checkout",
|
|
21
|
+
"paid_change",
|
|
22
|
+
"invoice_payment",
|
|
23
|
+
"payment_method_invoice",
|
|
24
|
+
"mandate_setup"
|
|
25
|
+
],
|
|
26
|
+
"description": "Expected operation; a mismatch returns 404 without disclosure."
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"operation"
|
|
31
|
+
],
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"description": "Owner lookup by exactly one identity and the expected operation.",
|
|
34
|
+
"oneOf": [
|
|
35
|
+
{
|
|
36
|
+
"required": [
|
|
37
|
+
"operation_key"
|
|
38
|
+
],
|
|
39
|
+
"not": {
|
|
40
|
+
"required": [
|
|
41
|
+
"intent_id"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"required": [
|
|
47
|
+
"intent_id"
|
|
48
|
+
],
|
|
49
|
+
"not": {
|
|
50
|
+
"required": [
|
|
51
|
+
"operation_key"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|