Mainfunctions for the shop
This commit is contained in:
parent
8954cbd05f
commit
0bbb294b64
167
src/v2/shop.yaml
167
src/v2/shop.yaml
|
|
@ -817,6 +817,47 @@ paths:
|
||||||
$ref: "#/components/responses/GenericError"
|
$ref: "#/components/responses/GenericError"
|
||||||
security:
|
security:
|
||||||
- SessionScheme: []
|
- 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:
|
/CartSets:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
|
@ -912,7 +953,13 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- "Cart"
|
- "Cart"
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "#/components/parameters/GuidOnlineService"
|
- name: "GuidCart"
|
||||||
|
in: "query"
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: "string"
|
||||||
|
default: null
|
||||||
|
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "successful operation"
|
description: "successful operation"
|
||||||
|
|
@ -931,7 +978,13 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- "Cart"
|
- "Cart"
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "#/components/parameters/GuidOnlineService"
|
- name: "GuidCart"
|
||||||
|
in: "query"
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: "string"
|
||||||
|
default: null
|
||||||
|
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "successful operation"
|
description: "successful operation"
|
||||||
|
|
@ -1198,31 +1251,55 @@ components:
|
||||||
type: "object"
|
type: "object"
|
||||||
required:
|
required:
|
||||||
- "Guid"
|
- "Guid"
|
||||||
- "StockType"
|
- "GuidTableConfig"
|
||||||
|
- "Details"
|
||||||
|
- "AmountPrecisionInNumberOfDecimalPlaces"
|
||||||
|
- "Stocks"
|
||||||
- "AmountInCart"
|
- "AmountInCart"
|
||||||
- "NumberOfDecimalPlacesForStock"
|
|
||||||
properties:
|
properties:
|
||||||
Guid:
|
Guid:
|
||||||
type: "string"
|
type: "string"
|
||||||
Price:
|
GuidTableConfig:
|
||||||
|
type: "string"
|
||||||
|
Details:
|
||||||
|
type: "array"
|
||||||
|
items:
|
||||||
|
type: "object"
|
||||||
|
required:
|
||||||
|
- "FieldName"
|
||||||
|
properties:
|
||||||
|
FieldName:
|
||||||
|
type: "string"
|
||||||
|
FieldValue:
|
||||||
|
type: "string"
|
||||||
|
PriceNet:
|
||||||
type: "number"
|
type: "number"
|
||||||
StockType:
|
PriceGross:
|
||||||
type: "string"
|
|
||||||
EarliestDeliveryDate:
|
|
||||||
type: "string"
|
|
||||||
format: "date"
|
|
||||||
LatestDeliveryDate:
|
|
||||||
type: "string"
|
|
||||||
format: "date"
|
|
||||||
AmountInCart:
|
|
||||||
type: "number"
|
type: "number"
|
||||||
AmountPrecisionInNumberOfDecimalPlaces:
|
AmountPrecisionInNumberOfDecimalPlaces:
|
||||||
type: "integer"
|
type: "integer"
|
||||||
Detail-1:
|
Stocks:
|
||||||
type: "string"
|
type: "array"
|
||||||
Detail-2:
|
items:
|
||||||
type: "integer"
|
type: "object"
|
||||||
Stock-1:
|
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"
|
type: "number"
|
||||||
MaterialType:
|
MaterialType:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
@ -1306,7 +1383,7 @@ components:
|
||||||
type: "string"
|
type: "string"
|
||||||
SequenceNumber:
|
SequenceNumber:
|
||||||
type: "integer"
|
type: "integer"
|
||||||
NetPrice:
|
PriceNet:
|
||||||
type: "number"
|
type: "number"
|
||||||
Mode:
|
Mode:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
|
@ -1321,6 +1398,7 @@ components:
|
||||||
type: "object"
|
type: "object"
|
||||||
required:
|
required:
|
||||||
- "Guid"
|
- "Guid"
|
||||||
|
- "GuidCurrency"
|
||||||
- "DefaultAmount"
|
- "DefaultAmount"
|
||||||
- "OneClickPurchase"
|
- "OneClickPurchase"
|
||||||
- "FullTaxPercentage"
|
- "FullTaxPercentage"
|
||||||
|
|
@ -1330,6 +1408,20 @@ components:
|
||||||
Guid:
|
Guid:
|
||||||
type: "string"
|
type: "string"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
Currency:
|
||||||
|
type: "object"
|
||||||
|
readOnly: true
|
||||||
|
required:
|
||||||
|
- "Designation"
|
||||||
|
- "ISO3Code"
|
||||||
|
- "Symbol"
|
||||||
|
properties:
|
||||||
|
Designation:
|
||||||
|
type: "string"
|
||||||
|
ISO3Code:
|
||||||
|
type: "string"
|
||||||
|
Symbol:
|
||||||
|
type: "string"
|
||||||
DefaultAmount:
|
DefaultAmount:
|
||||||
type: "number"
|
type: "number"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
|
@ -1414,7 +1506,7 @@ components:
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
Amount:
|
Amount:
|
||||||
type: "number"
|
type: "number"
|
||||||
SalesNetPrice:
|
PriceNet:
|
||||||
type: "number"
|
type: "number"
|
||||||
TaxType:
|
TaxType:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
|
@ -1459,6 +1551,12 @@ components:
|
||||||
type: "string"
|
type: "string"
|
||||||
Comment:
|
Comment:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
PriceNet:
|
||||||
|
type: "number"
|
||||||
|
readOnly: true
|
||||||
|
PriceGross:
|
||||||
|
type: "number"
|
||||||
|
readOnly: true
|
||||||
CartSet:
|
CartSet:
|
||||||
type: "object"
|
type: "object"
|
||||||
required:
|
required:
|
||||||
|
|
@ -1485,8 +1583,11 @@ components:
|
||||||
type: "string"
|
type: "string"
|
||||||
Amount:
|
Amount:
|
||||||
type: "number"
|
type: "number"
|
||||||
NetPrice:
|
PriceNet:
|
||||||
type: "number"
|
type: "number"
|
||||||
|
PriceGross:
|
||||||
|
type: "number"
|
||||||
|
readOnly: true
|
||||||
Download:
|
Download:
|
||||||
type: "object"
|
type: "object"
|
||||||
required:
|
required:
|
||||||
|
|
@ -1514,6 +1615,16 @@ components:
|
||||||
type: "string"
|
type: "string"
|
||||||
Designation:
|
Designation:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
PriceNet:
|
||||||
|
type: "number"
|
||||||
|
PriceGross:
|
||||||
|
type: "number"
|
||||||
|
EarliestDeliveryDate:
|
||||||
|
type: "string"
|
||||||
|
format: "date"
|
||||||
|
LatestDeliveryDate:
|
||||||
|
type: "string"
|
||||||
|
format: "date"
|
||||||
PaymentType:
|
PaymentType:
|
||||||
type: "object"
|
type: "object"
|
||||||
required:
|
required:
|
||||||
|
|
@ -1524,6 +1635,10 @@ components:
|
||||||
type: "string"
|
type: "string"
|
||||||
Designation:
|
Designation:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
PriceNet:
|
||||||
|
type: "number"
|
||||||
|
PriceGross:
|
||||||
|
type: "number"
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
SessionScheme:
|
SessionScheme:
|
||||||
type: http
|
type: http
|
||||||
|
|
@ -1668,8 +1783,12 @@ components:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/GenericError"
|
$ref: "#/components/schemas/GenericError"
|
||||||
|
|
||||||
|
# MISSING
|
||||||
|
# GET /ArticleInformations
|
||||||
|
# GET /Vehicles
|
||||||
|
# GET /Tubes
|
||||||
|
# GET /Campaigns
|
||||||
|
# GET /Areas
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>
|
|
||||||
Loading…
Reference in New Issue