{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adp/json-schema/adp-worker-outputs-response-schema.json",
  "title": "WorkerOutputsResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adp-payrolloutputs-api-openapi.yml#/components/schemas/WorkerOutputsResponse",
  "type": "object",
  "properties": {
    "payrollOutputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "payrollOutputID": {
            "type": "string"
          },
          "workerOutputs": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/WorkerPayOutput"
            }
          }
        }
      }
    }
  },
  "$defs": {
    "AmountValue": {
      "type": "object",
      "properties": {
        "amountValue": {
          "type": "number",
          "format": "double"
        },
        "currencyCode": {
          "type": "string",
          "default": "USD"
        }
      }
    },
    "DeductionItem": {
      "type": "object",
      "properties": {
        "typeCode": {
          "type": "object",
          "properties": {
            "codeValue": {
              "type": "string"
            }
          }
        },
        "nameCode": {
          "type": "object",
          "properties": {
            "codeValue": {
              "type": "string"
            },
            "shortName": {
              "type": "string"
            }
          }
        },
        "amount": {
          "$ref": "#/$defs/AmountValue"
        }
      }
    },
    "EarningItem": {
      "type": "object",
      "properties": {
        "typeCode": {
          "type": "object",
          "properties": {
            "codeValue": {
              "type": "string"
            }
          }
        },
        "nameCode": {
          "type": "object",
          "properties": {
            "codeValue": {
              "type": "string"
            },
            "shortName": {
              "type": "string"
            }
          }
        },
        "amount": {
          "$ref": "#/$defs/AmountValue"
        },
        "hoursQuantity": {
          "type": "number"
        },
        "rateAmount": {
          "$ref": "#/$defs/AmountValue"
        }
      }
    },
    "TaxItem": {
      "type": "object",
      "properties": {
        "typeCode": {
          "type": "object",
          "properties": {
            "codeValue": {
              "type": "string"
            }
          }
        },
        "nameCode": {
          "type": "object",
          "properties": {
            "codeValue": {
              "type": "string"
            }
          }
        },
        "amount": {
          "$ref": "#/$defs/AmountValue"
        },
        "jurisdictionCode": {
          "type": "object",
          "properties": {
            "codeValue": {
              "type": "string"
            }
          }
        }
      }
    },
    "WorkerPayOutput": {
      "type": "object",
      "properties": {
        "associateOID": {
          "type": "string"
        },
        "workerID": {
          "type": "object",
          "properties": {
            "idValue": {
              "type": "string"
            }
          }
        },
        "payStatementID": {
          "type": "string"
        },
        "payDate": {
          "type": "string",
          "format": "date"
        },
        "grossPayAmount": {
          "$ref": "#/$defs/AmountValue"
        },
        "netPayAmount": {
          "$ref": "#/$defs/AmountValue"
        },
        "regularEarnings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EarningItem"
          }
        },
        "overtimeEarnings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EarningItem"
          }
        },
        "otherEarnings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EarningItem"
          }
        },
        "deductions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DeductionItem"
          }
        },
        "taxes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TaxItem"
          }
        }
      }
    }
  }
}