Skip to content

Commit 681d692

Browse files
authored
Clean up transition schema usage in preparation of a version cut. (Universal-Commerce-Protocol#341)
1 parent 8917383 commit 681d692

3 files changed

Lines changed: 5 additions & 40 deletions

File tree

source/schemas/shopping/checkout.json

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323
"id": {
2424
"type": "string",
2525
"description": "Unique identifier of the checkout session.",
26-
"ucp_request": {
27-
"create": "omit",
28-
"update": {"transition": {"from": "required", "to": "omit", "description": "ID is provided as argument on the request, this ID is redundant."}},
29-
"complete": "omit"
30-
}
26+
"ucp_request": "omit"
3127
},
3228
"line_items": {
3329
"type": "array",
@@ -60,27 +56,7 @@
6056
},
6157
"signals": {
6258
"$ref": "types/signals.json",
63-
"ucp_request": {
64-
"create": "optional",
65-
"update": "optional",
66-
"complete": "optional"
67-
}
68-
},
69-
"risk_signals": {
70-
"type": "object",
71-
"description": "Deprecated. Use signals instead. Will be removed in the next version.",
72-
"deprecated": true,
73-
"additionalProperties": true,
74-
"ucp_request": {
75-
"complete": {
76-
"transition": {
77-
"from": "optional",
78-
"to": "omit",
79-
"description": "Replaced by signals. Will be removed in the next version."
80-
}
81-
}
82-
},
83-
"ucp_response": "omit"
59+
"ucp_request": "optional"
8460
},
8561
"status": {
8662
"type": "string",
@@ -98,11 +74,7 @@
9874
"currency": {
9975
"type": "string",
10076
"description": "ISO 4217 currency code reflecting the merchant's market determination. Derived from address, context, and geo IP—buyers provide signals, merchants determine currency.",
101-
"ucp_request": {
102-
"create": "omit",
103-
"update": "omit",
104-
"complete": "omit"
105-
}
77+
"ucp_request": "omit"
10678
},
10779
"totals": {
10880
"$ref": "types/totals.json",

source/schemas/shopping/order.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,7 @@
9090
"currency": {
9191
"type": "string",
9292
"description": "ISO 4217 currency code. MUST match the currency from the originating checkout session.",
93-
"ucp_request": "omit",
94-
"ucp_response": {
95-
"transition": {
96-
"from": "optional",
97-
"to": "required",
98-
"description": "Global requirement for currency in all Order responses."
99-
}
100-
}
93+
"ucp_request": "omit"
10194
},
10295
"totals": {
10396
"$ref": "types/totals.json",

source/schemas/shopping/types/fulfillment_method.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"id": {
1111
"type": "string",
1212
"description": "Unique fulfillment method identifier.",
13-
"ucp_request": {"create": "omit", "update": {"transition": {"from": "required", "to": "optional", "description": "Id is becoming optional to support platforms signalling a change of fulfillment method type without knowing the specific id ahead of the transition."}}}
13+
"ucp_request": {"create": "omit", "update": "optional"}
1414
},
1515
"type": {
1616
"type": "string",

0 commit comments

Comments
 (0)