A dictionary with fields
Field | Type | Description |
---|---|---|
type | String | String enumarion of 'fixed', 'per_km' |
cost_per_day | Week | The delivery cost for each day, must contain 7 items, first is monday, last is sunday |
alternative | Dictionary | From a certain order amount, use these settings instead |
distance_alternatives | [Dictionary] | Apply a different delivery cost when delivery is beyond a certain distance |
{
"type": "fixed",
"cost_per_day": {
"d1": 16,
"d2": 10,
"d3": 19,
"d4": 11,
"d5": 13,
"d6": 11,
"d7": 13
},
"alternative": {
"enable": true,
"order_price": 18,
"cost_per_day": {
"d1": 10,
"d2": 12,
"d3": 18,
"d4": 14,
"d5": 14,
"d6": 15,
"d7": 18
}
},
"distance_alternatives": [
{
"distance": 16,
"cost_per_day": {
"d1": 10,
"d2": 18,
"d3": 15,
"d4": 19,
"d5": 19,
"d6": 17,
"d7": 18
}
},
{
"distance": 17,
"cost_per_day": {
"d1": 10,
"d2": 11,
"d3": 13,
"d4": 12,
"d5": 15,
"d6": 13,
"d7": 17
}
},
{
"distance": 15,
"cost_per_day": {
"d1": 15,
"d2": 19,
"d3": 15,
"d4": 12,
"d5": 17,
"d6": 15,
"d7": 11
}
}
]
}