{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-prior-years-activity-with-keys-schema.json",
  "title": "data_prior_years_activity_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-gl-openapi.yml#/components/schemas/data_prior_years_activity_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_prior_years_activity"
    }
  ],
  "$defs": {
    "data_prior_years_activity": {
      "required": [
        "GLCo",
        "FYEMO",
        "GLAcct",
        "BeginBal",
        "NetAdj",
        "KeyID"
      ],
      "type": "object",
      "properties": {
        "GLCo": {
          "type": "integer",
          "description": "General Ledger Company (Primary Key Component)"
        },
        "FYEMO": {
          "type": "string",
          "description": "Fiscal Year End Month (Primary Key Component)",
          "format": "date-time"
        },
        "GLAcct": {
          "maxLength": 20,
          "type": "string",
          "description": "General Ledger Account (Primary Key Component)"
        },
        "BeginBal": {
          "type": "string",
          "description": "Beginning Balance (numeric 38,2)"
        },
        "NetAdj": {
          "type": "string",
          "description": "Net Adjustment (numeric 38,2)"
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ]
        },
        "UniqueAttchID": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "KeyID": {
          "type": "integer",
          "description": "Record Identifier (Internal Primary Key)"
        },
        "GLBLWithFYEMO": {
          "type": "array",
          "items": {
            "required": [
              "Mth",
              "NetActivity",
              "KeyID"
            ],
            "type": "object",
            "properties": {
              "Mth": {
                "type": "string",
                "description": "Month (Primary Key Component)",
                "format": "date-time"
              },
              "NetActivity": {
                "type": "string",
                "description": "Net Activity for the month (numeric 38,2)"
              },
              "Debits": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Total Debits (numeric 38,2)"
              },
              "Credits": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Total Credits (numeric 38,2)"
              },
              "UniqueAttchID": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid"
              },
              "KeyID": {
                "type": "integer",
                "description": "Record Identifier (Internal Primary Key)"
              },
              "__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."
              }
            }
          },
          "description": "Monthly General Ledger Balances associated with the FYE"
        },
        "__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."
        }
      },
      "description": "General Ledger Year Balance (GLYB) Cache Schema"
    }
  }
}