Moved orderNumber to fulfillment response.

This commit is contained in:
Bas Boterman 2024-10-04 10:58:15 +02:00
parent bf359c63d4
commit ca06ee21ea

View File

@ -240,7 +240,6 @@ paths:
example:
{
"orderId": "a0ef57fa-395c-4a03-96e9-234c26dccea9",
"orderNumber": "123456",
"customerProfileId": 1337,
"totalAmount": 121,
"touchPointId": 1,
@ -347,7 +346,11 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/unavailable"
example: { "orderId": "a0ef57fa-395c-4a03-96e9-234c26dccea9" }
example:
{
"orderId": "a0ef57fa-395c-4a03-96e9-234c26dccea9",
"orderNumber": "123456",
}
/orders/:
post:
tags:
@ -359,8 +362,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/unavailable"
example:
null
example: null
responses:
"201":
description: Created
@ -384,8 +386,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/unavailable"
example:
null
example: null
responses:
"200":
description: OK
@ -409,8 +410,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/unavailable"
example:
null
example: null
responses:
"200":
description: OK
@ -434,8 +434,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/unavailable"
example:
null
example: null
responses:
"201":
description: Created
@ -459,8 +458,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/unavailable"
example:
null
example: null
responses:
"200":
description: OK
@ -484,8 +482,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/unavailable"
example:
null
example: null
responses:
"201":
description: Created
@ -509,8 +506,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/unavailable"
example:
null
example: null
responses:
"200":
description: OK
@ -533,19 +529,19 @@ components:
title:
type: string
example: "You do not have enough credit."
detail:
detail:
type: string
example: "Your current balance is 30, but that costs 50."
instance:
instance:
type: string
example: "/account/12345/msgs/abc"
balance:
balance:
type: string
example: "30"
accounts:
type: array
items:
type: string
example:
example:
- "/account/12345"
- "/account/67890"