{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zywave/json-schema/zywave-contribution-record-schema.json",
  "title": "ContributionRecord",
  "description": "The contribution record data returned to the caller.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-contributions-api-openapi.yml#/components/schemas/ContributionRecord",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "contributionTier": {
      "description": "The contribution tier.",
      "default": "Employee",
      "oneOf": [
        {
          "$ref": "#/$defs/ContributionTierOption"
        }
      ]
    },
    "rateTotal": {
      "type": "number",
      "description": "The monthly total for rate tier (Employer $ + Employee $).",
      "format": "decimal",
      "pattern": "^\\d+\\.?\\d{0,2}$"
    },
    "strategyAmount": {
      "type": "number",
      "description": "The percent or dollar amount used in calculations. E.g. 30% (a percentage strategy) or $541.32 (a dollars strategy).",
      "format": "decimal",
      "pattern": "^\\d+\\.?\\d{0,2}$"
    },
    "employeeDollars": {
      "type": "number",
      "description": "Computed. The monthly dollar amount paid by the employee.",
      "format": "decimal",
      "pattern": "^\\d+\\.?\\d{0,2}$"
    },
    "employerDollars": {
      "type": "number",
      "description": "Computed. The monthly dollar amount paid by the employer.",
      "format": "decimal",
      "pattern": "^\\d+\\.?\\d{0,2}$"
    },
    "employeePercent": {
      "type": "number",
      "description": "Computed. The monthly percent contribution paid by the employee.",
      "format": "decimal",
      "pattern": "^\\d+\\.?\\d{0,2}$"
    },
    "employerPercent": {
      "type": "number",
      "description": "Computed. The monthly percent contribution paid by the employer.",
      "format": "decimal",
      "pattern": "^\\d+\\.?\\d{0,2}$"
    }
  },
  "$defs": {
    "ContributionTierOption": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Employee",
        "EmployeeSpouse",
        "EmployeeChildren",
        "EmployeeFamily",
        "EmployeeChild",
        "EmployeeSpouseChild",
        "EmployeeTwoChildren",
        "EmployeeThreeChildren"
      ],
      "enum": [
        "Employee",
        "EmployeeSpouse",
        "EmployeeChildren",
        "EmployeeFamily",
        "EmployeeChild",
        "EmployeeSpouseChild",
        "EmployeeTwoChildren",
        "EmployeeThreeChildren"
      ]
    }
  }
}