{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-account-dto-schema.json",
  "title": "Account",
  "description": "Represent a customer account such as 'Telenor Sverige AB'.",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telenor-sverige-safe-external-openapi.yml#/components/schemas/AccountDto",
  "type": "object",
  "properties": {
    "objectId": {
      "type": "integer",
      "description": "Unique identifier for the account",
      "format": "int64"
    },
    "organizationId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The organization number, can be both swedish or foreign"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of the account"
    },
    "kurtId": {
      "type": [
        "string",
        "null"
      ],
      "description": "KurtId for the account, if applicable"
    },
    "accountId": {
      "type": [
        "string",
        "null"
      ],
      "description": "AccountId for the account"
    },
    "dataQualityStatus": {
      "type": [
        "string",
        "null"
      ],
      "description": "Data quality status for the account"
    },
    "status": {
      "$ref": "#/$defs/EntityStatus"
    },
    "businessType": {
      "type": [
        "string",
        "null"
      ],
      "description": "The business type for the account"
    },
    "legalStatus": {
      "type": [
        "string",
        "null"
      ],
      "description": "Legal status for the account"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Type for the account"
    },
    "typeCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Type code for the account"
    },
    "baseCountry": {
      "type": [
        "string",
        "null"
      ],
      "description": "The base country for the account"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "EntityStatus": {
      "enum": [
        "Active",
        "Inactive",
        "Obsolete"
      ],
      "type": "string",
      "description": "Represents the status of a number of resources such Accounts, Sites, etc."
    }
  }
}