{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/workday-payroll/refs/heads/main/json-structure/payroll-deduction-code-structure.json",
  "name": "DeductionCode",
  "description": "DeductionCode schema from Workday Payroll API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the deduction code",
      "example": "MEDICAL_PRETAX"
    },
    "descriptor": {
      "type": "string",
      "description": "Display name of the deduction code",
      "example": "Weekly USD Pay Group"
    },
    "type": {
      "type": "string",
      "enum": [
        "Benefit",
        "Retirement",
        "Garnishment",
        "Tax",
        "Voluntary",
        "Other"
      ],
      "description": "Category of the deduction",
      "example": "Benefit"
    },
    "preTax": {
      "type": "boolean",
      "description": "Whether this deduction is pre-tax by default",
      "example": true
    },
    "active": {
      "type": "boolean",
      "description": "Whether the deduction code is currently active",
      "example": true
    }
  }
}
