{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-equipment-depreciation-with-keys-schema.json",
  "title": "data_equipment_depreciation_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-em-openapi.yml#/components/schemas/data_equipment_depreciation_withKeys",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "__ryvitKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of key paths that can be used to retrieve this object."
        },
        "__modifiedUTC": {
          "type": "string",
          "description": "UTC timestamp of when this object was last modified in the cache."
        }
      }
    },
    {
      "$ref": "#/$defs/data_equipment_depreciation"
    }
  ],
  "$defs": {
    "data_equipment_depreciation": {
      "required": [
        "EMCo",
        "Equipment",
        "Asset",
        "DeprMethod",
        "TtlToDepr",
        "GLCo",
        "UseResidualVal",
        "KeyID"
      ],
      "type": "object",
      "properties": {
        "EMCo": {
          "type": "integer",
          "description": "Equipment Management Company."
        },
        "Equipment": {
          "maxLength": 10,
          "type": "string",
          "description": "Equipment ID."
        },
        "Asset": {
          "maxLength": 20,
          "type": "string",
          "description": "Asset ID."
        },
        "Description": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": "Asset Description."
        },
        "DeprMethod": {
          "maxLength": 1,
          "type": "string",
          "description": "Depreciation Method."
        },
        "DBFactor": {
          "pattern": "^[-+]?[0-9]{1,2}(?:.[0-9]{0,6})?$",
          "type": [
            "string",
            "null"
          ],
          "description": "Double-Declining Balance Factor."
        },
        "FirstMonth": {
          "type": [
            "string",
            "null"
          ],
          "description": "Month depreciation started. Format: YYYY-MM-01."
        },
        "NoMonthsToDepr": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Number of Months to Depreciate."
        },
        "TtlToDepr": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": "Total amount to be depreciated."
        },
        "MonthDisposed": {
          "type": [
            "string",
            "null"
          ],
          "description": "Month asset was disposed. Format: YYYY-MM-01."
        },
        "PurchasePrice": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": "Original purchase price."
        },
        "ResidualValue": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": "Asset's residual or salvage value."
        },
        "SalePrice": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": "Sale price of the asset if disposed."
        },
        "AccumDeprAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": "Accumulated Depreciation Account."
        },
        "DeprExpAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": "Depreciation Expense Account."
        },
        "DeprAssetAcct": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": "Depreciable Asset Account."
        },
        "UniqueAttchID": {
          "maxLength": 36,
          "minLength": 36,
          "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
          "type": [
            "string",
            "null"
          ],
          "description": "Unique Identifier for attachments."
        },
        "GLCo": {
          "type": "integer",
          "description": "General Ledger Company."
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ],
          "description": "Asset notes."
        },
        "UseResidualVal": {
          "maxLength": 1,
          "type": "string",
          "description": "Flag to indicate if residual value is used."
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "DeprStartDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Date Depreciation Started. Format: YYYY-MM-DD"
        },
        "DateDisposed": {
          "type": [
            "string",
            "null"
          ],
          "description": "Date asset was disposed. Format: YYYY-MM-DD"
        },
        "__custom_fields": {
          "type": "object",
          "description": "This property will be added if there are any custom fields defined for this object in Vista. Each custom field will be a property of this object."
        }
      }
    }
  }
}