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": false,
    "auto_approve_orders": false,
    "info_message": "...",
    "minimum_order_price": 17,
    "payment_methods": {
        "cash": true,
        "cash_if_targetprice_isop": true,
        "online": false,
        "online_if_targetprice": false,
        "banktransfer": false,
        "banktransfer_with_invoice": true,
        "bank_account_numbers": [
            {
                "name": "...",
                "number": "..."
            },
            {
                "name": "...",
                "number": "..."
            },
            {
                "name": "...",
                "number": "..."
            }
        ]
    },
    "max_orders": {
        "items": [
            {
                "max_per": "hour",
                "max_amount": 10,
                "days": {
                    "all": false,
                    "custom": [
                        14,
                        11,
                        13
                    ]
                },
                "intervals": [
                    {
                        "max_amount": 12,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 18,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 15,
                        "start": "12:00",
                        "end": "12:00"
                    }
                ]
            },
            {
                "max_per": "hour",
                "max_amount": 12,
                "days": {
                    "all": true,
                    "custom": [
                        18,
                        12,
                        14
                    ]
                },
                "intervals": [
                    {
                        "max_amount": 13,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 16,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 14,
                        "start": "12:00",
                        "end": "12:00"
                    }
                ]
            },
            {
                "max_per": "hour",
                "max_amount": 16,
                "days": {
                    "all": true,
                    "custom": [
                        15,
                        18,
                        17
                    ]
                },
                "intervals": [
                    {
                        "max_amount": 17,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 12,
                        "start": "12:00",
                        "end": "12:00"
                    },
                    {
                        "max_amount": 16,
                        "start": "12:00",
                        "end": "12:00"
                    }
                ]
            }
        ]
    },
    "cost": {
        "type": "fixed",
        "cost_per_day": {
            "d1": 11,
            "d2": 10,
            "d3": 14,
            "d4": 14,
            "d5": 10,
            "d6": 19,
            "d7": 16
        },
        "alternative": {
            "enable": false,
            "order_price": 16,
            "cost_per_day": {
                "d1": 16,
                "d2": 17,
                "d3": 16,
                "d4": 14,
                "d5": 17,
                "d6": 18,
                "d7": 10
            }
        },
        "distance_alternatives": [
            {
                "distance": 11,
                "cost_per_day": {
                    "d1": 19,
                    "d2": 13,
                    "d3": 15,
                    "d4": 16,
                    "d5": 15,
                    "d6": 16,
                    "d7": 12
                }
            },
            {
                "distance": 15,
                "cost_per_day": {
                    "d1": 17,
                    "d2": 17,
                    "d3": 18,
                    "d4": 12,
                    "d5": 18,
                    "d6": 11,
                    "d7": 12
                }
            },
            {
                "distance": 16,
                "cost_per_day": {
                    "d1": 11,
                    "d2": 19,
                    "d3": 18,
                    "d4": 11,
                    "d5": 19,
                    "d6": 16,
                    "d7": 16
                }
            }
        ]
    },
    "range": {
        "everywhere": true,
        "has_max_range": false,
        "max_range": 14
    }
}
1.9.0 stable