Mainfunctions for the shop

This commit is contained in:
Nico Kroll 2024-07-15 14:41:41 +02:00
parent 8954cbd05f
commit 0bbb294b64
2 changed files with 143 additions and 46 deletions

View File

@ -817,6 +817,47 @@ paths:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/Carts/{Guid}/Order:
post:
tags:
- "Cart"
parameters:
- $ref: "#/components/parameters/GuidPath"
- name: "GuidDeliveryType"
in: "query"
required: true
schema:
type: "string"
default: null
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
- name: "GuidPaymentType"
in: "query"
required: true
schema:
type: "string"
default: null
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
- name: "GuidAddressForInvoice"
in: "query"
required: true
schema:
type: "string"
default: null
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
- name: "GuidAddressForDelivery"
in: "query"
required: true
schema:
type: "string"
default: null
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
responses:
200:
description: "successful operation"
default:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/CartSets:
get:
tags:
@ -912,7 +953,13 @@ paths:
tags:
- "Cart"
parameters:
- $ref: "#/components/parameters/GuidOnlineService"
- name: "GuidCart"
in: "query"
required: true
schema:
type: "string"
default: null
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
responses:
200:
description: "successful operation"
@ -931,7 +978,13 @@ paths:
tags:
- "Cart"
parameters:
- $ref: "#/components/parameters/GuidOnlineService"
- name: "GuidCart"
in: "query"
required: true
schema:
type: "string"
default: null
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
responses:
200:
description: "successful operation"
@ -1198,31 +1251,55 @@ components:
type: "object"
required:
- "Guid"
- "StockType"
- "GuidTableConfig"
- "Details"
- "AmountPrecisionInNumberOfDecimalPlaces"
- "Stocks"
- "AmountInCart"
- "NumberOfDecimalPlacesForStock"
properties:
Guid:
type: "string"
Price:
GuidTableConfig:
type: "string"
Details:
type: "array"
items:
type: "object"
required:
- "FieldName"
properties:
FieldName:
type: "string"
FieldValue:
type: "string"
PriceNet:
type: "number"
StockType:
type: "string"
EarliestDeliveryDate:
type: "string"
format: "date"
LatestDeliveryDate:
type: "string"
format: "date"
AmountInCart:
PriceGross:
type: "number"
AmountPrecisionInNumberOfDecimalPlaces:
type: "integer"
Detail-1:
type: "string"
Detail-2:
type: "integer"
Stock-1:
Stocks:
type: "array"
items:
type: "object"
required:
- "FieldName"
- "Amount"
- "StockType"
properties:
FieldName:
type: "string"
Amount:
type: "number"
StockType:
type: "string"
EarliestDeliveryDate:
type: "string"
format: "date"
LatestDeliveryDate:
type: "string"
format: "date"
AmountInCart:
type: "number"
MaterialType:
type: "object"
@ -1306,7 +1383,7 @@ components:
type: "string"
SequenceNumber:
type: "integer"
NetPrice:
PriceNet:
type: "number"
Mode:
type: "string"
@ -1321,6 +1398,7 @@ components:
type: "object"
required:
- "Guid"
- "GuidCurrency"
- "DefaultAmount"
- "OneClickPurchase"
- "FullTaxPercentage"
@ -1330,6 +1408,20 @@ components:
Guid:
type: "string"
readOnly: true
Currency:
type: "object"
readOnly: true
required:
- "Designation"
- "ISO3Code"
- "Symbol"
properties:
Designation:
type: "string"
ISO3Code:
type: "string"
Symbol:
type: "string"
DefaultAmount:
type: "number"
readOnly: true
@ -1414,7 +1506,7 @@ components:
type: "boolean"
Amount:
type: "number"
SalesNetPrice:
PriceNet:
type: "number"
TaxType:
type: "string"
@ -1459,6 +1551,12 @@ components:
type: "string"
Comment:
type: "string"
PriceNet:
type: "number"
readOnly: true
PriceGross:
type: "number"
readOnly: true
CartSet:
type: "object"
required:
@ -1485,8 +1583,11 @@ components:
type: "string"
Amount:
type: "number"
NetPrice:
PriceNet:
type: "number"
PriceGross:
type: "number"
readOnly: true
Download:
type: "object"
required:
@ -1514,6 +1615,16 @@ components:
type: "string"
Designation:
type: "string"
PriceNet:
type: "number"
PriceGross:
type: "number"
EarliestDeliveryDate:
type: "string"
format: "date"
LatestDeliveryDate:
type: "string"
format: "date"
PaymentType:
type: "object"
required:
@ -1524,6 +1635,10 @@ components:
type: "string"
Designation:
type: "string"
PriceNet:
type: "number"
PriceGross:
type: "number"
securitySchemes:
SessionScheme:
type: http
@ -1668,8 +1783,12 @@ components:
schema:
$ref: "#/components/schemas/GenericError"
# MISSING
# GET /ArticleInformations
# GET /Vehicles
# GET /Tubes
# GET /Campaigns
# GET /Areas

View File

@ -1,22 +0,0 @@
/ArticleInformations:
get:
/Vehicles:
get:
/Tubes:
get:
- Unsicher, ob das so bleibt
/Documents:
- Alle anderen Belege
/Campaigns:
get:
/Areas:
get:
- Dynamisch Preisänderungen und co anzeigen
/Carts/{Guid}/Order:
post:
- GuidDeliveryType
- GuidPaymentType
- // Zusatzinformationen Payment
- Comment
...
> Document<Order>