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": 14,
"d3": 14,
"d4": 15,
"d5": 16,
"d6": 16,
"d7": 10
},
"alternative": {
"enable": false,
"order_price": 15,
"cost_per_day": {
"d1": 13,
"d2": 15,
"d3": 16,
"d4": 16,
"d5": 14,
"d6": 13,
"d7": 16
}
},
"distance_alternatives": [
{
"distance": 13,
"cost_per_day": {
"d1": 19,
"d2": 11,
"d3": 16,
"d4": 18,
"d5": 13,
"d6": 11,
"d7": 10
}
},
{
"distance": 17,
"cost_per_day": {
"d1": 13,
"d2": 16,
"d3": 12,
"d4": 16,
"d5": 14,
"d6": 18,
"d7": 16
}
},
{
"distance": 17,
"cost_per_day": {
"d1": 15,
"d2": 18,
"d3": 11,
"d4": 19,
"d5": 13,
"d6": 18,
"d7": 10
}
}
]
}