{
    "$id": "https://www.fatzebra.com/schemas/hpp-load-params.json",
    "type": "object",
    "additionalProperties": false,
    "required": [
        "containerId",
        "paymentIntent"
    ],
    "properties": {
        "version": {
            "type": "number"
        },
        "containerId": {
            "type": "string"
        },
        "customer": {
            "$ref": "customer.json#/definitions/Customer"
        },
        "paymentIntent": {
            "$ref": "payment-intent.json#/definitions/PaymentIntent"
        },
        "options": {
            "$ref": "hpp-options.json#/definitions/HppOptions"
        }
    },
    "if": {
        "properties": {
            "options": {
                "properties": {
                    "tokenizeOnly": {
                        "type": "boolean"
                    }
                }
            }
        }
    },
    "else": {
        "required": []
    }
}
