CreateWorkerRequestDto
Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Worker/Request/CreateWorkerRequestDto.cs (core.businesslogicservice).
Поля
| Поле | Тип (TS) | Обязательное | Описание | Тип (C#) |
|---|---|---|---|---|
login | string | да | — | string |
password | string | да | — | string |
phoneNumber | string | да | — | string |
firstName | string | да | — | string |
lastName | string | да | — | string |
nationality | string | null | нет | — | string? |
gender | GenderParam | да | — | GenderParam |
birthDate | string | null | нет | — | DateOnly? |
email | string | да | — | string |
pensionInsurance | string | null | нет | — | string? |
medicalInsurance | string | null | нет | — | string? |
employmentType | EmploymentTypeParam | да | — | EmploymentTypeParam |
maxClientsCount | number | null | нет | — | int? |
paidVacationPerYearCount | number | null | нет | — | ushort? |
hasAllergy | boolean | null | нет | — | bool? |
childs | boolean | null | нет | — | bool? |
transportTypes | TransportTypeParam[] | да | — | List<TransportTypeParam> |
workWithMen | boolean | null | нет | — | bool? |
workWithWomen | boolean | null | нет | — | bool? |
religion | string | null | нет | — | string? |
allergyComment | string | null | нет | — | string? |
comment | string | null | нет | — | string? |
position | string | null | нет | — | string? |
local | string | null | нет | — | string? |
isTrained | boolean | null | нет | — | bool? |
hasCertificate | boolean | null | нет | — | bool? |
hasExperience | boolean | null | нет | — | bool? |
contractSignedDate | string | null | нет | — | DateOnly? |
status | WorkerStatusDto | да | — | WorkerStatusDto |
goToWorkDate | string | null | нет | Если не вышел в найм - дата выхода на работу Если вышел в найм - null Если уже нанят и !null - дата выхода с больничного или отпуска | DateOnly? |
addresses | CreateWorkerAddressRequestDto[] | да | — | List<CreateWorkerAddressRequestDto> |
Пример
json
{
"login": "string",
"password": "string",
"phoneNumber": "+49123456789",
"firstName": "string",
"lastName": "string",
"nationality": "string",
"gender": "<GenderParam>",
"birthDate": "2026-05-05T08:00:00Z",
"email": "user@example.com",
"pensionInsurance": "string",
"medicalInsurance": "string",
"employmentType": "<EmploymentTypeParam>",
"maxClientsCount": 0,
"paidVacationPerYearCount": 0,
"hasAllergy": false,
"childs": false,
"transportTypes": [],
"workWithMen": false,
"workWithWomen": false,
"religion": "string",
"allergyComment": "string",
"comment": "string",
"position": "string",
"local": "string",
"isTrained": false,
"hasCertificate": false,
"hasExperience": false,
"contractSignedDate": "2026-05-05T08:00:00Z",
"status": "<WorkerStatusDto>",
"goToWorkDate": "2026-05-05T08:00:00Z",
"addresses": []
}