@fleetless/contracts 16.1.0-next.2 → 17.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -25
- package/artifacts/openapi.json +540 -380
- package/artifacts/routes.json +4 -4
- package/artifacts/schema/billing-change-response.schema.json +0 -48
- package/artifacts/schema/billing-view.schema.json +0 -24
- package/artifacts/schema/checkout-response.schema.json +133 -53
- package/artifacts/schema/checkout-start-response.schema.json +73 -23
- package/artifacts/schema/purchase-conflict-details.schema.json +135 -54
- package/artifacts/schema/purchase-intent-draft.schema.json +135 -54
- package/artifacts/schema/purchase-intent-response.schema.json +135 -102
- package/artifacts/schema/vat-decision.schema.json +63 -18
- package/artifacts/schema/vat-id-check-response.schema.json +108 -39
- package/artifacts/schema/vies-outage.schema.json +24 -0
- package/artifacts/schema/vies-unavailable-details.schema.json +73 -23
- package/dist/billing.d.ts +218 -71
- package/dist/billing.js +42 -22
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/plans.d.ts +2 -15
- package/dist/plans.js +14 -27
- package/dist/routes.js +8 -3
- package/package.json +1 -1
package/artifacts/openapi.json
CHANGED
|
@@ -10179,7 +10179,7 @@
|
|
|
10179
10179
|
}
|
|
10180
10180
|
}
|
|
10181
10181
|
},
|
|
10182
|
-
"description": "Basic stays free for every payer. The start decides in this request, VIES included: a busy VIES is retried for up to 15 seconds before the answer. The body is first saved as the org's checkout draft (`GET /api/billing/checkout-draft`), whatever the answer. `eligible` (201) records the pending billing account and a checkout intent, freezes the EUR quote and carries its C.4 display, Cache-Control: no-store: show `display.snapshot.declaration.text` directly above one button labelled `action_label`; that one click is `POST /api/billing/intents/:id/confirm` with the display's `confirmation_proof`. `vies_unavailable`, `invalid_vat_id` and `refused` answer 200 and nothing is stored but the draft: no intent, no account, no retry in the background; check again. `held` (`issuer_cutover_in_progress`) only while an issuer cutover runs, for minutes; try again. Lexware never holds a checkout: its contact and invoice follow the payment. Use a fresh operation_key per press; the same key and input answer 200 with the same intent (`payment_started` with its hosted checkout once confirmed), without another Mollie payment; changed input conflicts. While another first payment of the org is open, 409 target_state_conflict with `checkoutOpenDetails` (rule `checkout_open`): continue it at `checkout_url`. No payment or acceptance occurs at start, and the deprecated `accept_terms` confirms nothing. Hosted payment offers card, PayPal or Apple Pay; its return is <console>/settings/billing?checkout=<checkout_id>. Rate limited on billing.checkout_start. An active/past_due account uses billing/change.",
|
|
10182
|
+
"description": "Basic stays free for every payer. The start decides in this request, VIES included: a busy VIES is retried for up to 15 seconds before the answer. The body is first saved as the org's checkout draft (`GET /api/billing/checkout-draft`), whatever the answer. `eligible` (201) records the pending billing account and a checkout intent, freezes the EUR quote and carries its C.4 display, Cache-Control: no-store: show `display.snapshot.declaration.text` directly above one button labelled `action_label`; that one click is `POST /api/billing/intents/:id/confirm` with the display's `confirmation_proof`. `vies_unavailable`, `invalid_vat_id` and `refused` answer 200 and nothing is stored but the draft: no intent, no account, no retry in the background; check again. `vies_unavailable` with `reason: vies_unavailable` carries `vies_outage`: `scope: member_state` when the VAT register of `country` does not answer VIES (a register VIES reports as down answers at once, not after the 15 seconds), `scope: vies` when VIES itself does not. `held` (`issuer_cutover_in_progress`) only while an issuer cutover runs, for minutes; try again. Lexware never holds a checkout: its contact and invoice follow the payment. Use a fresh operation_key per press; the same key and input answer 200 with the same intent (`payment_started` with its hosted checkout once confirmed), without another Mollie payment; changed input conflicts. While another first payment of the org is open, 409 target_state_conflict with `checkoutOpenDetails` (rule `checkout_open`): continue it at `checkout_url`. No payment or acceptance occurs at start, and the deprecated `accept_terms` confirms nothing. Hosted payment offers card, PayPal or Apple Pay; its return is <console>/settings/billing?checkout=<checkout_id>. Rate limited on billing.checkout_start. An active/past_due account uses billing/change.",
|
|
10183
10183
|
"requestBody": {
|
|
10184
10184
|
"required": true,
|
|
10185
10185
|
"content": {
|
|
@@ -10304,7 +10304,7 @@
|
|
|
10304
10304
|
}
|
|
10305
10305
|
}
|
|
10306
10306
|
},
|
|
10307
|
-
"description": "Supply exactly one of operation_key or intent_id and the expected operation. Scope lookup to the authenticated owner and org; unknown, foreign-org or mismatched-operation intents return 404 without disclosure. Repeating a lookup after restart or lost response returns the same intent/payment identity and, for a paid change, its billing result. A proof is never returned here; a still-eligible decision needs a fresh C.4 display and explicit Owner click."
|
|
10307
|
+
"description": "Supply exactly one of operation_key or intent_id and the expected operation. Scope lookup to the authenticated owner and org; unknown, foreign-org or mismatched-operation intents return 404 without disclosure. Repeating a lookup after restart or lost response returns the same intent/payment identity and, for a paid change, its billing result. A proof is never returned here; a still-eligible decision needs a fresh C.4 display and explicit Owner click. An `awaiting_vies` intent with `reason: vies_unavailable` carries `vies_outage` as the hourly retry last found it: `scope: member_state` for the VAT register of `country`, `scope: vies` for VIES itself."
|
|
10308
10308
|
}
|
|
10309
10309
|
},
|
|
10310
10310
|
"/api/billing/intents/{id}/display": {
|
|
@@ -10506,7 +10506,7 @@
|
|
|
10506
10506
|
}
|
|
10507
10507
|
}
|
|
10508
10508
|
},
|
|
10509
|
-
"description": "Reports status and optional display name only; full evidence stays in protected Finance storage. valid with a missing identifier remains pending/vies_identifier_missing. unverified or unavailable remains pending without zero rating or payment. A form check never authorizes a later charge; Cloud binds current evidence to the buyer and quote at confirmation. Rate limited on billing.vat_check.",
|
|
10509
|
+
"description": "Reports status and optional display name only; full evidence stays in protected Finance storage. valid with a missing identifier remains pending/vies_identifier_missing. unverified or unavailable remains pending without zero rating or payment. pending/vies_unavailable carries `vies_outage`: `scope: member_state` when the VAT register of `country` does not answer VIES, which answers at once when VIES reports the register as down, and `scope: vies` when VIES itself does not answer within the 15 seconds. A form check never authorizes a later charge; Cloud binds current evidence to the buyer and quote at confirmation. Rate limited on billing.vat_check.",
|
|
10510
10510
|
"requestBody": {
|
|
10511
10511
|
"required": true,
|
|
10512
10512
|
"content": {
|
|
@@ -10602,7 +10602,7 @@
|
|
|
10602
10602
|
}
|
|
10603
10603
|
}
|
|
10604
10604
|
},
|
|
10605
|
-
"description": "The request names an absolute plan/cycle/add-on target and a fresh operation_key per selection. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. The change is decided in the request and never waits: no `awaiting_vies`, and Lexware never holds it; `held` (`issuer_cutover_in_progress`) only while an issuer cutover runs. VIES runs only when the billing details changed since the last decision or the recorded VAT treatment is blocked, and a change that charges nothing never calls it. When VIES does not answer: 409 target_state_conflict with `viesUnavailableDetails` (`field: billing.vat_id`, `rule: vies_unavailable`), nothing stored. A change charging nothing while the recorded VAT treatment is unresolved: 409 target_state_conflict with `{ field: billing.vat_id, rule: purchase_eligibility_pending }`. An eligible Owner obtains a C.4 display (`POST /api/billing/intents/:id/display`) and confirms with one click on its `action_label`. 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.",
|
|
10605
|
+
"description": "The request names an absolute plan/cycle/add-on target and a fresh operation_key per selection. Start is nonbinding for every change, including zero-charge, scheduled and formerly immediate decreases: it neither changes the plan nor writes legal acceptance. The change is decided in the request and never waits: no `awaiting_vies`, and Lexware never holds it; `held` (`issuer_cutover_in_progress`) only while an issuer cutover runs. VIES runs only when the billing details changed since the last decision or the recorded VAT treatment is blocked, and a change that charges nothing never calls it. When VIES does not answer: 409 target_state_conflict with `viesUnavailableDetails` (`field: billing.vat_id`, `rule: vies_unavailable`), nothing stored; with `reason: vies_unavailable` it carries `vies_outage` (`scope: member_state` for the VAT register of `country`, `scope: vies` for VIES itself). A change charging nothing while the recorded VAT treatment is unresolved: 409 target_state_conflict with `{ field: billing.vat_id, rule: purchase_eligibility_pending }`. An eligible Owner obtains a C.4 display (`POST /api/billing/intents/:id/display`) and confirms with one click on its `action_label`. 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.",
|
|
10606
10606
|
"requestBody": {
|
|
10607
10607
|
"required": true,
|
|
10608
10608
|
"content": {
|
|
@@ -17035,29 +17035,6 @@
|
|
|
17035
17035
|
],
|
|
17036
17036
|
"description": "`null` while a cancel is pending or nothing else renews."
|
|
17037
17037
|
},
|
|
17038
|
-
"current_price": {
|
|
17039
|
-
"anyOf": [
|
|
17040
|
-
{
|
|
17041
|
-
"type": "object",
|
|
17042
|
-
"properties": {
|
|
17043
|
-
"net_cents": {
|
|
17044
|
-
"type": "integer",
|
|
17045
|
-
"minimum": -9007199254740991,
|
|
17046
|
-
"maximum": 9007199254740991,
|
|
17047
|
-
"description": "One period of the current plan, cycle and add-ons at the agreed price, excluding VAT, in integer cents."
|
|
17048
|
-
}
|
|
17049
|
-
},
|
|
17050
|
-
"required": [
|
|
17051
|
-
"net_cents"
|
|
17052
|
-
],
|
|
17053
|
-
"additionalProperties": false
|
|
17054
|
-
},
|
|
17055
|
-
{
|
|
17056
|
-
"type": "null"
|
|
17057
|
-
}
|
|
17058
|
-
],
|
|
17059
|
-
"description": "What one period (`cycle`) of the current plan costs this organization: the price it agreed, which stays when the catalogue changes. Show this, not the catalogue price, as the price of a billed organization. `null` when no agreed price is recorded for the current plan, cycle and add-ons."
|
|
17060
|
-
},
|
|
17061
17038
|
"scheduled": {
|
|
17062
17039
|
"type": "object",
|
|
17063
17040
|
"properties": {
|
|
@@ -17216,7 +17193,6 @@
|
|
|
17216
17193
|
"period_starts_at",
|
|
17217
17194
|
"period_ends_at",
|
|
17218
17195
|
"next_charge",
|
|
17219
|
-
"current_price",
|
|
17220
17196
|
"scheduled",
|
|
17221
17197
|
"dunning"
|
|
17222
17198
|
],
|
|
@@ -18231,29 +18207,6 @@
|
|
|
18231
18207
|
],
|
|
18232
18208
|
"description": "`null` while a cancel is pending or nothing else renews."
|
|
18233
18209
|
},
|
|
18234
|
-
"current_price": {
|
|
18235
|
-
"anyOf": [
|
|
18236
|
-
{
|
|
18237
|
-
"type": "object",
|
|
18238
|
-
"properties": {
|
|
18239
|
-
"net_cents": {
|
|
18240
|
-
"type": "integer",
|
|
18241
|
-
"minimum": -9007199254740991,
|
|
18242
|
-
"maximum": 9007199254740991,
|
|
18243
|
-
"description": "One period of the current plan, cycle and add-ons at the agreed price, excluding VAT, in integer cents."
|
|
18244
|
-
}
|
|
18245
|
-
},
|
|
18246
|
-
"required": [
|
|
18247
|
-
"net_cents"
|
|
18248
|
-
],
|
|
18249
|
-
"additionalProperties": false
|
|
18250
|
-
},
|
|
18251
|
-
{
|
|
18252
|
-
"type": "null"
|
|
18253
|
-
}
|
|
18254
|
-
],
|
|
18255
|
-
"description": "What one period (`cycle`) of the current plan costs this organization: the price it agreed, which stays when the catalogue changes. Show this, not the catalogue price, as the price of a billed organization. `null` when no agreed price is recorded for the current plan, cycle and add-ons."
|
|
18256
|
-
},
|
|
18257
18210
|
"scheduled": {
|
|
18258
18211
|
"type": "object",
|
|
18259
18212
|
"properties": {
|
|
@@ -18412,7 +18365,6 @@
|
|
|
18412
18365
|
"period_starts_at",
|
|
18413
18366
|
"period_ends_at",
|
|
18414
18367
|
"next_charge",
|
|
18415
|
-
"current_price",
|
|
18416
18368
|
"scheduled",
|
|
18417
18369
|
"dunning"
|
|
18418
18370
|
],
|
|
@@ -23529,29 +23481,6 @@
|
|
|
23529
23481
|
],
|
|
23530
23482
|
"description": "`null` while a cancel is pending or nothing else renews."
|
|
23531
23483
|
},
|
|
23532
|
-
"current_price": {
|
|
23533
|
-
"anyOf": [
|
|
23534
|
-
{
|
|
23535
|
-
"type": "object",
|
|
23536
|
-
"properties": {
|
|
23537
|
-
"net_cents": {
|
|
23538
|
-
"type": "integer",
|
|
23539
|
-
"minimum": -9007199254740991,
|
|
23540
|
-
"maximum": 9007199254740991,
|
|
23541
|
-
"description": "One period of the current plan, cycle and add-ons at the agreed price, excluding VAT, in integer cents."
|
|
23542
|
-
}
|
|
23543
|
-
},
|
|
23544
|
-
"required": [
|
|
23545
|
-
"net_cents"
|
|
23546
|
-
],
|
|
23547
|
-
"additionalProperties": false
|
|
23548
|
-
},
|
|
23549
|
-
{
|
|
23550
|
-
"type": "null"
|
|
23551
|
-
}
|
|
23552
|
-
],
|
|
23553
|
-
"description": "What one period (`cycle`) of the current plan costs this organization: the price it agreed, which stays when the catalogue changes. Show this, not the catalogue price, as the price of a billed organization. `null` when no agreed price is recorded for the current plan, cycle and add-ons."
|
|
23554
|
-
},
|
|
23555
23484
|
"scheduled": {
|
|
23556
23485
|
"type": "object",
|
|
23557
23486
|
"properties": {
|
|
@@ -23710,7 +23639,6 @@
|
|
|
23710
23639
|
"period_starts_at",
|
|
23711
23640
|
"period_ends_at",
|
|
23712
23641
|
"next_charge",
|
|
23713
|
-
"current_price",
|
|
23714
23642
|
"scheduled",
|
|
23715
23643
|
"dunning"
|
|
23716
23644
|
],
|
|
@@ -24823,160 +24751,240 @@
|
|
|
24823
24751
|
{
|
|
24824
24752
|
"oneOf": [
|
|
24825
24753
|
{
|
|
24826
|
-
"
|
|
24827
|
-
|
|
24828
|
-
|
|
24829
|
-
"
|
|
24830
|
-
|
|
24831
|
-
|
|
24832
|
-
|
|
24833
|
-
|
|
24834
|
-
|
|
24835
|
-
|
|
24836
|
-
|
|
24837
|
-
|
|
24838
|
-
|
|
24839
|
-
|
|
24840
|
-
|
|
24841
|
-
|
|
24842
|
-
|
|
24843
|
-
|
|
24844
|
-
|
|
24845
|
-
|
|
24846
|
-
|
|
24847
|
-
|
|
24848
|
-
|
|
24849
|
-
|
|
24850
|
-
|
|
24851
|
-
|
|
24852
|
-
|
|
24853
|
-
|
|
24854
|
-
|
|
24855
|
-
|
|
24856
|
-
|
|
24857
|
-
|
|
24858
|
-
|
|
24859
|
-
|
|
24860
|
-
|
|
24861
|
-
|
|
24862
|
-
|
|
24863
|
-
|
|
24864
|
-
|
|
24865
|
-
|
|
24866
|
-
|
|
24867
|
-
|
|
24868
|
-
|
|
24869
|
-
|
|
24870
|
-
|
|
24871
|
-
|
|
24872
|
-
|
|
24873
|
-
|
|
24874
|
-
|
|
24875
|
-
|
|
24876
|
-
|
|
24877
|
-
|
|
24878
|
-
|
|
24879
|
-
|
|
24880
|
-
|
|
24881
|
-
|
|
24882
|
-
|
|
24883
|
-
|
|
24884
|
-
|
|
24885
|
-
|
|
24886
|
-
|
|
24887
|
-
|
|
24888
|
-
|
|
24889
|
-
|
|
24890
|
-
|
|
24891
|
-
|
|
24892
|
-
|
|
24893
|
-
"
|
|
24894
|
-
|
|
24895
|
-
|
|
24896
|
-
|
|
24897
|
-
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
"
|
|
24901
|
-
|
|
24902
|
-
|
|
24903
|
-
]
|
|
24904
|
-
},
|
|
24905
|
-
"invoice_id": {
|
|
24906
|
-
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
24907
|
-
"type": "string",
|
|
24908
|
-
"format": "uuid",
|
|
24909
|
-
"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)$"
|
|
24910
|
-
},
|
|
24911
|
-
"quote_revision": {
|
|
24912
|
-
"type": "string",
|
|
24913
|
-
"minLength": 1,
|
|
24914
|
-
"maxLength": 200,
|
|
24915
|
-
"description": "Opaque revision of the displayed quote; echo it when confirming."
|
|
24916
|
-
},
|
|
24917
|
-
"buyer_fingerprint": {
|
|
24918
|
-
"type": "string",
|
|
24919
|
-
"minLength": 1,
|
|
24920
|
-
"maxLength": 200,
|
|
24921
|
-
"description": "Opaque revision of buyer details and email policy; never full VIES evidence."
|
|
24922
|
-
},
|
|
24923
|
-
"state": {
|
|
24924
|
-
"type": "string",
|
|
24925
|
-
"const": "eligible"
|
|
24754
|
+
"oneOf": [
|
|
24755
|
+
{
|
|
24756
|
+
"type": "object",
|
|
24757
|
+
"properties": {
|
|
24758
|
+
"intent_id": {
|
|
24759
|
+
"type": "string",
|
|
24760
|
+
"format": "uuid",
|
|
24761
|
+
"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)$",
|
|
24762
|
+
"description": "Opaque persisted purchase intent identity."
|
|
24763
|
+
},
|
|
24764
|
+
"operation_key": {
|
|
24765
|
+
"type": "string",
|
|
24766
|
+
"format": "uuid",
|
|
24767
|
+
"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)$",
|
|
24768
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
24769
|
+
},
|
|
24770
|
+
"operation": {
|
|
24771
|
+
"type": "string",
|
|
24772
|
+
"enum": [
|
|
24773
|
+
"checkout",
|
|
24774
|
+
"invoice_payment",
|
|
24775
|
+
"payment_method_invoice"
|
|
24776
|
+
]
|
|
24777
|
+
},
|
|
24778
|
+
"invoice_id": {
|
|
24779
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
24780
|
+
"type": "string",
|
|
24781
|
+
"format": "uuid",
|
|
24782
|
+
"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)$"
|
|
24783
|
+
},
|
|
24784
|
+
"state": {
|
|
24785
|
+
"type": "string",
|
|
24786
|
+
"const": "awaiting_vies"
|
|
24787
|
+
},
|
|
24788
|
+
"next_attempt_at": {
|
|
24789
|
+
"type": "string",
|
|
24790
|
+
"format": "date-time",
|
|
24791
|
+
"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))$"
|
|
24792
|
+
},
|
|
24793
|
+
"reason": {
|
|
24794
|
+
"type": "string",
|
|
24795
|
+
"const": "vies_unavailable"
|
|
24796
|
+
},
|
|
24797
|
+
"vies_outage": {
|
|
24798
|
+
"type": "object",
|
|
24799
|
+
"properties": {
|
|
24800
|
+
"scope": {
|
|
24801
|
+
"type": "string",
|
|
24802
|
+
"enum": [
|
|
24803
|
+
"member_state",
|
|
24804
|
+
"vies"
|
|
24805
|
+
],
|
|
24806
|
+
"description": "`member_state`: the VAT register of `country` does not answer VIES. `vies`: VIES itself does not answer."
|
|
24807
|
+
},
|
|
24808
|
+
"country": {
|
|
24809
|
+
"type": "string",
|
|
24810
|
+
"pattern": "^[A-Z]{2}$",
|
|
24811
|
+
"description": "The billing address's country whose VAT ID was asked for. Greece is `GR`, never VIES's `EL`."
|
|
24812
|
+
}
|
|
24813
|
+
},
|
|
24814
|
+
"required": [
|
|
24815
|
+
"scope",
|
|
24816
|
+
"country"
|
|
24817
|
+
],
|
|
24818
|
+
"additionalProperties": false
|
|
24819
|
+
}
|
|
24820
|
+
},
|
|
24821
|
+
"required": [
|
|
24822
|
+
"intent_id",
|
|
24823
|
+
"operation_key",
|
|
24824
|
+
"operation",
|
|
24825
|
+
"state",
|
|
24826
|
+
"next_attempt_at",
|
|
24827
|
+
"reason",
|
|
24828
|
+
"vies_outage"
|
|
24829
|
+
],
|
|
24830
|
+
"additionalProperties": false
|
|
24926
24831
|
},
|
|
24927
|
-
|
|
24832
|
+
{
|
|
24928
24833
|
"type": "object",
|
|
24929
24834
|
"properties": {
|
|
24930
|
-
"
|
|
24835
|
+
"intent_id": {
|
|
24931
24836
|
"type": "string",
|
|
24932
|
-
"
|
|
24933
|
-
"
|
|
24837
|
+
"format": "uuid",
|
|
24838
|
+
"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)$",
|
|
24839
|
+
"description": "Opaque persisted purchase intent identity."
|
|
24934
24840
|
},
|
|
24935
|
-
"
|
|
24936
|
-
"type": "
|
|
24937
|
-
"
|
|
24938
|
-
"
|
|
24939
|
-
"description": "
|
|
24841
|
+
"operation_key": {
|
|
24842
|
+
"type": "string",
|
|
24843
|
+
"format": "uuid",
|
|
24844
|
+
"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)$",
|
|
24845
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
24940
24846
|
},
|
|
24941
|
-
"
|
|
24942
|
-
"type": "
|
|
24943
|
-
"
|
|
24944
|
-
|
|
24945
|
-
|
|
24847
|
+
"operation": {
|
|
24848
|
+
"type": "string",
|
|
24849
|
+
"enum": [
|
|
24850
|
+
"checkout",
|
|
24851
|
+
"invoice_payment",
|
|
24852
|
+
"payment_method_invoice"
|
|
24853
|
+
]
|
|
24946
24854
|
},
|
|
24947
|
-
"
|
|
24948
|
-
"
|
|
24949
|
-
"
|
|
24950
|
-
"
|
|
24951
|
-
"
|
|
24855
|
+
"invoice_id": {
|
|
24856
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
24857
|
+
"type": "string",
|
|
24858
|
+
"format": "uuid",
|
|
24859
|
+
"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)$"
|
|
24952
24860
|
},
|
|
24953
|
-
"
|
|
24954
|
-
"type": "
|
|
24955
|
-
"
|
|
24956
|
-
|
|
24957
|
-
|
|
24861
|
+
"state": {
|
|
24862
|
+
"type": "string",
|
|
24863
|
+
"const": "awaiting_vies"
|
|
24864
|
+
},
|
|
24865
|
+
"next_attempt_at": {
|
|
24866
|
+
"type": "string",
|
|
24867
|
+
"format": "date-time",
|
|
24868
|
+
"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))$"
|
|
24869
|
+
},
|
|
24870
|
+
"reason": {
|
|
24871
|
+
"type": "string",
|
|
24872
|
+
"enum": [
|
|
24873
|
+
"vies_unverified",
|
|
24874
|
+
"vies_identifier_missing"
|
|
24875
|
+
]
|
|
24958
24876
|
}
|
|
24959
24877
|
},
|
|
24960
24878
|
"required": [
|
|
24961
|
-
"
|
|
24962
|
-
"
|
|
24963
|
-
"
|
|
24964
|
-
"
|
|
24965
|
-
"
|
|
24879
|
+
"intent_id",
|
|
24880
|
+
"operation_key",
|
|
24881
|
+
"operation",
|
|
24882
|
+
"state",
|
|
24883
|
+
"next_attempt_at",
|
|
24884
|
+
"reason"
|
|
24966
24885
|
],
|
|
24967
24886
|
"additionalProperties": false
|
|
24968
24887
|
}
|
|
24969
|
-
|
|
24970
|
-
|
|
24971
|
-
|
|
24972
|
-
|
|
24973
|
-
|
|
24974
|
-
"
|
|
24975
|
-
|
|
24976
|
-
|
|
24977
|
-
|
|
24978
|
-
|
|
24979
|
-
|
|
24888
|
+
]
|
|
24889
|
+
},
|
|
24890
|
+
{
|
|
24891
|
+
"type": "object",
|
|
24892
|
+
"properties": {
|
|
24893
|
+
"intent_id": {
|
|
24894
|
+
"type": "string",
|
|
24895
|
+
"format": "uuid",
|
|
24896
|
+
"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)$",
|
|
24897
|
+
"description": "Opaque persisted purchase intent identity."
|
|
24898
|
+
},
|
|
24899
|
+
"operation_key": {
|
|
24900
|
+
"type": "string",
|
|
24901
|
+
"format": "uuid",
|
|
24902
|
+
"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)$",
|
|
24903
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
24904
|
+
},
|
|
24905
|
+
"operation": {
|
|
24906
|
+
"type": "string",
|
|
24907
|
+
"enum": [
|
|
24908
|
+
"checkout",
|
|
24909
|
+
"invoice_payment",
|
|
24910
|
+
"payment_method_invoice"
|
|
24911
|
+
]
|
|
24912
|
+
},
|
|
24913
|
+
"invoice_id": {
|
|
24914
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
24915
|
+
"type": "string",
|
|
24916
|
+
"format": "uuid",
|
|
24917
|
+
"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)$"
|
|
24918
|
+
},
|
|
24919
|
+
"quote_revision": {
|
|
24920
|
+
"type": "string",
|
|
24921
|
+
"minLength": 1,
|
|
24922
|
+
"maxLength": 200,
|
|
24923
|
+
"description": "Opaque revision of the displayed quote; echo it when confirming."
|
|
24924
|
+
},
|
|
24925
|
+
"buyer_fingerprint": {
|
|
24926
|
+
"type": "string",
|
|
24927
|
+
"minLength": 1,
|
|
24928
|
+
"maxLength": 200,
|
|
24929
|
+
"description": "Opaque revision of buyer details and email policy; never full VIES evidence."
|
|
24930
|
+
},
|
|
24931
|
+
"state": {
|
|
24932
|
+
"type": "string",
|
|
24933
|
+
"const": "eligible"
|
|
24934
|
+
},
|
|
24935
|
+
"quote": {
|
|
24936
|
+
"type": "object",
|
|
24937
|
+
"properties": {
|
|
24938
|
+
"currency": {
|
|
24939
|
+
"type": "string",
|
|
24940
|
+
"const": "eur",
|
|
24941
|
+
"description": "Every new quote is in EUR."
|
|
24942
|
+
},
|
|
24943
|
+
"net_cents": {
|
|
24944
|
+
"type": "integer",
|
|
24945
|
+
"minimum": 0,
|
|
24946
|
+
"maximum": 9007199254740991,
|
|
24947
|
+
"description": "Current charge excluding VAT, in cents."
|
|
24948
|
+
},
|
|
24949
|
+
"vat_cents": {
|
|
24950
|
+
"type": "integer",
|
|
24951
|
+
"minimum": 0,
|
|
24952
|
+
"maximum": 9007199254740991,
|
|
24953
|
+
"description": "VAT on the current charge, in cents."
|
|
24954
|
+
},
|
|
24955
|
+
"gross_cents": {
|
|
24956
|
+
"type": "integer",
|
|
24957
|
+
"minimum": 0,
|
|
24958
|
+
"maximum": 9007199254740991,
|
|
24959
|
+
"description": "Total to confirm, including VAT, in cents."
|
|
24960
|
+
},
|
|
24961
|
+
"rate_percent": {
|
|
24962
|
+
"type": "integer",
|
|
24963
|
+
"minimum": 0,
|
|
24964
|
+
"maximum": 100,
|
|
24965
|
+
"description": "VAT rate in whole percent."
|
|
24966
|
+
}
|
|
24967
|
+
},
|
|
24968
|
+
"required": [
|
|
24969
|
+
"currency",
|
|
24970
|
+
"net_cents",
|
|
24971
|
+
"vat_cents",
|
|
24972
|
+
"gross_cents",
|
|
24973
|
+
"rate_percent"
|
|
24974
|
+
],
|
|
24975
|
+
"additionalProperties": false
|
|
24976
|
+
}
|
|
24977
|
+
},
|
|
24978
|
+
"required": [
|
|
24979
|
+
"intent_id",
|
|
24980
|
+
"operation_key",
|
|
24981
|
+
"operation",
|
|
24982
|
+
"quote_revision",
|
|
24983
|
+
"buyer_fingerprint",
|
|
24984
|
+
"state",
|
|
24985
|
+
"quote"
|
|
24986
|
+
],
|
|
24987
|
+
"additionalProperties": false
|
|
24980
24988
|
},
|
|
24981
24989
|
{
|
|
24982
24990
|
"type": "object",
|
|
@@ -29368,32 +29376,82 @@
|
|
|
29368
29376
|
"description": "Eligible: the price is frozen and the display shown; one click on its button confirms."
|
|
29369
29377
|
},
|
|
29370
29378
|
{
|
|
29371
|
-
"
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
"
|
|
29375
|
-
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
|
|
29379
|
-
|
|
29379
|
+
"oneOf": [
|
|
29380
|
+
{
|
|
29381
|
+
"type": "object",
|
|
29382
|
+
"properties": {
|
|
29383
|
+
"state": {
|
|
29384
|
+
"type": "string",
|
|
29385
|
+
"const": "vies_unavailable"
|
|
29386
|
+
},
|
|
29387
|
+
"field": {
|
|
29388
|
+
"type": "string",
|
|
29389
|
+
"const": "billing.vat_id"
|
|
29390
|
+
},
|
|
29391
|
+
"reason": {
|
|
29392
|
+
"type": "string",
|
|
29393
|
+
"const": "vies_unavailable"
|
|
29394
|
+
},
|
|
29395
|
+
"vies_outage": {
|
|
29396
|
+
"type": "object",
|
|
29397
|
+
"properties": {
|
|
29398
|
+
"scope": {
|
|
29399
|
+
"type": "string",
|
|
29400
|
+
"enum": [
|
|
29401
|
+
"member_state",
|
|
29402
|
+
"vies"
|
|
29403
|
+
],
|
|
29404
|
+
"description": "`member_state`: the VAT register of `country` does not answer VIES. `vies`: VIES itself does not answer."
|
|
29405
|
+
},
|
|
29406
|
+
"country": {
|
|
29407
|
+
"type": "string",
|
|
29408
|
+
"pattern": "^[A-Z]{2}$",
|
|
29409
|
+
"description": "The billing address's country whose VAT ID was asked for. Greece is `GR`, never VIES's `EL`."
|
|
29410
|
+
}
|
|
29411
|
+
},
|
|
29412
|
+
"required": [
|
|
29413
|
+
"scope",
|
|
29414
|
+
"country"
|
|
29415
|
+
],
|
|
29416
|
+
"additionalProperties": false
|
|
29417
|
+
}
|
|
29418
|
+
},
|
|
29419
|
+
"required": [
|
|
29420
|
+
"state",
|
|
29421
|
+
"field",
|
|
29422
|
+
"reason",
|
|
29423
|
+
"vies_outage"
|
|
29424
|
+
],
|
|
29425
|
+
"additionalProperties": false
|
|
29380
29426
|
},
|
|
29381
|
-
|
|
29382
|
-
"type": "
|
|
29383
|
-
"
|
|
29384
|
-
"
|
|
29385
|
-
|
|
29386
|
-
|
|
29387
|
-
|
|
29427
|
+
{
|
|
29428
|
+
"type": "object",
|
|
29429
|
+
"properties": {
|
|
29430
|
+
"state": {
|
|
29431
|
+
"type": "string",
|
|
29432
|
+
"const": "vies_unavailable"
|
|
29433
|
+
},
|
|
29434
|
+
"field": {
|
|
29435
|
+
"type": "string",
|
|
29436
|
+
"const": "billing.vat_id"
|
|
29437
|
+
},
|
|
29438
|
+
"reason": {
|
|
29439
|
+
"type": "string",
|
|
29440
|
+
"enum": [
|
|
29441
|
+
"vies_unverified",
|
|
29442
|
+
"vies_identifier_missing"
|
|
29443
|
+
]
|
|
29444
|
+
}
|
|
29445
|
+
},
|
|
29446
|
+
"required": [
|
|
29447
|
+
"state",
|
|
29448
|
+
"field",
|
|
29449
|
+
"reason"
|
|
29450
|
+
],
|
|
29451
|
+
"additionalProperties": false
|
|
29388
29452
|
}
|
|
29389
|
-
},
|
|
29390
|
-
"required": [
|
|
29391
|
-
"state",
|
|
29392
|
-
"field",
|
|
29393
|
-
"reason"
|
|
29394
29453
|
],
|
|
29395
|
-
"
|
|
29396
|
-
"description": "VIES did not confirm the VAT ID within its retries. Nothing is stored; check again."
|
|
29454
|
+
"description": "VIES did not confirm the VAT ID within its retries; with `vies_unavailable`, `vies_outage` says which side was down. Nothing is stored; check again."
|
|
29397
29455
|
},
|
|
29398
29456
|
{
|
|
29399
29457
|
"type": "object",
|
|
@@ -50858,62 +50916,143 @@
|
|
|
50858
50916
|
{
|
|
50859
50917
|
"oneOf": [
|
|
50860
50918
|
{
|
|
50861
|
-
"
|
|
50862
|
-
|
|
50863
|
-
|
|
50864
|
-
"
|
|
50865
|
-
|
|
50866
|
-
|
|
50867
|
-
|
|
50868
|
-
|
|
50869
|
-
|
|
50870
|
-
|
|
50871
|
-
|
|
50872
|
-
|
|
50873
|
-
|
|
50874
|
-
|
|
50875
|
-
|
|
50876
|
-
|
|
50877
|
-
|
|
50878
|
-
|
|
50879
|
-
|
|
50880
|
-
|
|
50881
|
-
|
|
50882
|
-
|
|
50883
|
-
|
|
50884
|
-
|
|
50885
|
-
|
|
50886
|
-
|
|
50887
|
-
|
|
50888
|
-
|
|
50889
|
-
|
|
50890
|
-
|
|
50891
|
-
|
|
50892
|
-
|
|
50893
|
-
|
|
50894
|
-
|
|
50895
|
-
|
|
50896
|
-
|
|
50897
|
-
|
|
50898
|
-
|
|
50899
|
-
|
|
50900
|
-
|
|
50919
|
+
"oneOf": [
|
|
50920
|
+
{
|
|
50921
|
+
"type": "object",
|
|
50922
|
+
"properties": {
|
|
50923
|
+
"intent_id": {
|
|
50924
|
+
"type": "string",
|
|
50925
|
+
"format": "uuid",
|
|
50926
|
+
"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)$",
|
|
50927
|
+
"description": "Opaque persisted purchase intent identity."
|
|
50928
|
+
},
|
|
50929
|
+
"operation_key": {
|
|
50930
|
+
"type": "string",
|
|
50931
|
+
"format": "uuid",
|
|
50932
|
+
"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)$",
|
|
50933
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
50934
|
+
},
|
|
50935
|
+
"operation": {
|
|
50936
|
+
"type": "string",
|
|
50937
|
+
"enum": [
|
|
50938
|
+
"checkout",
|
|
50939
|
+
"paid_change",
|
|
50940
|
+
"invoice_payment",
|
|
50941
|
+
"payment_method_invoice"
|
|
50942
|
+
]
|
|
50943
|
+
},
|
|
50944
|
+
"invoice_id": {
|
|
50945
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
50946
|
+
"type": "string",
|
|
50947
|
+
"format": "uuid",
|
|
50948
|
+
"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)$"
|
|
50949
|
+
},
|
|
50950
|
+
"state": {
|
|
50951
|
+
"type": "string",
|
|
50952
|
+
"const": "awaiting_vies"
|
|
50953
|
+
},
|
|
50954
|
+
"next_attempt_at": {
|
|
50955
|
+
"type": "string",
|
|
50956
|
+
"format": "date-time",
|
|
50957
|
+
"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))$"
|
|
50958
|
+
},
|
|
50959
|
+
"reason": {
|
|
50960
|
+
"type": "string",
|
|
50961
|
+
"const": "vies_unavailable"
|
|
50962
|
+
},
|
|
50963
|
+
"vies_outage": {
|
|
50964
|
+
"type": "object",
|
|
50965
|
+
"properties": {
|
|
50966
|
+
"scope": {
|
|
50967
|
+
"type": "string",
|
|
50968
|
+
"enum": [
|
|
50969
|
+
"member_state",
|
|
50970
|
+
"vies"
|
|
50971
|
+
],
|
|
50972
|
+
"description": "`member_state`: the VAT register of `country` does not answer VIES. `vies`: VIES itself does not answer."
|
|
50973
|
+
},
|
|
50974
|
+
"country": {
|
|
50975
|
+
"type": "string",
|
|
50976
|
+
"pattern": "^[A-Z]{2}$",
|
|
50977
|
+
"description": "The billing address's country whose VAT ID was asked for. Greece is `GR`, never VIES's `EL`."
|
|
50978
|
+
}
|
|
50979
|
+
},
|
|
50980
|
+
"required": [
|
|
50981
|
+
"scope",
|
|
50982
|
+
"country"
|
|
50983
|
+
],
|
|
50984
|
+
"additionalProperties": false
|
|
50985
|
+
}
|
|
50986
|
+
},
|
|
50987
|
+
"required": [
|
|
50988
|
+
"intent_id",
|
|
50989
|
+
"operation_key",
|
|
50990
|
+
"operation",
|
|
50991
|
+
"state",
|
|
50992
|
+
"next_attempt_at",
|
|
50993
|
+
"reason",
|
|
50994
|
+
"vies_outage"
|
|
50995
|
+
],
|
|
50996
|
+
"additionalProperties": false
|
|
50901
50997
|
},
|
|
50902
|
-
|
|
50903
|
-
"type": "
|
|
50904
|
-
"
|
|
50905
|
-
|
|
50998
|
+
{
|
|
50999
|
+
"type": "object",
|
|
51000
|
+
"properties": {
|
|
51001
|
+
"intent_id": {
|
|
51002
|
+
"type": "string",
|
|
51003
|
+
"format": "uuid",
|
|
51004
|
+
"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)$",
|
|
51005
|
+
"description": "Opaque persisted purchase intent identity."
|
|
51006
|
+
},
|
|
51007
|
+
"operation_key": {
|
|
51008
|
+
"type": "string",
|
|
51009
|
+
"format": "uuid",
|
|
51010
|
+
"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)$",
|
|
51011
|
+
"description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
|
|
51012
|
+
},
|
|
51013
|
+
"operation": {
|
|
51014
|
+
"type": "string",
|
|
51015
|
+
"enum": [
|
|
51016
|
+
"checkout",
|
|
51017
|
+
"paid_change",
|
|
51018
|
+
"invoice_payment",
|
|
51019
|
+
"payment_method_invoice"
|
|
51020
|
+
]
|
|
51021
|
+
},
|
|
51022
|
+
"invoice_id": {
|
|
51023
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
51024
|
+
"type": "string",
|
|
51025
|
+
"format": "uuid",
|
|
51026
|
+
"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)$"
|
|
51027
|
+
},
|
|
51028
|
+
"state": {
|
|
51029
|
+
"type": "string",
|
|
51030
|
+
"const": "awaiting_vies"
|
|
51031
|
+
},
|
|
51032
|
+
"next_attempt_at": {
|
|
51033
|
+
"type": "string",
|
|
51034
|
+
"format": "date-time",
|
|
51035
|
+
"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))$"
|
|
51036
|
+
},
|
|
51037
|
+
"reason": {
|
|
51038
|
+
"type": "string",
|
|
51039
|
+
"enum": [
|
|
51040
|
+
"vies_unverified",
|
|
51041
|
+
"vies_identifier_missing"
|
|
51042
|
+
]
|
|
51043
|
+
}
|
|
51044
|
+
},
|
|
51045
|
+
"required": [
|
|
51046
|
+
"intent_id",
|
|
51047
|
+
"operation_key",
|
|
51048
|
+
"operation",
|
|
51049
|
+
"state",
|
|
51050
|
+
"next_attempt_at",
|
|
51051
|
+
"reason"
|
|
51052
|
+
],
|
|
51053
|
+
"additionalProperties": false
|
|
50906
51054
|
}
|
|
50907
|
-
|
|
50908
|
-
"required": [
|
|
50909
|
-
"intent_id",
|
|
50910
|
-
"operation_key",
|
|
50911
|
-
"operation",
|
|
50912
|
-
"state",
|
|
50913
|
-
"reason",
|
|
50914
|
-
"next_attempt_at"
|
|
50915
|
-
],
|
|
50916
|
-
"additionalProperties": false
|
|
51055
|
+
]
|
|
50917
51056
|
},
|
|
50918
51057
|
{
|
|
50919
51058
|
"type": "object",
|
|
@@ -51843,29 +51982,6 @@
|
|
|
51843
51982
|
],
|
|
51844
51983
|
"description": "`null` while a cancel is pending or nothing else renews."
|
|
51845
51984
|
},
|
|
51846
|
-
"current_price": {
|
|
51847
|
-
"anyOf": [
|
|
51848
|
-
{
|
|
51849
|
-
"type": "object",
|
|
51850
|
-
"properties": {
|
|
51851
|
-
"net_cents": {
|
|
51852
|
-
"type": "integer",
|
|
51853
|
-
"minimum": -9007199254740991,
|
|
51854
|
-
"maximum": 9007199254740991,
|
|
51855
|
-
"description": "One period of the current plan, cycle and add-ons at the agreed price, excluding VAT, in integer cents."
|
|
51856
|
-
}
|
|
51857
|
-
},
|
|
51858
|
-
"required": [
|
|
51859
|
-
"net_cents"
|
|
51860
|
-
],
|
|
51861
|
-
"additionalProperties": false
|
|
51862
|
-
},
|
|
51863
|
-
{
|
|
51864
|
-
"type": "null"
|
|
51865
|
-
}
|
|
51866
|
-
],
|
|
51867
|
-
"description": "What one period (`cycle`) of the current plan costs this organization: the price it agreed, which stays when the catalogue changes. Show this, not the catalogue price, as the price of a billed organization. `null` when no agreed price is recorded for the current plan, cycle and add-ons."
|
|
51868
|
-
},
|
|
51869
51985
|
"scheduled": {
|
|
51870
51986
|
"type": "object",
|
|
51871
51987
|
"properties": {
|
|
@@ -52024,7 +52140,6 @@
|
|
|
52024
52140
|
"period_starts_at",
|
|
52025
52141
|
"period_ends_at",
|
|
52026
52142
|
"next_charge",
|
|
52027
|
-
"current_price",
|
|
52028
52143
|
"scheduled",
|
|
52029
52144
|
"dunning"
|
|
52030
52145
|
],
|
|
@@ -53039,29 +53154,6 @@
|
|
|
53039
53154
|
],
|
|
53040
53155
|
"description": "`null` while a cancel is pending or nothing else renews."
|
|
53041
53156
|
},
|
|
53042
|
-
"current_price": {
|
|
53043
|
-
"anyOf": [
|
|
53044
|
-
{
|
|
53045
|
-
"type": "object",
|
|
53046
|
-
"properties": {
|
|
53047
|
-
"net_cents": {
|
|
53048
|
-
"type": "integer",
|
|
53049
|
-
"minimum": -9007199254740991,
|
|
53050
|
-
"maximum": 9007199254740991,
|
|
53051
|
-
"description": "One period of the current plan, cycle and add-ons at the agreed price, excluding VAT, in integer cents."
|
|
53052
|
-
}
|
|
53053
|
-
},
|
|
53054
|
-
"required": [
|
|
53055
|
-
"net_cents"
|
|
53056
|
-
],
|
|
53057
|
-
"additionalProperties": false
|
|
53058
|
-
},
|
|
53059
|
-
{
|
|
53060
|
-
"type": "null"
|
|
53061
|
-
}
|
|
53062
|
-
],
|
|
53063
|
-
"description": "What one period (`cycle`) of the current plan costs this organization: the price it agreed, which stays when the catalogue changes. Show this, not the catalogue price, as the price of a billed organization. `null` when no agreed price is recorded for the current plan, cycle and add-ons."
|
|
53064
|
-
},
|
|
53065
53157
|
"scheduled": {
|
|
53066
53158
|
"type": "object",
|
|
53067
53159
|
"properties": {
|
|
@@ -53220,7 +53312,6 @@
|
|
|
53220
53312
|
"period_starts_at",
|
|
53221
53313
|
"period_ends_at",
|
|
53222
53314
|
"next_charge",
|
|
53223
|
-
"current_price",
|
|
53224
53315
|
"scheduled",
|
|
53225
53316
|
"dunning"
|
|
53226
53317
|
],
|
|
@@ -55871,50 +55962,119 @@
|
|
|
55871
55962
|
"additionalProperties": false
|
|
55872
55963
|
},
|
|
55873
55964
|
{
|
|
55874
|
-
"
|
|
55875
|
-
|
|
55876
|
-
|
|
55877
|
-
"
|
|
55878
|
-
|
|
55879
|
-
"name": {
|
|
55880
|
-
"anyOf": [
|
|
55881
|
-
{
|
|
55965
|
+
"oneOf": [
|
|
55966
|
+
{
|
|
55967
|
+
"type": "object",
|
|
55968
|
+
"properties": {
|
|
55969
|
+
"vat_id": {
|
|
55882
55970
|
"type": "string"
|
|
55883
55971
|
},
|
|
55884
|
-
{
|
|
55885
|
-
"
|
|
55972
|
+
"name": {
|
|
55973
|
+
"anyOf": [
|
|
55974
|
+
{
|
|
55975
|
+
"type": "string"
|
|
55976
|
+
},
|
|
55977
|
+
{
|
|
55978
|
+
"type": "null"
|
|
55979
|
+
}
|
|
55980
|
+
]
|
|
55981
|
+
},
|
|
55982
|
+
"state": {
|
|
55983
|
+
"type": "string",
|
|
55984
|
+
"const": "pending"
|
|
55985
|
+
},
|
|
55986
|
+
"status": {
|
|
55987
|
+
"type": "string",
|
|
55988
|
+
"enum": [
|
|
55989
|
+
"valid",
|
|
55990
|
+
"unverified",
|
|
55991
|
+
"unavailable"
|
|
55992
|
+
]
|
|
55993
|
+
},
|
|
55994
|
+
"reason": {
|
|
55995
|
+
"type": "string",
|
|
55996
|
+
"const": "vies_unavailable"
|
|
55997
|
+
},
|
|
55998
|
+
"vies_outage": {
|
|
55999
|
+
"type": "object",
|
|
56000
|
+
"properties": {
|
|
56001
|
+
"scope": {
|
|
56002
|
+
"type": "string",
|
|
56003
|
+
"enum": [
|
|
56004
|
+
"member_state",
|
|
56005
|
+
"vies"
|
|
56006
|
+
],
|
|
56007
|
+
"description": "`member_state`: the VAT register of `country` does not answer VIES. `vies`: VIES itself does not answer."
|
|
56008
|
+
},
|
|
56009
|
+
"country": {
|
|
56010
|
+
"type": "string",
|
|
56011
|
+
"pattern": "^[A-Z]{2}$",
|
|
56012
|
+
"description": "The billing address's country whose VAT ID was asked for. Greece is `GR`, never VIES's `EL`."
|
|
56013
|
+
}
|
|
56014
|
+
},
|
|
56015
|
+
"required": [
|
|
56016
|
+
"scope",
|
|
56017
|
+
"country"
|
|
56018
|
+
],
|
|
56019
|
+
"additionalProperties": false
|
|
55886
56020
|
}
|
|
55887
|
-
|
|
55888
|
-
|
|
55889
|
-
|
|
55890
|
-
|
|
55891
|
-
|
|
55892
|
-
|
|
55893
|
-
|
|
55894
|
-
|
|
55895
|
-
|
|
55896
|
-
|
|
55897
|
-
"unverified",
|
|
55898
|
-
"unavailable"
|
|
55899
|
-
]
|
|
56021
|
+
},
|
|
56022
|
+
"required": [
|
|
56023
|
+
"vat_id",
|
|
56024
|
+
"name",
|
|
56025
|
+
"state",
|
|
56026
|
+
"status",
|
|
56027
|
+
"reason",
|
|
56028
|
+
"vies_outage"
|
|
56029
|
+
],
|
|
56030
|
+
"additionalProperties": false
|
|
55900
56031
|
},
|
|
55901
|
-
|
|
55902
|
-
"type": "
|
|
55903
|
-
"
|
|
55904
|
-
"
|
|
55905
|
-
|
|
55906
|
-
|
|
55907
|
-
|
|
56032
|
+
{
|
|
56033
|
+
"type": "object",
|
|
56034
|
+
"properties": {
|
|
56035
|
+
"vat_id": {
|
|
56036
|
+
"type": "string"
|
|
56037
|
+
},
|
|
56038
|
+
"name": {
|
|
56039
|
+
"anyOf": [
|
|
56040
|
+
{
|
|
56041
|
+
"type": "string"
|
|
56042
|
+
},
|
|
56043
|
+
{
|
|
56044
|
+
"type": "null"
|
|
56045
|
+
}
|
|
56046
|
+
]
|
|
56047
|
+
},
|
|
56048
|
+
"state": {
|
|
56049
|
+
"type": "string",
|
|
56050
|
+
"const": "pending"
|
|
56051
|
+
},
|
|
56052
|
+
"status": {
|
|
56053
|
+
"type": "string",
|
|
56054
|
+
"enum": [
|
|
56055
|
+
"valid",
|
|
56056
|
+
"unverified",
|
|
56057
|
+
"unavailable"
|
|
56058
|
+
]
|
|
56059
|
+
},
|
|
56060
|
+
"reason": {
|
|
56061
|
+
"type": "string",
|
|
56062
|
+
"enum": [
|
|
56063
|
+
"vies_unverified",
|
|
56064
|
+
"vies_identifier_missing"
|
|
56065
|
+
]
|
|
56066
|
+
}
|
|
56067
|
+
},
|
|
56068
|
+
"required": [
|
|
56069
|
+
"vat_id",
|
|
56070
|
+
"name",
|
|
56071
|
+
"state",
|
|
56072
|
+
"status",
|
|
56073
|
+
"reason"
|
|
56074
|
+
],
|
|
56075
|
+
"additionalProperties": false
|
|
55908
56076
|
}
|
|
55909
|
-
|
|
55910
|
-
"required": [
|
|
55911
|
-
"vat_id",
|
|
55912
|
-
"name",
|
|
55913
|
-
"state",
|
|
55914
|
-
"status",
|
|
55915
|
-
"reason"
|
|
55916
|
-
],
|
|
55917
|
-
"additionalProperties": false
|
|
56077
|
+
]
|
|
55918
56078
|
}
|
|
55919
56079
|
]
|
|
55920
56080
|
},
|