{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AccountResponse",
  "title": "AccountResponse",
  "description": "Successful response for `/api/vlm/account`.",
  "type": "object",
  "properties": {
    "isActive": {
      "description": "Defines if the account is active (`true`) or not (`false`).",
      "type": "boolean"
    },
    "id": {
      "description": "ID of the account.",
      "type": "string"
    },
    "name": {
      "description": "Trading name.",
      "type": "string"
    },
    "accountName": {
      "description": "Account name.",
      "type": "string"
    },
    "lv": {
      "type": "string",
      "description": "Level.",
      "nullable": true,
      "deprecated": true
    },
    "isOperating": {
      "description": "Defines if the account is in production (`true`) or not (`false`).",
      "type": "boolean"
    },
    "defaultUrl": {
      "deprecated": true,
      "description": "Default URL.",
      "type": "string",
      "nullable": true
    },
    "district": {
      "description": "Neighborhood of the person assigned as main contact of the store.",
      "type": "string",
      "nullable": true
    },
    "country": {
      "description": "Country of the person assigned as main contact of the store.",
      "type": "string",
      "nullable": true
    },
    "complement": {
      "description": "Additional address of the person assigned as main contact of the store.",
      "type": "string",
      "nullable": true
    },
    "companyName": {
      "description": "Company name.",
      "type": "string"
    },
    "cnpj": {
      "description": "CNPJ (Corporate Tax ID) of account.",
      "type": "string",
      "nullable": true
    },
    "haveParentAccount": {
      "description": "Defines if the account has a parent account (`true`) or not (`false`).",
      "type": "boolean"
    },
    "parentAccountId": {
      "description": "ID of the parent account.",
      "type": "string",
      "nullable": true
    },
    "parentAccountName": {
      "description": "Name of the parent account.",
      "type": "string",
      "nullable": true
    },
    "city": {
      "description": "City of the person assigned as main contact of the store.",
      "type": "string",
      "nullable": true
    },
    "address": {
      "description": "Address of the person assigned as main contact of the store.",
      "type": "string",
      "nullable": true
    },
    "logo": {
      "description": "Filename of the account's logotype.",
      "type": "string",
      "nullable": true
    },
    "hasLogo": {
      "description": "Defines if the store's logotype has been uploaded (`true`) or not (`false`).",
      "type": "boolean"
    },
    "number": {
      "description": "Number of the address of the person assigned as main contact of the store.",
      "type": "string",
      "nullable": true
    },
    "postalCode": {
      "description": "Zip code of the person assigned as main contact of the store.",
      "type": "string",
      "nullable": true
    },
    "state": {
      "description": "State or province of the person assigned as main contact of the store.",
      "type": "string",
      "nullable": true
    },
    "telephone": {
      "description": "Telephone number of the person assigned as main contact of the store.",
      "type": "string"
    },
    "tradingName": {
      "description": "Trading name.",
      "type": "string"
    },
    "licenses": {
      "description": "Licenses of the account.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LicenseItems"
      }
    },
    "sponsor": {
      "description": "Object with information about the sponsor user.",
      "type": "object",
      "properties": {
        "name": {
          "description": "Name of the sponsor user.",
          "type": "string"
        },
        "email": {
          "description": "Email of the sponsor user.",
          "type": "string"
        },
        "phone": {
          "description": "Phone of the sponsor user.",
          "type": "string"
        }
      }
    },
    "contact": {
      "type": "object",
      "description": "Information about the person assigned as main contact of the store.",
      "properties": {
        "name": {
          "description": "Name of the person assigned as main contact of the store.",
          "type": "string"
        },
        "email": {
          "description": "Email of the person assigned as main contact of the store.",
          "type": "string"
        },
        "phone": {
          "description": "Telephone number of the person assigned as main contact of the store.",
          "type": "string"
        }
      }
    },
    "operationDate": {
      "description": "Date when the account went into production.",
      "type": "string",
      "nullable": true,
      "format": "date-time"
    },
    "inactivationDate": {
      "description": "Date when the account was deactivated.",
      "type": "string",
      "nullable": true,
      "format": "date-time"
    },
    "creationDate": {
      "description": "Date when the account was created.",
      "type": "string",
      "format": "date-time"
    },
    "hosts": {
      "description": "Hosts of all stores.",
      "type": "array",
      "items": {
        "type": "string",
        "description": "Host address."
      }
    },
    "sites": {
      "description": "Array of objects representing each store.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SiteItems"
      }
    },
    "appKey": {
      "description": "Deprecated. Check the `appKeys` object for all appKeys.",
      "type": "object",
      "properties": {
        "token": {
          "type": "string",
          "description": "Token.",
          "nullable": true,
          "deprecated": true
        },
        "name": {
          "type": "string",
          "description": "Token name.",
          "nullable": true,
          "deprecated": true
        }
      },
      "deprecated": true
    },
    "appKeys": {
      "description": "Array of application keys.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AppKeyItems"
      }
    }
  }
}