{
  "openapi": "3.0.1",
  "info": {
    "title": "Jumis People API",
    "description": "API izsaukumi tiek autorizēti ar API atslēgu, ko iespējams uzģenerēt Jumis People sadaļā\r\n                                <b>Citi iestatījumi</b>-><b>API savienojumi </b>-><b>People API</b>\r\n                            <br>API atslēga ir jāpadod izsaukuma galvenē(header) kā <b>X-API-Key</b>",
    "contact": {
      "name": "Jumis Pro",
      "url": "https://www.mansjumis.lv",
      "email": "jumis@mansjumis.lv"
    },
    "license": {
      "name": "Use under Jumis Pro license",
      "url": "https://www.mansjumis.lv"
    },
    "version": "v1"
  },
  "paths": {
    "/api/v1/employee/getbyidentificationnumber": {
      "get": {
        "tags": [
          "EmployeeApi"
        ],
        "summary": "Atgriež pieprasītā darbinieka amatus",
        "parameters": [
          {
            "name": "employeeIdNumber",
            "in": "query",
            "description": "Darbinieka ID numurs vai Personas kods",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json;odata.metadata=minimal;odata.streaming=true": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json;odata.metadata=minimal;odata.streaming=false": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json;odata.metadata=minimal": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json;odata.metadata=full;odata.streaming=true": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json;odata.metadata=full;odata.streaming=false": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json;odata.metadata=full": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json;odata.metadata=none;odata.streaming=true": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json;odata.metadata=none;odata.streaming=false": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json;odata.metadata=none": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json;odata.streaming=true": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json;odata.streaming=false": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeData"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/employees": {
      "get": {
        "tags": [
          "EmployeeApi"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json;odata.metadata=minimal;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json;odata.metadata=minimal;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json;odata.metadata=minimal": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json;odata.metadata=full;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json;odata.metadata=full;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json;odata.metadata=full": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json;odata.metadata=none;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json;odata.metadata=none;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json;odata.metadata=none": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeData"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/employee/addpremiumtoemployeechair": {
      "post": {
        "tags": [
          "EmployeePremiumApi"
        ],
        "summary": "Pievieno darbinieka kartītē amata piemaksu",
        "requestBody": {
          "description": "Darbinieka amata piemaksa",
          "content": {
            "application/json;odata.metadata=minimal;odata.streaming=true": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json;odata.metadata=minimal;odata.streaming=false": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json;odata.metadata=minimal": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json;odata.metadata=full;odata.streaming=true": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json;odata.metadata=full;odata.streaming=false": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json;odata.metadata=full": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json;odata.metadata=none;odata.streaming=true": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json;odata.metadata=none;odata.streaming=false": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json;odata.metadata=none": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json;odata.streaming=true": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json;odata.streaming=false": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "text/plain": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePremiumAddViewModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json;odata.metadata=minimal;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=minimal;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=minimal": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=full;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=full;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=full": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=none;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=none;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=none": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/xml": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/employee/premiums/{employeeChairId}": {
      "get": {
        "tags": [
          "EmployeePremiumApi"
        ],
        "parameters": [
          {
            "name": "employeeChairId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json;odata.metadata=minimal;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json;odata.metadata=minimal;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json;odata.metadata=minimal": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeePremiumViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/employee/premium/{premiumId}": {
      "delete": {
        "tags": [
          "EmployeePremiumApi"
        ],
        "parameters": [
          {
            "name": "premiumId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json;odata.metadata=minimal;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=minimal;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=minimal": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=full;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=full;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=full": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=none;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=none;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=none": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/xml": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/timesheets/updateworkingtimesheet": {
      "post": {
        "tags": [
          "MonthlyTimesheetApi"
        ],
        "summary": "Pārraksta sistēmā esošās tabeles datus. Tabelei pirms tam ir jābūt izveidotai no Jumis Personāls lietotāju saskarnes",
        "requestBody": {
          "description": "",
          "content": {
            "application/json;odata.metadata=minimal;odata.streaming=true": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json;odata.metadata=minimal;odata.streaming=false": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json;odata.metadata=minimal": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json;odata.metadata=full;odata.streaming=true": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json;odata.metadata=full;odata.streaming=false": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json;odata.metadata=full": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json;odata.metadata=none;odata.streaming=true": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json;odata.metadata=none;odata.streaming=false": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json;odata.metadata=none": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json;odata.streaming=true": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json;odata.streaming=false": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "text/plain": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WorkingTimesheetViewModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json;odata.metadata=minimal;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=minimal;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=minimal": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=full;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=full;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=full": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=none;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=none;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.metadata=none": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.streaming=true": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json;odata.streaming=false": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/xml": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/timesheets/getworkingtimesheetbyemployeechairidinperiod": {
      "get": {
        "tags": [
          "MonthlyTimesheetApi"
        ],
        "summary": "Atgriež pieprasītā darbinieka amata tabeli pieprasītajā periodā",
        "parameters": [
          {
            "name": "employeeChairId",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "year",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "query",
            "description": "",
            "schema": {
              "maximum": 12,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json;odata.metadata=minimal;odata.streaming=true": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json;odata.metadata=minimal;odata.streaming=false": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json;odata.metadata=minimal": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json;odata.metadata=full;odata.streaming=true": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json;odata.metadata=full;odata.streaming=false": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json;odata.metadata=full": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json;odata.metadata=none;odata.streaming=true": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json;odata.metadata=none;odata.streaming=false": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json;odata.metadata=none": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json;odata.streaming=true": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json;odata.streaming=false": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingTimesheetViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/timesheets/getemployeechairsintimesheetbyperiod": {
      "get": {
        "tags": [
          "MonthlyTimesheetApi"
        ],
        "summary": "Atgriež visus darbinieku amatus, kuriem izveidotas tabeles pieprasītajā periodā",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "query",
            "description": "",
            "schema": {
              "maximum": 12,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json;odata.metadata=minimal;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json;odata.metadata=minimal;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json;odata.metadata=minimal": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeChairInTimesheetViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payroll/get-payrolls-by-period": {
      "get": {
        "tags": [
          "PayrollApi"
        ],
        "summary": "Atgriež algu sarakstus pēc perioda - mēnesis un gads",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json;odata.metadata=minimal;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json;odata.metadata=minimal;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json;odata.metadata=minimal": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payroll-posting/get-by-period": {
      "get": {
        "tags": [
          "PayrollPostingApi"
        ],
        "summary": "Atgriež algu grāmatojumus pēc perioda - mēnesis un gads",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json;odata.metadata=minimal;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json;odata.metadata=minimal;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json;odata.metadata=minimal": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json;odata.metadata=full": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json;odata.metadata=none": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json;odata.streaming=true": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json;odata.streaming=false": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayrollPostingViewModel"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DayOfWeek": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = Sunday\r\n\r\n1 = Monday\r\n\r\n2 = Tuesday\r\n\r\n3 = Wednesday\r\n\r\n4 = Thursday\r\n\r\n5 = Friday\r\n\r\n6 = Saturday",
        "format": "int32",
        "x-enumNames": [
          "Sunday",
          "Monday",
          "Tuesday",
          "Wednesday",
          "Thursday",
          "Friday",
          "Saturday"
        ]
      },
      "EmployeeChairData": {
        "type": "object",
        "properties": {
          "employeeChairId": {
            "type": "integer",
            "format": "int32"
          },
          "employeeChairName": {
            "type": "string",
            "nullable": true
          },
          "dateFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dateTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "businessUnitId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EmployeeChairInTimesheetViewModel": {
        "type": "object",
        "properties": {
          "employeeChairId": {
            "type": "integer",
            "format": "int32"
          },
          "employeeName": {
            "type": "string",
            "nullable": true
          },
          "employeeSurname": {
            "type": "string",
            "nullable": true
          },
          "employeeChairTitle": {
            "type": "string",
            "nullable": true
          },
          "employeeId": {
            "type": "integer",
            "format": "int32"
          },
          "employeePersonId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EmployeeData": {
        "type": "object",
        "properties": {
          "employeeName": {
            "type": "string",
            "nullable": true
          },
          "employeeSurname": {
            "type": "string",
            "nullable": true
          },
          "employeeIdNumber": {
            "type": "string",
            "nullable": true
          },
          "employeeChairs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmployeeChairData"
            },
            "nullable": true
          },
          "hiredFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "firedFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "privatePerson": {
            "type": "boolean"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "mainEmail": {
            "type": "string",
            "nullable": true
          },
          "id": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "EmployeePremiumAddViewModel": {
        "type": "object",
        "properties": {
          "employeeChairId": {
            "type": "integer",
            "format": "int32"
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "premiumType": {
            "$ref": "#/components/schemas/EmployeePremiumType"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "percentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "percentageOf": {
            "$ref": "#/components/schemas/PercentageOf"
          },
          "dateFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dateTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "includeInAverageEarnings": {
            "type": "boolean",
            "nullable": true
          },
          "useInBailiffDeduction": {
            "type": "boolean",
            "nullable": true
          },
          "inProportionToDaysWorked": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EmployeePremiumType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = Taxable\r\n\r\n1 = TaxableWithoutInsurance\r\n\r\n2 = PensionFundTaxableWithoutIncomeTax\r\n\r\n3 = PensionFundUntaxable\r\n\r\n4 = PensionFundTaxable\r\n\r\n5 = Untaxable",
        "format": "int32",
        "x-enumNames": [
          "Taxable",
          "TaxableWithoutInsurance",
          "PensionFundTaxableWithoutIncomeTax",
          "PensionFundUntaxable",
          "PensionFundTaxable",
          "Untaxable"
        ]
      },
      "EmployeePremiumViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "employeeChairId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "premiumFor": {
            "type": "string",
            "nullable": true
          },
          "premiumType": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "percentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "percentageOf": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dateFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dateTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "includeInAverageEarnings": {
            "type": "boolean"
          },
          "useInBailiffDeduction": {
            "type": "boolean"
          },
          "incomeTypeId": {
            "$ref": "#/components/schemas/IncomeType"
          },
          "incomeType": {
            "$ref": "#/components/schemas/IncomeType"
          },
          "inProportionToDaysWorked": {
            "type": "boolean"
          },
          "pay": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "EventType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          1000
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = Workday\r\n\r\n1 = Holyday\r\n\r\n2 = HighDay\r\n\r\n3 = BeforeHoliday\r\n\r\n4 = SwiftedWorkday\r\n\r\n5 = SwiftedHoliday\r\n\r\n6 = SwiftedHighday\r\n\r\n7 = ShortTermAbsences\r\n\r\n8 = PaidHolyday\r\n\r\n9 = WorkDayInHighday\r\n\r\n10 = HighdayinWorkday\r\n\r\n1000 = NotImplemented",
        "format": "int32",
        "x-enumNames": [
          "Workday",
          "Holyday",
          "HighDay",
          "BeforeHoliday",
          "SwiftedWorkday",
          "SwiftedHoliday",
          "SwiftedHighday",
          "ShortTermAbsences",
          "PaidHolyday",
          "WorkDayInHighday",
          "HighdayinWorkday",
          "NotImplemented"
        ]
      },
      "HistoryEventTpye": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31,
          32,
          33,
          34,
          35,
          36,
          37,
          38,
          39,
          40,
          41,
          42,
          43,
          44,
          45,
          46
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = IGNORE\r\n\r\n1 = Workday\r\n\r\n2 = Holiday\r\n\r\n3 = PayedHoliday\r\n\r\n4 = SickList_A\r\n\r\n5 = SickList_B\r\n\r\n6 = SickList_SN\r\n\r\n7 = NoPaymentHoliday\r\n\r\n8 = PaymentStudyHoliday\r\n\r\n9 = NoPaymentStudyHoliday\r\n\r\n10 = PregnantHoliday\r\n\r\n11 = ParentalLeave\r\n\r\n12 = PaternityLeave\r\n\r\n13 = Business\r\n\r\n14 = AssignedPosition\r\n\r\n15 = DonorDay\r\n\r\n16 = Idleness\r\n\r\n17 = VocationalTraining\r\n\r\n18 = LovedDead\r\n\r\n19 = ToChangeResidence\r\n\r\n20 = JusticeAuthority\r\n\r\n21 = ExceptionalCircumstances\r\n\r\n22 = MovedAbsence\r\n\r\n23 = MothersDead\r\n\r\n24 = MotherCantTakeCare\r\n\r\n25 = Adoptation\r\n\r\n26 = Fired\r\n\r\n27 = AvgPayday\r\n\r\n28 = UnjustifiedDelay\r\n\r\n29 = MovedAbsenceNotPayable\r\n\r\n30 = TheAdditionalAbsence\r\n\r\n31 = NotImplemented\r\n\r\n32 = Vacation\r\n\r\n33 = Working\r\n\r\n34 = ExtraHours\r\n\r\n35 = FiredDefault\r\n\r\n36 = ExtraVacationChildrenUnder16\r\n\r\n37 = ExtraVacationChildrenUnder14\r\n\r\n38 = ExtraVacationHighRisk\r\n\r\n39 = ExtraVacationOther\r\n\r\n40 = ExtraVacationChildrenDisabled\r\n\r\n41 = NotWorking\r\n\r\n42 = IdlenessEmergency\r\n\r\n43 = SalarySubsidy\r\n\r\n44 = TemporalDismissal\r\n\r\n45 = NationalGuardTraining\r\n\r\n46 = UnpaidLeaveForCarer",
        "format": "int32",
        "x-enumNames": [
          "IGNORE",
          "Workday",
          "Holiday",
          "PayedHoliday",
          "SickList_A",
          "SickList_B",
          "SickList_SN",
          "NoPaymentHoliday",
          "PaymentStudyHoliday",
          "NoPaymentStudyHoliday",
          "PregnantHoliday",
          "ParentalLeave",
          "PaternityLeave",
          "Business",
          "AssignedPosition",
          "DonorDay",
          "Idleness",
          "VocationalTraining",
          "LovedDead",
          "ToChangeResidence",
          "JusticeAuthority",
          "ExceptionalCircumstances",
          "MovedAbsence",
          "MothersDead",
          "MotherCantTakeCare",
          "Adoptation",
          "Fired",
          "AvgPayday",
          "UnjustifiedDelay",
          "MovedAbsenceNotPayable",
          "TheAdditionalAbsence",
          "NotImplemented",
          "Vacation",
          "Working",
          "ExtraHours",
          "FiredDefault",
          "ExtraVacationChildrenUnder16",
          "ExtraVacationChildrenUnder14",
          "ExtraVacationHighRisk",
          "ExtraVacationOther",
          "ExtraVacationChildrenDisabled",
          "NotWorking",
          "IdlenessEmergency",
          "SalarySubsidy",
          "TemporalDismissal",
          "NationalGuardTraining",
          "UnpaidLeaveForCarer"
        ]
      },
      "IncomeType": {
        "enum": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31,
          32,
          33,
          34,
          35,
          36,
          37,
          38,
          39,
          40,
          41,
          42,
          43,
          44,
          45,
          46,
          47,
          48,
          49,
          50,
          51,
          52,
          53,
          54,
          55,
          56,
          57,
          58,
          59,
          60,
          61,
          62,
          63,
          64,
          65,
          66,
          67,
          68,
          69,
          70,
          71,
          72,
          73,
          74,
          75,
          76,
          77,
          78,
          79,
          80,
          81,
          82,
          83,
          84,
          85,
          86,
          87,
          88,
          89,
          90,
          91,
          92,
          93,
          94,
          95,
          96,
          97,
          98,
          99,
          100,
          101,
          102,
          103,
          104,
          105,
          106,
          107,
          108
        ],
        "type": "integer",
        "description": "\r\n\r\n1 = t1001\r\n\r\n2 = t1013\r\n\r\n3 = t1042\r\n\r\n4 = t4025\r\n\r\n5 = t4023\r\n\r\n6 = t4002\r\n\r\n7 = t3041\r\n\r\n8 = t3038\r\n\r\n9 = t3031\r\n\r\n10 = t3028\r\n\r\n11 = t3027\r\n\r\n12 = t3024\r\n\r\n13 = t3022\r\n\r\n14 = t3019\r\n\r\n15 = t3017\r\n\r\n16 = t3016\r\n\r\n17 = t1015\r\n\r\n18 = t3015\r\n\r\n19 = t1024\r\n\r\n20 = t1032\r\n\r\n21 = t2054\r\n\r\n22 = t1054\r\n\r\n23 = t3053\r\n\r\n24 = t1052\r\n\r\n25 = t1051\r\n\r\n26 = t3050\r\n\r\n27 = t1049\r\n\r\n28 = t3048\r\n\r\n29 = t3047\r\n\r\n30 = t2047\r\n\r\n31 = t2046\r\n\r\n32 = t3045\r\n\r\n33 = t3044\r\n\r\n34 = t1044\r\n\r\n35 = t1043\r\n\r\n36 = t1027\r\n\r\n37 = t2055\r\n\r\n38 = t3011\r\n\r\n39 = t3005\r\n\r\n40 = t1020\r\n\r\n41 = t1019\r\n\r\n42 = t1018\r\n\r\n43 = t1017\r\n\r\n44 = t1016\r\n\r\n45 = t1014\r\n\r\n46 = t1013_1\r\n\r\n47 = t1012\r\n\r\n48 = t1011\r\n\r\n49 = t1010\r\n\r\n50 = t1009\r\n\r\n51 = t1008\r\n\r\n52 = t1007\r\n\r\n53 = t1006\r\n\r\n54 = t1003\r\n\r\n55 = t1004\r\n\r\n56 = t3010\r\n\r\n57 = t1026\r\n\r\n58 = t1032_1\r\n\r\n59 = t2030\r\n\r\n60 = t2021\r\n\r\n61 = t2015\r\n\r\n62 = t2010\r\n\r\n63 = t2009\r\n\r\n64 = t2008\r\n\r\n65 = t2007\r\n\r\n66 = t2006\r\n\r\n67 = t1040\r\n\r\n68 = t1039\r\n\r\n69 = t1037\r\n\r\n70 = t1036\r\n\r\n71 = t1035\r\n\r\n72 = t1034\r\n\r\n73 = t1033\r\n\r\n74 = t1029\r\n\r\n75 = t1056\r\n\r\n76 = t1053\r\n\r\n77 = t3030\r\n\r\n78 = t3057\r\n\r\n79 = t3058\r\n\r\n80 = t3059\r\n\r\n81 = t2027\r\n\r\n82 = t3060\r\n\r\n83 = t1061\r\n\r\n84 = t4031\r\n\r\n85 = t3062\r\n\r\n86 = t3063\r\n\r\n87 = t1064\r\n\r\n88 = t1066\r\n\r\n89 = t6\r\n\r\n90 = t7\r\n\r\n91 = t10\r\n\r\n92 = t11\r\n\r\n93 = t12\r\n\r\n94 = t13\r\n\r\n95 = t16\r\n\r\n96 = t17\r\n\r\n97 = t18\r\n\r\n98 = t19\r\n\r\n99 = t21\r\n\r\n100 = t3068\r\n\r\n101 = t2019\r\n\r\n102 = t4032\r\n\r\n103 = t1067\r\n\r\n104 = t3069\r\n\r\n105 = t3070\r\n\r\n106 = t3071\r\n\r\n107 = t3072\r\n\r\n108 = t3073",
        "format": "int32",
        "x-enumNames": [
          "t1001",
          "t1013",
          "t1042",
          "t4025",
          "t4023",
          "t4002",
          "t3041",
          "t3038",
          "t3031",
          "t3028",
          "t3027",
          "t3024",
          "t3022",
          "t3019",
          "t3017",
          "t3016",
          "t1015",
          "t3015",
          "t1024",
          "t1032",
          "t2054",
          "t1054",
          "t3053",
          "t1052",
          "t1051",
          "t3050",
          "t1049",
          "t3048",
          "t3047",
          "t2047",
          "t2046",
          "t3045",
          "t3044",
          "t1044",
          "t1043",
          "t1027",
          "t2055",
          "t3011",
          "t3005",
          "t1020",
          "t1019",
          "t1018",
          "t1017",
          "t1016",
          "t1014",
          "t1013_1",
          "t1012",
          "t1011",
          "t1010",
          "t1009",
          "t1008",
          "t1007",
          "t1006",
          "t1003",
          "t1004",
          "t3010",
          "t1026",
          "t1032_1",
          "t2030",
          "t2021",
          "t2015",
          "t2010",
          "t2009",
          "t2008",
          "t2007",
          "t2006",
          "t1040",
          "t1039",
          "t1037",
          "t1036",
          "t1035",
          "t1034",
          "t1033",
          "t1029",
          "t1056",
          "t1053",
          "t3030",
          "t3057",
          "t3058",
          "t3059",
          "t2027",
          "t3060",
          "t1061",
          "t4031",
          "t3062",
          "t3063",
          "t1064",
          "t1066",
          "t6",
          "t7",
          "t10",
          "t11",
          "t12",
          "t13",
          "t16",
          "t17",
          "t18",
          "t19",
          "t21",
          "t3068",
          "t2019",
          "t4032",
          "t1067",
          "t3069",
          "t3070",
          "t3071",
          "t3072",
          "t3073"
        ]
      },
      "PaymentTypes": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = Monthly\r\n\r\n1 = Hours\r\n\r\n2 = MonthlyHours\r\n\r\n3 = Piecework\r\n\r\n4 = NONE",
        "format": "int32",
        "x-enumNames": [
          "Monthly",
          "Hours",
          "MonthlyHours",
          "Piecework",
          "NONE"
        ]
      },
      "PayrollPostingLineViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "employeeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "businessUnitId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "employeeName": {
            "type": "string",
            "nullable": true
          },
          "employeeSurname": {
            "type": "string",
            "nullable": true
          },
          "businessUnitTitle": {
            "type": "string",
            "nullable": true
          },
          "positionType": {
            "$ref": "#/components/schemas/PostingPositionType"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "employeeChairName": {
            "type": "string",
            "nullable": true
          },
          "debitAccountPlanCode": {
            "type": "string",
            "nullable": true
          },
          "creditAccountPlanCode": {
            "type": "string",
            "nullable": true
          },
          "budgetLineCode": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "includeInDocument": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PayrollPostingViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "byEmployee": {
            "type": "boolean"
          },
          "salaryListId": {
            "type": "integer",
            "format": "int32"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "month": {
            "type": "integer",
            "format": "int32"
          },
          "salaryListNumber": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "postingType": {
            "$ref": "#/components/schemas/PostingType"
          },
          "status": {
            "$ref": "#/components/schemas/SalaryPostingStatus"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayrollPostingLineViewModel"
            },
            "nullable": true
          },
          "documentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PayrollViewModel": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "month": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/SalaryListStatus"
          },
          "number": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "payslips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalaryListItemViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PercentageOf": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = BaseSalary\r\n\r\n1 = CalculatedSalary",
        "format": "int32",
        "x-enumNames": [
          "BaseSalary",
          "CalculatedSalary"
        ]
      },
      "PostingPositionType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = Salary\r\n\r\n1 = TaxablePremium\r\n\r\n2 = UntaxablePremium\r\n\r\n3 = InsuranceUntaxablePremium\r\n\r\n4 = PensionFundUntaxableIncomeTaxPremium\r\n\r\n5 = PensionFundUntaxable\r\n\r\n6 = PensionFundTaxable\r\n\r\n7 = DeductionAfterTaxes\r\n\r\n8 = DeductionBeforeIncomeTax\r\n\r\n9 = PensionFundDeductionFromEmployee\r\n\r\n10 = PensionFundUntaxablePartDeduction\r\n\r\n11 = PensionFundTaxablePartDeduction\r\n\r\n12 = LifeInsuranceWithCoSavingsPremiumAmountDeduction\r\n\r\n13 = LifeInsuranceWithOutCoSavings\r\n\r\n14 = SicklistMoney\r\n\r\n15 = AccidentAtWorkplaceMoney\r\n\r\n16 = VacationMoneyThisMonth\r\n\r\n17 = VacationMoneyPaidBeforeForThisMonth\r\n\r\n18 = VacationMoneyForNextMonths\r\n\r\n19 = CompensationForUnusedVacation\r\n\r\n20 = InsuranceTaxEmployeeThisMonth\r\n\r\n21 = InsuranceTaxEmployerThisMonth\r\n\r\n22 = InsuranceTaxEmployeePaidBefore\r\n\r\n23 = InsuranceTaxEmployerPaidBefore\r\n\r\n24 = InsuranceTaxEmployeeNextMonths\r\n\r\n25 = InsuranceTaxEmployerNextMonths\r\n\r\n26 = AdjustedIncomeAmount\r\n\r\n27 = IncomeTax\r\n\r\n28 = BusinessRiskRate\r\n\r\n29 = Advance\r\n\r\n30 = AmountPayable\r\n\r\n31 = BailiffDeduction",
        "format": "int32",
        "x-enumNames": [
          "Salary",
          "TaxablePremium",
          "UntaxablePremium",
          "InsuranceUntaxablePremium",
          "PensionFundUntaxableIncomeTaxPremium",
          "PensionFundUntaxable",
          "PensionFundTaxable",
          "DeductionAfterTaxes",
          "DeductionBeforeIncomeTax",
          "PensionFundDeductionFromEmployee",
          "PensionFundUntaxablePartDeduction",
          "PensionFundTaxablePartDeduction",
          "LifeInsuranceWithCoSavingsPremiumAmountDeduction",
          "LifeInsuranceWithOutCoSavings",
          "SicklistMoney",
          "AccidentAtWorkplaceMoney",
          "VacationMoneyThisMonth",
          "VacationMoneyPaidBeforeForThisMonth",
          "VacationMoneyForNextMonths",
          "CompensationForUnusedVacation",
          "InsuranceTaxEmployeeThisMonth",
          "InsuranceTaxEmployerThisMonth",
          "InsuranceTaxEmployeePaidBefore",
          "InsuranceTaxEmployerPaidBefore",
          "InsuranceTaxEmployeeNextMonths",
          "InsuranceTaxEmployerNextMonths",
          "AdjustedIncomeAmount",
          "IncomeTax",
          "BusinessRiskRate",
          "Advance",
          "AmountPayable",
          "BailiffDeduction"
        ]
      },
      "PostingType": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = Totals\r\n\r\n1 = ByBusinessUnit",
        "format": "int32",
        "x-enumNames": [
          "Totals",
          "ByBusinessUnit"
        ]
      },
      "SalaryListItemViewModel": {
        "type": "object",
        "properties": {
          "paymentMethod": {
            "$ref": "#/components/schemas/PaymentTypes"
          },
          "salaryListId": {
            "type": "integer",
            "format": "int32"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "employeeName": {
            "type": "string",
            "nullable": true
          },
          "employeeSurname": {
            "type": "string",
            "nullable": true
          },
          "employeeIdNumber": {
            "type": "string",
            "nullable": true
          },
          "employeeChairName": {
            "type": "string",
            "nullable": true
          },
          "businessUnitName": {
            "type": "string",
            "nullable": true
          },
          "employeeBankName": {
            "type": "string",
            "nullable": true
          },
          "totalAmountForSalaryList": {
            "type": "number",
            "format": "double"
          },
          "insuranceTaxAmountEmployee": {
            "type": "number",
            "format": "double"
          },
          "insuranceTaxAmountEmployer": {
            "type": "number",
            "format": "double"
          },
          "incomeTaxAmount": {
            "type": "number",
            "format": "double"
          },
          "amountPayable": {
            "type": "number",
            "format": "double"
          },
          "paymentOrderDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "paymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasSalaryTaxBook": {
            "type": "boolean"
          },
          "customIncomeTaxRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "businessUnitCode": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "updatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          },
          "advance": {
            "type": "number",
            "format": "double"
          },
          "monthlyRate": {
            "type": "number",
            "format": "double"
          },
          "hourlyRate": {
            "type": "number",
            "format": "double"
          },
          "sicklistMoney": {
            "type": "number",
            "format": "double"
          },
          "accidentMoney": {
            "type": "number",
            "format": "double"
          },
          "_VacationMoneyThisMonth": {
            "type": "number",
            "format": "double"
          },
          "compensation": {
            "type": "number",
            "format": "double"
          },
          "employeeInsuranceTaxType": {
            "type": "string",
            "nullable": true
          },
          "personalAccountCode": {
            "type": "string",
            "nullable": true
          },
          "resident": {
            "type": "boolean",
            "nullable": true
          },
          "isUkrainian": {
            "type": "boolean"
          },
          "isPayslipPrepared": {
            "type": "boolean"
          },
          "notReady": {
            "type": "boolean"
          },
          "untaxedMinimum": {
            "type": "number",
            "format": "double"
          },
          "taxIncentivesDependents": {
            "type": "number",
            "format": "double"
          },
          "taxIncentivesRepressed": {
            "type": "number",
            "format": "double"
          },
          "taxIncentivesDisabled": {
            "type": "number",
            "format": "double"
          },
          "taxIncentivesNationalResistanceMember": {
            "type": "number",
            "format": "double"
          },
          "vacationMoneyNextMonths": {
            "type": "number",
            "format": "double"
          },
          "isFullSalary": {
            "type": "boolean",
            "readOnly": true
          },
          "salaryRatePeriods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalaryRatePeriodSalaryListItem"
            },
            "nullable": true
          },
          "monthlyRateText": {
            "type": "string",
            "nullable": true
          },
          "hourlyRateText": {
            "type": "string",
            "nullable": true
          },
          "salaryPayoutMethod": {
            "$ref": "#/components/schemas/SalaryPayoutMethod"
          },
          "missingAverageEarningsPeriodData": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SalaryListStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = Started\r\n\r\n1 = CalculationCompleted\r\n\r\n2 = Locked",
        "format": "int32",
        "x-enumNames": [
          "Started",
          "CalculationCompleted",
          "Locked"
        ]
      },
      "SalaryPayoutMethod": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = BankTransaction\r\n\r\n1 = Cash",
        "format": "int32",
        "x-enumNames": [
          "BankTransaction",
          "Cash"
        ]
      },
      "SalaryPostingStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "\r\n\r\n0 = Prepared\r\n\r\n1 = Exported\r\n\r\n2 = Removed",
        "format": "int32",
        "x-enumNames": [
          "Prepared",
          "Exported",
          "Removed"
        ]
      },
      "SalaryRatePeriodSalaryListItem": {
        "type": "object",
        "properties": {
          "monthlyRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hourlyRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TimesheetDayViewModel": {
        "type": "object",
        "properties": {
          "day": {
            "type": "integer",
            "format": "int32"
          },
          "weekDay": {
            "$ref": "#/components/schemas/DayOfWeek"
          },
          "planEventType": {
            "$ref": "#/components/schemas/EventType"
          },
          "planWorkInDay": {
            "type": "number",
            "format": "double"
          },
          "planWorkInNight": {
            "type": "number",
            "format": "double"
          },
          "realEventType": {
            "$ref": "#/components/schemas/HistoryEventTpye"
          },
          "realWorkInDay": {
            "type": "number",
            "format": "double"
          },
          "realWorkInNight": {
            "type": "number",
            "format": "double"
          },
          "realExtraHour": {
            "type": "number",
            "format": "double"
          },
          "isEventSeriesBeginning": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WorkingTimesheetViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "month": {
            "type": "integer",
            "format": "int32"
          },
          "employeeName": {
            "type": "string",
            "nullable": true
          },
          "employeeSurname": {
            "type": "string",
            "nullable": true
          },
          "employeeChairId": {
            "type": "integer",
            "format": "int32"
          },
          "employeeChairTitle": {
            "type": "string",
            "nullable": true
          },
          "employeeId": {
            "type": "integer",
            "format": "int32"
          },
          "employeePersonId": {
            "type": "string",
            "nullable": true
          },
          "timesheetDays": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimesheetDayViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "name": "X-API-Key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKey": [ ]
    }
  ]
}