{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shepherd-vet/json-schema/shepherd-vet-restcollection-model-base-open-api-client-balance-controller-client-clinic-outstanding-balance-aging-schema.json",
  "title": "RESTCollectionModelBase_OpenApiClientBalanceController.ClientClinicOutstandingBalanceAging",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shepherd-vet-clientbalance-api-openapi.yml#/components/schemas/RESTCollectionModelBase_OpenApiClientBalanceController.ClientClinicOutstandingBalanceAging",
  "type": "object",
  "properties": {
    "embed": {
      "type": "string"
    },
    "item": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenApiClientBalanceController.ClientClinicOutstandingBalanceAging"
      }
    },
    "page": {
      "format": "int32",
      "type": "integer"
    },
    "recordsPerPage": {
      "format": "int32",
      "type": "integer"
    },
    "searchQuery": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "totalRecords": {
      "format": "int32",
      "type": "integer"
    }
  },
  "$defs": {
    "OpenApiClientBalanceController.ClientClinicOutstandingBalanceAging": {
      "description": "The Client Clinic Outstanding Balance Aging REST Model.",
      "type": "object",
      "properties": {
        "clientId": {
          "format": "uuid",
          "description": "The unique identifier representing the related Client entity.",
          "type": "string"
        },
        "credit": {
          "format": "double",
          "description": "Client's credit balance amount.",
          "type": "number"
        },
        "current": {
          "format": "double",
          "description": "Outstanding balance changes in the last 30 days from the ToDate. If a ToDate is not set a default will\nbe used which is The current timestamp in UTC.",
          "type": "number"
        },
        "open120": {
          "format": "double",
          "description": "Outstanding balance changes made more than 120 days ago from the ToDate. If a ToDate is not set a\ndefault will be used which is The current timestamp in UTC.",
          "type": "number"
        },
        "open30": {
          "format": "double",
          "description": "Outstanding balance changes made more than 30 and less than 60 days ago from the ToDate. If a ToDate is\nnot set a default will be used which is The current timestamp in UTC.",
          "type": "number"
        },
        "open60": {
          "format": "double",
          "description": "Outstanding balance changes made more than 60 and less than 90 days ago from the ToDate. If a ToDate is\nnot set a default will be used which is The current timestamp in UTC.",
          "type": "number"
        },
        "open90": {
          "format": "double",
          "description": "Outstanding balance changes made more than 90 and less than 120 days ago from the ToDate. If a ToDate is\nnot set a default will be used which is The current timestamp in UTC.",
          "type": "number"
        },
        "outstandingBalance": {
          "format": "double",
          "description": "Total amount owed by the client, calculated as the sum of all invoice items minus payments applied toward those invoices.",
          "type": "number"
        },
        "totalDue": {
          "format": "double",
          "description": "Net amount owed by the client, calculated as the sum of unpaid invoices adjusted for pending credits.\nA negative value indicates an overpayment, shown as the client's credit balance.",
          "type": "number"
        }
      }
    }
  }
}