Dictionary

A dictionary with fields

Field Type Description
enable Bool A boolean value
auto_approve_orders Bool A boolean value
info_message String Info message towards the customer about your deliveries
minimum_order_price Int Minimum order price to allow delivery in cents
payment_methods Dictionary A dictionary with fields
max_orders MaxOrders Max order settings
cost Dictionary A dictionary with fields
range Dictionary A dictionary with fields

Examples

Example 1

{
    "enable": true,
    "auto_approve_orders": true,
    "info_message": "...",
    "minimum_order_price": 12,
    "payment_methods": {
        "cash": false,
        "cash_if_targetprice_isop": false,
        "online": true,
        "online_if_targetprice": true,
        "banktransfer": true,
        "banktransfer_with_invoice": false,
        "bank_account_numbers": [
            {
                "name": "...",
                "number": "..."
            },
            {
                "name": "...",
                "number": "..."
            },
            {
                "name": "...",
                "number": "..."
            }
        ]
    },
    "max_orders": {
        "items": [
            {
                "max_per": "hour",
                "max_amount": 15,
                "days": {
                    "all": true,
                    "custom": [
                        19,
                        16,
                        11
                    ]
                },
                "intervals": [
                    {
                        "max_amount": 14,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 15,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 18,
                        "start": "12:00",
                        "end": "12:00"
                    }
                ]
            },
            {
                "max_per": "hour",
                "max_amount": 10,
                "days": {
                    "all": true,
                    "custom": [
                        12,
                        19,
                        15
                    ]
                },
                "intervals": [
                    {
                        "max_amount": 10,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 10,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 10,
                        "start": "12:00",
                        "end": "12:00"
                    }
                ]
            },
            {
                "max_per": "hour",
                "max_amount": 15,
                "days": {
                    "all": false,
                    "custom": [
                        14,
                        11,
                        13
                    ]
                },
                "intervals": [
                    {
                        "max_amount": 12,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 11,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 18,
                        "start": "12:00",
                        "end": "12:00"
                    }
                ]
            }
        ]
    },
    "cost": {
        "type": "fixed",
        "cost_per_day": {
            "d1": 10,
            "d2": 15,
            "d3": 10,
            "d4": 19,
            "d5": 11,
            "d6": 13,
            "d7": 18
        },
        "alternative": {
            "enable": false,
            "order_price": 17,
            "cost_per_day": {
                "d1": 17,
                "d2": 12,
                "d3": 15,
                "d4": 10,
                "d5": 17,
                "d6": 11,
                "d7": 16
            }
        },
        "distance_alternatives": [
            {
                "distance": 12,
                "cost_per_day": {
                    "d1": 13,
                    "d2": 13,
                    "d3": 14,
                    "d4": 15,
                    "d5": 13,
                    "d6": 10,
                    "d7": 13
                }
            },
            {
                "distance": 14,
                "cost_per_day": {
                    "d1": 19,
                    "d2": 15,
                    "d3": 13,
                    "d4": 14,
                    "d5": 14,
                    "d6": 19,
                    "d7": 12
                }
            },
            {
                "distance": 12,
                "cost_per_day": {
                    "d1": 14,
                    "d2": 12,
                    "d3": 14,
                    "d4": 17,
                    "d5": 17,
                    "d6": 19,
                    "d7": 10
                }
            }
        ]
    },
    "range": {
        "everywhere": true,
        "has_max_range": false,
        "max_range": 17
    }
}
This is a development version Do not use this version in production
1.10.0 development