Mainfunctions for the shop
This commit is contained in:
parent
8954cbd05f
commit
0bbb294b64
155
src/v2/shop.yaml
155
src/v2/shop.yaml
|
|
@ -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,13 +1251,45 @@ 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"
|
||||
PriceGross:
|
||||
type: "number"
|
||||
AmountPrecisionInNumberOfDecimalPlaces:
|
||||
type: "integer"
|
||||
Stocks:
|
||||
type: "array"
|
||||
items:
|
||||
type: "object"
|
||||
required:
|
||||
- "FieldName"
|
||||
- "Amount"
|
||||
- "StockType"
|
||||
properties:
|
||||
FieldName:
|
||||
type: "string"
|
||||
Amount:
|
||||
type: "number"
|
||||
StockType:
|
||||
type: "string"
|
||||
|
|
@ -1216,14 +1301,6 @@ components:
|
|||
format: "date"
|
||||
AmountInCart:
|
||||
type: "number"
|
||||
AmountPrecisionInNumberOfDecimalPlaces:
|
||||
type: "integer"
|
||||
Detail-1:
|
||||
type: "string"
|
||||
Detail-2:
|
||||
type: "integer"
|
||||
Stock-1:
|
||||
type: "number"
|
||||
MaterialType:
|
||||
type: "object"
|
||||
required:
|
||||
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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