{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sherweb-com/json-schema/sherweb-com-customer-platform-meter-usages-dto-schema.json",
  "title": "CustomerPlatformMeterUsagesDto",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sherweb-com-service-provider-api-beta-api-openapi.yml#/components/schemas/CustomerPlatformMeterUsagesDto",
  "required": [
    "customerId",
    "meterUsages",
    "platformId"
  ],
  "type": "object",
  "properties": {
    "customerId": {
      "type": "string",
      "format": "uuid"
    },
    "platformId": {
      "type": "string",
      "format": "uuid"
    },
    "meterUsages": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MeterUsageDto"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "MeterUsageDto": {
      "required": [
        "availableQuantities",
        "consumedQuantities",
        "meterId",
        "totalQuantities"
      ],
      "type": "object",
      "properties": {
        "meterId": {
          "minLength": 1,
          "type": "string"
        },
        "totalQuantities": {
          "type": "integer",
          "format": "int64"
        },
        "consumedQuantities": {
          "type": "integer",
          "format": "int64"
        },
        "availableQuantities": {
          "type": "integer",
          "format": "int64",
          "readOnly": true
        }
      },
      "additionalProperties": false
    }
  }
}