From 41ef94f527ce58310a64ccef64264e8101a9e089 Mon Sep 17 00:00:00 2001 From: Nico Kroll Date: Wed, 21 Aug 2024 20:09:51 +0200 Subject: [PATCH] Implementation of CalculationProfiles --- src/v2/shop.yaml | 63 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 46 insertions(+), 17 deletions(-) diff --git a/src/v2/shop.yaml b/src/v2/shop.yaml index f769b91..5b5e1e8 100644 --- a/src/v2/shop.yaml +++ b/src/v2/shop.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: "TyrePro-API, Shop" - version: "Version 5" + version: "Version 6" servers: - url: "https://musterreifen.com/api/shop" description: "Development server, customers domain" @@ -426,14 +426,6 @@ paths: type: "string" default: null example: "ebb89e89-8d25-809e-7814-c53b686ae164" - - name: "GuidDeliveryType" - description: "For providing more accurate stock and price information." - in: "query" - required: false - schema: - type: "string" - default: null - example: "ebb89e89-8d25-809e-7814-c53b686ae164" responses: 200: description: "successful operation" @@ -482,6 +474,14 @@ paths: type: "string" default: null example: "ebb89e89-8d25-809e-7814-c53b686ae164" + - name: "GuidCalculationProfile" + description: "If provided, the prices will base on this profile." + in: "query" + required: false + schema: + type: "string" + default: null + example: "ebb89e89-8d25-809e-7814-c53b686ae164" responses: 200: description: "successful operation" @@ -769,6 +769,14 @@ paths: type: "string" default: null example: "ebb89e89-8d25-809e-7814-c53b686ae164" + - name: "GuidCalculationProfile" + description: "If provided, the prices will base on this profile." + in: "query" + required: false + schema: + type: "string" + default: null + example: "ebb89e89-8d25-809e-7814-c53b686ae164" responses: 200: description: "successful operation" @@ -902,6 +910,14 @@ paths: type: "string" default: null example: "ebb89e89-8d25-809e-7814-c53b686ae164" + - name: "GuidCalculationProfile" + description: "If provided, the prices will base on this profile." + in: "query" + required: false + schema: + type: "string" + default: null + example: "ebb89e89-8d25-809e-7814-c53b686ae164" responses: 200: description: "successful operation" @@ -1000,6 +1016,14 @@ paths: type: "string" default: null example: "ebb89e89-8d25-809e-7814-c53b686ae164" + - name: "GuidCalculationProfile" + description: "If provided, the prices will base on this profile." + in: "query" + required: false + schema: + type: "string" + default: null + example: "ebb89e89-8d25-809e-7814-c53b686ae164" responses: 200: description: "successful operation" @@ -1033,6 +1057,14 @@ paths: type: "string" default: null example: "ebb89e89-8d25-809e-7814-c53b686ae164" + - name: "GuidCalculationProfile" + description: "If provided, the prices will base on this profile." + in: "query" + required: false + schema: + type: "string" + default: null + example: "ebb89e89-8d25-809e-7814-c53b686ae164" responses: 200: description: "successful operation" @@ -1341,10 +1373,7 @@ components: type: "number" StockType: type: "string" - EarliestDeliveryDate: - type: "string" - format: "date" - LatestDeliveryDate: + DeliveryDate: type: "string" format: "date" AmountInCart: @@ -1385,6 +1414,7 @@ components: - "Guid" - "Designation" - "SequenceNumber" + - "ProvidedByShopOperator" properties: Guid: type: "string" @@ -1392,6 +1422,8 @@ components: type: "string" SequenceNumber: type: "integer" + ProvidedByShopOperator: + type: "boolean" Calculation: type: "object" required: @@ -1667,10 +1699,7 @@ components: type: "number" PriceGross: type: "number" - EarliestDeliveryDate: - type: "string" - format: "date" - LatestDeliveryDate: + DeliveryDate: type: "string" format: "date" PaymentType: