{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.Consumption/ConsumptionCost/schema.json", "title": "Smart Data Models - Consumption Cost", "description": "Information of energy consumed and its cost by consumption point", "modelTags": "", "derivedFrom": "", "license": "https://smart-data-models.github.io/dataModel.Consumption/ConsumptionCost/LICENSE.md", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "description": "Property. NGSI entity type. It has to be ConsumptionCost", "enum": [ "ConsumptionCost" ] }, "year": { "type": "string", "pattern": "(2[0-9]{3})", "description": "Property. The year to which the entity refers. Format YYYY, ex:'2022'" }, "month": { "type": "string", "pattern": "(0[1-9]|1[0-2])", "description": "Property. The month to which the entity refers. Format MM, ex:'07'" }, "consumptionPoint": { "description": "Relationship. Consumption point identifier which to entity refers", "oneOf": [ { "type": "string", "format": "uuid" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" } ] }, "energyConsumedAndCost": { "type": "array", "description": "Property. Array with energy consumption and cost by type of energy", "items": [ { "type": "object", "description": "Property. Entity with the energy consumed and its cost by type of energy.", "properties": { "id": { "type": "string", "description": "Property. Identifier of consumption lecture entity. For example, CUPS in Spain.", "items": { "oneOf": [ { "type": "string", "format": "uri" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" } ] } }, "energyType": { "type": "string", "description": "Property. Type of energy." }, "supplyName": { "type": "string", "description": "Property. Name of the supply company." }, "energyConsumed": { "type": "object", "description": "Property. Amount of energy consumed.", "properties": { "measurementUnit": { "description": "Property. Measurement unit used. Units:'[MTQ, KWH]'. Official list at https://unece.org/trade/documents/2021/06/uncefact-rec20", "oneOf": [ { "type": "string", "enum": [ "MTQ" ] }, { "type": "string", "enum": [ "KWH" ] } ] }, "value": { "type": "number", "description": "Property. Value of the amount of the energy consumed." } } }, "totalCost": { "type": "object", "description": "Property. Amount of cost by energy consumed.", "properties": { "currency": { "type": "string", "description": "Property. Currency names in ISO-4217 format. Enum:'[EUR, USD, GPD, JPY]'. Official list https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list_one.xls", "enum": [ "EUR", "GPD", "JPY", "USD" ] }, "value": { "type": "number", "description": "Property. Value of the amount of the cost for energy consumed." } } } } } ], "minItems": 1 } } } ], "required": [ "id", "type", "consumptionPoint", "energyConsumedAndCost" ] }