{
  "name": "JourneyConfirmationModal",
  "title": "JourneyConfirmationModal",
  "description": "Configuration options for the confirmation modal on the booking journey",
  "properties": {
    "JourneyConfirmationModal": {
      "type": "object",
      "description": "Configuration options for the confirmation modal on the booking journey",
      "properties": {
        "buttons": {
          "type": "array",
          "properties": {
            "action": {
              "type": "function",
              "description": "Action to be called when button is clicked"
            },
            "class": {
              "type": [
                "string",
                "null"
              ],
              "description": "CSS class to be applied to button"
            },
            "if": {
              "type": [
                "boolean",
                "function",
                "null"
              ],
              "description": "Condition that determines if the button is added to the DOM"
            },
            "roles": {
              "type": [
                "string",
                "null"
              ],
              "description": "Array of roles that will see and can use the button"
            },
            "style": {
              "type": "string",
              "description": "The bootstrap button class to apply to the button"
            },
            "translation": {
              "type": "string",
              "description": "The translation key to be applied to the button"
            },
            "type": {
              "type": "string",
              "description": "The type of action that is initiated in the form"
            }
          }
        }
      }
    }
  }
}