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