From ca06ee21ead017a17646729e41e252ae8e66cf14 Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Fri, 4 Oct 2024 10:58:15 +0200 Subject: [PATCH] Moved orderNumber to fulfillment response. --- src/openapi/orders/service_engine_orders.yaml | 36 +++++++++---------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/src/openapi/orders/service_engine_orders.yaml b/src/openapi/orders/service_engine_orders.yaml index c000188..66897d3 100644 --- a/src/openapi/orders/service_engine_orders.yaml +++ b/src/openapi/orders/service_engine_orders.yaml @@ -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"