Dictionary

Checkout related settings

Field Type Description
warranty Dictionary A dictionary with fields
invoicing Dictionary A dictionary with fields
takeout Dictionary A dictionary with fields
delivery Dictionary A dictionary with fields

Examples

Example 1

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