{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "approve",
        "review"
      ],
      "description": "Approve a substantiated duplicate charge when permitted; otherwise choose review.",
      "x-runtime": {
        "choices": {
          "approve": {
            "eligibleWhen": {
              "eq": [
                {
                  "ref": "state/order/paid"
                },
                true
              ]
            }
          }
        }
      }
    }
  },
  "required": [
    "action"
  ],
  "additionalProperties": false
}
