{
    "$id": "https://www.fatzebra.com/schemas/payment-intent.json",
    "type": "object",
    "additionalProperties": false,
    "definitions": {
        "PaymentIntent": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "payment": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                        "amount",
                        "currency",
                        "reference"
                    ],
                    "properties": {
                        "amount": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "currency": {
                            "type": "string"
                        },
                        "reference": {
                            "type": "string"
                        },
                        "hide_card_holder": {
                            "type": "boolean"
                        }
                    }
                },
                "verification": {
                    "type": "string",
                    "minLength": 5
                }
            },
            "required": [
                "payment",
                "verification"
            ]
        }
    }
}
