{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snow-software/json-schema/snow-software-computer-costs-schema.json",
  "title": "ComputerCosts",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snow-software-computer-costs-api-openapi.yml#/components/schemas/ComputerCosts",
  "allOf": [
    {
      "$ref": "#/$defs/BaseResponse"
    },
    {
      "type": "object",
      "description": "Response representing costs associated with a computer.",
      "additionalProperties": false,
      "required": [
        "computerId"
      ],
      "properties": {
        "computerId": {
          "type": "string",
          "description": "The unique ID of the computer.",
          "format": "guid"
        },
        "vendor": {
          "type": [
            "string",
            "null"
          ],
          "description": "The vendor of the computer."
        },
        "purchaseDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "The date on which the computer was purchased.",
          "format": "date-time"
        },
        "purchasePrice": {
          "type": [
            "number",
            "null"
          ],
          "description": "The price for which the computer was purchased.",
          "format": "decimal"
        },
        "purchaseValueBase": {
          "type": [
            "number",
            "null"
          ],
          "description": "The value base of the purchase of the computer.",
          "format": "decimal"
        },
        "purchaseCurrency": {
          "type": [
            "string",
            "null"
          ],
          "description": "The currency in which the computer was purchased."
        },
        "invoiceReference": {
          "type": [
            "string",
            "null"
          ],
          "description": "The invoice reference for the purchase of the computer."
        },
        "totalCostOfInstalledApplications": {
          "type": [
            "number",
            "null"
          ],
          "description": "The total cost of all applications installed on the computer.",
          "format": "decimal"
        },
        "totalCost": {
          "type": [
            "number",
            "null"
          ],
          "description": "The total cost of the computer and installed applications.",
          "format": "decimal"
        }
      }
    }
  ],
  "$defs": {
    "BaseResponse": {
      "type": "object",
      "description": "Base response class.",
      "additionalProperties": false,
      "required": [
        "_links"
      ],
      "properties": {
        "_links": {
          "type": "array",
          "description": "A collection of links to related resources.",
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      }
    },
    "Link": {
      "type": "object",
      "required": [
        "href",
        "rel",
        "method"
      ],
      "properties": {
        "href": {
          "type": "string",
          "description": "The associated relative URL."
        },
        "rel": {
          "type": "string",
          "description": "Specifies the relationship between the current document and the linked document/resource."
        },
        "method": {
          "type": "string",
          "description": "The method to access related resources."
        }
      }
    }
  }
}