{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-service-details-schema.json",
  "title": "ServiceDetails",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telenor-sverige-product-inventory-openapi.yml#/components/schemas/ServiceDetails",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the product inventory item."
    },
    "productOfferingId": {
      "type": "integer",
      "description": "The ID of the product offering from Product Catalog.",
      "format": "int32"
    },
    "state": {
      "type": "string",
      "description": "The state in which the product inventory item is.",
      "enum": [
        "TO_BE_INSTALLED",
        "INSTALLED",
        "TO_BE_DEINSTALLED",
        "DEINSTALLED",
        "CANCELLED",
        "TO_BE_CHANGED",
        "TO_BE_DOWNGRADED",
        "TO_BE_MIGRATED",
        "TO_BE_MOVED",
        "TO_BE_UPGRADED",
        "OTHER"
      ]
    },
    "name": {
      "type": "string",
      "description": "The name of the product inventory item."
    },
    "installedDate": {
      "type": "string",
      "description": "The date when the product was installed on the site.",
      "format": "date-time"
    },
    "partNumber": {
      "type": "string",
      "description": "The part number associated to the installation."
    },
    "modelNumber": {
      "type": "string",
      "description": "The model number associated to the installation."
    },
    "contractLength": {
      "type": "string",
      "description": "The contract length of the product instance in months."
    },
    "installedInstanceName": {
      "type": "string",
      "description": "The name given to the installed instance."
    },
    "slaContractType": {
      "type": "string",
      "description": "The SLA contract type of the product instance."
    },
    "luNumber": {
      "type": "string",
      "description": "The LU number associated to product instance."
    },
    "vpnAttributes": {
      "$ref": "#/$defs/VpnAttributes"
    },
    "siteId": {
      "type": "string",
      "description": "The ID of the site to which the product is associated."
    },
    "assetTag": {
      "type": "string",
      "description": "The label of a hardware device. Usually present on the back of the device."
    },
    "serialNumber": {
      "type": "string",
      "description": "The serial number of the device."
    }
  },
  "$defs": {
    "VpnAttributes": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the VPN."
        },
        "name": {
          "type": "string",
          "description": "The name of the VPN."
        }
      },
      "description": "The VPN information. Applicable for VPN products."
    }
  }
}