@fleetless/contracts 10.1.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/artifacts/openapi.json +117 -13
- package/artifacts/routes.json +7 -6
- package/artifacts/schema/billing-change-response.schema.json +42 -3
- package/artifacts/schema/billing-invoice-pdf-query.schema.json +15 -0
- package/artifacts/schema/billing-invoice.schema.json +14 -1
- package/artifacts/schema/billing-view.schema.json +14 -1
- package/artifacts/schema/purchase-intent-response.schema.json +42 -3
- package/dist/billing.d.ts +32 -7
- package/dist/billing.js +9 -2
- package/dist/errors.d.ts +5 -3
- package/dist/errors.js +5 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/routes.js +10 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,19 @@ version.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [11.0.0] — 2026-11-02
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- `cancelled` invoice status, required nullable `cancellation_document_url` for
|
|
17
|
+
historical Cloud invoices, and optional `kind=invoice|cancellation` on the
|
|
18
|
+
owner-only invoice PDF route. Omitting `kind` still returns the original PDF.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Corrected billing error and route notes for interrupted Mollie charges,
|
|
23
|
+
`charge_in_progress`, and first-checkout reuse or `checkout_open` refusal.
|
|
24
|
+
|
|
12
25
|
## [10.1.0] — 2026-11-01
|
|
13
26
|
|
|
14
27
|
### Added
|
package/artifacts/openapi.json
CHANGED
|
@@ -9960,7 +9960,7 @@
|
|
|
9960
9960
|
}
|
|
9961
9961
|
}
|
|
9962
9962
|
},
|
|
9963
|
-
"description": "Basic stays free for every payer. This start creates only a nonbinding draft; accept_terms is deprecated and cannot confirm an order. Current company, buyer, VIES and EUR quote checks still apply. Persist operation_key before POST; same key
|
|
9963
|
+
"description": "Basic stays free for every payer. This start creates only a nonbinding draft; accept_terms is deprecated and cannot confirm an order. Current company, buyer, VIES and EUR quote checks still apply. Persist operation_key before POST; the same key and input return 200 with the existing intent (and its hosted checkout when payment_started), without another Mollie payment; changed input conflicts. A different operation_key while a first payment is open returns 409 target_state_conflict with rule checkout_open and details expires_at: null. An eligible Owner obtains a no-store C.4 display, then explicitly confirms with its proof. No payment or acceptance occurs at start. Hosted payment later offers card, PayPal or Apple Pay; its return is <console>/settings/billing?checkout=<checkout_id>. An active/past_due account uses billing/change.",
|
|
9964
9964
|
"requestBody": {
|
|
9965
9965
|
"required": true,
|
|
9966
9966
|
"content": {
|
|
@@ -10153,7 +10153,7 @@
|
|
|
10153
10153
|
}
|
|
10154
10154
|
}
|
|
10155
10155
|
},
|
|
10156
|
-
"description": "Checkout and paid-change decisions require confirmation_proof along with the operation key, quote revision and buyer fingerprint shown in the persisted C.4 display. Cloud rechecks buyer, quote, selection, legal references, period and current state under the org lock; stale or spent proof conflicts without effect. One decision and one legal acceptance commit together. An exact same-key replay returns the original result without another payment or acceptance. Foreign ownership answers 404 without disclosure; pending or held cannot charge.",
|
|
10156
|
+
"description": "Checkout and paid-change decisions require confirmation_proof along with the operation key, quote revision and buyer fingerprint shown in the persisted C.4 display. Cloud rechecks buyer, quote, selection, legal references, period and current state under the org lock; stale or spent proof conflicts without effect. One decision and one legal acceptance commit together. An exact same-key replay returns the original result without another payment or acceptance. A paid change can return 409 target_state_conflict with field billing and rule charge_in_progress while an earlier charge is unresolved; it does not start another charge. Foreign ownership answers 404 without disclosure; pending or held cannot charge.",
|
|
10157
10157
|
"requestBody": {
|
|
10158
10158
|
"required": true,
|
|
10159
10159
|
"content": {
|
|
@@ -10345,7 +10345,7 @@
|
|
|
10345
10345
|
}
|
|
10346
10346
|
}
|
|
10347
10347
|
},
|
|
10348
|
-
"description": "The request names an absolute plan/cycle/add-on target and a stable operation_key. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. An eligible Owner obtains a C.4 display and explicitly confirms with its proof. Confirmation may return accepted_no_payment with charged: null and no provider payment or redirect, or payment_started for a charged change. Exact-key lookup recovers the accepted result. Existing no_account, past_due, no_valid_mandate and plan_limit conflicts remain.",
|
|
10348
|
+
"description": "The request names an absolute plan/cycle/add-on target and a stable operation_key. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. An eligible Owner obtains a C.4 display and explicitly confirms with its proof. Confirmation may return accepted_no_payment with charged: null and no provider payment or redirect, or payment_started for a charged change. Exact-key lookup recovers the accepted result. Existing no_account, past_due, no_valid_mandate and plan_limit conflicts remain. A later paid-change confirmation can return 409 target_state_conflict with field billing and rule charge_in_progress while an earlier charge is unresolved; no second charge starts.",
|
|
10349
10349
|
"requestBody": {
|
|
10350
10350
|
"required": true,
|
|
10351
10351
|
"content": {
|
|
@@ -10488,7 +10488,7 @@
|
|
|
10488
10488
|
"/api/billing/invoices/{id}/pdf": {
|
|
10489
10489
|
"get": {
|
|
10490
10490
|
"operationId": "get_api_billing_invoices_id_pdf",
|
|
10491
|
-
"summary": "Downloads
|
|
10491
|
+
"summary": "Downloads an invoice's original or cancellation PDF.",
|
|
10492
10492
|
"tags": [
|
|
10493
10493
|
"billing"
|
|
10494
10494
|
],
|
|
@@ -10506,6 +10506,19 @@
|
|
|
10506
10506
|
"schema": {
|
|
10507
10507
|
"type": "string"
|
|
10508
10508
|
}
|
|
10509
|
+
},
|
|
10510
|
+
{
|
|
10511
|
+
"name": "kind",
|
|
10512
|
+
"in": "query",
|
|
10513
|
+
"required": false,
|
|
10514
|
+
"schema": {
|
|
10515
|
+
"description": "The original invoice or its stored cancellation PDF; omitted means `invoice`.",
|
|
10516
|
+
"type": "string",
|
|
10517
|
+
"enum": [
|
|
10518
|
+
"invoice",
|
|
10519
|
+
"cancellation"
|
|
10520
|
+
]
|
|
10521
|
+
}
|
|
10509
10522
|
}
|
|
10510
10523
|
],
|
|
10511
10524
|
"responses": {
|
|
@@ -10521,7 +10534,7 @@
|
|
|
10521
10534
|
}
|
|
10522
10535
|
},
|
|
10523
10536
|
"default": {
|
|
10524
|
-
"description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `not_found`.",
|
|
10537
|
+
"description": "An error envelope. Codes this route is known to answer: `unauthorized`, `token_expired`, `token_revoked`, `tier_required`, `validation_error`, `not_found`.",
|
|
10525
10538
|
"content": {
|
|
10526
10539
|
"application/json": {
|
|
10527
10540
|
"schema": {
|
|
@@ -10531,7 +10544,7 @@
|
|
|
10531
10544
|
}
|
|
10532
10545
|
}
|
|
10533
10546
|
},
|
|
10534
|
-
"description": "
|
|
10547
|
+
"description": "Owner-only. Omitted `kind` or `kind=invoice` returns the original PDF, rendered once with `pdfkit` when issued and stored as bytes. `kind=cancellation` returns the stored cancellation PDF for this same invoice id; no read renders a new PDF. `404 not_found` for an unknown id, one from another org, or a missing cancellation number or PDF. This reads historical Cloud invoices only: a due charge has no PDF of its own here — its eventual Lexware invoice is a document, read through `GET /api/billing/documents/:id/file`."
|
|
10535
10548
|
}
|
|
10536
10549
|
},
|
|
10537
10550
|
"/api/billing/documents": {
|
|
@@ -14275,10 +14288,22 @@
|
|
|
14275
14288
|
"enum": [
|
|
14276
14289
|
"open",
|
|
14277
14290
|
"paid",
|
|
14278
|
-
"uncollectible"
|
|
14291
|
+
"uncollectible",
|
|
14292
|
+
"cancelled"
|
|
14279
14293
|
],
|
|
14280
14294
|
"description": "This invoice's own status."
|
|
14281
14295
|
},
|
|
14296
|
+
"cancellation_document_url": {
|
|
14297
|
+
"anyOf": [
|
|
14298
|
+
{
|
|
14299
|
+
"type": "string"
|
|
14300
|
+
},
|
|
14301
|
+
{
|
|
14302
|
+
"type": "null"
|
|
14303
|
+
}
|
|
14304
|
+
],
|
|
14305
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
14306
|
+
},
|
|
14282
14307
|
"currency": {
|
|
14283
14308
|
"type": "string",
|
|
14284
14309
|
"enum": [
|
|
@@ -14317,6 +14342,7 @@
|
|
|
14317
14342
|
"number",
|
|
14318
14343
|
"issued_at",
|
|
14319
14344
|
"status",
|
|
14345
|
+
"cancellation_document_url",
|
|
14320
14346
|
"currency",
|
|
14321
14347
|
"net_cents",
|
|
14322
14348
|
"vat_rate_percent",
|
|
@@ -14586,10 +14612,22 @@
|
|
|
14586
14612
|
"enum": [
|
|
14587
14613
|
"open",
|
|
14588
14614
|
"paid",
|
|
14589
|
-
"uncollectible"
|
|
14615
|
+
"uncollectible",
|
|
14616
|
+
"cancelled"
|
|
14590
14617
|
],
|
|
14591
14618
|
"description": "This invoice's own status."
|
|
14592
14619
|
},
|
|
14620
|
+
"cancellation_document_url": {
|
|
14621
|
+
"anyOf": [
|
|
14622
|
+
{
|
|
14623
|
+
"type": "string"
|
|
14624
|
+
},
|
|
14625
|
+
{
|
|
14626
|
+
"type": "null"
|
|
14627
|
+
}
|
|
14628
|
+
],
|
|
14629
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
14630
|
+
},
|
|
14593
14631
|
"currency": {
|
|
14594
14632
|
"type": "string",
|
|
14595
14633
|
"enum": [
|
|
@@ -14628,6 +14666,7 @@
|
|
|
14628
14666
|
"number",
|
|
14629
14667
|
"issued_at",
|
|
14630
14668
|
"status",
|
|
14669
|
+
"cancellation_document_url",
|
|
14631
14670
|
"currency",
|
|
14632
14671
|
"net_cents",
|
|
14633
14672
|
"vat_rate_percent",
|
|
@@ -15421,10 +15460,22 @@
|
|
|
15421
15460
|
"enum": [
|
|
15422
15461
|
"open",
|
|
15423
15462
|
"paid",
|
|
15424
|
-
"uncollectible"
|
|
15463
|
+
"uncollectible",
|
|
15464
|
+
"cancelled"
|
|
15425
15465
|
],
|
|
15426
15466
|
"description": "This invoice's own status."
|
|
15427
15467
|
},
|
|
15468
|
+
"cancellation_document_url": {
|
|
15469
|
+
"anyOf": [
|
|
15470
|
+
{
|
|
15471
|
+
"type": "string"
|
|
15472
|
+
},
|
|
15473
|
+
{
|
|
15474
|
+
"type": "null"
|
|
15475
|
+
}
|
|
15476
|
+
],
|
|
15477
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
15478
|
+
},
|
|
15428
15479
|
"currency": {
|
|
15429
15480
|
"type": "string",
|
|
15430
15481
|
"enum": [
|
|
@@ -15463,6 +15514,7 @@
|
|
|
15463
15514
|
"number",
|
|
15464
15515
|
"issued_at",
|
|
15465
15516
|
"status",
|
|
15517
|
+
"cancellation_document_url",
|
|
15466
15518
|
"currency",
|
|
15467
15519
|
"net_cents",
|
|
15468
15520
|
"vat_rate_percent",
|
|
@@ -19980,10 +20032,22 @@
|
|
|
19980
20032
|
"enum": [
|
|
19981
20033
|
"open",
|
|
19982
20034
|
"paid",
|
|
19983
|
-
"uncollectible"
|
|
20035
|
+
"uncollectible",
|
|
20036
|
+
"cancelled"
|
|
19984
20037
|
],
|
|
19985
20038
|
"description": "This invoice's own status."
|
|
19986
20039
|
},
|
|
20040
|
+
"cancellation_document_url": {
|
|
20041
|
+
"anyOf": [
|
|
20042
|
+
{
|
|
20043
|
+
"type": "string"
|
|
20044
|
+
},
|
|
20045
|
+
{
|
|
20046
|
+
"type": "null"
|
|
20047
|
+
}
|
|
20048
|
+
],
|
|
20049
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
20050
|
+
},
|
|
19987
20051
|
"currency": {
|
|
19988
20052
|
"type": "string",
|
|
19989
20053
|
"enum": [
|
|
@@ -20022,6 +20086,7 @@
|
|
|
20022
20086
|
"number",
|
|
20023
20087
|
"issued_at",
|
|
20024
20088
|
"status",
|
|
20089
|
+
"cancellation_document_url",
|
|
20025
20090
|
"currency",
|
|
20026
20091
|
"net_cents",
|
|
20027
20092
|
"vat_rate_percent",
|
|
@@ -34325,10 +34390,22 @@
|
|
|
34325
34390
|
"enum": [
|
|
34326
34391
|
"open",
|
|
34327
34392
|
"paid",
|
|
34328
|
-
"uncollectible"
|
|
34393
|
+
"uncollectible",
|
|
34394
|
+
"cancelled"
|
|
34329
34395
|
],
|
|
34330
34396
|
"description": "This invoice's own status."
|
|
34331
34397
|
},
|
|
34398
|
+
"cancellation_document_url": {
|
|
34399
|
+
"anyOf": [
|
|
34400
|
+
{
|
|
34401
|
+
"type": "string"
|
|
34402
|
+
},
|
|
34403
|
+
{
|
|
34404
|
+
"type": "null"
|
|
34405
|
+
}
|
|
34406
|
+
],
|
|
34407
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
34408
|
+
},
|
|
34332
34409
|
"currency": {
|
|
34333
34410
|
"type": "string",
|
|
34334
34411
|
"enum": [
|
|
@@ -34367,6 +34444,7 @@
|
|
|
34367
34444
|
"number",
|
|
34368
34445
|
"issued_at",
|
|
34369
34446
|
"status",
|
|
34447
|
+
"cancellation_document_url",
|
|
34370
34448
|
"currency",
|
|
34371
34449
|
"net_cents",
|
|
34372
34450
|
"vat_rate_percent",
|
|
@@ -34636,10 +34714,22 @@
|
|
|
34636
34714
|
"enum": [
|
|
34637
34715
|
"open",
|
|
34638
34716
|
"paid",
|
|
34639
|
-
"uncollectible"
|
|
34717
|
+
"uncollectible",
|
|
34718
|
+
"cancelled"
|
|
34640
34719
|
],
|
|
34641
34720
|
"description": "This invoice's own status."
|
|
34642
34721
|
},
|
|
34722
|
+
"cancellation_document_url": {
|
|
34723
|
+
"anyOf": [
|
|
34724
|
+
{
|
|
34725
|
+
"type": "string"
|
|
34726
|
+
},
|
|
34727
|
+
{
|
|
34728
|
+
"type": "null"
|
|
34729
|
+
}
|
|
34730
|
+
],
|
|
34731
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
34732
|
+
},
|
|
34643
34733
|
"currency": {
|
|
34644
34734
|
"type": "string",
|
|
34645
34735
|
"enum": [
|
|
@@ -34678,6 +34768,7 @@
|
|
|
34678
34768
|
"number",
|
|
34679
34769
|
"issued_at",
|
|
34680
34770
|
"status",
|
|
34771
|
+
"cancellation_document_url",
|
|
34681
34772
|
"currency",
|
|
34682
34773
|
"net_cents",
|
|
34683
34774
|
"vat_rate_percent",
|
|
@@ -35471,10 +35562,22 @@
|
|
|
35471
35562
|
"enum": [
|
|
35472
35563
|
"open",
|
|
35473
35564
|
"paid",
|
|
35474
|
-
"uncollectible"
|
|
35565
|
+
"uncollectible",
|
|
35566
|
+
"cancelled"
|
|
35475
35567
|
],
|
|
35476
35568
|
"description": "This invoice's own status."
|
|
35477
35569
|
},
|
|
35570
|
+
"cancellation_document_url": {
|
|
35571
|
+
"anyOf": [
|
|
35572
|
+
{
|
|
35573
|
+
"type": "string"
|
|
35574
|
+
},
|
|
35575
|
+
{
|
|
35576
|
+
"type": "null"
|
|
35577
|
+
}
|
|
35578
|
+
],
|
|
35579
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
35580
|
+
},
|
|
35478
35581
|
"currency": {
|
|
35479
35582
|
"type": "string",
|
|
35480
35583
|
"enum": [
|
|
@@ -35513,6 +35616,7 @@
|
|
|
35513
35616
|
"number",
|
|
35514
35617
|
"issued_at",
|
|
35515
35618
|
"status",
|
|
35619
|
+
"cancellation_document_url",
|
|
35516
35620
|
"currency",
|
|
35517
35621
|
"net_cents",
|
|
35518
35622
|
"vat_rate_percent",
|
package/artifacts/routes.json
CHANGED
|
@@ -6777,7 +6777,7 @@
|
|
|
6777
6777
|
"payment_provider_unavailable"
|
|
6778
6778
|
],
|
|
6779
6779
|
"transport": "http",
|
|
6780
|
-
"notes": "Basic stays free for every payer. This start creates only a nonbinding draft; accept_terms is deprecated and cannot confirm an order. Current company, buyer, VIES and EUR quote checks still apply. Persist operation_key before POST; same key
|
|
6780
|
+
"notes": "Basic stays free for every payer. This start creates only a nonbinding draft; accept_terms is deprecated and cannot confirm an order. Current company, buyer, VIES and EUR quote checks still apply. Persist operation_key before POST; the same key and input return 200 with the existing intent (and its hosted checkout when payment_started), without another Mollie payment; changed input conflicts. A different operation_key while a first payment is open returns 409 target_state_conflict with rule checkout_open and details expires_at: null. An eligible Owner obtains a no-store C.4 display, then explicitly confirms with its proof. No payment or acceptance occurs at start. Hosted payment later offers card, PayPal or Apple Pay; its return is <console>/settings/billing?checkout=<checkout_id>. An active/past_due account uses billing/change."
|
|
6781
6781
|
},
|
|
6782
6782
|
{
|
|
6783
6783
|
"method": "GET",
|
|
@@ -6868,7 +6868,7 @@
|
|
|
6868
6868
|
"payment_provider_unavailable"
|
|
6869
6869
|
],
|
|
6870
6870
|
"transport": "http",
|
|
6871
|
-
"notes": "Checkout and paid-change decisions require confirmation_proof along with the operation key, quote revision and buyer fingerprint shown in the persisted C.4 display. Cloud rechecks buyer, quote, selection, legal references, period and current state under the org lock; stale or spent proof conflicts without effect. One decision and one legal acceptance commit together. An exact same-key replay returns the original result without another payment or acceptance. Foreign ownership answers 404 without disclosure; pending or held cannot charge."
|
|
6871
|
+
"notes": "Checkout and paid-change decisions require confirmation_proof along with the operation key, quote revision and buyer fingerprint shown in the persisted C.4 display. Cloud rechecks buyer, quote, selection, legal references, period and current state under the org lock; stale or spent proof conflicts without effect. One decision and one legal acceptance commit together. An exact same-key replay returns the original result without another payment or acceptance. A paid change can return 409 target_state_conflict with field billing and rule charge_in_progress while an earlier charge is unresolved; it does not start another charge. Foreign ownership answers 404 without disclosure; pending or held cannot charge."
|
|
6872
6872
|
},
|
|
6873
6873
|
{
|
|
6874
6874
|
"method": "GET",
|
|
@@ -6975,7 +6975,7 @@
|
|
|
6975
6975
|
"payment_provider_unavailable"
|
|
6976
6976
|
],
|
|
6977
6977
|
"transport": "http",
|
|
6978
|
-
"notes": "The request names an absolute plan/cycle/add-on target and a stable operation_key. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. An eligible Owner obtains a C.4 display and explicitly confirms with its proof. Confirmation may return accepted_no_payment with charged: null and no provider payment or redirect, or payment_started for a charged change. Exact-key lookup recovers the accepted result. Existing no_account, past_due, no_valid_mandate and plan_limit conflicts remain."
|
|
6978
|
+
"notes": "The request names an absolute plan/cycle/add-on target and a stable operation_key. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. An eligible Owner obtains a C.4 display and explicitly confirms with its proof. Confirmation may return accepted_no_payment with charged: null and no provider payment or redirect, or payment_started for a charged change. Exact-key lookup recovers the accepted result. Existing no_account, past_due, no_valid_mandate and plan_limit conflicts remain. A later paid-change confirmation can return 409 target_state_conflict with field billing and rule charge_in_progress while an earlier charge is unresolved; no second charge starts."
|
|
6979
6979
|
},
|
|
6980
6980
|
{
|
|
6981
6981
|
"method": "POST",
|
|
@@ -7059,7 +7059,7 @@
|
|
|
7059
7059
|
"method": "GET",
|
|
7060
7060
|
"path": "/api/billing/invoices/:id/pdf",
|
|
7061
7061
|
"section": "billing",
|
|
7062
|
-
"summary": "Downloads
|
|
7062
|
+
"summary": "Downloads an invoice's original or cancellation PDF.",
|
|
7063
7063
|
"audience": "developer",
|
|
7064
7064
|
"auth": "developer",
|
|
7065
7065
|
"rateLimited": false,
|
|
@@ -7071,7 +7071,7 @@
|
|
|
7071
7071
|
"description": "The invoice id, from `billingInvoice.id` in `GET /api/billing`'s `invoices`."
|
|
7072
7072
|
}
|
|
7073
7073
|
],
|
|
7074
|
-
"query":
|
|
7074
|
+
"query": "billing-invoice-pdf-query",
|
|
7075
7075
|
"request": null,
|
|
7076
7076
|
"response": null,
|
|
7077
7077
|
"contentType": "application/pdf",
|
|
@@ -7080,10 +7080,11 @@
|
|
|
7080
7080
|
"token_expired",
|
|
7081
7081
|
"token_revoked",
|
|
7082
7082
|
"tier_required",
|
|
7083
|
+
"validation_error",
|
|
7083
7084
|
"not_found"
|
|
7084
7085
|
],
|
|
7085
7086
|
"transport": "http",
|
|
7086
|
-
"notes": "
|
|
7087
|
+
"notes": "Owner-only. Omitted `kind` or `kind=invoice` returns the original PDF, rendered once with `pdfkit` when issued and stored as bytes. `kind=cancellation` returns the stored cancellation PDF for this same invoice id; no read renders a new PDF. `404 not_found` for an unknown id, one from another org, or a missing cancellation number or PDF. This reads historical Cloud invoices only: a due charge has no PDF of its own here — its eventual Lexware invoice is a document, read through `GET /api/billing/documents/:id/file`."
|
|
7087
7088
|
},
|
|
7088
7089
|
{
|
|
7089
7090
|
"method": "GET",
|
|
@@ -1117,10 +1117,22 @@
|
|
|
1117
1117
|
"enum": [
|
|
1118
1118
|
"open",
|
|
1119
1119
|
"paid",
|
|
1120
|
-
"uncollectible"
|
|
1120
|
+
"uncollectible",
|
|
1121
|
+
"cancelled"
|
|
1121
1122
|
],
|
|
1122
1123
|
"description": "This invoice's own status."
|
|
1123
1124
|
},
|
|
1125
|
+
"cancellation_document_url": {
|
|
1126
|
+
"anyOf": [
|
|
1127
|
+
{
|
|
1128
|
+
"type": "string"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"type": "null"
|
|
1132
|
+
}
|
|
1133
|
+
],
|
|
1134
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
1135
|
+
},
|
|
1124
1136
|
"currency": {
|
|
1125
1137
|
"type": "string",
|
|
1126
1138
|
"enum": [
|
|
@@ -1159,6 +1171,7 @@
|
|
|
1159
1171
|
"number",
|
|
1160
1172
|
"issued_at",
|
|
1161
1173
|
"status",
|
|
1174
|
+
"cancellation_document_url",
|
|
1162
1175
|
"currency",
|
|
1163
1176
|
"net_cents",
|
|
1164
1177
|
"vat_rate_percent",
|
|
@@ -1428,10 +1441,22 @@
|
|
|
1428
1441
|
"enum": [
|
|
1429
1442
|
"open",
|
|
1430
1443
|
"paid",
|
|
1431
|
-
"uncollectible"
|
|
1444
|
+
"uncollectible",
|
|
1445
|
+
"cancelled"
|
|
1432
1446
|
],
|
|
1433
1447
|
"description": "This invoice's own status."
|
|
1434
1448
|
},
|
|
1449
|
+
"cancellation_document_url": {
|
|
1450
|
+
"anyOf": [
|
|
1451
|
+
{
|
|
1452
|
+
"type": "string"
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"type": "null"
|
|
1456
|
+
}
|
|
1457
|
+
],
|
|
1458
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
1459
|
+
},
|
|
1435
1460
|
"currency": {
|
|
1436
1461
|
"type": "string",
|
|
1437
1462
|
"enum": [
|
|
@@ -1470,6 +1495,7 @@
|
|
|
1470
1495
|
"number",
|
|
1471
1496
|
"issued_at",
|
|
1472
1497
|
"status",
|
|
1498
|
+
"cancellation_document_url",
|
|
1473
1499
|
"currency",
|
|
1474
1500
|
"net_cents",
|
|
1475
1501
|
"vat_rate_percent",
|
|
@@ -2263,10 +2289,22 @@
|
|
|
2263
2289
|
"enum": [
|
|
2264
2290
|
"open",
|
|
2265
2291
|
"paid",
|
|
2266
|
-
"uncollectible"
|
|
2292
|
+
"uncollectible",
|
|
2293
|
+
"cancelled"
|
|
2267
2294
|
],
|
|
2268
2295
|
"description": "This invoice's own status."
|
|
2269
2296
|
},
|
|
2297
|
+
"cancellation_document_url": {
|
|
2298
|
+
"anyOf": [
|
|
2299
|
+
{
|
|
2300
|
+
"type": "string"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
"type": "null"
|
|
2304
|
+
}
|
|
2305
|
+
],
|
|
2306
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
2307
|
+
},
|
|
2270
2308
|
"currency": {
|
|
2271
2309
|
"type": "string",
|
|
2272
2310
|
"enum": [
|
|
@@ -2305,6 +2343,7 @@
|
|
|
2305
2343
|
"number",
|
|
2306
2344
|
"issued_at",
|
|
2307
2345
|
"status",
|
|
2346
|
+
"cancellation_document_url",
|
|
2308
2347
|
"currency",
|
|
2309
2348
|
"net_cents",
|
|
2310
2349
|
"vat_rate_percent",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"kind": {
|
|
6
|
+
"description": "The original invoice or its stored cancellation PDF; omitted means `invoice`.",
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": [
|
|
9
|
+
"invoice",
|
|
10
|
+
"cancellation"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|
|
@@ -24,10 +24,22 @@
|
|
|
24
24
|
"enum": [
|
|
25
25
|
"open",
|
|
26
26
|
"paid",
|
|
27
|
-
"uncollectible"
|
|
27
|
+
"uncollectible",
|
|
28
|
+
"cancelled"
|
|
28
29
|
],
|
|
29
30
|
"description": "This invoice's own status."
|
|
30
31
|
},
|
|
32
|
+
"cancellation_document_url": {
|
|
33
|
+
"anyOf": [
|
|
34
|
+
{
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "null"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
42
|
+
},
|
|
31
43
|
"currency": {
|
|
32
44
|
"type": "string",
|
|
33
45
|
"enum": [
|
|
@@ -66,6 +78,7 @@
|
|
|
66
78
|
"number",
|
|
67
79
|
"issued_at",
|
|
68
80
|
"status",
|
|
81
|
+
"cancellation_document_url",
|
|
69
82
|
"currency",
|
|
70
83
|
"net_cents",
|
|
71
84
|
"vat_rate_percent",
|
|
@@ -681,10 +681,22 @@
|
|
|
681
681
|
"enum": [
|
|
682
682
|
"open",
|
|
683
683
|
"paid",
|
|
684
|
-
"uncollectible"
|
|
684
|
+
"uncollectible",
|
|
685
|
+
"cancelled"
|
|
685
686
|
],
|
|
686
687
|
"description": "This invoice's own status."
|
|
687
688
|
},
|
|
689
|
+
"cancellation_document_url": {
|
|
690
|
+
"anyOf": [
|
|
691
|
+
{
|
|
692
|
+
"type": "string"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"type": "null"
|
|
696
|
+
}
|
|
697
|
+
],
|
|
698
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
699
|
+
},
|
|
688
700
|
"currency": {
|
|
689
701
|
"type": "string",
|
|
690
702
|
"enum": [
|
|
@@ -723,6 +735,7 @@
|
|
|
723
735
|
"number",
|
|
724
736
|
"issued_at",
|
|
725
737
|
"status",
|
|
738
|
+
"cancellation_document_url",
|
|
726
739
|
"currency",
|
|
727
740
|
"net_cents",
|
|
728
741
|
"vat_rate_percent",
|
|
@@ -1316,10 +1316,22 @@
|
|
|
1316
1316
|
"enum": [
|
|
1317
1317
|
"open",
|
|
1318
1318
|
"paid",
|
|
1319
|
-
"uncollectible"
|
|
1319
|
+
"uncollectible",
|
|
1320
|
+
"cancelled"
|
|
1320
1321
|
],
|
|
1321
1322
|
"description": "This invoice's own status."
|
|
1322
1323
|
},
|
|
1324
|
+
"cancellation_document_url": {
|
|
1325
|
+
"anyOf": [
|
|
1326
|
+
{
|
|
1327
|
+
"type": "string"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"type": "null"
|
|
1331
|
+
}
|
|
1332
|
+
],
|
|
1333
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
1334
|
+
},
|
|
1323
1335
|
"currency": {
|
|
1324
1336
|
"type": "string",
|
|
1325
1337
|
"enum": [
|
|
@@ -1358,6 +1370,7 @@
|
|
|
1358
1370
|
"number",
|
|
1359
1371
|
"issued_at",
|
|
1360
1372
|
"status",
|
|
1373
|
+
"cancellation_document_url",
|
|
1361
1374
|
"currency",
|
|
1362
1375
|
"net_cents",
|
|
1363
1376
|
"vat_rate_percent",
|
|
@@ -1627,10 +1640,22 @@
|
|
|
1627
1640
|
"enum": [
|
|
1628
1641
|
"open",
|
|
1629
1642
|
"paid",
|
|
1630
|
-
"uncollectible"
|
|
1643
|
+
"uncollectible",
|
|
1644
|
+
"cancelled"
|
|
1631
1645
|
],
|
|
1632
1646
|
"description": "This invoice's own status."
|
|
1633
1647
|
},
|
|
1648
|
+
"cancellation_document_url": {
|
|
1649
|
+
"anyOf": [
|
|
1650
|
+
{
|
|
1651
|
+
"type": "string"
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"type": "null"
|
|
1655
|
+
}
|
|
1656
|
+
],
|
|
1657
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
1658
|
+
},
|
|
1634
1659
|
"currency": {
|
|
1635
1660
|
"type": "string",
|
|
1636
1661
|
"enum": [
|
|
@@ -1669,6 +1694,7 @@
|
|
|
1669
1694
|
"number",
|
|
1670
1695
|
"issued_at",
|
|
1671
1696
|
"status",
|
|
1697
|
+
"cancellation_document_url",
|
|
1672
1698
|
"currency",
|
|
1673
1699
|
"net_cents",
|
|
1674
1700
|
"vat_rate_percent",
|
|
@@ -2462,10 +2488,22 @@
|
|
|
2462
2488
|
"enum": [
|
|
2463
2489
|
"open",
|
|
2464
2490
|
"paid",
|
|
2465
|
-
"uncollectible"
|
|
2491
|
+
"uncollectible",
|
|
2492
|
+
"cancelled"
|
|
2466
2493
|
],
|
|
2467
2494
|
"description": "This invoice's own status."
|
|
2468
2495
|
},
|
|
2496
|
+
"cancellation_document_url": {
|
|
2497
|
+
"anyOf": [
|
|
2498
|
+
{
|
|
2499
|
+
"type": "string"
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"type": "null"
|
|
2503
|
+
}
|
|
2504
|
+
],
|
|
2505
|
+
"description": "Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice's id, not the cancellation number."
|
|
2506
|
+
},
|
|
2469
2507
|
"currency": {
|
|
2470
2508
|
"type": "string",
|
|
2471
2509
|
"enum": [
|
|
@@ -2504,6 +2542,7 @@
|
|
|
2504
2542
|
"number",
|
|
2505
2543
|
"issued_at",
|
|
2506
2544
|
"status",
|
|
2545
|
+
"cancellation_document_url",
|
|
2507
2546
|
"currency",
|
|
2508
2547
|
"net_cents",
|
|
2509
2548
|
"vat_rate_percent",
|
package/dist/billing.d.ts
CHANGED
|
@@ -6238,11 +6238,12 @@ export declare const paymentMethod: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6238
6238
|
account: z.ZodString;
|
|
6239
6239
|
}, z.core.$strip>], "kind">;
|
|
6240
6240
|
export type PaymentMethod = z.infer<typeof paymentMethod>;
|
|
6241
|
-
/** An invoice's status: `open` until paid,
|
|
6241
|
+
/** An invoice's status: `open` until paid, `cancelled` after a cancellation, or `uncollectible` after an unpaid fallback. */
|
|
6242
6242
|
export declare const invoiceStatus: z.ZodEnum<{
|
|
6243
6243
|
paid: "paid";
|
|
6244
6244
|
open: "open";
|
|
6245
6245
|
uncollectible: "uncollectible";
|
|
6246
|
+
cancelled: "cancelled";
|
|
6246
6247
|
}>;
|
|
6247
6248
|
export type InvoiceStatus = z.infer<typeof invoiceStatus>;
|
|
6248
6249
|
/** One invoice, rendered by the cloud: the number is gapless, `FL-<year>-<seq>`. */
|
|
@@ -6254,7 +6255,9 @@ export declare const billingInvoice: z.ZodObject<{
|
|
|
6254
6255
|
paid: "paid";
|
|
6255
6256
|
open: "open";
|
|
6256
6257
|
uncollectible: "uncollectible";
|
|
6258
|
+
cancelled: "cancelled";
|
|
6257
6259
|
}>;
|
|
6260
|
+
cancellation_document_url: z.ZodNullable<z.ZodString>;
|
|
6258
6261
|
currency: z.ZodEnum<{
|
|
6259
6262
|
eur: "eur";
|
|
6260
6263
|
usd: "usd";
|
|
@@ -6265,6 +6268,14 @@ export declare const billingInvoice: z.ZodObject<{
|
|
|
6265
6268
|
gross_cents: z.ZodNumber;
|
|
6266
6269
|
}, z.core.$strip>;
|
|
6267
6270
|
export type BillingInvoice = z.infer<typeof billingInvoice>;
|
|
6271
|
+
/** Optional document kind for `GET /api/billing/invoices/:id/pdf`; omitted means the original invoice. */
|
|
6272
|
+
export declare const billingInvoicePdfQuery: z.ZodObject<{
|
|
6273
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
6274
|
+
invoice: "invoice";
|
|
6275
|
+
cancellation: "cancellation";
|
|
6276
|
+
}>>;
|
|
6277
|
+
}, z.core.$strict>;
|
|
6278
|
+
export type BillingInvoicePdfQuery = z.infer<typeof billingInvoicePdfQuery>;
|
|
6268
6279
|
/**
|
|
6269
6280
|
* The org's billing account: the payer, the VAT treatment, the cycle and
|
|
6270
6281
|
* period, what is scheduled for the period's end and dunning
|
|
@@ -6397,8 +6408,8 @@ export declare const billingCharge: z.ZodObject<{
|
|
|
6397
6408
|
status: z.ZodEnum<{
|
|
6398
6409
|
paid: "paid";
|
|
6399
6410
|
uncollectible: "uncollectible";
|
|
6400
|
-
due: "due";
|
|
6401
6411
|
cancelled: "cancelled";
|
|
6412
|
+
due: "due";
|
|
6402
6413
|
}>;
|
|
6403
6414
|
currency: z.ZodLiteral<"eur">;
|
|
6404
6415
|
net_cents: z.ZodNumber;
|
|
@@ -6547,7 +6558,9 @@ export declare const billingView: z.ZodObject<{
|
|
|
6547
6558
|
paid: "paid";
|
|
6548
6559
|
open: "open";
|
|
6549
6560
|
uncollectible: "uncollectible";
|
|
6561
|
+
cancelled: "cancelled";
|
|
6550
6562
|
}>;
|
|
6563
|
+
cancellation_document_url: z.ZodNullable<z.ZodString>;
|
|
6551
6564
|
currency: z.ZodEnum<{
|
|
6552
6565
|
eur: "eur";
|
|
6553
6566
|
usd: "usd";
|
|
@@ -6567,8 +6580,8 @@ export declare const billingView: z.ZodObject<{
|
|
|
6567
6580
|
status: z.ZodEnum<{
|
|
6568
6581
|
paid: "paid";
|
|
6569
6582
|
uncollectible: "uncollectible";
|
|
6570
|
-
due: "due";
|
|
6571
6583
|
cancelled: "cancelled";
|
|
6584
|
+
due: "due";
|
|
6572
6585
|
}>;
|
|
6573
6586
|
currency: z.ZodLiteral<"eur">;
|
|
6574
6587
|
net_cents: z.ZodNumber;
|
|
@@ -6970,7 +6983,9 @@ export declare const billingChangeResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
6970
6983
|
paid: "paid";
|
|
6971
6984
|
open: "open";
|
|
6972
6985
|
uncollectible: "uncollectible";
|
|
6986
|
+
cancelled: "cancelled";
|
|
6973
6987
|
}>;
|
|
6988
|
+
cancellation_document_url: z.ZodNullable<z.ZodString>;
|
|
6974
6989
|
currency: z.ZodEnum<{
|
|
6975
6990
|
eur: "eur";
|
|
6976
6991
|
usd: "usd";
|
|
@@ -6990,8 +7005,8 @@ export declare const billingChangeResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
6990
7005
|
status: z.ZodEnum<{
|
|
6991
7006
|
paid: "paid";
|
|
6992
7007
|
uncollectible: "uncollectible";
|
|
6993
|
-
due: "due";
|
|
6994
7008
|
cancelled: "cancelled";
|
|
7009
|
+
due: "due";
|
|
6995
7010
|
}>;
|
|
6996
7011
|
currency: z.ZodLiteral<"eur">;
|
|
6997
7012
|
net_cents: z.ZodNumber;
|
|
@@ -7020,7 +7035,9 @@ export declare const billingChangeResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
7020
7035
|
paid: "paid";
|
|
7021
7036
|
open: "open";
|
|
7022
7037
|
uncollectible: "uncollectible";
|
|
7038
|
+
cancelled: "cancelled";
|
|
7023
7039
|
}>;
|
|
7040
|
+
cancellation_document_url: z.ZodNullable<z.ZodString>;
|
|
7024
7041
|
currency: z.ZodEnum<{
|
|
7025
7042
|
eur: "eur";
|
|
7026
7043
|
usd: "usd";
|
|
@@ -7153,7 +7170,9 @@ export declare const billingChangeResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
7153
7170
|
paid: "paid";
|
|
7154
7171
|
open: "open";
|
|
7155
7172
|
uncollectible: "uncollectible";
|
|
7173
|
+
cancelled: "cancelled";
|
|
7156
7174
|
}>;
|
|
7175
|
+
cancellation_document_url: z.ZodNullable<z.ZodString>;
|
|
7157
7176
|
currency: z.ZodEnum<{
|
|
7158
7177
|
eur: "eur";
|
|
7159
7178
|
usd: "usd";
|
|
@@ -7173,8 +7192,8 @@ export declare const billingChangeResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
7173
7192
|
status: z.ZodEnum<{
|
|
7174
7193
|
paid: "paid";
|
|
7175
7194
|
uncollectible: "uncollectible";
|
|
7176
|
-
due: "due";
|
|
7177
7195
|
cancelled: "cancelled";
|
|
7196
|
+
due: "due";
|
|
7178
7197
|
}>;
|
|
7179
7198
|
currency: z.ZodLiteral<"eur">;
|
|
7180
7199
|
net_cents: z.ZodNumber;
|
|
@@ -7470,7 +7489,9 @@ export declare const purchaseIntentResponse: z.ZodUnion<readonly [z.ZodDiscrimin
|
|
|
7470
7489
|
paid: "paid";
|
|
7471
7490
|
open: "open";
|
|
7472
7491
|
uncollectible: "uncollectible";
|
|
7492
|
+
cancelled: "cancelled";
|
|
7473
7493
|
}>;
|
|
7494
|
+
cancellation_document_url: z.ZodNullable<z.ZodString>;
|
|
7474
7495
|
currency: z.ZodEnum<{
|
|
7475
7496
|
eur: "eur";
|
|
7476
7497
|
usd: "usd";
|
|
@@ -7490,8 +7511,8 @@ export declare const purchaseIntentResponse: z.ZodUnion<readonly [z.ZodDiscrimin
|
|
|
7490
7511
|
status: z.ZodEnum<{
|
|
7491
7512
|
paid: "paid";
|
|
7492
7513
|
uncollectible: "uncollectible";
|
|
7493
|
-
due: "due";
|
|
7494
7514
|
cancelled: "cancelled";
|
|
7515
|
+
due: "due";
|
|
7495
7516
|
}>;
|
|
7496
7517
|
currency: z.ZodLiteral<"eur">;
|
|
7497
7518
|
net_cents: z.ZodNumber;
|
|
@@ -7520,7 +7541,9 @@ export declare const purchaseIntentResponse: z.ZodUnion<readonly [z.ZodDiscrimin
|
|
|
7520
7541
|
paid: "paid";
|
|
7521
7542
|
open: "open";
|
|
7522
7543
|
uncollectible: "uncollectible";
|
|
7544
|
+
cancelled: "cancelled";
|
|
7523
7545
|
}>;
|
|
7546
|
+
cancellation_document_url: z.ZodNullable<z.ZodString>;
|
|
7524
7547
|
currency: z.ZodEnum<{
|
|
7525
7548
|
eur: "eur";
|
|
7526
7549
|
usd: "usd";
|
|
@@ -7653,7 +7676,9 @@ export declare const purchaseIntentResponse: z.ZodUnion<readonly [z.ZodDiscrimin
|
|
|
7653
7676
|
paid: "paid";
|
|
7654
7677
|
open: "open";
|
|
7655
7678
|
uncollectible: "uncollectible";
|
|
7679
|
+
cancelled: "cancelled";
|
|
7656
7680
|
}>;
|
|
7681
|
+
cancellation_document_url: z.ZodNullable<z.ZodString>;
|
|
7657
7682
|
currency: z.ZodEnum<{
|
|
7658
7683
|
eur: "eur";
|
|
7659
7684
|
usd: "usd";
|
|
@@ -7673,8 +7698,8 @@ export declare const purchaseIntentResponse: z.ZodUnion<readonly [z.ZodDiscrimin
|
|
|
7673
7698
|
status: z.ZodEnum<{
|
|
7674
7699
|
paid: "paid";
|
|
7675
7700
|
uncollectible: "uncollectible";
|
|
7676
|
-
due: "due";
|
|
7677
7701
|
cancelled: "cancelled";
|
|
7702
|
+
due: "due";
|
|
7678
7703
|
}>;
|
|
7679
7704
|
currency: z.ZodLiteral<"eur">;
|
|
7680
7705
|
net_cents: z.ZodNumber;
|
package/dist/billing.js
CHANGED
|
@@ -673,8 +673,8 @@ export const paymentMethod = z.discriminatedUnion('kind', [
|
|
|
673
673
|
account: z.string().meta({ description: "The PayPal account Mollie's mandate names." }),
|
|
674
674
|
}),
|
|
675
675
|
]);
|
|
676
|
-
/** An invoice's status: `open` until paid,
|
|
677
|
-
export const invoiceStatus = z.enum(['open', 'paid', 'uncollectible']);
|
|
676
|
+
/** An invoice's status: `open` until paid, `cancelled` after a cancellation, or `uncollectible` after an unpaid fallback. */
|
|
677
|
+
export const invoiceStatus = z.enum(['open', 'paid', 'uncollectible', 'cancelled']);
|
|
678
678
|
/** One invoice, rendered by the cloud: the number is gapless, `FL-<year>-<seq>`. */
|
|
679
679
|
export const billingInvoice = z.object({
|
|
680
680
|
id: z.uuid().meta({ description: "The invoice's id." }),
|
|
@@ -683,12 +683,19 @@ export const billingInvoice = z.object({
|
|
|
683
683
|
}),
|
|
684
684
|
issued_at: z.iso.datetime().meta({ description: 'When the invoice was issued.' }),
|
|
685
685
|
status: invoiceStatus.meta({ description: 'This invoice\'s own status.' }),
|
|
686
|
+
cancellation_document_url: z.string().nullable().meta({
|
|
687
|
+
description: 'Relative same-origin path `/api/billing/invoices/<id>/pdf?kind=cancellation` for a cancelled historical Cloud invoice with a stored cancellation number and PDF; otherwise `null`. The path uses this invoice\'s id, not the cancellation number.',
|
|
688
|
+
}),
|
|
686
689
|
currency: planCurrency.meta({ description: "The org's billing currency." }),
|
|
687
690
|
net_cents: z.number().int().nonnegative().meta({ description: 'The charge, excluding VAT, in integer cents.' }),
|
|
688
691
|
vat_rate_percent: z.number().int().min(0).max(100).meta({ description: 'The VAT rate applied, in whole percent.' }),
|
|
689
692
|
vat_cents: z.number().int().nonnegative().meta({ description: 'VAT, in integer cents (`vatCents`).' }),
|
|
690
693
|
gross_cents: z.number().int().nonnegative().meta({ description: 'Net plus VAT, in integer cents.' }),
|
|
691
694
|
});
|
|
695
|
+
/** Optional document kind for `GET /api/billing/invoices/:id/pdf`; omitted means the original invoice. */
|
|
696
|
+
export const billingInvoicePdfQuery = z.object({
|
|
697
|
+
kind: z.enum(['invoice', 'cancellation']).optional().meta({ description: 'The original invoice or its stored cancellation PDF; omitted means `invoice`.' }),
|
|
698
|
+
}).strict();
|
|
692
699
|
/**
|
|
693
700
|
* The org's billing account: the payer, the VAT treatment, the cycle and
|
|
694
701
|
* period, what is scheduled for the period's end and dunning
|
package/dist/errors.d.ts
CHANGED
|
@@ -228,9 +228,11 @@ export type FileTooLargeDetails = z.infer<typeof fileTooLargeDetails>;
|
|
|
228
228
|
/**
|
|
229
229
|
* The `details` of a `502 payment_provider_unavailable` refusal (2026-10-04,
|
|
230
230
|
* fleetless/fleetless#104): Mollie did not answer, or answered with an
|
|
231
|
-
* error
|
|
232
|
-
*
|
|
233
|
-
*
|
|
231
|
+
* error. A plan change or add-on purchase is not applied, but an interrupted
|
|
232
|
+
* Mollie request may still be charged and later refunded in full; a `502`
|
|
233
|
+
* does not prove that no charge occurred (fleetless/fleetless#187, #216).
|
|
234
|
+
* `status` is Mollie's own HTTP status, `null` for a timeout — the two ways
|
|
235
|
+
* "did not answer" happens, told apart for whoever reads a support ticket.
|
|
234
236
|
*/
|
|
235
237
|
export declare const paymentProviderUnavailableDetails: z.ZodObject<{
|
|
236
238
|
provider: z.ZodLiteral<"mollie">;
|
package/dist/errors.js
CHANGED
|
@@ -157,9 +157,11 @@ export const fileTooLargeDetails = z.object({
|
|
|
157
157
|
/**
|
|
158
158
|
* The `details` of a `502 payment_provider_unavailable` refusal (2026-10-04,
|
|
159
159
|
* fleetless/fleetless#104): Mollie did not answer, or answered with an
|
|
160
|
-
* error
|
|
161
|
-
*
|
|
162
|
-
*
|
|
160
|
+
* error. A plan change or add-on purchase is not applied, but an interrupted
|
|
161
|
+
* Mollie request may still be charged and later refunded in full; a `502`
|
|
162
|
+
* does not prove that no charge occurred (fleetless/fleetless#187, #216).
|
|
163
|
+
* `status` is Mollie's own HTTP status, `null` for a timeout — the two ways
|
|
164
|
+
* "did not answer" happens, told apart for whoever reads a support ticket.
|
|
163
165
|
*/
|
|
164
166
|
export const paymentProviderUnavailableDetails = z.object({
|
|
165
167
|
provider: z.literal('mollie').meta({ description: 'The payment provider. Always `mollie` today.' }),
|
package/dist/index.d.ts
CHANGED
|
@@ -64,8 +64,8 @@ export type { PlanId, PlanLimitKey, PlanLimits, PlanFeature, PlanFeatures, PlanP
|
|
|
64
64
|
export { planCurrency, orgAddons, orgPlanUsage, planChangeKeep, planChangeReason, pendingPlanChange, orgLock, orgPlan, planChangeRequest, planChangePrepareRequest, planChangeDecisionLookupQuery, planChangeDecisionStatusResponse, planOverrides, adminPlanChangeRequest, } from './plans.js';
|
|
65
65
|
export type { PlanCurrency, OrgAddons, OrgPlanUsage, PlanChangeKeep, PlanChangeReason, PendingPlanChange, OrgLock, OrgPlan, PlanChangeRequest, PlanChangePrepareRequest, PlanChangeDecisionLookupQuery, PlanChangeDecisionStatusResponse, PlanOverrides, AdminPlanChangeRequest, } from './plans.js';
|
|
66
66
|
export { ianaTimeZones } from './iana-time-zones.js';
|
|
67
|
-
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingAccount, billingView, billingChangeResponse, billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocumentFormat, billingDocument, billingDocumentList, billingDocumentFileRole, billingDocumentDetail, billingDocumentFileQuery, billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
|
|
68
|
-
export type { PayerKind, BillingCycle, VatTreatment, PayerRefusalRule, VatDecision, ChargeAmounts, BillingState, QuoteLine, CheckoutQuote, BillingAddress, BillingDetails, CheckoutRequest, CheckoutResponse, CheckoutStatus, VatIdStatus, VatIdCheckRequest, VatIdCheckResponse, BillingChangeRequest, BillingCancelRequest, BillingDetailsUpdate, PaymentMethodKind, PaymentMethodChangeRequest, BillingAccountStatus, PaymentMethod, InvoiceStatus, BillingInvoice, BillingAccount, BillingView, BillingChangeResponse, BillingDocumentKind, BillingDocumentStatus, BillingDocumentProfile, BillingDocumentFormat, BillingDocument, BillingDocumentList, BillingDocumentFileRole, BillingDocumentDetail, BillingDocumentFileQuery, BillingIssuer, BillingChargeInvoice, BillingCharge, ChargePayRequest, } from './billing.js';
|
|
67
|
+
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingInvoicePdfQuery, billingAccount, billingView, billingChangeResponse, billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocumentFormat, billingDocument, billingDocumentList, billingDocumentFileRole, billingDocumentDetail, billingDocumentFileQuery, billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
|
|
68
|
+
export type { PayerKind, BillingCycle, VatTreatment, PayerRefusalRule, VatDecision, ChargeAmounts, BillingState, QuoteLine, CheckoutQuote, BillingAddress, BillingDetails, CheckoutRequest, CheckoutResponse, CheckoutStatus, VatIdStatus, VatIdCheckRequest, VatIdCheckResponse, BillingChangeRequest, BillingCancelRequest, BillingDetailsUpdate, PaymentMethodKind, PaymentMethodChangeRequest, BillingAccountStatus, PaymentMethod, InvoiceStatus, BillingInvoice, BillingInvoicePdfQuery, BillingAccount, BillingView, BillingChangeResponse, BillingDocumentKind, BillingDocumentStatus, BillingDocumentProfile, BillingDocumentFormat, BillingDocument, BillingDocumentList, BillingDocumentFileRole, BillingDocumentDetail, BillingDocumentFileQuery, BillingIssuer, BillingChargeInvoice, BillingCharge, ChargePayRequest, } from './billing.js';
|
|
69
69
|
export { controllerRegisterAddress, controllerRegisterPrivacyContact, controllerRegisterRepresentative, controllerRegisterWrite, controllerRegisterOrgRecord, controllerRegisterOrgResponse } from './controller-register.js';
|
|
70
70
|
export type { ControllerRegisterWrite, ControllerRegisterOrgResponse } from './controller-register.js';
|
|
71
71
|
export { purchaseBillingDetails, purchaseOperationKey, purchaseOperation, purchaseQuote, billingDecisionDisplayRequest, confirmationProof, billingDecisionAmounts, billingDecisionPeriod, billingDecisionSnapshot, billingDecisionDisplayResponse, planChangePrepareResponse, purchaseHoldReason, purchaseRefusalRule, purchaseIntent, purchaseIntentLookupQuery, purchaseIntentDraft, purchaseIntentPaymentStarted, purchaseIntentAcceptedWithoutPayment, purchaseIntentConfirmRequest, purchaseConflictDetails, invoicePayRequest, purchaseIntentResponse, vatDecision, viesPendingReason, } from './billing.js';
|
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ export { planId, PLAN_ORDER, planLimitKey, planLimits, planFeature, planFeatures
|
|
|
77
77
|
export { planCurrency, orgAddons, orgPlanUsage, planChangeKeep, planChangeReason, pendingPlanChange, orgLock, orgPlan, planChangeRequest, planChangePrepareRequest, planChangeDecisionLookupQuery, planChangeDecisionStatusResponse, planOverrides, adminPlanChangeRequest, } from './plans.js';
|
|
78
78
|
export { ianaTimeZones } from './iana-time-zones.js';
|
|
79
79
|
// 2026-10-04 — billing through Mollie (#104).
|
|
80
|
-
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingAccount, billingView, billingChangeResponse,
|
|
80
|
+
export { countryCode, EU_COUNTRIES, SELLER_COUNTRY, DE_VAT_RATE_PERCENT, isEuCountry, currencyForCountry, payerKind, billingCycle, vatTreatment, payerRefusalRule, vatFor, viesCountry, normalizeVatId, periodNetCents, prorateCents, vatCents, chargeAmounts, DAY_MS, periodDays, remainingDays, changeNetCents, checkoutQuote, BILLING_RETRY_DAYS, BILLING_LOCK_DAY, billingAddress, billingDetails, checkoutRequest, checkoutResponse, checkoutStatus, vatIdStatus, vatIdCheckRequest, vatIdCheckResponse, billingChangeRequest, billingCancelRequest, billingDetailsUpdate, paymentMethodKind, paymentMethodChangeRequest, billingAccountStatus, paymentMethod, invoiceStatus, billingInvoice, billingInvoicePdfQuery, billingAccount, billingView, billingChangeResponse,
|
|
81
81
|
// 2026-10-19 — Lexware billing documents (fleetless/fleetless#544).
|
|
82
82
|
billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocumentFormat, billingDocument, billingDocumentList, billingDocumentFileRole, billingDocumentDetail, billingDocumentFileQuery,
|
|
83
83
|
// 2026-10-19 — the Lexware issuer cutover (fleetless/fleetless#327).
|
package/dist/routes.js
CHANGED
|
@@ -15,7 +15,7 @@ import { MCP_APP_PATHS, mcpRobotDatasheet, mcpRolePreviewResponse } from './mcp.
|
|
|
15
15
|
import { authorizationServerMetadata, dynamicClientRegistrationRequest, dynamicClientRegistrationResponse, oauthAuthorizeQuery, oauthRedirectResponse, oauthTokenRequest, oauthTokenResponse, protectedResourceMetadata, } from './oauth.js';
|
|
16
16
|
import { adminPlanChangeRequest, orgPlan, planChangeRequest, planChangePrepareRequest, planChangeDecisionLookupQuery, planChangeDecisionStatusResponse } from './plans.js';
|
|
17
17
|
import { supportRenewFailRequest, supportTokenRequest, supportTokenResponse } from './support.js';
|
|
18
|
-
import { purchaseIntentLookupQuery, purchaseIntentConfirmRequest, billingDecisionDisplayRequest, billingDecisionDisplayResponse, planChangePrepareResponse, purchaseIntentResponse, invoicePayRequest, billingCancelRequest, billingChangeRequest, billingChangeResponse, billingDetailsUpdate, billingDocumentDetail, billingDocumentFileQuery, billingDocumentList, billingView, chargePayRequest, checkoutRequest, checkoutResponse, checkoutStatus, paymentMethodChangeRequest, vatIdCheckRequest, vatIdCheckResponse, } from './billing.js';
|
|
18
|
+
import { purchaseIntentLookupQuery, purchaseIntentConfirmRequest, billingDecisionDisplayRequest, billingDecisionDisplayResponse, planChangePrepareResponse, purchaseIntentResponse, invoicePayRequest, billingCancelRequest, billingChangeRequest, billingChangeResponse, billingDetailsUpdate, billingInvoicePdfQuery, billingDocumentDetail, billingDocumentFileQuery, billingDocumentList, billingView, chargePayRequest, checkoutRequest, checkoutResponse, checkoutStatus, paymentMethodChangeRequest, vatIdCheckRequest, vatIdCheckResponse, } from './billing.js';
|
|
19
19
|
import { cameraListResponse, cancelRequest, recoverHeldJobRequest, recoverHeldJobResponse, configDraftResponse, configVersionResponse, configVersionsResponse, createRobotRequest, createRobotResponse, datapointListResponse, datapointValue, exposureListResponse, fetchTypesRequest, fetchTypesResponse, historyQuery, historyResponse, introspectionResponse, invokeOrServiceResponse, invokeRequest, jobResponse, liveSessionResponse, orgHealthQuery, orgLatencyQuery, orgLatencyResponse, orgQuotaUsage, orgUsageQuery, orgUsageResponse, patchRobotRequest, patchRobotResponse, publishConfigResponse, publishRequest, putConfigDraftRequest, putRobotDetailsRequest, putRobotDetailsResponse, robotTokenRotateResponse, jointStatePutRequest, jointStatePutResponse, releaseLiveQuery, renameSlugRequest, renameSlugResponse, robotDeleteQuery, resourceHealthListResponse, robotDeletionSummary, robotDetailResponse, robotJobsResponse, robotListResponse, slugUsageResponse, snapshotMetaResponse, typesResponse, } from './rest.js';
|
|
20
20
|
export const ROUTE_SECTIONS = [
|
|
21
21
|
{ id: 'health', title: 'Health' },
|
|
@@ -3032,7 +3032,7 @@ export const ROUTES = [
|
|
|
3032
3032
|
params: [], query: null, request: checkoutRequest, response: checkoutResponse,
|
|
3033
3033
|
errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error', 'plan_limit', 'target_state_conflict', 'rate_limited', ...BILLING_OFF, ...MOLLIE],
|
|
3034
3034
|
transport: 'http',
|
|
3035
|
-
notes: "Basic stays free for every payer. This start creates only a nonbinding draft; accept_terms is deprecated and cannot confirm an order. Current company, buyer, VIES and EUR quote checks still apply. Persist operation_key before POST; same key
|
|
3035
|
+
notes: "Basic stays free for every payer. This start creates only a nonbinding draft; accept_terms is deprecated and cannot confirm an order. Current company, buyer, VIES and EUR quote checks still apply. Persist operation_key before POST; the same key and input return 200 with the existing intent (and its hosted checkout when payment_started), without another Mollie payment; changed input conflicts. A different operation_key while a first payment is open returns 409 target_state_conflict with rule checkout_open and details expires_at: null. An eligible Owner obtains a no-store C.4 display, then explicitly confirms with its proof. No payment or acceptance occurs at start. Hosted payment later offers card, PayPal or Apple Pay; its return is <console>/settings/billing?checkout=<checkout_id>. An active/past_due account uses billing/change.",
|
|
3036
3036
|
},
|
|
3037
3037
|
{
|
|
3038
3038
|
method: 'GET', path: '/api/billing/intents', section: 'billing',
|
|
@@ -3058,7 +3058,7 @@ export const ROUTES = [
|
|
|
3058
3058
|
params: [{ name: 'id', description: 'The intent ID returned by the start or lookup response.' }],
|
|
3059
3059
|
query: null, request: purchaseIntentConfirmRequest, response: purchaseIntentResponse,
|
|
3060
3060
|
errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error', 'not_found', 'target_state_conflict', 'plan_limit', 'rate_limited', ...BILLING_OFF, ...MOLLIE], transport: 'http',
|
|
3061
|
-
notes: 'Checkout and paid-change decisions require confirmation_proof along with the operation key, quote revision and buyer fingerprint shown in the persisted C.4 display. Cloud rechecks buyer, quote, selection, legal references, period and current state under the org lock; stale or spent proof conflicts without effect. One decision and one legal acceptance commit together. An exact same-key replay returns the original result without another payment or acceptance. Foreign ownership answers 404 without disclosure; pending or held cannot charge.',
|
|
3061
|
+
notes: 'Checkout and paid-change decisions require confirmation_proof along with the operation key, quote revision and buyer fingerprint shown in the persisted C.4 display. Cloud rechecks buyer, quote, selection, legal references, period and current state under the org lock; stale or spent proof conflicts without effect. One decision and one legal acceptance commit together. An exact same-key replay returns the original result without another payment or acceptance. A paid change can return 409 target_state_conflict with field billing and rule charge_in_progress while an earlier charge is unresolved; it does not start another charge. Foreign ownership answers 404 without disclosure; pending or held cannot charge.',
|
|
3062
3062
|
},
|
|
3063
3063
|
{
|
|
3064
3064
|
method: 'GET', path: '/api/billing/checkout/:id', section: 'billing',
|
|
@@ -3095,7 +3095,7 @@ export const ROUTES = [
|
|
|
3095
3095
|
params: [], query: null, request: billingChangeRequest, response: billingChangeResponse,
|
|
3096
3096
|
errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error', 'plan_limit', 'target_state_conflict', ...BILLING_OFF, ...MOLLIE],
|
|
3097
3097
|
transport: 'http',
|
|
3098
|
-
notes: "The request names an absolute plan/cycle/add-on target and a stable operation_key. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. An eligible Owner obtains a C.4 display and explicitly confirms with its proof. Confirmation may return accepted_no_payment with charged: null and no provider payment or redirect, or payment_started for a charged change. Exact-key lookup recovers the accepted result. Existing no_account, past_due, no_valid_mandate and plan_limit conflicts remain.",
|
|
3098
|
+
notes: "The request names an absolute plan/cycle/add-on target and a stable operation_key. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. An eligible Owner obtains a C.4 display and explicitly confirms with its proof. Confirmation may return accepted_no_payment with charged: null and no provider payment or redirect, or payment_started for a charged change. Exact-key lookup recovers the accepted result. Existing no_account, past_due, no_valid_mandate and plan_limit conflicts remain. A later paid-change confirmation can return 409 target_state_conflict with field billing and rule charge_in_progress while an earlier charge is unresolved; no second charge starts.",
|
|
3099
3099
|
},
|
|
3100
3100
|
{
|
|
3101
3101
|
method: 'POST', path: '/api/billing/payment-method', section: 'billing',
|
|
@@ -3124,13 +3124,14 @@ export const ROUTES = [
|
|
|
3124
3124
|
},
|
|
3125
3125
|
{
|
|
3126
3126
|
method: 'GET', path: '/api/billing/invoices/:id/pdf', section: 'billing',
|
|
3127
|
-
summary: "Downloads
|
|
3127
|
+
summary: "Downloads an invoice's original or cancellation PDF.",
|
|
3128
3128
|
audience: 'developer', auth: 'developer', rateLimited: false, ownerTier: true, status: 200,
|
|
3129
3129
|
params: [{ name: 'id', description: 'The invoice id, from `billingInvoice.id` in `GET /api/billing`\'s `invoices`.' }],
|
|
3130
|
-
query:
|
|
3131
|
-
errors: [...DEVELOPER_GUARD, 'tier_required', 'not_found'], transport: 'http',
|
|
3132
|
-
notes: '
|
|
3133
|
-
'
|
|
3130
|
+
query: billingInvoicePdfQuery, request: null, response: null, contentType: 'application/pdf',
|
|
3131
|
+
errors: [...DEVELOPER_GUARD, 'tier_required', 'validation_error', 'not_found'], transport: 'http',
|
|
3132
|
+
notes: 'Owner-only. Omitted `kind` or `kind=invoice` returns the original PDF, rendered once with `pdfkit` when issued and stored as bytes. ' +
|
|
3133
|
+
'`kind=cancellation` returns the stored cancellation PDF for this same invoice id; no read renders a new PDF. ' +
|
|
3134
|
+
'`404 not_found` for an unknown id, one from another org, or a missing cancellation number or PDF. This reads historical Cloud ' +
|
|
3134
3135
|
"invoices only: a due charge has no PDF of its own here — its eventual Lexware invoice is a document, read through " +
|
|
3135
3136
|
'`GET /api/billing/documents/:id/file`.',
|
|
3136
3137
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetless/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Fleetless wire contracts: the bridge-cloud protocol, the REST API schemas and the error codes, as zod schemas with generated JSON Schema and OpenAPI artifacts.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Dehne Robotik GmbH",
|