{
    "conditional": true,
    "conditions": [
      {
        "when": {
          "operator": "OR",
          "conditions": [
            {"field": "paymentStatus", "operator": "IN", "value": ["online_completed", "offline_completed", "completed"]},
            {"field": "isFreeSeat", "operator": "EQUALS", "value": true}
          ]
        },
        "then": {
          "stageStatus": "completed",
          "markStageComplete": true
        }
      },
      {
        "when": {
          "operator": "AND",
          "conditions": [
            {"field": "paymentStatus", "operator": "IN", "value": ["online_pending", "offline_pending", "failed"]},
            {"field": "isFreeSeat", "operator": "EQUALS", "value": false}
          ]
        },
        "then": {
          "stageStatus": "pending",
          "markStageComplete": false
        }
      }
    ]
  }