@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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "string",
|
|
4
|
+
"format": "uuid",
|
|
5
|
+
"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)$",
|
|
6
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
7
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"currency": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "eur",
|
|
8
|
+
"description": "Every new quote is in EUR."
|
|
9
|
+
},
|
|
10
|
+
"net_cents": {
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"minimum": 0,
|
|
13
|
+
"maximum": 9007199254740991,
|
|
14
|
+
"description": "Current charge excluding VAT, in cents."
|
|
15
|
+
},
|
|
16
|
+
"vat_cents": {
|
|
17
|
+
"type": "integer",
|
|
18
|
+
"minimum": 0,
|
|
19
|
+
"maximum": 9007199254740991,
|
|
20
|
+
"description": "VAT on the current charge, in cents."
|
|
21
|
+
},
|
|
22
|
+
"gross_cents": {
|
|
23
|
+
"type": "integer",
|
|
24
|
+
"minimum": 0,
|
|
25
|
+
"maximum": 9007199254740991,
|
|
26
|
+
"description": "Total to confirm, including VAT, in cents."
|
|
27
|
+
},
|
|
28
|
+
"rate_percent": {
|
|
29
|
+
"type": "integer",
|
|
30
|
+
"minimum": 0,
|
|
31
|
+
"maximum": 100,
|
|
32
|
+
"description": "VAT rate in whole percent."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"currency",
|
|
37
|
+
"net_cents",
|
|
38
|
+
"vat_cents",
|
|
39
|
+
"gross_cents",
|
|
40
|
+
"rate_percent"
|
|
41
|
+
],
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "string",
|
|
4
|
+
"enum": [
|
|
5
|
+
"company_required",
|
|
6
|
+
"vat_id_required",
|
|
7
|
+
"vat_id_invalid",
|
|
8
|
+
"tax_id_required",
|
|
9
|
+
"us_state_required",
|
|
10
|
+
"public_email_domain",
|
|
11
|
+
"invoice_not_open"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"oneOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"state": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "eligible"
|
|
10
|
+
},
|
|
11
|
+
"treatment": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"de_standard",
|
|
15
|
+
"reverse_charge",
|
|
16
|
+
"outside_eu"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"rate_percent": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"minimum": 0,
|
|
22
|
+
"maximum": 100
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"state",
|
|
27
|
+
"treatment",
|
|
28
|
+
"rate_percent"
|
|
29
|
+
],
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"state": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"const": "pending"
|
|
38
|
+
},
|
|
39
|
+
"reason": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": [
|
|
42
|
+
"vies_unavailable",
|
|
43
|
+
"vies_unverified",
|
|
44
|
+
"vies_identifier_missing"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"state",
|
|
50
|
+
"reason"
|
|
51
|
+
],
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"state": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"const": "refused"
|
|
60
|
+
},
|
|
61
|
+
"rule": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": [
|
|
64
|
+
"company_required",
|
|
65
|
+
"vat_id_required",
|
|
66
|
+
"vat_id_invalid"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": [
|
|
71
|
+
"state",
|
|
72
|
+
"rule"
|
|
73
|
+
],
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
@@ -1,36 +1,122 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
3
|
+
"oneOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"vat_id": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"name": {
|
|
11
|
+
"anyOf": [
|
|
12
|
+
{
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "null"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"state": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"const": "eligible"
|
|
23
|
+
},
|
|
24
|
+
"status": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"const": "valid"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"vat_id",
|
|
31
|
+
"name",
|
|
32
|
+
"state",
|
|
33
|
+
"status"
|
|
11
34
|
],
|
|
12
|
-
"
|
|
35
|
+
"additionalProperties": false
|
|
13
36
|
},
|
|
14
|
-
|
|
15
|
-
"type": "
|
|
16
|
-
"
|
|
37
|
+
{
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"vat_id": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"name": {
|
|
44
|
+
"anyOf": [
|
|
45
|
+
{
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "null"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"state": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"const": "refused"
|
|
56
|
+
},
|
|
57
|
+
"status": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"const": "invalid"
|
|
60
|
+
},
|
|
61
|
+
"rule": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"const": "vat_id_invalid"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"vat_id",
|
|
68
|
+
"name",
|
|
69
|
+
"state",
|
|
70
|
+
"status",
|
|
71
|
+
"rule"
|
|
72
|
+
],
|
|
73
|
+
"additionalProperties": false
|
|
17
74
|
},
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
75
|
+
{
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"vat_id": {
|
|
21
79
|
"type": "string"
|
|
22
80
|
},
|
|
23
|
-
{
|
|
24
|
-
"
|
|
81
|
+
"name": {
|
|
82
|
+
"anyOf": [
|
|
83
|
+
{
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "null"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"state": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"const": "pending"
|
|
94
|
+
},
|
|
95
|
+
"status": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"enum": [
|
|
98
|
+
"valid",
|
|
99
|
+
"unverified",
|
|
100
|
+
"unavailable"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"reason": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": [
|
|
106
|
+
"vies_unavailable",
|
|
107
|
+
"vies_unverified",
|
|
108
|
+
"vies_identifier_missing"
|
|
109
|
+
]
|
|
25
110
|
}
|
|
111
|
+
},
|
|
112
|
+
"required": [
|
|
113
|
+
"vat_id",
|
|
114
|
+
"name",
|
|
115
|
+
"state",
|
|
116
|
+
"status",
|
|
117
|
+
"reason"
|
|
26
118
|
],
|
|
27
|
-
"
|
|
119
|
+
"additionalProperties": false
|
|
28
120
|
}
|
|
29
|
-
|
|
30
|
-
"required": [
|
|
31
|
-
"status",
|
|
32
|
-
"vat_id",
|
|
33
|
-
"name"
|
|
34
|
-
],
|
|
35
|
-
"additionalProperties": false
|
|
121
|
+
]
|
|
36
122
|
}
|