{
  "openapi": "3.0.1",
  "info": {
    "title": "MyAPI",
    "version": "v1"
  },
  "paths": {
    "/v1/activations/license-entitlement/{id}": {
      "get": {
        "tags": [
          "Activation"
        ],
        "summary": "Get all activations in a License Entitlement",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivationDTOPaginatedData"
                }
              }
            }
          }
        }
      }
    },
    "/v1/activations": {
      "post": {
        "tags": [
          "Activation"
        ],
        "summary": "Create an activation",
        "description": "To add Activations to a License Entitlement, its Measure Unit has to allow activations.\r\n\r\nActivation values need to be unique within a License Entitlement.\r\n\r\nThe number of active activations you can add to a License Entitlement is controlled by its Treshold field.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivationCreationModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns created License.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivationDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/activations/activation": {
      "put": {
        "tags": [
          "Activation"
        ],
        "summary": "Update an activation by value, name, and license",
        "description": "The number of active Activations you can add to a License Entitlement is controlled by its Threshold field.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivationUpdateModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Activation was update successfully"
          }
        }
      }
    },
    "/v1/activations/activation/delete": {
      "post": {
        "tags": [
          "Activation"
        ],
        "summary": "Delete an activation by value, name, and license",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivationCreationModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Activation was deleted successfully"
          }
        }
      }
    },
    "/v1/authorization": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Get an access token",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTokenModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns created authorization entry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizationDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/authorization/refresh": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Refresh an access token",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns created authorization entry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizationDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/consumption-periods": {
      "get": {
        "tags": [
          "ConsumptionPeriod"
        ],
        "summary": "Get all consumption periods",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConsumptionPeriodDTO"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/customers": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Get all customers",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerDTOPaginatedData"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Create a customer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCreationModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns created customer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customers/customer/{id}": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Get a customer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Customer"
        ],
        "summary": "Update a customer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerUpdateModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Customer was updated successfully"
          }
        }
      }
    },
    "/v1/entitlements": {
      "get": {
        "tags": [
          "Entitlements"
        ],
        "summary": "Get all entitlements",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntitlementDTOPaginatedData"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Entitlements"
        ],
        "summary": "Create an entitlement",
        "description": "Entitlement name has to be unique.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntitlementCreationModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns created entitlement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntitlementDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/entitlements/entitlement/{id}": {
      "put": {
        "tags": [
          "Entitlements"
        ],
        "summary": "Update an entitlement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntitlementUpdateModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Updated entitlement successfully"
          }
        }
      },
      "delete": {
        "tags": [
          "Entitlements"
        ],
        "summary": "Delete an entitlement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted entitlement successfully"
          }
        }
      }
    },
    "/v1/licenses": {
      "get": {
        "tags": [
          "License"
        ],
        "summary": "Get all licenses",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "productId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "customerId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "customerExternalId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hideInvalid",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseDTOPaginatedData"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "License"
        ],
        "summary": "Create a license",
        "description": "If `duration` (measured in days) is provided, it must be greater or equal to 0. A duration of value 0 makes the license perpetual.\r\n\r\nProviding a `userId` and omitting the customerId field creates a new blank Customer with its externalId set to `userId`",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLicenseModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns created License.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/licenses/license/{id}": {
      "get": {
        "tags": [
          "License"
        ],
        "summary": "Get a license",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseDTO"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "License"
        ],
        "summary": "Update a license",
        "description": "Expiration date needs to be after Registration date.\r\n\r\nList of notes provided will replace the existing list. You do not have to provide an Id for new Notes.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLicenseModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "License was updated successfully"
          }
        }
      }
    },
    "/v1/licenses/license/recreated": {
      "post": {
        "tags": [
          "License"
        ],
        "summary": "Get recreated license",
        "description": "Used to help manage the scenario where a license has ended and been recreated (renewed).\r\nIf the posted licenseKey belongs to a license that has been recreated,\r\nthis endpoint returns the recreated license key. If a chain of recreated licenses exists\r\nthis returns the latest valid license. You can only use this with a license that has ended\r\nin the past 10 days.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LicenseValidationModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseValidationModel"
                }
              }
            }
          }
        }
      }
    },
    "/v1/licenses/license/validate": {
      "post": {
        "tags": [
          "License"
        ],
        "summary": "Validate a license by key",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LicenseValidationModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseValidationDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/licenses/activation": {
      "get": {
        "tags": [
          "License"
        ],
        "summary": "Get licenses for a product by activation value",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "productId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "activationValue",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hideInvalid",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseDTOPaginatedData"
                }
              }
            }
          }
        }
      }
    },
    "/v1/licenses/recreate": {
      "post": {
        "tags": [
          "License"
        ],
        "summary": "Recreate a license",
        "description": "Creates a new license with the same parameters as a previous license.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecreateLicenseModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns created License.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/licenses/license/activation": {
      "post": {
        "tags": [
          "License"
        ],
        "summary": "Check if a license with a specific key and activation exists",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetLicensesByActivationParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns specified license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/licenses/license/actual": {
      "put": {
        "tags": [
          "License"
        ],
        "summary": "Update the actual value of a license",
        "description": "New actual value has to be higher than the previous value.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateActualModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "License was updated successfully"
          }
        }
      }
    },
    "/v1/license-entitlements/plan/{planId}": {
      "post": {
        "tags": [
          "LicenseEntitlements"
        ],
        "summary": "Add a new license-entitlement to all licenses in a Plan",
        "parameters": [
          {
            "name": "planId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LicenseCreation"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": ""
          }
        }
      }
    },
    "/v1/license-entitlements/license-entitlement/{licenseEntitlementId}": {
      "get": {
        "tags": [
          "LicenseEntitlements"
        ],
        "summary": "Get a license-entitlement",
        "parameters": [
          {
            "name": "licenseEntitlementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseEntitlementDTO"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "LicenseEntitlements"
        ],
        "summary": "Change a license-entitlement's threshold",
        "parameters": [
          {
            "name": "licenseEntitlementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLicenseEntitlementModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": ""
          }
        }
      }
    },
    "/v1/license-entitlements": {
      "get": {
        "tags": [
          "LicenseEntitlements"
        ],
        "summary": "Get all license-entitlements in a license",
        "parameters": [
          {
            "name": "licenseId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LicenseEntitlementDTO"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/license-entitlements/license-entitlement/{licenseEntitlementId}/refresh": {
      "put": {
        "tags": [
          "LicenseEntitlements"
        ],
        "summary": "Manually refresh a license-entitlement",
        "parameters": [
          {
            "name": "licenseEntitlementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          }
        }
      }
    },
    "/v1/activity-logs": {
      "get": {
        "tags": [
          "Logs"
        ],
        "summary": "Get all activity logs.",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "licenseId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "action",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageLogDTOPaginatedData"
                }
              }
            }
          }
        }
      }
    },
    "/v1/plans": {
      "get": {
        "tags": [
          "Plan"
        ],
        "summary": "Get all plans",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "productId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanDTOPaginatedData"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Plan"
        ],
        "summary": "Create a plan",
        "description": "Plan 'name' has to be unique.\r\n\r\nThe `duration` parameter specifies the validity period of the plan in days.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanCreationModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns created plan.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/plans/plan/{id}": {
      "get": {
        "tags": [
          "Plan"
        ],
        "summary": "Get a plan",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanDTO"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Plan"
        ],
        "summary": "Update a plan",
        "description": "Plan 'name' has to be unique.\r\n\r\nThe `duration` parameter specifies the validity period of the plan in days.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanUpdateModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Plan was updated successfully"
          }
        }
      }
    },
    "/v1/plans/plan": {
      "get": {
        "tags": [
          "Plan"
        ],
        "summary": "Find a plan in a specific product by name",
        "parameters": [
          {
            "name": "productId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "plan",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/plan-entitlements/plan/{planId}": {
      "get": {
        "tags": [
          "PlanEntitlement"
        ],
        "summary": "Get plan entitlement by plan",
        "parameters": [
          {
            "name": "planId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PlanEntitlementEntitlementDTO"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/plan-entitlements": {
      "post": {
        "tags": [
          "PlanEntitlement"
        ],
        "summary": "Create a plan entitlement",
        "description": "Threshold has to be greater than or equal to 0. An entitlement can only be included in a plan once. The entitlements specified must not be deactivated.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanEntitlementCreationModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns created plan entitlement.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanEntitlementEntitlementDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/plan-entitlements/plan-entitlement/{id}": {
      "put": {
        "tags": [
          "PlanEntitlement"
        ],
        "summary": "Update a plan entitlement",
        "description": "Threshold has to be greater than or equal to 0. An entitlement can only be included in a plan once. The entitlement specified must not be deactivated.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanEntitlementUpdateModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Plan was updated successfully"
          }
        }
      },
      "delete": {
        "tags": [
          "PlanEntitlement"
        ],
        "summary": "Delete a plan entitlement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/products": {
      "get": {
        "tags": [
          "Product"
        ],
        "summary": "Get all products",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductDTOPaginatedData"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Product"
        ],
        "summary": "Create a product",
        "description": "Product name has to be unique.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductCreationModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns created product.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductDTO"
                }
              }
            }
          }
        }
      }
    },
    "/v1/products/product/{id}": {
      "get": {
        "tags": [
          "Product"
        ],
        "summary": "Get a product",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductDTO"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Product"
        ],
        "summary": "Update a product",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductUpdateModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Product was updated successfully"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ActionModel": {
        "required": [
          "created",
          "group",
          "id",
          "name",
          "type",
          "updated"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "group": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "type": "string"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "updated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ActivationCreationModel": {
        "required": [
          "activationValue",
          "entitlementName",
          "licenseKey"
        ],
        "type": "object",
        "properties": {
          "activationValue": {
            "minLength": 1,
            "type": "string"
          },
          "licenseKey": {
            "type": "string",
            "format": "uuid"
          },
          "entitlementName": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ActivationDTO": {
        "required": [
          "active",
          "id",
          "value"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActivationDTOPaginatedData": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivationDTO"
            },
            "nullable": true
          },
          "pagination": {
            "$ref": "#/components/schemas/PageDataModel"
          }
        },
        "additionalProperties": false
      },
      "ActivationUpdateModel": {
        "type": "object",
        "properties": {
          "activationValue": {
            "type": "string",
            "nullable": true
          },
          "licenseKey": {
            "type": "string",
            "format": "uuid"
          },
          "entitlementName": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "AuthorizationDTO": {
        "required": [
          "accessToken",
          "expirationDate",
          "refreshToken"
        ],
        "type": "object",
        "properties": {
          "expirationDate": {
            "type": "string",
            "format": "date-time"
          },
          "accessToken": {
            "type": "string",
            "format": "uuid"
          },
          "refreshToken": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "ConsumptionPeriodDTO": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "CreateLicenseModel": {
        "required": [
          "planName",
          "productId"
        ],
        "type": "object",
        "properties": {
          "planName": {
            "minLength": 1,
            "type": "string"
          },
          "productId": {
            "type": "string",
            "format": "uuid"
          },
          "customerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "regDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "duration": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "previousLicenseId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerCreationModel": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerDTO": {
        "required": [
          "created",
          "description",
          "externalId",
          "id",
          "licenseCount",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "minLength": 1,
            "type": "string"
          },
          "externalId": {
            "minLength": 1,
            "type": "string"
          },
          "licenseCount": {
            "type": "integer",
            "format": "int32"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CustomerDTOPaginatedData": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerDTO"
            },
            "nullable": true
          },
          "pagination": {
            "$ref": "#/components/schemas/PageDataModel"
          }
        },
        "additionalProperties": false
      },
      "CustomerUpdateModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EntitlementCreationModel": {
        "required": [
          "activationsEnabled",
          "entitlementName"
        ],
        "type": "object",
        "properties": {
          "entitlementName": {
            "minLength": 1,
            "type": "string"
          },
          "consumptionPeriodId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "activationsEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "EntitlementDTO": {
        "required": [
          "activationsEnabled",
          "consumptionPeriod",
          "deactivated",
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "productId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "consumptionPeriod": {
            "$ref": "#/components/schemas/ConsumptionPeriodDTO"
          },
          "activationsEnabled": {
            "type": "boolean"
          },
          "deactivated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "EntitlementDTOPaginatedData": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntitlementDTO"
            },
            "nullable": true
          },
          "pagination": {
            "$ref": "#/components/schemas/PageDataModel"
          }
        },
        "additionalProperties": false
      },
      "EntitlementUpdateModel": {
        "required": [
          "deactivated"
        ],
        "type": "object",
        "properties": {
          "deactivated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GetLicensesByActivationParams": {
        "required": [
          "activationValue",
          "licenseKey"
        ],
        "type": "object",
        "properties": {
          "licenseKey": {
            "type": "string",
            "format": "uuid"
          },
          "activationValue": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetTokenModel": {
        "required": [
          "userToken"
        ],
        "type": "object",
        "properties": {
          "userToken": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "GroupModel": {
        "required": [
          "created",
          "id",
          "name",
          "tenantId",
          "updated"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserModel"
            },
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionModel"
            },
            "nullable": true
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "updated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "LicenseCreation": {
        "type": "object",
        "properties": {
          "entitlementId": {
            "type": "string",
            "format": "uuid"
          },
          "threshold": {
            "type": "number",
            "format": "float",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LicenseDTO": {
        "required": [
          "deactivated",
          "expirationDate",
          "id",
          "key",
          "plan",
          "registrationDate",
          "valid"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "format": "uuid"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time"
          },
          "registrationDate": {
            "type": "string",
            "format": "date-time"
          },
          "deactivated": {
            "type": "boolean"
          },
          "plan": {
            "$ref": "#/components/schemas/LicensePlanDTO"
          },
          "previousLicenseId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "nextLicenseId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "valid": {
            "minLength": 1,
            "type": "string"
          },
          "customer": {
            "$ref": "#/components/schemas/CustomerDTO"
          },
          "licenseEntitlements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LicenseEntitlementDTO"
            },
            "nullable": true
          },
          "notes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LicenseNotesDTO"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LicenseDTOPaginatedData": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LicenseDTO"
            },
            "nullable": true
          },
          "pagination": {
            "$ref": "#/components/schemas/PageDataModel"
          }
        },
        "additionalProperties": false
      },
      "LicenseEntitlementDTO": {
        "required": [
          "activations",
          "actual",
          "entitlement",
          "id",
          "refreshDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "entitlement": {
            "$ref": "#/components/schemas/EntitlementDTO"
          },
          "threshold": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "actual": {
            "type": "number",
            "format": "float"
          },
          "refreshDate": {
            "type": "string",
            "format": "date-time"
          },
          "activations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivationDTO"
            }
          }
        },
        "additionalProperties": false
      },
      "LicenseNotesDTO": {
        "required": [
          "content",
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "content": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "LicenseNotesUpdateModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LicensePlanDTO": {
        "required": [
          "cost",
          "deactivated",
          "description",
          "duration",
          "id",
          "name",
          "product"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "minLength": 1,
            "type": "string"
          },
          "product": {
            "$ref": "#/components/schemas/ProductDTO"
          },
          "cost": {
            "type": "number",
            "format": "float"
          },
          "deactivated": {
            "type": "boolean"
          },
          "duration": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LicenseValidationDTO": {
        "required": [
          "deactivated",
          "expirationDate",
          "id",
          "key",
          "plan",
          "registrationDate",
          "valid"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "format": "uuid"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time"
          },
          "registrationDate": {
            "type": "string",
            "format": "date-time"
          },
          "deactivated": {
            "type": "boolean"
          },
          "plan": {
            "$ref": "#/components/schemas/LicensePlanDTO"
          },
          "previousLicenseId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "nextLicenseId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "valid": {
            "minLength": 1,
            "type": "string"
          },
          "licenseEntitlements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LicenseEntitlementDTO"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LicenseValidationModel": {
        "required": [
          "licenseKey"
        ],
        "type": "object",
        "properties": {
          "licenseKey": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "PageDataModel": {
        "required": [
          "currentPage",
          "itemCount",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "itemCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "currentPage": {
            "type": "integer",
            "format": "int32"
          },
          "nextPage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "previousPage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PermissionModel": {
        "required": [
          "created",
          "updated"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "action": {
            "$ref": "#/components/schemas/ActionModel"
          },
          "permit": {
            "type": "boolean"
          },
          "role": {
            "$ref": "#/components/schemas/RoleModel"
          },
          "group": {
            "$ref": "#/components/schemas/GroupModel"
          },
          "user": {
            "$ref": "#/components/schemas/UserModel"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "updated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PlanCreationModel": {
        "required": [
          "cost",
          "duration",
          "name",
          "productId"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "cost": {
            "type": "number",
            "format": "float"
          },
          "productId": {
            "type": "string",
            "format": "uuid"
          },
          "duration": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PlanDTO": {
        "required": [
          "cost",
          "deactivated",
          "description",
          "duration",
          "id",
          "name",
          "product"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "minLength": 1,
            "type": "string"
          },
          "product": {
            "$ref": "#/components/schemas/ProductDTO"
          },
          "cost": {
            "type": "number",
            "format": "float"
          },
          "deactivated": {
            "type": "boolean"
          },
          "duration": {
            "type": "integer",
            "format": "int32"
          },
          "planEntitlements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanEntitlementEntitlementDTO"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlanDTOPaginatedData": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanDTO"
            },
            "nullable": true
          },
          "pagination": {
            "$ref": "#/components/schemas/PageDataModel"
          }
        },
        "additionalProperties": false
      },
      "PlanEntitlementCreationModel": {
        "required": [
          "entitlementId",
          "planId"
        ],
        "type": "object",
        "properties": {
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "threshold": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "entitlementId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "PlanEntitlementEntitlementDTO": {
        "required": [
          "entitlement",
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "threshold": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "entitlement": {
            "$ref": "#/components/schemas/EntitlementDTO"
          }
        },
        "additionalProperties": false
      },
      "PlanEntitlementUpdateModel": {
        "type": "object",
        "properties": {
          "threshold": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "entitlementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlanUpdateModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "cost": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "deactivated": {
            "type": "boolean",
            "nullable": true
          },
          "duration": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProductCreationModel": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ProductDTO": {
        "required": [
          "deactivated",
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "deactivated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ProductDTOPaginatedData": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductDTO"
            },
            "nullable": true
          },
          "pagination": {
            "$ref": "#/components/schemas/PageDataModel"
          }
        },
        "additionalProperties": false
      },
      "ProductUpdateModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "deactivated": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecreateLicenseModel": {
        "required": [
          "regDate"
        ],
        "type": "object",
        "properties": {
          "previousLicenseId": {
            "type": "string",
            "format": "uuid"
          },
          "regDate": {
            "type": "string",
            "format": "date-time"
          },
          "duration": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "keepActivations": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RefreshTokenModel": {
        "required": [
          "refreshToken"
        ],
        "type": "object",
        "properties": {
          "refreshToken": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "RoleModel": {
        "required": [
          "created",
          "id",
          "name",
          "updated"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionModel"
            },
            "nullable": true
          },
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserModel"
            },
            "nullable": true
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "updated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "UpdateActualModel": {
        "required": [
          "actual",
          "entitlementName",
          "licenseKey"
        ],
        "type": "object",
        "properties": {
          "actual": {
            "type": "integer",
            "format": "int32"
          },
          "licenseKey": {
            "type": "string",
            "format": "uuid"
          },
          "entitlementName": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UpdateLicenseEntitlementModel": {
        "type": "object",
        "properties": {
          "actual": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "threshold": {
            "type": "number",
            "format": "float",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateLicenseModel": {
        "type": "object",
        "properties": {
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "registrationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "deactivated": {
            "type": "boolean",
            "nullable": true
          },
          "customerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "notes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LicenseNotesUpdateModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UsageLogDTO": {
        "required": [
          "action",
          "date",
          "id",
          "license",
          "value"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "license": {
            "$ref": "#/components/schemas/LicenseDTO"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "user": {
            "$ref": "#/components/schemas/UserModel"
          },
          "action": {
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UsageLogDTOPaginatedData": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageLogDTO"
            },
            "nullable": true
          },
          "pagination": {
            "$ref": "#/components/schemas/PageDataModel"
          }
        },
        "additionalProperties": false
      },
      "UserModel": {
        "required": [
          "created",
          "updated"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "token": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "remarks": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/RoleModel"
          },
          "registrationStatus": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "accountId": {
            "type": "string",
            "nullable": true
          },
          "accountEmail": {
            "type": "string",
            "nullable": true
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupModel"
            },
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionModel"
            },
            "nullable": true
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "updated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "Please enter token",
        "scheme": "bearer",
        "bearerFormat": "Custom"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "servers": [
    {
      "url": "https://api.verustrust-licensing.com"
    }
  ]
}
