Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ class UcpApp {
}

prepareUpdatePayload(checkoutResponse) {
const patch = { id: checkoutResponse.id };
const patch = { id: checkoutResponse.id }; // deprecated: id is redundant with URL path
const errors = checkoutResponse.messages || [];

if (errors.some(e => e.path === "$.buyer.email")) {
Expand Down
6 changes: 3 additions & 3 deletions docs/specification/checkout-rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ so clients must include all previously set fields they wish to retain.
Content-Type: application/json

{
"id": "chk_123456789",
"id": "chk_123456789", // deprecated: id is redundant with URL path
"buyer": {
"email": "jane@example.com",
"first_name": "Jane",
Expand Down Expand Up @@ -310,7 +310,7 @@ type & addresses.
Content-Type: application/json

{
"id": "chk_123456789",
"id": "chk_123456789", // deprecated: id is redundant with URL path
"buyer": {
"email": "jane@example.com",
"first_name": "Jane",
Expand Down Expand Up @@ -512,7 +512,7 @@ Follow-up calls after initial `fulfillment` data to update selection.
Content-Type: application/json

{
"id": "chk_123456789",
"id": "chk_123456789", // deprecated: id is redundant with URL path
"buyer": {
"email": "jane@example.com",
"first_name": "Jane",
Expand Down
2 changes: 1 addition & 1 deletion source/schemas/shopping/checkout.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"description": "Unique identifier of the checkout session.",
"ucp_request": {
"create": "omit",
"update": "required",
"update": {"from": "required", "to": "omit", "description": "The id field from the transport request is expected to be used."},
"complete": "omit"
}
},
Expand Down
Loading