Implement First Draft of Supplier API

This commit is contained in:
2020-05-12 22:41:08 +02:00
parent 89eaeaed40
commit 62d811db1d
16 changed files with 613 additions and 0 deletions

26
supplier/config/bank.json Normal file
View File

@ -0,0 +1,26 @@
{
"id" : "bank",
"name" : "Bank of Cheese",
"discount" : {
"minimumDailySalesVolumeNetCent": 100,
"percentDiscount": 1
},
"articles": [
{
"title": "Big Mac",
"manufacturer": "Mc Donalds",
"articleNumber": "0x1 BIGMAC",
"vatPercent": 7,
"pricePerUnitNet": 700,
"shouldBeAdvertised": true
},
{
"title": "500£ Schein",
"manufacturer": "Bank",
"articleNumber": "500",
"vatPercent": 0,
"pricePerUnitNet": 50000,
"shouldBeAdvertised": false
}
]
}

View File

@ -0,0 +1,34 @@
{
"id" : "hans",
"name" : "Hans and more",
"discount" : {
"minimumDailySalesVolumeNetCent": 100000,
"percentDiscount": 2
},
"articles": [
{
"title": "Big Mac",
"manufacturer": "Mc Donalds",
"articleNumber": "0x1 BIGMAC",
"vatPercent": 7,
"pricePerUnitNet": 700,
"shouldBeAdvertised": true
},
{
"title": "Pommes",
"manufacturer": "Mc Donalds",
"articleNumber": "0x1 POmes",
"vatPercent": 7,
"pricePerUnitNet": 100,
"shouldBeAdvertised": false
},
{
"title": "Milchshake Premium 19%",
"manufacturer": "Mc Donalds",
"articleNumber": "0x2",
"vatPercent": 19,
"pricePerUnitNet": 50,
"shouldBeAdvertised": true
}
]
}