@fleetless/contracts 9.2.0-next.1 → 10.1.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 +24 -0
- package/artifacts/openapi.json +18609 -10341
- package/artifacts/routes.json +96 -16
- package/artifacts/schema/billing-change-response.schema.json +1527 -1727
- package/artifacts/schema/billing-decision-amounts.schema.json +244 -0
- package/artifacts/schema/billing-decision-display-request.schema.json +24 -0
- package/artifacts/schema/billing-decision-display-response.schema.json +3130 -0
- package/artifacts/schema/billing-decision-period.schema.json +550 -0
- package/artifacts/schema/billing-decision-snapshot.schema.json +3103 -0
- package/artifacts/schema/checkout-request.schema.json +3 -4
- package/artifacts/schema/checkout-response.schema.json +492 -402
- package/artifacts/schema/confirmation-proof.schema.json +6 -0
- package/artifacts/schema/plan-change-decision-lookup-query.schema.json +16 -0
- package/artifacts/schema/plan-change-decision-status-response.schema.json +543 -0
- package/artifacts/schema/plan-change-prepare-request.schema.json +84 -0
- package/artifacts/schema/plan-change-prepare-response.schema.json +3162 -0
- package/artifacts/schema/plan-change-request.schema.json +177 -65
- package/artifacts/schema/purchase-conflict-details.schema.json +94 -0
- package/artifacts/schema/purchase-intent-accepted-without-payment.schema.json +95 -0
- package/artifacts/schema/purchase-intent-confirm-request.schema.json +146 -33
- package/artifacts/schema/purchase-intent-draft.schema.json +449 -0
- package/artifacts/schema/purchase-intent-payment-started.schema.json +184 -0
- package/artifacts/schema/purchase-intent-response.schema.json +1235 -168
- package/dist/billing.d.ts +5665 -210
- package/dist/billing.js +224 -29
- package/dist/confirmation-proof.d.ts +5 -0
- package/dist/confirmation-proof.js +6 -0
- package/dist/iana-time-zones.d.ts +2 -0
- package/dist/iana-time-zones.js +426 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +3 -2
- package/dist/plans.d.ts +125 -1
- package/dist/plans.js +19 -1
- package/dist/purchase-operation-key.d.ts +4 -0
- package/dist/purchase-operation-key.js +4 -0
- package/dist/routes.js +42 -21
- package/package.json +3 -1
|
@@ -4,1606 +4,1576 @@
|
|
|
4
4
|
{
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"type": "object",
|
|
18
|
-
"properties": {
|
|
19
|
-
"payer": {
|
|
20
|
-
"oneOf": [
|
|
21
|
-
{
|
|
22
|
-
"type": "object",
|
|
23
|
-
"properties": {
|
|
24
|
-
"kind": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"const": "company",
|
|
27
|
-
"description": "Billed as a company."
|
|
28
|
-
},
|
|
29
|
-
"company_name": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"minLength": 1,
|
|
32
|
-
"maxLength": 200,
|
|
33
|
-
"description": "The company's legal name, printed on the invoice."
|
|
34
|
-
},
|
|
35
|
-
"vat_id": {
|
|
36
|
-
"anyOf": [
|
|
37
|
-
{
|
|
38
|
-
"type": "string",
|
|
39
|
-
"maxLength": 20
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "null"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"description": "The company's VAT ID, or `null` for none. Required for a new purchase in another EU country; direct VIES must confirm it with an identifier."
|
|
46
|
-
},
|
|
47
|
-
"tax_id": {
|
|
48
|
-
"description": "Free-text Tax ID. Required for a new non-EU purchase; historical records may omit it.",
|
|
49
|
-
"anyOf": [
|
|
50
|
-
{
|
|
51
|
-
"type": "string",
|
|
52
|
-
"maxLength": 100
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "null"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"address": {
|
|
60
|
-
"type": "object",
|
|
61
|
-
"properties": {
|
|
62
|
-
"line1": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"minLength": 1,
|
|
65
|
-
"maxLength": 200,
|
|
66
|
-
"description": "Street and number, or the first address line."
|
|
67
|
-
},
|
|
68
|
-
"line2": {
|
|
69
|
-
"anyOf": [
|
|
70
|
-
{
|
|
71
|
-
"type": "string",
|
|
72
|
-
"maxLength": 200
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"type": "null"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"description": "A second address line, or `null` when there is none."
|
|
79
|
-
},
|
|
80
|
-
"postal_code": {
|
|
81
|
-
"type": "string",
|
|
82
|
-
"minLength": 1,
|
|
83
|
-
"maxLength": 20,
|
|
84
|
-
"description": "Postal or ZIP code."
|
|
85
|
-
},
|
|
86
|
-
"city": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"minLength": 1,
|
|
89
|
-
"maxLength": 100,
|
|
90
|
-
"description": "City or town."
|
|
91
|
-
},
|
|
92
|
-
"country": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"pattern": "^[A-Z]{2}$",
|
|
95
|
-
"description": "The billing country, used for purchase eligibility and VAT."
|
|
96
|
-
},
|
|
97
|
-
"state": {
|
|
98
|
-
"description": "State or region. A new US purchase requires a two-letter state code; historical addresses may omit it.",
|
|
99
|
-
"type": "string",
|
|
100
|
-
"minLength": 1,
|
|
101
|
-
"maxLength": 100
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"required": [
|
|
105
|
-
"line1",
|
|
106
|
-
"line2",
|
|
107
|
-
"postal_code",
|
|
108
|
-
"city",
|
|
109
|
-
"country"
|
|
110
|
-
],
|
|
111
|
-
"additionalProperties": false,
|
|
112
|
-
"description": "The billing address."
|
|
113
|
-
},
|
|
114
|
-
"invoice_email": {
|
|
115
|
-
"type": "string",
|
|
116
|
-
"format": "email",
|
|
117
|
-
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
|
|
118
|
-
"description": "Where invoices and billing mail are sent."
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"required": [
|
|
122
|
-
"kind",
|
|
123
|
-
"company_name",
|
|
124
|
-
"vat_id",
|
|
125
|
-
"address",
|
|
126
|
-
"invoice_email"
|
|
127
|
-
],
|
|
128
|
-
"additionalProperties": false,
|
|
129
|
-
"description": "A company: name and an optional VAT ID, never 'full name'."
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"type": "object",
|
|
133
|
-
"properties": {
|
|
134
|
-
"kind": {
|
|
135
|
-
"type": "string",
|
|
136
|
-
"const": "person",
|
|
137
|
-
"description": "Billed as a person."
|
|
138
|
-
},
|
|
139
|
-
"full_name": {
|
|
140
|
-
"type": "string",
|
|
141
|
-
"minLength": 1,
|
|
142
|
-
"maxLength": 200,
|
|
143
|
-
"description": "The person's full name, printed on the invoice."
|
|
144
|
-
},
|
|
145
|
-
"address": {
|
|
146
|
-
"type": "object",
|
|
147
|
-
"properties": {
|
|
148
|
-
"line1": {
|
|
149
|
-
"type": "string",
|
|
150
|
-
"minLength": 1,
|
|
151
|
-
"maxLength": 200,
|
|
152
|
-
"description": "Street and number, or the first address line."
|
|
153
|
-
},
|
|
154
|
-
"line2": {
|
|
155
|
-
"anyOf": [
|
|
156
|
-
{
|
|
157
|
-
"type": "string",
|
|
158
|
-
"maxLength": 200
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"type": "null"
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"description": "A second address line, or `null` when there is none."
|
|
165
|
-
},
|
|
166
|
-
"postal_code": {
|
|
167
|
-
"type": "string",
|
|
168
|
-
"minLength": 1,
|
|
169
|
-
"maxLength": 20,
|
|
170
|
-
"description": "Postal or ZIP code."
|
|
171
|
-
},
|
|
172
|
-
"city": {
|
|
173
|
-
"type": "string",
|
|
174
|
-
"minLength": 1,
|
|
175
|
-
"maxLength": 100,
|
|
176
|
-
"description": "City or town."
|
|
177
|
-
},
|
|
178
|
-
"country": {
|
|
179
|
-
"type": "string",
|
|
180
|
-
"pattern": "^[A-Z]{2}$",
|
|
181
|
-
"description": "The billing country, used for purchase eligibility and VAT."
|
|
182
|
-
},
|
|
183
|
-
"state": {
|
|
184
|
-
"description": "State or region. A new US purchase requires a two-letter state code; historical addresses may omit it.",
|
|
185
|
-
"type": "string",
|
|
186
|
-
"minLength": 1,
|
|
187
|
-
"maxLength": 100
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
"required": [
|
|
191
|
-
"line1",
|
|
192
|
-
"line2",
|
|
193
|
-
"postal_code",
|
|
194
|
-
"city",
|
|
195
|
-
"country"
|
|
196
|
-
],
|
|
197
|
-
"additionalProperties": false,
|
|
198
|
-
"description": "The billing address."
|
|
199
|
-
},
|
|
200
|
-
"invoice_email": {
|
|
201
|
-
"type": "string",
|
|
202
|
-
"format": "email",
|
|
203
|
-
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
|
|
204
|
-
"description": "Where invoices and billing mail are sent."
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"required": [
|
|
208
|
-
"kind",
|
|
209
|
-
"full_name",
|
|
210
|
-
"address",
|
|
211
|
-
"invoice_email"
|
|
212
|
-
],
|
|
213
|
-
"additionalProperties": false,
|
|
214
|
-
"description": "A person: a full name, never a VAT ID — only a company can be VAT-registered."
|
|
215
|
-
}
|
|
216
|
-
],
|
|
217
|
-
"description": "Who is paying, and the invoice address and email."
|
|
218
|
-
},
|
|
219
|
-
"vat_id_status": {
|
|
220
|
-
"anyOf": [
|
|
221
|
-
{
|
|
222
|
-
"type": "string",
|
|
223
|
-
"enum": [
|
|
224
|
-
"valid",
|
|
225
|
-
"unverified",
|
|
226
|
-
"invalid",
|
|
227
|
-
"unavailable"
|
|
228
|
-
]
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"type": "null"
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
"description": "The payer's VAT ID check, or `null` when no VAT ID was given."
|
|
235
|
-
},
|
|
236
|
-
"vat": {
|
|
237
|
-
"anyOf": [
|
|
238
|
-
{
|
|
239
|
-
"type": "object",
|
|
240
|
-
"properties": {
|
|
241
|
-
"treatment": {
|
|
242
|
-
"type": "string",
|
|
243
|
-
"enum": [
|
|
244
|
-
"de_standard",
|
|
245
|
-
"reverse_charge",
|
|
246
|
-
"outside_eu"
|
|
247
|
-
],
|
|
248
|
-
"description": "How the account is taxed."
|
|
249
|
-
},
|
|
250
|
-
"rate_percent": {
|
|
251
|
-
"type": "integer",
|
|
252
|
-
"minimum": -9007199254740991,
|
|
253
|
-
"maximum": 9007199254740991,
|
|
254
|
-
"description": "The VAT rate, in whole percent."
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
"required": [
|
|
258
|
-
"treatment",
|
|
259
|
-
"rate_percent"
|
|
260
|
-
],
|
|
261
|
-
"additionalProperties": false
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"type": "null"
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
"description": "Recorded VAT treatment; null while the current buyer has no eligible decision. Never infer zero rating from a pending account."
|
|
268
|
-
},
|
|
269
|
-
"currency": {
|
|
270
|
-
"type": "string",
|
|
271
|
-
"enum": [
|
|
272
|
-
"eur",
|
|
273
|
-
"usd"
|
|
274
|
-
],
|
|
275
|
-
"description": "The org's billing currency, fixed at the first payment."
|
|
276
|
-
},
|
|
277
|
-
"cycle": {
|
|
278
|
-
"type": "string",
|
|
279
|
-
"enum": [
|
|
280
|
-
"monthly",
|
|
281
|
-
"yearly"
|
|
282
|
-
],
|
|
283
|
-
"description": "The current billing cycle."
|
|
284
|
-
},
|
|
285
|
-
"status": {
|
|
286
|
-
"type": "string",
|
|
287
|
-
"enum": [
|
|
288
|
-
"pending",
|
|
289
|
-
"active",
|
|
290
|
-
"past_due",
|
|
291
|
-
"canceled"
|
|
292
|
-
],
|
|
293
|
-
"description": "The account's own status."
|
|
294
|
-
},
|
|
295
|
-
"period_starts_at": {
|
|
296
|
-
"anyOf": [
|
|
297
|
-
{
|
|
298
|
-
"type": "string",
|
|
299
|
-
"format": "date-time",
|
|
300
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"type": "null"
|
|
304
|
-
}
|
|
305
|
-
],
|
|
306
|
-
"description": "The current period's start. `null` before the first payment."
|
|
307
|
-
},
|
|
308
|
-
"period_ends_at": {
|
|
309
|
-
"anyOf": [
|
|
310
|
-
{
|
|
311
|
-
"type": "string",
|
|
312
|
-
"format": "date-time",
|
|
313
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"type": "null"
|
|
317
|
-
}
|
|
318
|
-
],
|
|
319
|
-
"description": "The current period's end. `null` before the first payment."
|
|
320
|
-
},
|
|
321
|
-
"next_charge": {
|
|
322
|
-
"anyOf": [
|
|
323
|
-
{
|
|
324
|
-
"type": "object",
|
|
325
|
-
"properties": {
|
|
326
|
-
"at": {
|
|
327
|
-
"type": "string",
|
|
328
|
-
"format": "date-time",
|
|
329
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
330
|
-
"description": "When the next charge is due."
|
|
331
|
-
},
|
|
332
|
-
"net_cents": {
|
|
333
|
-
"type": "integer",
|
|
334
|
-
"minimum": -9007199254740991,
|
|
335
|
-
"maximum": 9007199254740991,
|
|
336
|
-
"description": "The next charge, excluding VAT, in integer cents."
|
|
337
|
-
},
|
|
338
|
-
"vat_cents": {
|
|
339
|
-
"type": "integer",
|
|
340
|
-
"minimum": -9007199254740991,
|
|
341
|
-
"maximum": 9007199254740991,
|
|
342
|
-
"description": "VAT on the next charge, in integer cents."
|
|
343
|
-
},
|
|
344
|
-
"gross_cents": {
|
|
345
|
-
"type": "integer",
|
|
346
|
-
"minimum": -9007199254740991,
|
|
347
|
-
"maximum": 9007199254740991,
|
|
348
|
-
"description": "The next charge including VAT, in integer cents."
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
"required": [
|
|
352
|
-
"at",
|
|
353
|
-
"net_cents",
|
|
354
|
-
"vat_cents",
|
|
355
|
-
"gross_cents"
|
|
356
|
-
],
|
|
357
|
-
"additionalProperties": false
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
"type": "null"
|
|
361
|
-
}
|
|
362
|
-
],
|
|
363
|
-
"description": "`null` while a cancel is pending or nothing else renews."
|
|
364
|
-
},
|
|
365
|
-
"scheduled": {
|
|
366
|
-
"type": "object",
|
|
367
|
-
"properties": {
|
|
368
|
-
"cycle": {
|
|
369
|
-
"anyOf": [
|
|
370
|
-
{
|
|
371
|
-
"type": "string",
|
|
372
|
-
"enum": [
|
|
373
|
-
"monthly",
|
|
374
|
-
"yearly"
|
|
375
|
-
]
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"type": "null"
|
|
379
|
-
}
|
|
380
|
-
],
|
|
381
|
-
"description": "A cycle change queued for the period's end, or `null`."
|
|
382
|
-
},
|
|
383
|
-
"addons": {
|
|
384
|
-
"anyOf": [
|
|
385
|
-
{
|
|
386
|
-
"type": "object",
|
|
387
|
-
"properties": {
|
|
388
|
-
"seats": {
|
|
389
|
-
"type": "integer",
|
|
390
|
-
"minimum": 0,
|
|
391
|
-
"maximum": 9007199254740991,
|
|
392
|
-
"description": "Extra developer seats, one each."
|
|
393
|
-
},
|
|
394
|
-
"robots": {
|
|
395
|
-
"type": "integer",
|
|
396
|
-
"minimum": 0,
|
|
397
|
-
"maximum": 9007199254740991,
|
|
398
|
-
"description": "Extra robots, one each."
|
|
399
|
-
},
|
|
400
|
-
"apps": {
|
|
401
|
-
"type": "integer",
|
|
402
|
-
"minimum": 0,
|
|
403
|
-
"maximum": 9007199254740991,
|
|
404
|
-
"description": "Extra apps, one each."
|
|
405
|
-
},
|
|
406
|
-
"app_user_packs": {
|
|
407
|
-
"type": "integer",
|
|
408
|
-
"minimum": 0,
|
|
409
|
-
"maximum": 9007199254740991,
|
|
410
|
-
"description": "Packs of five extra app users."
|
|
411
|
-
},
|
|
412
|
-
"live_video_packs": {
|
|
413
|
-
"type": "integer",
|
|
414
|
-
"minimum": 0,
|
|
415
|
-
"maximum": 9007199254740991,
|
|
416
|
-
"description": "Packs of 250 extra hours of app-user live video per month."
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
"required": [
|
|
420
|
-
"seats",
|
|
421
|
-
"robots",
|
|
422
|
-
"apps",
|
|
423
|
-
"app_user_packs",
|
|
424
|
-
"live_video_packs"
|
|
425
|
-
],
|
|
426
|
-
"additionalProperties": false
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"type": "null"
|
|
430
|
-
}
|
|
431
|
-
],
|
|
432
|
-
"description": "Add-on counts queued for the period's end, or `null`."
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
"required": [
|
|
436
|
-
"cycle",
|
|
437
|
-
"addons"
|
|
438
|
-
],
|
|
439
|
-
"additionalProperties": false,
|
|
440
|
-
"description": "What takes effect at the period's end."
|
|
441
|
-
},
|
|
442
|
-
"dunning": {
|
|
443
|
-
"anyOf": [
|
|
444
|
-
{
|
|
445
|
-
"type": "object",
|
|
446
|
-
"properties": {
|
|
447
|
-
"invoice_id": {
|
|
448
|
-
"type": "string",
|
|
449
|
-
"format": "uuid",
|
|
450
|
-
"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)$",
|
|
451
|
-
"description": "What dunning is chasing: a historical open `FL-…` invoice, or a due charge. Before the issuer cutover a due charge appears here only while the payer's VAT ID is unsettled; it has no number yet, is not in `invoices`, and `POST /api/billing/invoices/:id/pay` takes either. After the cutover this is always a due charge (in `charges`): pay it with `POST /api/billing/charges/:id/pay`."
|
|
452
|
-
},
|
|
453
|
-
"gross_cents": {
|
|
454
|
-
"type": "integer",
|
|
455
|
-
"minimum": -9007199254740991,
|
|
456
|
-
"maximum": 9007199254740991,
|
|
457
|
-
"description": "The amount owed, in integer cents — after a partial chargeback only the charged-back part."
|
|
458
|
-
},
|
|
459
|
-
"due_at": {
|
|
460
|
-
"type": "string",
|
|
461
|
-
"format": "date-time",
|
|
462
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
463
|
-
"description": "The charge's due date; retries and the lock count from here."
|
|
464
|
-
},
|
|
465
|
-
"next_retry_at": {
|
|
466
|
-
"anyOf": [
|
|
467
|
-
{
|
|
468
|
-
"type": "string",
|
|
469
|
-
"format": "date-time",
|
|
470
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"type": "null"
|
|
474
|
-
}
|
|
475
|
-
],
|
|
476
|
-
"description": "The next automatic retry, or `null` once retries are exhausted. Always `null` after a chargeback: a charged-back payment is never charged again automatically."
|
|
477
|
-
},
|
|
478
|
-
"lock_at": {
|
|
479
|
-
"type": "string",
|
|
480
|
-
"format": "date-time",
|
|
481
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
482
|
-
"description": "When the org is locked if still unpaid (`BILLING_LOCK_DAY`)."
|
|
483
|
-
},
|
|
484
|
-
"failure": {
|
|
485
|
-
"anyOf": [
|
|
486
|
-
{
|
|
487
|
-
"type": "string"
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
"type": "null"
|
|
491
|
-
}
|
|
492
|
-
],
|
|
493
|
-
"description": "Mollie's own reason, e.g. 'card_expired'; 'vat_id_invalid' while a renewal is held because VIES does not confirm the VAT ID; 'charged_back' after a chargeback or a lost PayPal dispute."
|
|
494
|
-
}
|
|
495
|
-
},
|
|
496
|
-
"required": [
|
|
497
|
-
"invoice_id",
|
|
498
|
-
"gross_cents",
|
|
499
|
-
"due_at",
|
|
500
|
-
"next_retry_at",
|
|
501
|
-
"lock_at",
|
|
502
|
-
"failure"
|
|
503
|
-
],
|
|
504
|
-
"additionalProperties": false
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
"type": "null"
|
|
508
|
-
}
|
|
509
|
-
],
|
|
510
|
-
"description": "`null` while nothing is overdue. During a VAT-ID hold the charge is due but not yet invoiced."
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
"required": [
|
|
514
|
-
"payer",
|
|
515
|
-
"vat_id_status",
|
|
516
|
-
"vat",
|
|
517
|
-
"currency",
|
|
518
|
-
"cycle",
|
|
519
|
-
"status",
|
|
520
|
-
"period_starts_at",
|
|
521
|
-
"period_ends_at",
|
|
522
|
-
"next_charge",
|
|
523
|
-
"scheduled",
|
|
524
|
-
"dunning"
|
|
525
|
-
],
|
|
526
|
-
"additionalProperties": false
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"type": "null"
|
|
530
|
-
}
|
|
531
|
-
],
|
|
532
|
-
"description": "`null` before the org has ever checked out."
|
|
533
|
-
},
|
|
534
|
-
"payment_method": {
|
|
535
|
-
"anyOf": [
|
|
536
|
-
{
|
|
537
|
-
"oneOf": [
|
|
538
|
-
{
|
|
539
|
-
"type": "object",
|
|
540
|
-
"properties": {
|
|
541
|
-
"kind": {
|
|
542
|
-
"type": "string",
|
|
543
|
-
"const": "card",
|
|
544
|
-
"description": "A card mandate."
|
|
545
|
-
},
|
|
546
|
-
"brand": {
|
|
547
|
-
"type": "string",
|
|
548
|
-
"description": "The card network, as Mollie's mandate reports it, e.g. 'Visa'."
|
|
549
|
-
},
|
|
550
|
-
"last4": {
|
|
551
|
-
"type": "string",
|
|
552
|
-
"pattern": "^\\d{4}$",
|
|
553
|
-
"description": "The last four digits of the card."
|
|
554
|
-
},
|
|
555
|
-
"expires": {
|
|
556
|
-
"type": "string",
|
|
557
|
-
"pattern": "^\\d{2}\\/\\d{2}$",
|
|
558
|
-
"description": "Expiry as Mollie's mandate shows it, 'MM/YY'."
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
"required": [
|
|
562
|
-
"kind",
|
|
563
|
-
"brand",
|
|
564
|
-
"last4",
|
|
565
|
-
"expires"
|
|
566
|
-
],
|
|
567
|
-
"additionalProperties": false
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
"type": "object",
|
|
571
|
-
"properties": {
|
|
572
|
-
"kind": {
|
|
573
|
-
"type": "string",
|
|
574
|
-
"const": "applepay",
|
|
575
|
-
"description": "A card mandate from an Apple Pay first payment — Mollie stores it as `creditcard`; Fleetless labels it Apple Pay."
|
|
576
|
-
},
|
|
577
|
-
"brand": {
|
|
578
|
-
"type": "string",
|
|
579
|
-
"description": "The card network, as Mollie's mandate reports it, e.g. 'Mastercard'."
|
|
580
|
-
},
|
|
581
|
-
"last4": {
|
|
582
|
-
"type": "string",
|
|
583
|
-
"pattern": "^\\d{4}$",
|
|
584
|
-
"description": "The last four digits of the card behind Apple Pay."
|
|
585
|
-
},
|
|
586
|
-
"expires": {
|
|
587
|
-
"type": "string",
|
|
588
|
-
"pattern": "^\\d{2}\\/\\d{2}$",
|
|
589
|
-
"description": "Expiry as Mollie's mandate shows it, 'MM/YY'."
|
|
590
|
-
}
|
|
591
|
-
},
|
|
592
|
-
"required": [
|
|
593
|
-
"kind",
|
|
594
|
-
"brand",
|
|
595
|
-
"last4",
|
|
596
|
-
"expires"
|
|
597
|
-
],
|
|
598
|
-
"additionalProperties": false
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
"type": "object",
|
|
602
|
-
"properties": {
|
|
603
|
-
"kind": {
|
|
604
|
-
"type": "string",
|
|
605
|
-
"const": "paypal",
|
|
606
|
-
"description": "A PayPal mandate."
|
|
607
|
-
},
|
|
608
|
-
"account": {
|
|
609
|
-
"type": "string",
|
|
610
|
-
"description": "The PayPal account Mollie's mandate names."
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
"required": [
|
|
614
|
-
"kind",
|
|
615
|
-
"account"
|
|
616
|
-
],
|
|
617
|
-
"additionalProperties": false
|
|
618
|
-
}
|
|
619
|
-
]
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"type": "null"
|
|
623
|
-
}
|
|
624
|
-
],
|
|
625
|
-
"description": "The payment method on file, or `null`."
|
|
626
|
-
},
|
|
627
|
-
"payment_method_options": {
|
|
628
|
-
"type": "array",
|
|
629
|
-
"items": {
|
|
630
|
-
"type": "object",
|
|
631
|
-
"properties": {
|
|
632
|
-
"method": {
|
|
633
|
-
"type": "string",
|
|
634
|
-
"enum": [
|
|
635
|
-
"card",
|
|
636
|
-
"paypal",
|
|
637
|
-
"applepay"
|
|
638
|
-
],
|
|
639
|
-
"description": "A method `POST /api/billing/payment-method` accepts now."
|
|
640
|
-
},
|
|
641
|
-
"pays_invoice": {
|
|
642
|
-
"type": "boolean",
|
|
643
|
-
"description": "Whether changing to it also pays the open invoice — `true` only for `applepay` when a zero-amount Apple Pay payment is not available."
|
|
644
|
-
}
|
|
645
|
-
},
|
|
646
|
-
"required": [
|
|
647
|
-
"method",
|
|
648
|
-
"pays_invoice"
|
|
649
|
-
],
|
|
650
|
-
"additionalProperties": false
|
|
651
|
-
},
|
|
652
|
-
"description": "What a payment-method change may offer right now, so a client offers exactly what the cloud accepts. `applepay` is absent when it needs an open invoice and none is open; `[]` when the org has no billing account."
|
|
653
|
-
},
|
|
654
|
-
"issuer": {
|
|
655
|
-
"type": "string",
|
|
656
|
-
"enum": [
|
|
657
|
-
"cloud",
|
|
658
|
-
"lexware"
|
|
659
|
-
],
|
|
660
|
-
"description": "Which system issues this org's charges: `cloud` before the issuer cutover, or `lexware` after it."
|
|
661
|
-
},
|
|
662
|
-
"invoices": {
|
|
663
|
-
"type": "array",
|
|
664
|
-
"items": {
|
|
665
|
-
"type": "object",
|
|
666
|
-
"properties": {
|
|
667
|
-
"id": {
|
|
668
|
-
"type": "string",
|
|
669
|
-
"format": "uuid",
|
|
670
|
-
"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)$",
|
|
671
|
-
"description": "The invoice's id."
|
|
672
|
-
},
|
|
673
|
-
"number": {
|
|
674
|
-
"type": "string",
|
|
675
|
-
"pattern": "^FL-\\d{4}-\\d{4,}$",
|
|
676
|
-
"description": "The invoice number: `FL-<year>-<seq>`, `seq` zero-padded to four digits, gapless per calendar year in `Europe/Berlin`."
|
|
677
|
-
},
|
|
678
|
-
"issued_at": {
|
|
679
|
-
"type": "string",
|
|
680
|
-
"format": "date-time",
|
|
681
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
682
|
-
"description": "When the invoice was issued."
|
|
683
|
-
},
|
|
684
|
-
"status": {
|
|
685
|
-
"type": "string",
|
|
686
|
-
"enum": [
|
|
687
|
-
"open",
|
|
688
|
-
"paid",
|
|
689
|
-
"uncollectible"
|
|
690
|
-
],
|
|
691
|
-
"description": "This invoice's own status."
|
|
692
|
-
},
|
|
693
|
-
"currency": {
|
|
694
|
-
"type": "string",
|
|
695
|
-
"enum": [
|
|
696
|
-
"eur",
|
|
697
|
-
"usd"
|
|
698
|
-
],
|
|
699
|
-
"description": "The org's billing currency."
|
|
700
|
-
},
|
|
701
|
-
"net_cents": {
|
|
702
|
-
"type": "integer",
|
|
703
|
-
"minimum": 0,
|
|
704
|
-
"maximum": 9007199254740991,
|
|
705
|
-
"description": "The charge, excluding VAT, in integer cents."
|
|
706
|
-
},
|
|
707
|
-
"vat_rate_percent": {
|
|
708
|
-
"type": "integer",
|
|
709
|
-
"minimum": 0,
|
|
710
|
-
"maximum": 100,
|
|
711
|
-
"description": "The VAT rate applied, in whole percent."
|
|
712
|
-
},
|
|
713
|
-
"vat_cents": {
|
|
714
|
-
"type": "integer",
|
|
715
|
-
"minimum": 0,
|
|
716
|
-
"maximum": 9007199254740991,
|
|
717
|
-
"description": "VAT, in integer cents (`vatCents`)."
|
|
718
|
-
},
|
|
719
|
-
"gross_cents": {
|
|
720
|
-
"type": "integer",
|
|
721
|
-
"minimum": 0,
|
|
722
|
-
"maximum": 9007199254740991,
|
|
723
|
-
"description": "Net plus VAT, in integer cents."
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
"required": [
|
|
727
|
-
"id",
|
|
728
|
-
"number",
|
|
729
|
-
"issued_at",
|
|
730
|
-
"status",
|
|
731
|
-
"currency",
|
|
732
|
-
"net_cents",
|
|
733
|
-
"vat_rate_percent",
|
|
734
|
-
"vat_cents",
|
|
735
|
-
"gross_cents"
|
|
736
|
-
],
|
|
737
|
-
"additionalProperties": false
|
|
738
|
-
},
|
|
739
|
-
"description": "Cloud-issued invoices from before the issuer cutover; read-only, never grows after it. Newest first, at most 24."
|
|
740
|
-
},
|
|
741
|
-
"charges": {
|
|
742
|
-
"type": "array",
|
|
743
|
-
"items": {
|
|
744
|
-
"type": "object",
|
|
745
|
-
"properties": {
|
|
746
|
-
"id": {
|
|
747
|
-
"type": "string",
|
|
748
|
-
"format": "uuid",
|
|
749
|
-
"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)$",
|
|
750
|
-
"description": "The due charge's id — never a Cloud invoice number. Pay it with `POST /api/billing/charges/:id/pay`."
|
|
751
|
-
},
|
|
752
|
-
"kind": {
|
|
753
|
-
"type": "string",
|
|
754
|
-
"enum": [
|
|
755
|
-
"first",
|
|
756
|
-
"renewal",
|
|
757
|
-
"change"
|
|
758
|
-
],
|
|
759
|
-
"description": "What caused the charge: the first charge after checkout, a scheduled renewal, or a mid-period plan change."
|
|
760
|
-
},
|
|
761
|
-
"status": {
|
|
762
|
-
"type": "string",
|
|
763
|
-
"enum": [
|
|
764
|
-
"due",
|
|
765
|
-
"paid",
|
|
766
|
-
"uncollectible",
|
|
767
|
-
"cancelled"
|
|
768
|
-
],
|
|
769
|
-
"description": "The charge's own status. A charged back or manually refunded charge stays `paid` — refunds and chargebacks are handled in Mollie or Lexware by hand; this status and the invoice it names are unchanged, and the resulting Lexware credit note appears under `GET /api/billing/documents` instead."
|
|
770
|
-
},
|
|
771
|
-
"currency": {
|
|
772
|
-
"type": "string",
|
|
773
|
-
"const": "eur",
|
|
774
|
-
"description": "Every charge billed through Lexware is EUR."
|
|
775
|
-
},
|
|
776
|
-
"net_cents": {
|
|
777
|
-
"type": "integer",
|
|
778
|
-
"minimum": 0,
|
|
779
|
-
"maximum": 9007199254740991,
|
|
780
|
-
"description": "The charge, excluding VAT, in integer cents."
|
|
781
|
-
},
|
|
782
|
-
"vat_rate_percent": {
|
|
783
|
-
"type": "integer",
|
|
784
|
-
"minimum": 0,
|
|
785
|
-
"maximum": 100,
|
|
786
|
-
"description": "The VAT rate applied, in whole percent."
|
|
787
|
-
},
|
|
788
|
-
"vat_cents": {
|
|
789
|
-
"type": "integer",
|
|
790
|
-
"minimum": 0,
|
|
791
|
-
"maximum": 9007199254740991,
|
|
792
|
-
"description": "VAT, in integer cents (`vatCents`)."
|
|
793
|
-
},
|
|
794
|
-
"gross_cents": {
|
|
795
|
-
"type": "integer",
|
|
796
|
-
"minimum": 0,
|
|
797
|
-
"maximum": 9007199254740991,
|
|
798
|
-
"description": "Net plus VAT, in integer cents."
|
|
799
|
-
},
|
|
800
|
-
"period_start": {
|
|
801
|
-
"type": "string",
|
|
802
|
-
"format": "date-time",
|
|
803
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
804
|
-
"description": "The covered period's start."
|
|
805
|
-
},
|
|
806
|
-
"period_end": {
|
|
807
|
-
"type": "string",
|
|
808
|
-
"format": "date-time",
|
|
809
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
810
|
-
"description": "The covered period's end."
|
|
811
|
-
},
|
|
812
|
-
"due_at": {
|
|
813
|
-
"type": "string",
|
|
814
|
-
"format": "date-time",
|
|
815
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
816
|
-
"description": "When this charge is due."
|
|
817
|
-
},
|
|
818
|
-
"paid_at": {
|
|
819
|
-
"anyOf": [
|
|
820
|
-
{
|
|
821
|
-
"type": "string",
|
|
822
|
-
"format": "date-time",
|
|
823
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
"type": "null"
|
|
827
|
-
}
|
|
828
|
-
],
|
|
829
|
-
"description": "When this charge was paid, or `null` while unpaid."
|
|
830
|
-
},
|
|
831
|
-
"invoice": {
|
|
832
|
-
"oneOf": [
|
|
833
|
-
{
|
|
834
|
-
"type": "object",
|
|
835
|
-
"properties": {
|
|
836
|
-
"state": {
|
|
837
|
-
"type": "string",
|
|
838
|
-
"const": "not_issued",
|
|
839
|
-
"description": "Not collected (due, a failed retry, or uncollectible): no invoice exists."
|
|
840
|
-
}
|
|
841
|
-
},
|
|
842
|
-
"required": [
|
|
843
|
-
"state"
|
|
844
|
-
],
|
|
845
|
-
"additionalProperties": false
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
"type": "object",
|
|
849
|
-
"properties": {
|
|
850
|
-
"state": {
|
|
851
|
-
"type": "string",
|
|
852
|
-
"const": "pending",
|
|
853
|
-
"description": "Collected; the Lexware invoice is not yet confirmed."
|
|
854
|
-
}
|
|
855
|
-
},
|
|
856
|
-
"required": [
|
|
857
|
-
"state"
|
|
858
|
-
],
|
|
859
|
-
"additionalProperties": false
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
"type": "object",
|
|
863
|
-
"properties": {
|
|
864
|
-
"state": {
|
|
865
|
-
"type": "string",
|
|
866
|
-
"const": "issued",
|
|
867
|
-
"description": "Lexware has confirmed the invoice."
|
|
868
|
-
},
|
|
869
|
-
"document_id": {
|
|
870
|
-
"type": "string",
|
|
871
|
-
"format": "uuid",
|
|
872
|
-
"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)$",
|
|
873
|
-
"description": "The Lexware document's id — read it with `GET /api/billing/documents/:id`."
|
|
874
|
-
}
|
|
875
|
-
},
|
|
876
|
-
"required": [
|
|
877
|
-
"state",
|
|
878
|
-
"document_id"
|
|
879
|
-
],
|
|
880
|
-
"additionalProperties": false
|
|
881
|
-
}
|
|
882
|
-
],
|
|
883
|
-
"description": "Whether a Lexware invoice exists for this charge yet, and which document it names once it does."
|
|
884
|
-
}
|
|
7
|
+
"intent": {
|
|
8
|
+
"oneOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"intent_id": {
|
|
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
|
+
"description": "Opaque persisted purchase intent identity."
|
|
885
17
|
},
|
|
886
|
-
"
|
|
887
|
-
"
|
|
888
|
-
"
|
|
889
|
-
"
|
|
890
|
-
"
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
"
|
|
894
|
-
"
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
"
|
|
898
|
-
"
|
|
899
|
-
"
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
"
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
18
|
+
"operation_key": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "uuid",
|
|
21
|
+
"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)$",
|
|
22
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
23
|
+
},
|
|
24
|
+
"operation": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"const": "paid_change"
|
|
27
|
+
},
|
|
28
|
+
"invoice_id": {
|
|
29
|
+
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"format": "uuid",
|
|
32
|
+
"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)$"
|
|
33
|
+
},
|
|
34
|
+
"state": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"const": "awaiting_vies"
|
|
37
|
+
},
|
|
38
|
+
"reason": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"vies_unavailable",
|
|
42
|
+
"vies_unverified",
|
|
43
|
+
"vies_identifier_missing"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"next_attempt_at": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": "date-time",
|
|
49
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"intent_id",
|
|
54
|
+
"operation_key",
|
|
55
|
+
"operation",
|
|
56
|
+
"state",
|
|
57
|
+
"reason",
|
|
58
|
+
"next_attempt_at"
|
|
59
|
+
],
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"intent_id": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"format": "uuid",
|
|
68
|
+
"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)$",
|
|
69
|
+
"description": "Opaque persisted purchase intent identity."
|
|
70
|
+
},
|
|
71
|
+
"operation_key": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"format": "uuid",
|
|
74
|
+
"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)$",
|
|
75
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
76
|
+
},
|
|
77
|
+
"operation": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"const": "paid_change"
|
|
80
|
+
},
|
|
81
|
+
"invoice_id": {
|
|
82
|
+
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
83
|
+
"type": "string",
|
|
84
|
+
"format": "uuid",
|
|
85
|
+
"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)$"
|
|
86
|
+
},
|
|
87
|
+
"quote_revision": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"minLength": 1,
|
|
90
|
+
"maxLength": 200,
|
|
91
|
+
"description": "Opaque revision of the displayed quote; echo it when confirming."
|
|
92
|
+
},
|
|
93
|
+
"buyer_fingerprint": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 1,
|
|
96
|
+
"maxLength": 200,
|
|
97
|
+
"description": "Opaque revision of buyer details and email policy; never full VIES evidence."
|
|
98
|
+
},
|
|
99
|
+
"state": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"const": "eligible"
|
|
102
|
+
},
|
|
103
|
+
"quote": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"currency": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"const": "eur",
|
|
109
|
+
"description": "Every new quote is in EUR."
|
|
913
110
|
},
|
|
914
|
-
"
|
|
915
|
-
"
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
111
|
+
"net_cents": {
|
|
112
|
+
"type": "integer",
|
|
113
|
+
"minimum": 0,
|
|
114
|
+
"maximum": 9007199254740991,
|
|
115
|
+
"description": "Current charge excluding VAT, in cents."
|
|
116
|
+
},
|
|
117
|
+
"vat_cents": {
|
|
118
|
+
"type": "integer",
|
|
119
|
+
"minimum": 0,
|
|
120
|
+
"maximum": 9007199254740991,
|
|
121
|
+
"description": "VAT on the current charge, in cents."
|
|
122
|
+
},
|
|
123
|
+
"gross_cents": {
|
|
124
|
+
"type": "integer",
|
|
125
|
+
"minimum": 0,
|
|
126
|
+
"maximum": 9007199254740991,
|
|
127
|
+
"description": "Total to confirm, including VAT, in cents."
|
|
128
|
+
},
|
|
129
|
+
"rate_percent": {
|
|
130
|
+
"type": "integer",
|
|
131
|
+
"minimum": 0,
|
|
132
|
+
"maximum": 100,
|
|
133
|
+
"description": "VAT rate in whole percent."
|
|
927
134
|
}
|
|
928
135
|
},
|
|
929
|
-
|
|
930
|
-
"
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
136
|
+
"required": [
|
|
137
|
+
"currency",
|
|
138
|
+
"net_cents",
|
|
139
|
+
"vat_cents",
|
|
140
|
+
"gross_cents",
|
|
141
|
+
"rate_percent"
|
|
142
|
+
],
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": [
|
|
147
|
+
"intent_id",
|
|
148
|
+
"operation_key",
|
|
149
|
+
"operation",
|
|
150
|
+
"quote_revision",
|
|
151
|
+
"buyer_fingerprint",
|
|
152
|
+
"state",
|
|
153
|
+
"quote"
|
|
154
|
+
],
|
|
155
|
+
"additionalProperties": false
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "object",
|
|
159
|
+
"properties": {
|
|
160
|
+
"intent_id": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"format": "uuid",
|
|
163
|
+
"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)$",
|
|
164
|
+
"description": "Opaque persisted purchase intent identity."
|
|
165
|
+
},
|
|
166
|
+
"operation_key": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"format": "uuid",
|
|
169
|
+
"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)$",
|
|
170
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
171
|
+
},
|
|
172
|
+
"operation": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"const": "paid_change"
|
|
175
|
+
},
|
|
176
|
+
"invoice_id": {
|
|
177
|
+
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
178
|
+
"type": "string",
|
|
179
|
+
"format": "uuid",
|
|
180
|
+
"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)$"
|
|
181
|
+
},
|
|
182
|
+
"state": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"const": "held"
|
|
185
|
+
},
|
|
186
|
+
"reason": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"enum": [
|
|
189
|
+
"legacy_usd_invoice",
|
|
190
|
+
"legacy_payer_unresolved",
|
|
191
|
+
"mandate_policy_unresolved",
|
|
192
|
+
"lexware_contact_pending",
|
|
193
|
+
"lexware_contact_changed",
|
|
194
|
+
"issuer_cutover_in_progress",
|
|
195
|
+
"lexware_issuance_paused"
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"original_amount": {
|
|
199
|
+
"description": "Recorded balance of a held invoice; not a new quote or authorization.",
|
|
200
|
+
"type": "object",
|
|
201
|
+
"properties": {
|
|
202
|
+
"currency": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"enum": [
|
|
205
|
+
"eur",
|
|
206
|
+
"usd"
|
|
942
207
|
]
|
|
943
208
|
},
|
|
944
|
-
"
|
|
945
|
-
"
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
"state": {
|
|
949
|
-
"const": "not_issued"
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
}
|
|
209
|
+
"gross_cents": {
|
|
210
|
+
"type": "integer",
|
|
211
|
+
"minimum": 0,
|
|
212
|
+
"maximum": 9007199254740991
|
|
954
213
|
}
|
|
955
|
-
}
|
|
956
|
-
|
|
214
|
+
},
|
|
215
|
+
"required": [
|
|
216
|
+
"currency",
|
|
217
|
+
"gross_cents"
|
|
218
|
+
],
|
|
219
|
+
"additionalProperties": false
|
|
220
|
+
}
|
|
957
221
|
},
|
|
958
|
-
"
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
"invoices",
|
|
968
|
-
"charges"
|
|
969
|
-
],
|
|
970
|
-
"additionalProperties": false,
|
|
971
|
-
"description": "The billing view after the change."
|
|
972
|
-
},
|
|
973
|
-
"charged": {
|
|
974
|
-
"anyOf": [
|
|
222
|
+
"required": [
|
|
223
|
+
"intent_id",
|
|
224
|
+
"operation_key",
|
|
225
|
+
"operation",
|
|
226
|
+
"state",
|
|
227
|
+
"reason"
|
|
228
|
+
],
|
|
229
|
+
"additionalProperties": false
|
|
230
|
+
},
|
|
975
231
|
{
|
|
976
232
|
"type": "object",
|
|
977
233
|
"properties": {
|
|
978
|
-
"
|
|
234
|
+
"intent_id": {
|
|
979
235
|
"type": "string",
|
|
980
236
|
"format": "uuid",
|
|
981
237
|
"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)$",
|
|
982
|
-
"description": "
|
|
238
|
+
"description": "Opaque persisted purchase intent identity."
|
|
983
239
|
},
|
|
984
|
-
"
|
|
240
|
+
"operation_key": {
|
|
985
241
|
"type": "string",
|
|
986
|
-
"
|
|
987
|
-
"
|
|
242
|
+
"format": "uuid",
|
|
243
|
+
"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)$",
|
|
244
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
988
245
|
},
|
|
989
|
-
"
|
|
246
|
+
"operation": {
|
|
990
247
|
"type": "string",
|
|
991
|
-
"
|
|
992
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
993
|
-
"description": "When the invoice was issued."
|
|
248
|
+
"const": "paid_change"
|
|
994
249
|
},
|
|
995
|
-
"
|
|
250
|
+
"invoice_id": {
|
|
251
|
+
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
996
252
|
"type": "string",
|
|
997
|
-
"
|
|
998
|
-
|
|
999
|
-
"paid",
|
|
1000
|
-
"uncollectible"
|
|
1001
|
-
],
|
|
1002
|
-
"description": "This invoice's own status."
|
|
253
|
+
"format": "uuid",
|
|
254
|
+
"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)$"
|
|
1003
255
|
},
|
|
1004
|
-
"
|
|
256
|
+
"state": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"const": "invalid_vat_id"
|
|
259
|
+
},
|
|
260
|
+
"field": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"const": "billing.vat_id"
|
|
263
|
+
},
|
|
264
|
+
"rule": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"const": "vat_id_invalid"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"required": [
|
|
270
|
+
"intent_id",
|
|
271
|
+
"operation_key",
|
|
272
|
+
"operation",
|
|
273
|
+
"state",
|
|
274
|
+
"field",
|
|
275
|
+
"rule"
|
|
276
|
+
],
|
|
277
|
+
"additionalProperties": false
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"type": "object",
|
|
281
|
+
"properties": {
|
|
282
|
+
"intent_id": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"format": "uuid",
|
|
285
|
+
"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)$",
|
|
286
|
+
"description": "Opaque persisted purchase intent identity."
|
|
287
|
+
},
|
|
288
|
+
"operation_key": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"format": "uuid",
|
|
291
|
+
"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)$",
|
|
292
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
293
|
+
},
|
|
294
|
+
"operation": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"const": "paid_change"
|
|
297
|
+
},
|
|
298
|
+
"invoice_id": {
|
|
299
|
+
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
300
|
+
"type": "string",
|
|
301
|
+
"format": "uuid",
|
|
302
|
+
"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)$"
|
|
303
|
+
},
|
|
304
|
+
"state": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"const": "refused"
|
|
307
|
+
},
|
|
308
|
+
"field": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"minLength": 1
|
|
311
|
+
},
|
|
312
|
+
"rule": {
|
|
1005
313
|
"type": "string",
|
|
1006
314
|
"enum": [
|
|
1007
|
-
"
|
|
1008
|
-
"
|
|
1009
|
-
|
|
1010
|
-
|
|
315
|
+
"company_required",
|
|
316
|
+
"vat_id_required",
|
|
317
|
+
"vat_id_invalid",
|
|
318
|
+
"tax_id_required",
|
|
319
|
+
"us_state_required",
|
|
320
|
+
"public_email_domain",
|
|
321
|
+
"invoice_not_open"
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"required": [
|
|
326
|
+
"intent_id",
|
|
327
|
+
"operation_key",
|
|
328
|
+
"operation",
|
|
329
|
+
"state",
|
|
330
|
+
"field",
|
|
331
|
+
"rule"
|
|
332
|
+
],
|
|
333
|
+
"additionalProperties": false
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"allOf": [
|
|
337
|
+
{
|
|
338
|
+
"if": {
|
|
339
|
+
"properties": {
|
|
340
|
+
"operation": {
|
|
341
|
+
"enum": [
|
|
342
|
+
"invoice_payment",
|
|
343
|
+
"payment_method_invoice"
|
|
344
|
+
]
|
|
345
|
+
}
|
|
1011
346
|
},
|
|
1012
|
-
"
|
|
1013
|
-
"
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
347
|
+
"required": [
|
|
348
|
+
"operation"
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
"then": {
|
|
352
|
+
"required": [
|
|
353
|
+
"invoice_id"
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"if": {
|
|
359
|
+
"properties": {
|
|
360
|
+
"operation": {
|
|
361
|
+
"const": "mandate_setup"
|
|
362
|
+
}
|
|
1017
363
|
},
|
|
1018
|
-
"
|
|
1019
|
-
"
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
364
|
+
"required": [
|
|
365
|
+
"operation"
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
"then": {
|
|
369
|
+
"properties": {
|
|
370
|
+
"state": {
|
|
371
|
+
"const": "held"
|
|
372
|
+
},
|
|
373
|
+
"reason": {
|
|
374
|
+
"const": "mandate_policy_unresolved"
|
|
375
|
+
}
|
|
1023
376
|
},
|
|
1024
|
-
"
|
|
1025
|
-
"
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
377
|
+
"required": [
|
|
378
|
+
"reason"
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"if": {
|
|
384
|
+
"properties": {
|
|
385
|
+
"reason": {
|
|
386
|
+
"const": "mandate_policy_unresolved"
|
|
387
|
+
}
|
|
1029
388
|
},
|
|
1030
|
-
"
|
|
1031
|
-
"
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
389
|
+
"required": [
|
|
390
|
+
"reason"
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
"then": {
|
|
394
|
+
"properties": {
|
|
395
|
+
"operation": {
|
|
396
|
+
"const": "mandate_setup"
|
|
397
|
+
}
|
|
1035
398
|
}
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"if": {
|
|
403
|
+
"properties": {
|
|
404
|
+
"payment": {
|
|
405
|
+
"properties": {
|
|
406
|
+
"kind": {
|
|
407
|
+
"const": "mandate"
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"required": [
|
|
411
|
+
"kind"
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"required": [
|
|
416
|
+
"payment"
|
|
417
|
+
]
|
|
1036
418
|
},
|
|
1037
|
-
"
|
|
1038
|
-
"
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
"vat_rate_percent",
|
|
1045
|
-
"vat_cents",
|
|
1046
|
-
"gross_cents"
|
|
1047
|
-
],
|
|
1048
|
-
"additionalProperties": false
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
"type": "null"
|
|
419
|
+
"then": {
|
|
420
|
+
"properties": {
|
|
421
|
+
"operation": {
|
|
422
|
+
"const": "paid_change"
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
1052
426
|
}
|
|
1053
|
-
]
|
|
1054
|
-
"description": "The invoice charged now, or `null` when the change was only scheduled for the period's end."
|
|
427
|
+
]
|
|
1055
428
|
}
|
|
1056
429
|
},
|
|
1057
430
|
"required": [
|
|
1058
|
-
"
|
|
1059
|
-
"charged"
|
|
431
|
+
"intent"
|
|
1060
432
|
],
|
|
1061
433
|
"additionalProperties": false
|
|
1062
434
|
},
|
|
1063
435
|
{
|
|
1064
436
|
"type": "object",
|
|
1065
437
|
"properties": {
|
|
1066
|
-
"
|
|
1067
|
-
"
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
"
|
|
1071
|
-
|
|
1072
|
-
"type": "string",
|
|
1073
|
-
"format": "uuid",
|
|
1074
|
-
"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)$",
|
|
1075
|
-
"description": "Opaque persisted purchase intent identity."
|
|
1076
|
-
},
|
|
1077
|
-
"operation_key": {
|
|
1078
|
-
"type": "string",
|
|
1079
|
-
"format": "uuid",
|
|
1080
|
-
"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)$",
|
|
1081
|
-
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
1082
|
-
},
|
|
1083
|
-
"operation": {
|
|
1084
|
-
"type": "string",
|
|
1085
|
-
"enum": [
|
|
1086
|
-
"checkout",
|
|
1087
|
-
"paid_change",
|
|
1088
|
-
"invoice_payment",
|
|
1089
|
-
"payment_method_invoice"
|
|
1090
|
-
]
|
|
1091
|
-
},
|
|
1092
|
-
"invoice_id": {
|
|
1093
|
-
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
1094
|
-
"type": "string",
|
|
1095
|
-
"format": "uuid",
|
|
1096
|
-
"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)$"
|
|
1097
|
-
},
|
|
1098
|
-
"state": {
|
|
1099
|
-
"type": "string",
|
|
1100
|
-
"const": "awaiting_vies"
|
|
1101
|
-
},
|
|
1102
|
-
"reason": {
|
|
1103
|
-
"type": "string",
|
|
1104
|
-
"enum": [
|
|
1105
|
-
"vies_unavailable",
|
|
1106
|
-
"vies_unverified",
|
|
1107
|
-
"vies_identifier_missing"
|
|
1108
|
-
]
|
|
1109
|
-
},
|
|
1110
|
-
"next_attempt_at": {
|
|
1111
|
-
"type": "string",
|
|
1112
|
-
"format": "date-time",
|
|
1113
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
1114
|
-
}
|
|
1115
|
-
},
|
|
1116
|
-
"required": [
|
|
1117
|
-
"intent_id",
|
|
1118
|
-
"operation_key",
|
|
1119
|
-
"operation",
|
|
1120
|
-
"state",
|
|
1121
|
-
"reason",
|
|
1122
|
-
"next_attempt_at"
|
|
1123
|
-
],
|
|
1124
|
-
"additionalProperties": false
|
|
438
|
+
"billing": {
|
|
439
|
+
"type": "object",
|
|
440
|
+
"properties": {
|
|
441
|
+
"available": {
|
|
442
|
+
"type": "boolean",
|
|
443
|
+
"description": "Whether this cloud takes payments at all — `false` when no Mollie key is configured."
|
|
1125
444
|
},
|
|
1126
|
-
{
|
|
1127
|
-
"
|
|
1128
|
-
|
|
1129
|
-
"intent_id": {
|
|
1130
|
-
"type": "string",
|
|
1131
|
-
"format": "uuid",
|
|
1132
|
-
"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)$",
|
|
1133
|
-
"description": "Opaque persisted purchase intent identity."
|
|
1134
|
-
},
|
|
1135
|
-
"operation_key": {
|
|
1136
|
-
"type": "string",
|
|
1137
|
-
"format": "uuid",
|
|
1138
|
-
"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)$",
|
|
1139
|
-
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
1140
|
-
},
|
|
1141
|
-
"operation": {
|
|
1142
|
-
"type": "string",
|
|
1143
|
-
"enum": [
|
|
1144
|
-
"checkout",
|
|
1145
|
-
"paid_change",
|
|
1146
|
-
"invoice_payment",
|
|
1147
|
-
"payment_method_invoice"
|
|
1148
|
-
]
|
|
1149
|
-
},
|
|
1150
|
-
"invoice_id": {
|
|
1151
|
-
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
1152
|
-
"type": "string",
|
|
1153
|
-
"format": "uuid",
|
|
1154
|
-
"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)$"
|
|
1155
|
-
},
|
|
1156
|
-
"quote_revision": {
|
|
1157
|
-
"type": "string",
|
|
1158
|
-
"minLength": 1,
|
|
1159
|
-
"maxLength": 200,
|
|
1160
|
-
"description": "Opaque revision of the displayed quote; echo it when confirming."
|
|
1161
|
-
},
|
|
1162
|
-
"buyer_fingerprint": {
|
|
1163
|
-
"type": "string",
|
|
1164
|
-
"minLength": 1,
|
|
1165
|
-
"maxLength": 200,
|
|
1166
|
-
"description": "Opaque revision of buyer details and email policy; never full VIES evidence."
|
|
1167
|
-
},
|
|
1168
|
-
"state": {
|
|
1169
|
-
"type": "string",
|
|
1170
|
-
"const": "eligible"
|
|
1171
|
-
},
|
|
1172
|
-
"quote": {
|
|
445
|
+
"account": {
|
|
446
|
+
"anyOf": [
|
|
447
|
+
{
|
|
1173
448
|
"type": "object",
|
|
1174
449
|
"properties": {
|
|
450
|
+
"payer": {
|
|
451
|
+
"oneOf": [
|
|
452
|
+
{
|
|
453
|
+
"type": "object",
|
|
454
|
+
"properties": {
|
|
455
|
+
"kind": {
|
|
456
|
+
"type": "string",
|
|
457
|
+
"const": "company",
|
|
458
|
+
"description": "Billed as a company."
|
|
459
|
+
},
|
|
460
|
+
"company_name": {
|
|
461
|
+
"type": "string",
|
|
462
|
+
"minLength": 1,
|
|
463
|
+
"maxLength": 200,
|
|
464
|
+
"description": "The company's legal name, printed on the invoice."
|
|
465
|
+
},
|
|
466
|
+
"vat_id": {
|
|
467
|
+
"anyOf": [
|
|
468
|
+
{
|
|
469
|
+
"type": "string",
|
|
470
|
+
"maxLength": 20
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"type": "null"
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
"description": "The company's VAT ID, or `null` for none. Required for a new purchase in another EU country; direct VIES must confirm it with an identifier."
|
|
477
|
+
},
|
|
478
|
+
"tax_id": {
|
|
479
|
+
"description": "Free-text Tax ID. Required for a new non-EU purchase; historical records may omit it.",
|
|
480
|
+
"anyOf": [
|
|
481
|
+
{
|
|
482
|
+
"type": "string",
|
|
483
|
+
"maxLength": 100
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"type": "null"
|
|
487
|
+
}
|
|
488
|
+
]
|
|
489
|
+
},
|
|
490
|
+
"address": {
|
|
491
|
+
"type": "object",
|
|
492
|
+
"properties": {
|
|
493
|
+
"line1": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"minLength": 1,
|
|
496
|
+
"maxLength": 200,
|
|
497
|
+
"description": "Street and number, or the first address line."
|
|
498
|
+
},
|
|
499
|
+
"line2": {
|
|
500
|
+
"anyOf": [
|
|
501
|
+
{
|
|
502
|
+
"type": "string",
|
|
503
|
+
"maxLength": 200
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"type": "null"
|
|
507
|
+
}
|
|
508
|
+
],
|
|
509
|
+
"description": "A second address line, or `null` when there is none."
|
|
510
|
+
},
|
|
511
|
+
"postal_code": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"minLength": 1,
|
|
514
|
+
"maxLength": 20,
|
|
515
|
+
"description": "Postal or ZIP code."
|
|
516
|
+
},
|
|
517
|
+
"city": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"minLength": 1,
|
|
520
|
+
"maxLength": 100,
|
|
521
|
+
"description": "City or town."
|
|
522
|
+
},
|
|
523
|
+
"country": {
|
|
524
|
+
"type": "string",
|
|
525
|
+
"pattern": "^[A-Z]{2}$",
|
|
526
|
+
"description": "The billing country, used for purchase eligibility and VAT."
|
|
527
|
+
},
|
|
528
|
+
"state": {
|
|
529
|
+
"description": "State or region. A new US purchase requires a two-letter state code; historical addresses may omit it.",
|
|
530
|
+
"type": "string",
|
|
531
|
+
"minLength": 1,
|
|
532
|
+
"maxLength": 100
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"required": [
|
|
536
|
+
"line1",
|
|
537
|
+
"line2",
|
|
538
|
+
"postal_code",
|
|
539
|
+
"city",
|
|
540
|
+
"country"
|
|
541
|
+
],
|
|
542
|
+
"additionalProperties": false,
|
|
543
|
+
"description": "The billing address."
|
|
544
|
+
},
|
|
545
|
+
"invoice_email": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"format": "email",
|
|
548
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
|
|
549
|
+
"description": "Where invoices and billing mail are sent."
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"required": [
|
|
553
|
+
"kind",
|
|
554
|
+
"company_name",
|
|
555
|
+
"vat_id",
|
|
556
|
+
"address",
|
|
557
|
+
"invoice_email"
|
|
558
|
+
],
|
|
559
|
+
"additionalProperties": false,
|
|
560
|
+
"description": "A company: name and an optional VAT ID, never 'full name'."
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"type": "object",
|
|
564
|
+
"properties": {
|
|
565
|
+
"kind": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"const": "person",
|
|
568
|
+
"description": "Billed as a person."
|
|
569
|
+
},
|
|
570
|
+
"full_name": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"minLength": 1,
|
|
573
|
+
"maxLength": 200,
|
|
574
|
+
"description": "The person's full name, printed on the invoice."
|
|
575
|
+
},
|
|
576
|
+
"address": {
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"line1": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"minLength": 1,
|
|
582
|
+
"maxLength": 200,
|
|
583
|
+
"description": "Street and number, or the first address line."
|
|
584
|
+
},
|
|
585
|
+
"line2": {
|
|
586
|
+
"anyOf": [
|
|
587
|
+
{
|
|
588
|
+
"type": "string",
|
|
589
|
+
"maxLength": 200
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"type": "null"
|
|
593
|
+
}
|
|
594
|
+
],
|
|
595
|
+
"description": "A second address line, or `null` when there is none."
|
|
596
|
+
},
|
|
597
|
+
"postal_code": {
|
|
598
|
+
"type": "string",
|
|
599
|
+
"minLength": 1,
|
|
600
|
+
"maxLength": 20,
|
|
601
|
+
"description": "Postal or ZIP code."
|
|
602
|
+
},
|
|
603
|
+
"city": {
|
|
604
|
+
"type": "string",
|
|
605
|
+
"minLength": 1,
|
|
606
|
+
"maxLength": 100,
|
|
607
|
+
"description": "City or town."
|
|
608
|
+
},
|
|
609
|
+
"country": {
|
|
610
|
+
"type": "string",
|
|
611
|
+
"pattern": "^[A-Z]{2}$",
|
|
612
|
+
"description": "The billing country, used for purchase eligibility and VAT."
|
|
613
|
+
},
|
|
614
|
+
"state": {
|
|
615
|
+
"description": "State or region. A new US purchase requires a two-letter state code; historical addresses may omit it.",
|
|
616
|
+
"type": "string",
|
|
617
|
+
"minLength": 1,
|
|
618
|
+
"maxLength": 100
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
"required": [
|
|
622
|
+
"line1",
|
|
623
|
+
"line2",
|
|
624
|
+
"postal_code",
|
|
625
|
+
"city",
|
|
626
|
+
"country"
|
|
627
|
+
],
|
|
628
|
+
"additionalProperties": false,
|
|
629
|
+
"description": "The billing address."
|
|
630
|
+
},
|
|
631
|
+
"invoice_email": {
|
|
632
|
+
"type": "string",
|
|
633
|
+
"format": "email",
|
|
634
|
+
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
|
|
635
|
+
"description": "Where invoices and billing mail are sent."
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"required": [
|
|
639
|
+
"kind",
|
|
640
|
+
"full_name",
|
|
641
|
+
"address",
|
|
642
|
+
"invoice_email"
|
|
643
|
+
],
|
|
644
|
+
"additionalProperties": false,
|
|
645
|
+
"description": "A person: a full name, never a VAT ID — only a company can be VAT-registered."
|
|
646
|
+
}
|
|
647
|
+
],
|
|
648
|
+
"description": "Who is paying, and the invoice address and email."
|
|
649
|
+
},
|
|
650
|
+
"vat_id_status": {
|
|
651
|
+
"anyOf": [
|
|
652
|
+
{
|
|
653
|
+
"type": "string",
|
|
654
|
+
"enum": [
|
|
655
|
+
"valid",
|
|
656
|
+
"unverified",
|
|
657
|
+
"invalid",
|
|
658
|
+
"unavailable"
|
|
659
|
+
]
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"type": "null"
|
|
663
|
+
}
|
|
664
|
+
],
|
|
665
|
+
"description": "The payer's VAT ID check, or `null` when no VAT ID was given."
|
|
666
|
+
},
|
|
667
|
+
"vat": {
|
|
668
|
+
"anyOf": [
|
|
669
|
+
{
|
|
670
|
+
"type": "object",
|
|
671
|
+
"properties": {
|
|
672
|
+
"treatment": {
|
|
673
|
+
"type": "string",
|
|
674
|
+
"enum": [
|
|
675
|
+
"de_standard",
|
|
676
|
+
"reverse_charge",
|
|
677
|
+
"outside_eu"
|
|
678
|
+
],
|
|
679
|
+
"description": "How the account is taxed."
|
|
680
|
+
},
|
|
681
|
+
"rate_percent": {
|
|
682
|
+
"type": "integer",
|
|
683
|
+
"minimum": -9007199254740991,
|
|
684
|
+
"maximum": 9007199254740991,
|
|
685
|
+
"description": "The VAT rate, in whole percent."
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"required": [
|
|
689
|
+
"treatment",
|
|
690
|
+
"rate_percent"
|
|
691
|
+
],
|
|
692
|
+
"additionalProperties": false
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"type": "null"
|
|
696
|
+
}
|
|
697
|
+
],
|
|
698
|
+
"description": "Recorded VAT treatment; null while the current buyer has no eligible decision. Never infer zero rating from a pending account."
|
|
699
|
+
},
|
|
1175
700
|
"currency": {
|
|
1176
701
|
"type": "string",
|
|
1177
|
-
"
|
|
1178
|
-
|
|
702
|
+
"enum": [
|
|
703
|
+
"eur",
|
|
704
|
+
"usd"
|
|
705
|
+
],
|
|
706
|
+
"description": "The org's billing currency, fixed at the first payment."
|
|
1179
707
|
},
|
|
1180
|
-
"
|
|
1181
|
-
"type": "
|
|
1182
|
-
"
|
|
1183
|
-
|
|
1184
|
-
|
|
708
|
+
"cycle": {
|
|
709
|
+
"type": "string",
|
|
710
|
+
"enum": [
|
|
711
|
+
"monthly",
|
|
712
|
+
"yearly"
|
|
713
|
+
],
|
|
714
|
+
"description": "The current billing cycle."
|
|
1185
715
|
},
|
|
1186
|
-
"
|
|
1187
|
-
"type": "
|
|
1188
|
-
"
|
|
1189
|
-
|
|
1190
|
-
|
|
716
|
+
"status": {
|
|
717
|
+
"type": "string",
|
|
718
|
+
"enum": [
|
|
719
|
+
"pending",
|
|
720
|
+
"active",
|
|
721
|
+
"past_due",
|
|
722
|
+
"canceled"
|
|
723
|
+
],
|
|
724
|
+
"description": "The account's own status."
|
|
1191
725
|
},
|
|
1192
|
-
"
|
|
1193
|
-
"
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
726
|
+
"period_starts_at": {
|
|
727
|
+
"anyOf": [
|
|
728
|
+
{
|
|
729
|
+
"type": "string",
|
|
730
|
+
"format": "date-time",
|
|
731
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"type": "null"
|
|
735
|
+
}
|
|
736
|
+
],
|
|
737
|
+
"description": "The current period's start. `null` before the first payment."
|
|
738
|
+
},
|
|
739
|
+
"period_ends_at": {
|
|
740
|
+
"anyOf": [
|
|
741
|
+
{
|
|
742
|
+
"type": "string",
|
|
743
|
+
"format": "date-time",
|
|
744
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"type": "null"
|
|
748
|
+
}
|
|
749
|
+
],
|
|
750
|
+
"description": "The current period's end. `null` before the first payment."
|
|
751
|
+
},
|
|
752
|
+
"next_charge": {
|
|
753
|
+
"anyOf": [
|
|
754
|
+
{
|
|
755
|
+
"type": "object",
|
|
756
|
+
"properties": {
|
|
757
|
+
"at": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"format": "date-time",
|
|
760
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
761
|
+
"description": "When the next charge is due."
|
|
762
|
+
},
|
|
763
|
+
"net_cents": {
|
|
764
|
+
"type": "integer",
|
|
765
|
+
"minimum": -9007199254740991,
|
|
766
|
+
"maximum": 9007199254740991,
|
|
767
|
+
"description": "The next charge, excluding VAT, in integer cents."
|
|
768
|
+
},
|
|
769
|
+
"vat_cents": {
|
|
770
|
+
"type": "integer",
|
|
771
|
+
"minimum": -9007199254740991,
|
|
772
|
+
"maximum": 9007199254740991,
|
|
773
|
+
"description": "VAT on the next charge, in integer cents."
|
|
774
|
+
},
|
|
775
|
+
"gross_cents": {
|
|
776
|
+
"type": "integer",
|
|
777
|
+
"minimum": -9007199254740991,
|
|
778
|
+
"maximum": 9007199254740991,
|
|
779
|
+
"description": "The next charge including VAT, in integer cents."
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"required": [
|
|
783
|
+
"at",
|
|
784
|
+
"net_cents",
|
|
785
|
+
"vat_cents",
|
|
786
|
+
"gross_cents"
|
|
787
|
+
],
|
|
788
|
+
"additionalProperties": false
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"type": "null"
|
|
792
|
+
}
|
|
793
|
+
],
|
|
794
|
+
"description": "`null` while a cancel is pending or nothing else renews."
|
|
795
|
+
},
|
|
796
|
+
"scheduled": {
|
|
797
|
+
"type": "object",
|
|
798
|
+
"properties": {
|
|
799
|
+
"cycle": {
|
|
800
|
+
"anyOf": [
|
|
801
|
+
{
|
|
802
|
+
"type": "string",
|
|
803
|
+
"enum": [
|
|
804
|
+
"monthly",
|
|
805
|
+
"yearly"
|
|
806
|
+
]
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"type": "null"
|
|
810
|
+
}
|
|
811
|
+
],
|
|
812
|
+
"description": "A cycle change queued for the period's end, or `null`."
|
|
813
|
+
},
|
|
814
|
+
"addons": {
|
|
815
|
+
"anyOf": [
|
|
816
|
+
{
|
|
817
|
+
"type": "object",
|
|
818
|
+
"properties": {
|
|
819
|
+
"seats": {
|
|
820
|
+
"type": "integer",
|
|
821
|
+
"minimum": 0,
|
|
822
|
+
"maximum": 9007199254740991,
|
|
823
|
+
"description": "Extra developer seats, one each."
|
|
824
|
+
},
|
|
825
|
+
"robots": {
|
|
826
|
+
"type": "integer",
|
|
827
|
+
"minimum": 0,
|
|
828
|
+
"maximum": 9007199254740991,
|
|
829
|
+
"description": "Extra robots, one each."
|
|
830
|
+
},
|
|
831
|
+
"apps": {
|
|
832
|
+
"type": "integer",
|
|
833
|
+
"minimum": 0,
|
|
834
|
+
"maximum": 9007199254740991,
|
|
835
|
+
"description": "Extra apps, one each."
|
|
836
|
+
},
|
|
837
|
+
"app_user_packs": {
|
|
838
|
+
"type": "integer",
|
|
839
|
+
"minimum": 0,
|
|
840
|
+
"maximum": 9007199254740991,
|
|
841
|
+
"description": "Packs of five extra app users."
|
|
842
|
+
},
|
|
843
|
+
"live_video_packs": {
|
|
844
|
+
"type": "integer",
|
|
845
|
+
"minimum": 0,
|
|
846
|
+
"maximum": 9007199254740991,
|
|
847
|
+
"description": "Packs of 250 extra hours of app-user live video per month."
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
"required": [
|
|
851
|
+
"seats",
|
|
852
|
+
"robots",
|
|
853
|
+
"apps",
|
|
854
|
+
"app_user_packs",
|
|
855
|
+
"live_video_packs"
|
|
856
|
+
],
|
|
857
|
+
"additionalProperties": false
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"type": "null"
|
|
861
|
+
}
|
|
862
|
+
],
|
|
863
|
+
"description": "Add-on counts queued for the period's end, or `null`."
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
"required": [
|
|
867
|
+
"cycle",
|
|
868
|
+
"addons"
|
|
869
|
+
],
|
|
870
|
+
"additionalProperties": false,
|
|
871
|
+
"description": "What takes effect at the period's end."
|
|
1197
872
|
},
|
|
1198
|
-
"
|
|
1199
|
-
"
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
873
|
+
"dunning": {
|
|
874
|
+
"anyOf": [
|
|
875
|
+
{
|
|
876
|
+
"type": "object",
|
|
877
|
+
"properties": {
|
|
878
|
+
"invoice_id": {
|
|
879
|
+
"type": "string",
|
|
880
|
+
"format": "uuid",
|
|
881
|
+
"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)$",
|
|
882
|
+
"description": "What dunning is chasing: a historical open `FL-…` invoice, or a due charge. Before the issuer cutover a due charge appears here only while the payer's VAT ID is unsettled; it has no number yet, is not in `invoices`, and `POST /api/billing/invoices/:id/pay` takes either. After the cutover this is always a due charge (in `charges`): pay it with `POST /api/billing/charges/:id/pay`."
|
|
883
|
+
},
|
|
884
|
+
"gross_cents": {
|
|
885
|
+
"type": "integer",
|
|
886
|
+
"minimum": -9007199254740991,
|
|
887
|
+
"maximum": 9007199254740991,
|
|
888
|
+
"description": "The amount owed, in integer cents — after a partial chargeback only the charged-back part."
|
|
889
|
+
},
|
|
890
|
+
"due_at": {
|
|
891
|
+
"type": "string",
|
|
892
|
+
"format": "date-time",
|
|
893
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
894
|
+
"description": "The charge's due date; retries and the lock count from here."
|
|
895
|
+
},
|
|
896
|
+
"next_retry_at": {
|
|
897
|
+
"anyOf": [
|
|
898
|
+
{
|
|
899
|
+
"type": "string",
|
|
900
|
+
"format": "date-time",
|
|
901
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"type": "null"
|
|
905
|
+
}
|
|
906
|
+
],
|
|
907
|
+
"description": "The next automatic retry, or `null` once retries are exhausted. Always `null` after a chargeback: a charged-back payment is never charged again automatically."
|
|
908
|
+
},
|
|
909
|
+
"lock_at": {
|
|
910
|
+
"type": "string",
|
|
911
|
+
"format": "date-time",
|
|
912
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
913
|
+
"description": "When the org is locked if still unpaid (`BILLING_LOCK_DAY`)."
|
|
914
|
+
},
|
|
915
|
+
"failure": {
|
|
916
|
+
"anyOf": [
|
|
917
|
+
{
|
|
918
|
+
"type": "string"
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"type": "null"
|
|
922
|
+
}
|
|
923
|
+
],
|
|
924
|
+
"description": "Mollie's own reason, e.g. 'card_expired'; 'vat_id_invalid' while a renewal is held because VIES does not confirm the VAT ID; 'charged_back' after a chargeback or a lost PayPal dispute."
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
"required": [
|
|
928
|
+
"invoice_id",
|
|
929
|
+
"gross_cents",
|
|
930
|
+
"due_at",
|
|
931
|
+
"next_retry_at",
|
|
932
|
+
"lock_at",
|
|
933
|
+
"failure"
|
|
934
|
+
],
|
|
935
|
+
"additionalProperties": false
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"type": "null"
|
|
939
|
+
}
|
|
940
|
+
],
|
|
941
|
+
"description": "`null` while nothing is overdue. During a VAT-ID hold the charge is due but not yet invoiced."
|
|
1203
942
|
}
|
|
1204
943
|
},
|
|
1205
944
|
"required": [
|
|
945
|
+
"payer",
|
|
946
|
+
"vat_id_status",
|
|
947
|
+
"vat",
|
|
1206
948
|
"currency",
|
|
1207
|
-
"
|
|
1208
|
-
"
|
|
1209
|
-
"
|
|
1210
|
-
"
|
|
949
|
+
"cycle",
|
|
950
|
+
"status",
|
|
951
|
+
"period_starts_at",
|
|
952
|
+
"period_ends_at",
|
|
953
|
+
"next_charge",
|
|
954
|
+
"scheduled",
|
|
955
|
+
"dunning"
|
|
1211
956
|
],
|
|
1212
957
|
"additionalProperties": false
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"type": "null"
|
|
1213
961
|
}
|
|
1214
|
-
},
|
|
1215
|
-
"required": [
|
|
1216
|
-
"intent_id",
|
|
1217
|
-
"operation_key",
|
|
1218
|
-
"operation",
|
|
1219
|
-
"quote_revision",
|
|
1220
|
-
"buyer_fingerprint",
|
|
1221
|
-
"state",
|
|
1222
|
-
"quote"
|
|
1223
962
|
],
|
|
1224
|
-
"
|
|
963
|
+
"description": "`null` before the org has ever checked out."
|
|
1225
964
|
},
|
|
1226
|
-
{
|
|
1227
|
-
"
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
965
|
+
"payment_method": {
|
|
966
|
+
"anyOf": [
|
|
967
|
+
{
|
|
968
|
+
"oneOf": [
|
|
969
|
+
{
|
|
970
|
+
"type": "object",
|
|
971
|
+
"properties": {
|
|
972
|
+
"kind": {
|
|
973
|
+
"type": "string",
|
|
974
|
+
"const": "card",
|
|
975
|
+
"description": "A card mandate."
|
|
976
|
+
},
|
|
977
|
+
"brand": {
|
|
978
|
+
"type": "string",
|
|
979
|
+
"description": "The card network, as Mollie's mandate reports it, e.g. 'Visa'."
|
|
980
|
+
},
|
|
981
|
+
"last4": {
|
|
982
|
+
"type": "string",
|
|
983
|
+
"pattern": "^\\d{4}$",
|
|
984
|
+
"description": "The last four digits of the card."
|
|
985
|
+
},
|
|
986
|
+
"expires": {
|
|
987
|
+
"type": "string",
|
|
988
|
+
"pattern": "^\\d{2}\\/\\d{2}$",
|
|
989
|
+
"description": "Expiry as Mollie's mandate shows it, 'MM/YY'."
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
"required": [
|
|
993
|
+
"kind",
|
|
994
|
+
"brand",
|
|
995
|
+
"last4",
|
|
996
|
+
"expires"
|
|
997
|
+
],
|
|
998
|
+
"additionalProperties": false
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"type": "object",
|
|
1002
|
+
"properties": {
|
|
1003
|
+
"kind": {
|
|
1004
|
+
"type": "string",
|
|
1005
|
+
"const": "applepay",
|
|
1006
|
+
"description": "A card mandate from an Apple Pay first payment — Mollie stores it as `creditcard`; Fleetless labels it Apple Pay."
|
|
1007
|
+
},
|
|
1008
|
+
"brand": {
|
|
1009
|
+
"type": "string",
|
|
1010
|
+
"description": "The card network, as Mollie's mandate reports it, e.g. 'Mastercard'."
|
|
1011
|
+
},
|
|
1012
|
+
"last4": {
|
|
1013
|
+
"type": "string",
|
|
1014
|
+
"pattern": "^\\d{4}$",
|
|
1015
|
+
"description": "The last four digits of the card behind Apple Pay."
|
|
1016
|
+
},
|
|
1017
|
+
"expires": {
|
|
1018
|
+
"type": "string",
|
|
1019
|
+
"pattern": "^\\d{2}\\/\\d{2}$",
|
|
1020
|
+
"description": "Expiry as Mollie's mandate shows it, 'MM/YY'."
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
"required": [
|
|
1024
|
+
"kind",
|
|
1025
|
+
"brand",
|
|
1026
|
+
"last4",
|
|
1027
|
+
"expires"
|
|
1028
|
+
],
|
|
1029
|
+
"additionalProperties": false
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"type": "object",
|
|
1033
|
+
"properties": {
|
|
1034
|
+
"kind": {
|
|
1035
|
+
"type": "string",
|
|
1036
|
+
"const": "paypal",
|
|
1037
|
+
"description": "A PayPal mandate."
|
|
1038
|
+
},
|
|
1039
|
+
"account": {
|
|
1040
|
+
"type": "string",
|
|
1041
|
+
"description": "The PayPal account Mollie's mandate names."
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
"required": [
|
|
1045
|
+
"kind",
|
|
1046
|
+
"account"
|
|
1047
|
+
],
|
|
1048
|
+
"additionalProperties": false
|
|
1049
|
+
}
|
|
1249
1050
|
]
|
|
1250
1051
|
},
|
|
1251
|
-
|
|
1252
|
-
"
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1052
|
+
{
|
|
1053
|
+
"type": "null"
|
|
1054
|
+
}
|
|
1055
|
+
],
|
|
1056
|
+
"description": "The payment method on file, or `null`."
|
|
1057
|
+
},
|
|
1058
|
+
"payment_method_options": {
|
|
1059
|
+
"type": "array",
|
|
1060
|
+
"items": {
|
|
1061
|
+
"type": "object",
|
|
1062
|
+
"properties": {
|
|
1063
|
+
"method": {
|
|
1064
|
+
"type": "string",
|
|
1065
|
+
"enum": [
|
|
1066
|
+
"card",
|
|
1067
|
+
"paypal",
|
|
1068
|
+
"applepay"
|
|
1069
|
+
],
|
|
1070
|
+
"description": "A method `POST /api/billing/payment-method` accepts now."
|
|
1071
|
+
},
|
|
1072
|
+
"pays_invoice": {
|
|
1073
|
+
"type": "boolean",
|
|
1074
|
+
"description": "Whether changing to it also pays the open invoice — `true` only for `applepay` when a zero-amount Apple Pay payment is not available."
|
|
1075
|
+
}
|
|
1256
1076
|
},
|
|
1257
|
-
"
|
|
1258
|
-
"
|
|
1259
|
-
"
|
|
1077
|
+
"required": [
|
|
1078
|
+
"method",
|
|
1079
|
+
"pays_invoice"
|
|
1080
|
+
],
|
|
1081
|
+
"additionalProperties": false
|
|
1082
|
+
},
|
|
1083
|
+
"description": "What a payment-method change may offer right now, so a client offers exactly what the cloud accepts. `applepay` is absent when it needs an open invoice and none is open; `[]` when the org has no billing account."
|
|
1084
|
+
},
|
|
1085
|
+
"issuer": {
|
|
1086
|
+
"type": "string",
|
|
1087
|
+
"enum": [
|
|
1088
|
+
"cloud",
|
|
1089
|
+
"lexware"
|
|
1090
|
+
],
|
|
1091
|
+
"description": "Which system issues this org's charges: `cloud` before the issuer cutover, or `lexware` after it."
|
|
1092
|
+
},
|
|
1093
|
+
"invoices": {
|
|
1094
|
+
"type": "array",
|
|
1095
|
+
"items": {
|
|
1096
|
+
"type": "object",
|
|
1097
|
+
"properties": {
|
|
1098
|
+
"id": {
|
|
1099
|
+
"type": "string",
|
|
1100
|
+
"format": "uuid",
|
|
1101
|
+
"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)$",
|
|
1102
|
+
"description": "The invoice's id."
|
|
1103
|
+
},
|
|
1104
|
+
"number": {
|
|
1105
|
+
"type": "string",
|
|
1106
|
+
"pattern": "^FL-\\d{4}-\\d{4,}$",
|
|
1107
|
+
"description": "The invoice number: `FL-<year>-<seq>`, `seq` zero-padded to four digits, gapless per calendar year in `Europe/Berlin`."
|
|
1108
|
+
},
|
|
1109
|
+
"issued_at": {
|
|
1110
|
+
"type": "string",
|
|
1111
|
+
"format": "date-time",
|
|
1112
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1113
|
+
"description": "When the invoice was issued."
|
|
1114
|
+
},
|
|
1115
|
+
"status": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"enum": [
|
|
1118
|
+
"open",
|
|
1119
|
+
"paid",
|
|
1120
|
+
"uncollectible"
|
|
1121
|
+
],
|
|
1122
|
+
"description": "This invoice's own status."
|
|
1123
|
+
},
|
|
1124
|
+
"currency": {
|
|
1125
|
+
"type": "string",
|
|
1126
|
+
"enum": [
|
|
1127
|
+
"eur",
|
|
1128
|
+
"usd"
|
|
1129
|
+
],
|
|
1130
|
+
"description": "The org's billing currency."
|
|
1131
|
+
},
|
|
1132
|
+
"net_cents": {
|
|
1133
|
+
"type": "integer",
|
|
1134
|
+
"minimum": 0,
|
|
1135
|
+
"maximum": 9007199254740991,
|
|
1136
|
+
"description": "The charge, excluding VAT, in integer cents."
|
|
1137
|
+
},
|
|
1138
|
+
"vat_rate_percent": {
|
|
1139
|
+
"type": "integer",
|
|
1140
|
+
"minimum": 0,
|
|
1141
|
+
"maximum": 100,
|
|
1142
|
+
"description": "The VAT rate applied, in whole percent."
|
|
1143
|
+
},
|
|
1144
|
+
"vat_cents": {
|
|
1145
|
+
"type": "integer",
|
|
1146
|
+
"minimum": 0,
|
|
1147
|
+
"maximum": 9007199254740991,
|
|
1148
|
+
"description": "VAT, in integer cents (`vatCents`)."
|
|
1149
|
+
},
|
|
1150
|
+
"gross_cents": {
|
|
1151
|
+
"type": "integer",
|
|
1152
|
+
"minimum": 0,
|
|
1153
|
+
"maximum": 9007199254740991,
|
|
1154
|
+
"description": "Net plus VAT, in integer cents."
|
|
1155
|
+
}
|
|
1260
1156
|
},
|
|
1261
|
-
"
|
|
1262
|
-
"
|
|
1263
|
-
"
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1157
|
+
"required": [
|
|
1158
|
+
"id",
|
|
1159
|
+
"number",
|
|
1160
|
+
"issued_at",
|
|
1161
|
+
"status",
|
|
1162
|
+
"currency",
|
|
1163
|
+
"net_cents",
|
|
1164
|
+
"vat_rate_percent",
|
|
1165
|
+
"vat_cents",
|
|
1166
|
+
"gross_cents"
|
|
1167
|
+
],
|
|
1168
|
+
"additionalProperties": false
|
|
1169
|
+
},
|
|
1170
|
+
"description": "Cloud-issued invoices from before the issuer cutover; read-only, never grows after it. Newest first, at most 24."
|
|
1171
|
+
},
|
|
1172
|
+
"charges": {
|
|
1173
|
+
"type": "array",
|
|
1174
|
+
"items": {
|
|
1175
|
+
"type": "object",
|
|
1176
|
+
"properties": {
|
|
1177
|
+
"id": {
|
|
1178
|
+
"type": "string",
|
|
1179
|
+
"format": "uuid",
|
|
1180
|
+
"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)$",
|
|
1181
|
+
"description": "The due charge's id — never a Cloud invoice number. Pay it with `POST /api/billing/charges/:id/pay`."
|
|
1182
|
+
},
|
|
1183
|
+
"kind": {
|
|
1184
|
+
"type": "string",
|
|
1185
|
+
"enum": [
|
|
1186
|
+
"first",
|
|
1187
|
+
"renewal",
|
|
1188
|
+
"change"
|
|
1189
|
+
],
|
|
1190
|
+
"description": "What caused the charge: the first charge after checkout, a scheduled renewal, or a mid-period plan change."
|
|
1191
|
+
},
|
|
1192
|
+
"status": {
|
|
1193
|
+
"type": "string",
|
|
1194
|
+
"enum": [
|
|
1195
|
+
"due",
|
|
1196
|
+
"paid",
|
|
1197
|
+
"uncollectible",
|
|
1198
|
+
"cancelled"
|
|
1199
|
+
],
|
|
1200
|
+
"description": "The charge's own status. A charged back or manually refunded charge stays `paid` — refunds and chargebacks are handled in Mollie or Lexware by hand; this status and the invoice it names are unchanged, and the resulting Lexware credit note appears under `GET /api/billing/documents` instead."
|
|
1201
|
+
},
|
|
1202
|
+
"currency": {
|
|
1203
|
+
"type": "string",
|
|
1204
|
+
"const": "eur",
|
|
1205
|
+
"description": "Every charge billed through Lexware is EUR."
|
|
1206
|
+
},
|
|
1207
|
+
"net_cents": {
|
|
1208
|
+
"type": "integer",
|
|
1209
|
+
"minimum": 0,
|
|
1210
|
+
"maximum": 9007199254740991,
|
|
1211
|
+
"description": "The charge, excluding VAT, in integer cents."
|
|
1212
|
+
},
|
|
1213
|
+
"vat_rate_percent": {
|
|
1214
|
+
"type": "integer",
|
|
1215
|
+
"minimum": 0,
|
|
1216
|
+
"maximum": 100,
|
|
1217
|
+
"description": "The VAT rate applied, in whole percent."
|
|
1218
|
+
},
|
|
1219
|
+
"vat_cents": {
|
|
1220
|
+
"type": "integer",
|
|
1221
|
+
"minimum": 0,
|
|
1222
|
+
"maximum": 9007199254740991,
|
|
1223
|
+
"description": "VAT, in integer cents (`vatCents`)."
|
|
1224
|
+
},
|
|
1225
|
+
"gross_cents": {
|
|
1226
|
+
"type": "integer",
|
|
1227
|
+
"minimum": 0,
|
|
1228
|
+
"maximum": 9007199254740991,
|
|
1229
|
+
"description": "Net plus VAT, in integer cents."
|
|
1230
|
+
},
|
|
1231
|
+
"period_start": {
|
|
1232
|
+
"type": "string",
|
|
1233
|
+
"format": "date-time",
|
|
1234
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1235
|
+
"description": "The covered period's start."
|
|
1236
|
+
},
|
|
1237
|
+
"period_end": {
|
|
1238
|
+
"type": "string",
|
|
1239
|
+
"format": "date-time",
|
|
1240
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1241
|
+
"description": "The covered period's end."
|
|
1242
|
+
},
|
|
1243
|
+
"due_at": {
|
|
1244
|
+
"type": "string",
|
|
1245
|
+
"format": "date-time",
|
|
1246
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1247
|
+
"description": "When this charge is due."
|
|
1248
|
+
},
|
|
1249
|
+
"paid_at": {
|
|
1250
|
+
"anyOf": [
|
|
1251
|
+
{
|
|
1252
|
+
"type": "string",
|
|
1253
|
+
"format": "date-time",
|
|
1254
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
"type": "null"
|
|
1258
|
+
}
|
|
1259
|
+
],
|
|
1260
|
+
"description": "When this charge was paid, or `null` while unpaid."
|
|
1261
|
+
},
|
|
1262
|
+
"invoice": {
|
|
1263
|
+
"oneOf": [
|
|
1264
|
+
{
|
|
1265
|
+
"type": "object",
|
|
1266
|
+
"properties": {
|
|
1267
|
+
"state": {
|
|
1268
|
+
"type": "string",
|
|
1269
|
+
"const": "not_issued",
|
|
1270
|
+
"description": "Not collected (due, a failed retry, or uncollectible): no invoice exists."
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1273
|
+
"required": [
|
|
1274
|
+
"state"
|
|
1275
|
+
],
|
|
1276
|
+
"additionalProperties": false
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"type": "object",
|
|
1280
|
+
"properties": {
|
|
1281
|
+
"state": {
|
|
1282
|
+
"type": "string",
|
|
1283
|
+
"const": "pending",
|
|
1284
|
+
"description": "Collected; the Lexware invoice is not yet confirmed."
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
"required": [
|
|
1288
|
+
"state"
|
|
1289
|
+
],
|
|
1290
|
+
"additionalProperties": false
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"type": "object",
|
|
1294
|
+
"properties": {
|
|
1295
|
+
"state": {
|
|
1296
|
+
"type": "string",
|
|
1297
|
+
"const": "issued",
|
|
1298
|
+
"description": "Lexware has confirmed the invoice."
|
|
1299
|
+
},
|
|
1300
|
+
"document_id": {
|
|
1301
|
+
"type": "string",
|
|
1302
|
+
"format": "uuid",
|
|
1303
|
+
"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)$",
|
|
1304
|
+
"description": "The Lexware document's id — read it with `GET /api/billing/documents/:id`."
|
|
1305
|
+
}
|
|
1306
|
+
},
|
|
1307
|
+
"required": [
|
|
1308
|
+
"state",
|
|
1309
|
+
"document_id"
|
|
1310
|
+
],
|
|
1311
|
+
"additionalProperties": false
|
|
1312
|
+
}
|
|
1313
|
+
],
|
|
1314
|
+
"description": "Whether a Lexware invoice exists for this charge yet, and which document it names once it does."
|
|
1315
|
+
}
|
|
1272
1316
|
},
|
|
1273
|
-
"
|
|
1274
|
-
"
|
|
1275
|
-
"
|
|
1276
|
-
"
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1317
|
+
"required": [
|
|
1318
|
+
"id",
|
|
1319
|
+
"kind",
|
|
1320
|
+
"status",
|
|
1321
|
+
"currency",
|
|
1322
|
+
"net_cents",
|
|
1323
|
+
"vat_rate_percent",
|
|
1324
|
+
"vat_cents",
|
|
1325
|
+
"gross_cents",
|
|
1326
|
+
"period_start",
|
|
1327
|
+
"period_end",
|
|
1328
|
+
"due_at",
|
|
1329
|
+
"paid_at",
|
|
1330
|
+
"invoice"
|
|
1331
|
+
],
|
|
1332
|
+
"additionalProperties": false,
|
|
1333
|
+
"allOf": [
|
|
1334
|
+
{
|
|
1335
|
+
"if": {
|
|
1336
|
+
"properties": {
|
|
1337
|
+
"status": {
|
|
1338
|
+
"const": "paid"
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
"required": [
|
|
1342
|
+
"status"
|
|
1282
1343
|
]
|
|
1283
1344
|
},
|
|
1284
|
-
"
|
|
1285
|
-
"
|
|
1286
|
-
|
|
1287
|
-
|
|
1345
|
+
"then": {
|
|
1346
|
+
"properties": {
|
|
1347
|
+
"invoice": {
|
|
1348
|
+
"properties": {
|
|
1349
|
+
"state": {
|
|
1350
|
+
"enum": [
|
|
1351
|
+
"pending",
|
|
1352
|
+
"issued"
|
|
1353
|
+
]
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1288
1358
|
}
|
|
1289
1359
|
},
|
|
1290
|
-
|
|
1291
|
-
"
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
"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)$",
|
|
1319
|
-
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
1320
|
-
},
|
|
1321
|
-
"operation": {
|
|
1322
|
-
"type": "string",
|
|
1323
|
-
"enum": [
|
|
1324
|
-
"checkout",
|
|
1325
|
-
"paid_change",
|
|
1326
|
-
"invoice_payment",
|
|
1327
|
-
"payment_method_invoice"
|
|
1328
|
-
]
|
|
1329
|
-
},
|
|
1330
|
-
"invoice_id": {
|
|
1331
|
-
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
1332
|
-
"type": "string",
|
|
1333
|
-
"format": "uuid",
|
|
1334
|
-
"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)$"
|
|
1335
|
-
},
|
|
1336
|
-
"state": {
|
|
1337
|
-
"type": "string",
|
|
1338
|
-
"const": "invalid_vat_id"
|
|
1339
|
-
},
|
|
1340
|
-
"field": {
|
|
1341
|
-
"type": "string",
|
|
1342
|
-
"const": "billing.vat_id"
|
|
1343
|
-
},
|
|
1344
|
-
"rule": {
|
|
1345
|
-
"type": "string",
|
|
1346
|
-
"const": "vat_id_invalid"
|
|
1347
|
-
}
|
|
1360
|
+
{
|
|
1361
|
+
"if": {
|
|
1362
|
+
"properties": {
|
|
1363
|
+
"status": {
|
|
1364
|
+
"enum": [
|
|
1365
|
+
"due",
|
|
1366
|
+
"uncollectible",
|
|
1367
|
+
"cancelled"
|
|
1368
|
+
]
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
"required": [
|
|
1372
|
+
"status"
|
|
1373
|
+
]
|
|
1374
|
+
},
|
|
1375
|
+
"then": {
|
|
1376
|
+
"properties": {
|
|
1377
|
+
"invoice": {
|
|
1378
|
+
"properties": {
|
|
1379
|
+
"state": {
|
|
1380
|
+
"const": "not_issued"
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
]
|
|
1348
1388
|
},
|
|
1349
|
-
"
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1389
|
+
"description": "Newest first, at most 24. Lists only due charges with issuer `lexware` — never a pre-cutover charge, a legacy payment (legacy_issued/legacy_held/legacy_person/legacy_usd) or a late USD collection: none of those carry a Lexware intent, and they stay in `invoices` or nowhere. `[]` while `issuer` is `cloud`."
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
"required": [
|
|
1393
|
+
"available",
|
|
1394
|
+
"account",
|
|
1395
|
+
"payment_method",
|
|
1396
|
+
"payment_method_options",
|
|
1397
|
+
"issuer",
|
|
1398
|
+
"invoices",
|
|
1399
|
+
"charges"
|
|
1400
|
+
],
|
|
1401
|
+
"additionalProperties": false,
|
|
1402
|
+
"description": "The billing view after the change."
|
|
1403
|
+
},
|
|
1404
|
+
"charged": {
|
|
1405
|
+
"anyOf": [
|
|
1359
1406
|
{
|
|
1360
1407
|
"type": "object",
|
|
1361
1408
|
"properties": {
|
|
1362
|
-
"
|
|
1363
|
-
"type": "string",
|
|
1364
|
-
"format": "uuid",
|
|
1365
|
-
"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)$",
|
|
1366
|
-
"description": "Opaque persisted purchase intent identity."
|
|
1367
|
-
},
|
|
1368
|
-
"operation_key": {
|
|
1409
|
+
"id": {
|
|
1369
1410
|
"type": "string",
|
|
1370
1411
|
"format": "uuid",
|
|
1371
1412
|
"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)$",
|
|
1372
|
-
"description": "
|
|
1373
|
-
},
|
|
1374
|
-
"operation": {
|
|
1375
|
-
"type": "string",
|
|
1376
|
-
"enum": [
|
|
1377
|
-
"checkout",
|
|
1378
|
-
"paid_change",
|
|
1379
|
-
"invoice_payment",
|
|
1380
|
-
"payment_method_invoice"
|
|
1381
|
-
]
|
|
1382
|
-
},
|
|
1383
|
-
"invoice_id": {
|
|
1384
|
-
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
1385
|
-
"type": "string",
|
|
1386
|
-
"format": "uuid",
|
|
1387
|
-
"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)$"
|
|
1388
|
-
},
|
|
1389
|
-
"state": {
|
|
1390
|
-
"type": "string",
|
|
1391
|
-
"const": "refused"
|
|
1413
|
+
"description": "The invoice's id."
|
|
1392
1414
|
},
|
|
1393
|
-
"
|
|
1415
|
+
"number": {
|
|
1394
1416
|
"type": "string",
|
|
1395
|
-
"
|
|
1417
|
+
"pattern": "^FL-\\d{4}-\\d{4,}$",
|
|
1418
|
+
"description": "The invoice number: `FL-<year>-<seq>`, `seq` zero-padded to four digits, gapless per calendar year in `Europe/Berlin`."
|
|
1396
1419
|
},
|
|
1397
|
-
"
|
|
1398
|
-
"type": "string",
|
|
1399
|
-
"enum": [
|
|
1400
|
-
"company_required",
|
|
1401
|
-
"vat_id_required",
|
|
1402
|
-
"vat_id_invalid",
|
|
1403
|
-
"tax_id_required",
|
|
1404
|
-
"us_state_required",
|
|
1405
|
-
"public_email_domain",
|
|
1406
|
-
"invoice_not_open"
|
|
1407
|
-
]
|
|
1408
|
-
}
|
|
1409
|
-
},
|
|
1410
|
-
"required": [
|
|
1411
|
-
"intent_id",
|
|
1412
|
-
"operation_key",
|
|
1413
|
-
"operation",
|
|
1414
|
-
"state",
|
|
1415
|
-
"field",
|
|
1416
|
-
"rule"
|
|
1417
|
-
],
|
|
1418
|
-
"additionalProperties": false
|
|
1419
|
-
},
|
|
1420
|
-
{
|
|
1421
|
-
"type": "object",
|
|
1422
|
-
"properties": {
|
|
1423
|
-
"intent_id": {
|
|
1420
|
+
"issued_at": {
|
|
1424
1421
|
"type": "string",
|
|
1425
|
-
"format": "
|
|
1426
|
-
"pattern": "^([
|
|
1427
|
-
"description": "
|
|
1422
|
+
"format": "date-time",
|
|
1423
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1424
|
+
"description": "When the invoice was issued."
|
|
1428
1425
|
},
|
|
1429
|
-
"
|
|
1426
|
+
"status": {
|
|
1430
1427
|
"type": "string",
|
|
1431
|
-
"
|
|
1432
|
-
|
|
1433
|
-
|
|
1428
|
+
"enum": [
|
|
1429
|
+
"open",
|
|
1430
|
+
"paid",
|
|
1431
|
+
"uncollectible"
|
|
1432
|
+
],
|
|
1433
|
+
"description": "This invoice's own status."
|
|
1434
1434
|
},
|
|
1435
|
-
"
|
|
1435
|
+
"currency": {
|
|
1436
1436
|
"type": "string",
|
|
1437
1437
|
"enum": [
|
|
1438
|
-
"
|
|
1439
|
-
"
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
]
|
|
1438
|
+
"eur",
|
|
1439
|
+
"usd"
|
|
1440
|
+
],
|
|
1441
|
+
"description": "The org's billing currency."
|
|
1443
1442
|
},
|
|
1444
|
-
"
|
|
1445
|
-
"
|
|
1446
|
-
"
|
|
1447
|
-
"
|
|
1448
|
-
"
|
|
1443
|
+
"net_cents": {
|
|
1444
|
+
"type": "integer",
|
|
1445
|
+
"minimum": 0,
|
|
1446
|
+
"maximum": 9007199254740991,
|
|
1447
|
+
"description": "The charge, excluding VAT, in integer cents."
|
|
1449
1448
|
},
|
|
1450
|
-
"
|
|
1451
|
-
"type": "
|
|
1452
|
-
"
|
|
1449
|
+
"vat_rate_percent": {
|
|
1450
|
+
"type": "integer",
|
|
1451
|
+
"minimum": 0,
|
|
1452
|
+
"maximum": 100,
|
|
1453
|
+
"description": "The VAT rate applied, in whole percent."
|
|
1453
1454
|
},
|
|
1454
|
-
"
|
|
1455
|
-
"type": "
|
|
1456
|
-
"
|
|
1457
|
-
"
|
|
1455
|
+
"vat_cents": {
|
|
1456
|
+
"type": "integer",
|
|
1457
|
+
"minimum": 0,
|
|
1458
|
+
"maximum": 9007199254740991,
|
|
1459
|
+
"description": "VAT, in integer cents (`vatCents`)."
|
|
1458
1460
|
},
|
|
1459
|
-
"
|
|
1460
|
-
"
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
"kind": {
|
|
1465
|
-
"type": "string",
|
|
1466
|
-
"const": "hosted"
|
|
1467
|
-
},
|
|
1468
|
-
"checkout_id": {
|
|
1469
|
-
"type": "string",
|
|
1470
|
-
"format": "uuid",
|
|
1471
|
-
"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)$"
|
|
1472
|
-
},
|
|
1473
|
-
"checkout_url": {
|
|
1474
|
-
"type": "string",
|
|
1475
|
-
"format": "uri"
|
|
1476
|
-
}
|
|
1477
|
-
},
|
|
1478
|
-
"required": [
|
|
1479
|
-
"kind",
|
|
1480
|
-
"checkout_id",
|
|
1481
|
-
"checkout_url"
|
|
1482
|
-
],
|
|
1483
|
-
"additionalProperties": false
|
|
1484
|
-
},
|
|
1485
|
-
{
|
|
1486
|
-
"type": "object",
|
|
1487
|
-
"properties": {
|
|
1488
|
-
"kind": {
|
|
1489
|
-
"type": "string",
|
|
1490
|
-
"const": "mandate"
|
|
1491
|
-
}
|
|
1492
|
-
},
|
|
1493
|
-
"required": [
|
|
1494
|
-
"kind"
|
|
1495
|
-
],
|
|
1496
|
-
"additionalProperties": false
|
|
1497
|
-
}
|
|
1498
|
-
]
|
|
1461
|
+
"gross_cents": {
|
|
1462
|
+
"type": "integer",
|
|
1463
|
+
"minimum": 0,
|
|
1464
|
+
"maximum": 9007199254740991,
|
|
1465
|
+
"description": "Net plus VAT, in integer cents."
|
|
1499
1466
|
}
|
|
1500
1467
|
},
|
|
1501
1468
|
"required": [
|
|
1502
|
-
"
|
|
1503
|
-
"
|
|
1504
|
-
"
|
|
1505
|
-
"
|
|
1506
|
-
"
|
|
1507
|
-
"
|
|
1469
|
+
"id",
|
|
1470
|
+
"number",
|
|
1471
|
+
"issued_at",
|
|
1472
|
+
"status",
|
|
1473
|
+
"currency",
|
|
1474
|
+
"net_cents",
|
|
1475
|
+
"vat_rate_percent",
|
|
1476
|
+
"vat_cents",
|
|
1477
|
+
"gross_cents"
|
|
1508
1478
|
],
|
|
1509
1479
|
"additionalProperties": false
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"type": "null"
|
|
1510
1483
|
}
|
|
1511
1484
|
],
|
|
1512
|
-
"
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
},
|
|
1523
|
-
"required": [
|
|
1524
|
-
"operation"
|
|
1525
|
-
]
|
|
1526
|
-
},
|
|
1527
|
-
"then": {
|
|
1528
|
-
"required": [
|
|
1529
|
-
"invoice_id"
|
|
1530
|
-
]
|
|
1531
|
-
}
|
|
1485
|
+
"description": "The invoice charged now, or `null` when the change was only scheduled for the period's end."
|
|
1486
|
+
},
|
|
1487
|
+
"intent": {
|
|
1488
|
+
"type": "object",
|
|
1489
|
+
"properties": {
|
|
1490
|
+
"intent_id": {
|
|
1491
|
+
"type": "string",
|
|
1492
|
+
"format": "uuid",
|
|
1493
|
+
"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)$",
|
|
1494
|
+
"description": "Opaque persisted purchase intent identity."
|
|
1532
1495
|
},
|
|
1533
|
-
{
|
|
1534
|
-
"
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
}
|
|
1539
|
-
},
|
|
1540
|
-
"required": [
|
|
1541
|
-
"operation"
|
|
1542
|
-
]
|
|
1543
|
-
},
|
|
1544
|
-
"then": {
|
|
1545
|
-
"properties": {
|
|
1546
|
-
"state": {
|
|
1547
|
-
"const": "held"
|
|
1548
|
-
},
|
|
1549
|
-
"reason": {
|
|
1550
|
-
"const": "mandate_policy_unresolved"
|
|
1551
|
-
}
|
|
1552
|
-
},
|
|
1553
|
-
"required": [
|
|
1554
|
-
"reason"
|
|
1555
|
-
]
|
|
1556
|
-
}
|
|
1496
|
+
"operation_key": {
|
|
1497
|
+
"type": "string",
|
|
1498
|
+
"format": "uuid",
|
|
1499
|
+
"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)$",
|
|
1500
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
1557
1501
|
},
|
|
1558
|
-
{
|
|
1559
|
-
"
|
|
1560
|
-
|
|
1561
|
-
"reason": {
|
|
1562
|
-
"const": "mandate_policy_unresolved"
|
|
1563
|
-
}
|
|
1564
|
-
},
|
|
1565
|
-
"required": [
|
|
1566
|
-
"reason"
|
|
1567
|
-
]
|
|
1568
|
-
},
|
|
1569
|
-
"then": {
|
|
1570
|
-
"properties": {
|
|
1571
|
-
"operation": {
|
|
1572
|
-
"const": "mandate_setup"
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1502
|
+
"operation": {
|
|
1503
|
+
"type": "string",
|
|
1504
|
+
"const": "paid_change"
|
|
1576
1505
|
},
|
|
1577
|
-
{
|
|
1578
|
-
"
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1506
|
+
"invoice_id": {
|
|
1507
|
+
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
1508
|
+
"type": "string",
|
|
1509
|
+
"format": "uuid",
|
|
1510
|
+
"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)$"
|
|
1511
|
+
},
|
|
1512
|
+
"state": {
|
|
1513
|
+
"type": "string",
|
|
1514
|
+
"const": "payment_started"
|
|
1515
|
+
},
|
|
1516
|
+
"payment_id": {
|
|
1517
|
+
"type": "string",
|
|
1518
|
+
"format": "uuid",
|
|
1519
|
+
"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)$"
|
|
1520
|
+
},
|
|
1521
|
+
"payment": {
|
|
1522
|
+
"oneOf": [
|
|
1523
|
+
{
|
|
1524
|
+
"type": "object",
|
|
1525
|
+
"properties": {
|
|
1526
|
+
"kind": {
|
|
1527
|
+
"type": "string",
|
|
1528
|
+
"const": "hosted"
|
|
1585
1529
|
},
|
|
1586
|
-
"
|
|
1587
|
-
"
|
|
1588
|
-
|
|
1589
|
-
|
|
1530
|
+
"checkout_id": {
|
|
1531
|
+
"type": "string",
|
|
1532
|
+
"format": "uuid",
|
|
1533
|
+
"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)$"
|
|
1534
|
+
},
|
|
1535
|
+
"checkout_url": {
|
|
1536
|
+
"type": "string",
|
|
1537
|
+
"format": "uri"
|
|
1538
|
+
}
|
|
1539
|
+
},
|
|
1540
|
+
"required": [
|
|
1541
|
+
"kind",
|
|
1542
|
+
"checkout_id",
|
|
1543
|
+
"checkout_url"
|
|
1544
|
+
],
|
|
1545
|
+
"additionalProperties": false
|
|
1590
1546
|
},
|
|
1591
|
-
|
|
1592
|
-
"
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1547
|
+
{
|
|
1548
|
+
"type": "object",
|
|
1549
|
+
"properties": {
|
|
1550
|
+
"kind": {
|
|
1551
|
+
"type": "string",
|
|
1552
|
+
"const": "mandate"
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
"required": [
|
|
1556
|
+
"kind"
|
|
1557
|
+
],
|
|
1558
|
+
"additionalProperties": false
|
|
1600
1559
|
}
|
|
1601
|
-
|
|
1560
|
+
]
|
|
1602
1561
|
}
|
|
1603
|
-
|
|
1562
|
+
},
|
|
1563
|
+
"required": [
|
|
1564
|
+
"intent_id",
|
|
1565
|
+
"operation_key",
|
|
1566
|
+
"operation",
|
|
1567
|
+
"state",
|
|
1568
|
+
"payment_id",
|
|
1569
|
+
"payment"
|
|
1570
|
+
],
|
|
1571
|
+
"additionalProperties": false
|
|
1604
1572
|
}
|
|
1605
1573
|
},
|
|
1606
1574
|
"required": [
|
|
1575
|
+
"billing",
|
|
1576
|
+
"charged",
|
|
1607
1577
|
"intent"
|
|
1608
1578
|
],
|
|
1609
1579
|
"additionalProperties": false
|
|
@@ -2574,91 +2544,10 @@
|
|
|
2574
2544
|
"invoices",
|
|
2575
2545
|
"charges"
|
|
2576
2546
|
],
|
|
2577
|
-
"additionalProperties": false
|
|
2578
|
-
"description": "The billing view after the change."
|
|
2547
|
+
"additionalProperties": false
|
|
2579
2548
|
},
|
|
2580
2549
|
"charged": {
|
|
2581
|
-
"
|
|
2582
|
-
{
|
|
2583
|
-
"type": "object",
|
|
2584
|
-
"properties": {
|
|
2585
|
-
"id": {
|
|
2586
|
-
"type": "string",
|
|
2587
|
-
"format": "uuid",
|
|
2588
|
-
"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)$",
|
|
2589
|
-
"description": "The invoice's id."
|
|
2590
|
-
},
|
|
2591
|
-
"number": {
|
|
2592
|
-
"type": "string",
|
|
2593
|
-
"pattern": "^FL-\\d{4}-\\d{4,}$",
|
|
2594
|
-
"description": "The invoice number: `FL-<year>-<seq>`, `seq` zero-padded to four digits, gapless per calendar year in `Europe/Berlin`."
|
|
2595
|
-
},
|
|
2596
|
-
"issued_at": {
|
|
2597
|
-
"type": "string",
|
|
2598
|
-
"format": "date-time",
|
|
2599
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
2600
|
-
"description": "When the invoice was issued."
|
|
2601
|
-
},
|
|
2602
|
-
"status": {
|
|
2603
|
-
"type": "string",
|
|
2604
|
-
"enum": [
|
|
2605
|
-
"open",
|
|
2606
|
-
"paid",
|
|
2607
|
-
"uncollectible"
|
|
2608
|
-
],
|
|
2609
|
-
"description": "This invoice's own status."
|
|
2610
|
-
},
|
|
2611
|
-
"currency": {
|
|
2612
|
-
"type": "string",
|
|
2613
|
-
"enum": [
|
|
2614
|
-
"eur",
|
|
2615
|
-
"usd"
|
|
2616
|
-
],
|
|
2617
|
-
"description": "The org's billing currency."
|
|
2618
|
-
},
|
|
2619
|
-
"net_cents": {
|
|
2620
|
-
"type": "integer",
|
|
2621
|
-
"minimum": 0,
|
|
2622
|
-
"maximum": 9007199254740991,
|
|
2623
|
-
"description": "The charge, excluding VAT, in integer cents."
|
|
2624
|
-
},
|
|
2625
|
-
"vat_rate_percent": {
|
|
2626
|
-
"type": "integer",
|
|
2627
|
-
"minimum": 0,
|
|
2628
|
-
"maximum": 100,
|
|
2629
|
-
"description": "The VAT rate applied, in whole percent."
|
|
2630
|
-
},
|
|
2631
|
-
"vat_cents": {
|
|
2632
|
-
"type": "integer",
|
|
2633
|
-
"minimum": 0,
|
|
2634
|
-
"maximum": 9007199254740991,
|
|
2635
|
-
"description": "VAT, in integer cents (`vatCents`)."
|
|
2636
|
-
},
|
|
2637
|
-
"gross_cents": {
|
|
2638
|
-
"type": "integer",
|
|
2639
|
-
"minimum": 0,
|
|
2640
|
-
"maximum": 9007199254740991,
|
|
2641
|
-
"description": "Net plus VAT, in integer cents."
|
|
2642
|
-
}
|
|
2643
|
-
},
|
|
2644
|
-
"required": [
|
|
2645
|
-
"id",
|
|
2646
|
-
"number",
|
|
2647
|
-
"issued_at",
|
|
2648
|
-
"status",
|
|
2649
|
-
"currency",
|
|
2650
|
-
"net_cents",
|
|
2651
|
-
"vat_rate_percent",
|
|
2652
|
-
"vat_cents",
|
|
2653
|
-
"gross_cents"
|
|
2654
|
-
],
|
|
2655
|
-
"additionalProperties": false
|
|
2656
|
-
},
|
|
2657
|
-
{
|
|
2658
|
-
"type": "null"
|
|
2659
|
-
}
|
|
2660
|
-
],
|
|
2661
|
-
"description": "The invoice charged now, or `null` when the change was only scheduled for the period's end."
|
|
2550
|
+
"type": "null"
|
|
2662
2551
|
},
|
|
2663
2552
|
"intent": {
|
|
2664
2553
|
"type": "object",
|
|
@@ -2666,8 +2555,7 @@
|
|
|
2666
2555
|
"intent_id": {
|
|
2667
2556
|
"type": "string",
|
|
2668
2557
|
"format": "uuid",
|
|
2669
|
-
"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)$"
|
|
2670
|
-
"description": "Opaque persisted purchase intent identity."
|
|
2558
|
+
"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)$"
|
|
2671
2559
|
},
|
|
2672
2560
|
"operation_key": {
|
|
2673
2561
|
"type": "string",
|
|
@@ -2677,66 +2565,68 @@
|
|
|
2677
2565
|
},
|
|
2678
2566
|
"operation": {
|
|
2679
2567
|
"type": "string",
|
|
2680
|
-
"
|
|
2681
|
-
"checkout",
|
|
2682
|
-
"paid_change",
|
|
2683
|
-
"invoice_payment",
|
|
2684
|
-
"payment_method_invoice"
|
|
2685
|
-
]
|
|
2568
|
+
"const": "paid_change"
|
|
2686
2569
|
},
|
|
2687
|
-
"
|
|
2688
|
-
"description": "The due charge or issued invoice, for invoice-paying operations.",
|
|
2570
|
+
"state": {
|
|
2689
2571
|
"type": "string",
|
|
2690
|
-
"
|
|
2691
|
-
"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)$"
|
|
2572
|
+
"const": "accepted_no_payment"
|
|
2692
2573
|
},
|
|
2693
|
-
"
|
|
2574
|
+
"quote_revision": {
|
|
2694
2575
|
"type": "string",
|
|
2695
|
-
"
|
|
2576
|
+
"minLength": 1,
|
|
2577
|
+
"maxLength": 200,
|
|
2578
|
+
"description": "Opaque revision of the displayed quote; echo it when confirming."
|
|
2696
2579
|
},
|
|
2697
|
-
"
|
|
2580
|
+
"buyer_fingerprint": {
|
|
2698
2581
|
"type": "string",
|
|
2699
|
-
"
|
|
2700
|
-
"
|
|
2582
|
+
"minLength": 1,
|
|
2583
|
+
"maxLength": 200,
|
|
2584
|
+
"description": "Opaque revision of buyer details and email policy; never full VIES evidence."
|
|
2701
2585
|
},
|
|
2702
|
-
"
|
|
2703
|
-
"
|
|
2586
|
+
"quote": {
|
|
2587
|
+
"type": "object",
|
|
2588
|
+
"properties": {
|
|
2589
|
+
"currency": {
|
|
2590
|
+
"type": "string",
|
|
2591
|
+
"const": "eur",
|
|
2592
|
+
"description": "Every new quote is in EUR."
|
|
2593
|
+
},
|
|
2594
|
+
"net_cents": {
|
|
2595
|
+
"type": "number",
|
|
2596
|
+
"const": 0
|
|
2597
|
+
},
|
|
2598
|
+
"vat_cents": {
|
|
2599
|
+
"type": "number",
|
|
2600
|
+
"const": 0
|
|
2601
|
+
},
|
|
2602
|
+
"gross_cents": {
|
|
2603
|
+
"type": "number",
|
|
2604
|
+
"const": 0
|
|
2605
|
+
},
|
|
2606
|
+
"rate_percent": {
|
|
2607
|
+
"type": "integer",
|
|
2608
|
+
"minimum": 0,
|
|
2609
|
+
"maximum": 100,
|
|
2610
|
+
"description": "VAT rate in whole percent."
|
|
2611
|
+
}
|
|
2612
|
+
},
|
|
2613
|
+
"required": [
|
|
2614
|
+
"currency",
|
|
2615
|
+
"net_cents",
|
|
2616
|
+
"vat_cents",
|
|
2617
|
+
"gross_cents",
|
|
2618
|
+
"rate_percent"
|
|
2619
|
+
],
|
|
2620
|
+
"additionalProperties": false
|
|
2621
|
+
},
|
|
2622
|
+
"accepted_at": {
|
|
2623
|
+
"type": "string",
|
|
2624
|
+
"allOf": [
|
|
2704
2625
|
{
|
|
2705
|
-
"
|
|
2706
|
-
"properties": {
|
|
2707
|
-
"kind": {
|
|
2708
|
-
"type": "string",
|
|
2709
|
-
"const": "hosted"
|
|
2710
|
-
},
|
|
2711
|
-
"checkout_id": {
|
|
2712
|
-
"type": "string",
|
|
2713
|
-
"format": "uuid",
|
|
2714
|
-
"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)$"
|
|
2715
|
-
},
|
|
2716
|
-
"checkout_url": {
|
|
2717
|
-
"type": "string",
|
|
2718
|
-
"format": "uri"
|
|
2719
|
-
}
|
|
2720
|
-
},
|
|
2721
|
-
"required": [
|
|
2722
|
-
"kind",
|
|
2723
|
-
"checkout_id",
|
|
2724
|
-
"checkout_url"
|
|
2725
|
-
],
|
|
2726
|
-
"additionalProperties": false
|
|
2626
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
2727
2627
|
},
|
|
2728
2628
|
{
|
|
2729
|
-
"
|
|
2730
|
-
"properties": {
|
|
2731
|
-
"kind": {
|
|
2732
|
-
"type": "string",
|
|
2733
|
-
"const": "mandate"
|
|
2734
|
-
}
|
|
2735
|
-
},
|
|
2736
|
-
"required": [
|
|
2737
|
-
"kind"
|
|
2738
|
-
],
|
|
2739
|
-
"additionalProperties": false
|
|
2629
|
+
"pattern": "Z$"
|
|
2740
2630
|
}
|
|
2741
2631
|
]
|
|
2742
2632
|
}
|
|
@@ -2746,102 +2636,12 @@
|
|
|
2746
2636
|
"operation_key",
|
|
2747
2637
|
"operation",
|
|
2748
2638
|
"state",
|
|
2749
|
-
"
|
|
2750
|
-
"
|
|
2639
|
+
"quote_revision",
|
|
2640
|
+
"buyer_fingerprint",
|
|
2641
|
+
"quote",
|
|
2642
|
+
"accepted_at"
|
|
2751
2643
|
],
|
|
2752
|
-
"additionalProperties": false
|
|
2753
|
-
"allOf": [
|
|
2754
|
-
{
|
|
2755
|
-
"if": {
|
|
2756
|
-
"properties": {
|
|
2757
|
-
"operation": {
|
|
2758
|
-
"enum": [
|
|
2759
|
-
"invoice_payment",
|
|
2760
|
-
"payment_method_invoice"
|
|
2761
|
-
]
|
|
2762
|
-
}
|
|
2763
|
-
},
|
|
2764
|
-
"required": [
|
|
2765
|
-
"operation"
|
|
2766
|
-
]
|
|
2767
|
-
},
|
|
2768
|
-
"then": {
|
|
2769
|
-
"required": [
|
|
2770
|
-
"invoice_id"
|
|
2771
|
-
]
|
|
2772
|
-
}
|
|
2773
|
-
},
|
|
2774
|
-
{
|
|
2775
|
-
"if": {
|
|
2776
|
-
"properties": {
|
|
2777
|
-
"operation": {
|
|
2778
|
-
"const": "mandate_setup"
|
|
2779
|
-
}
|
|
2780
|
-
},
|
|
2781
|
-
"required": [
|
|
2782
|
-
"operation"
|
|
2783
|
-
]
|
|
2784
|
-
},
|
|
2785
|
-
"then": {
|
|
2786
|
-
"properties": {
|
|
2787
|
-
"state": {
|
|
2788
|
-
"const": "held"
|
|
2789
|
-
},
|
|
2790
|
-
"reason": {
|
|
2791
|
-
"const": "mandate_policy_unresolved"
|
|
2792
|
-
}
|
|
2793
|
-
},
|
|
2794
|
-
"required": [
|
|
2795
|
-
"reason"
|
|
2796
|
-
]
|
|
2797
|
-
}
|
|
2798
|
-
},
|
|
2799
|
-
{
|
|
2800
|
-
"if": {
|
|
2801
|
-
"properties": {
|
|
2802
|
-
"reason": {
|
|
2803
|
-
"const": "mandate_policy_unresolved"
|
|
2804
|
-
}
|
|
2805
|
-
},
|
|
2806
|
-
"required": [
|
|
2807
|
-
"reason"
|
|
2808
|
-
]
|
|
2809
|
-
},
|
|
2810
|
-
"then": {
|
|
2811
|
-
"properties": {
|
|
2812
|
-
"operation": {
|
|
2813
|
-
"const": "mandate_setup"
|
|
2814
|
-
}
|
|
2815
|
-
}
|
|
2816
|
-
}
|
|
2817
|
-
},
|
|
2818
|
-
{
|
|
2819
|
-
"if": {
|
|
2820
|
-
"properties": {
|
|
2821
|
-
"payment": {
|
|
2822
|
-
"properties": {
|
|
2823
|
-
"kind": {
|
|
2824
|
-
"const": "mandate"
|
|
2825
|
-
}
|
|
2826
|
-
},
|
|
2827
|
-
"required": [
|
|
2828
|
-
"kind"
|
|
2829
|
-
]
|
|
2830
|
-
}
|
|
2831
|
-
},
|
|
2832
|
-
"required": [
|
|
2833
|
-
"payment"
|
|
2834
|
-
]
|
|
2835
|
-
},
|
|
2836
|
-
"then": {
|
|
2837
|
-
"properties": {
|
|
2838
|
-
"operation": {
|
|
2839
|
-
"const": "paid_change"
|
|
2840
|
-
}
|
|
2841
|
-
}
|
|
2842
|
-
}
|
|
2843
|
-
}
|
|
2844
|
-
]
|
|
2644
|
+
"additionalProperties": false
|
|
2845
2645
|
}
|
|
2846
2646
|
},
|
|
2847
2647
|
"required": [
|