{
  "tool": "matric-nqf4.hosp_portion_cost",
  "name": "Portion cost (CDU-GEN-NSC-400)",
  "answers": "The cost per portion from a batch cost and a portion count.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "Umalusi/NSC subject catalogue, worked reference (offline reconstruction); Hospitality Studies row of §4 — a portion cost and a cover count",
  "endpoint": "/faculty/matric-nqf4/hosp_portion_cost",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "batchCost",
      "portions"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "batchCost": {
        "type": "number",
        "description": "cost of the batch (≥ 0)",
        "minimum": 0,
        "maximum": 1000000
      },
      "portions": {
        "type": "number",
        "description": "portions from the batch (whole, ≥ 1)",
        "minimum": 1,
        "maximum": 100000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "costPerPortion"
    ],
    "properties": {
      "costPerPortion": {
        "type": "number",
        "description": "cost per portion (2 d.p.)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "batchCost": 480,
    "portions": 32
  }
}