# ByPersonType

URL: https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс `\Bitrix\Sale\Delivery\Restrictions\ByPersonType`
Модуль: Sale.

## Описание

Базовый класс для ограничений служб доставки.

Исходный файл: `source/sale/lib/delivery/restrictions/bypersontype.php:14`

## Свойства (1)

- `static $$easeSort`

## Методы (16)

- [`static check()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/check/) — Проверка параметров службы на соответствие ограничению.
- [`static checkByEntity()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/checkbyentity/) — Проверка параметров службы на соответствие ограничению по сущности.
- [`static delete()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/delete/)
- [`static extractParams()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/extractparams/)
- [`static getClassDescription()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/getclassdescription/)
- [`static getClassTitle()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/getclasstitle/)
- [`static getCode()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/getcode/) — Получить код ограничения, сопоставимый с кодом ограничения обработчика службы.
- [`static getOnApplyErrorMessage()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/getonapplyerrormessage/) — Возвращает сообщение, которое отображается при возникновении ошибки во время применения ограничения
- [`static getParamsStructure()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/getparamsstructure/) — Возвращает структуру параметров для отображения пользователю
- [`static getSeverity()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/getseverity/)
- [`static isAvailable()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/isavailable/)
- [`static isMyCode()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/ismycode/)
- [`static prepareData()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/preparedata/)
- [`static prepareParamsValues()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/prepareparamsvalues/)
- [`static save()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/save/)
- [`static validateRestriction()`](https://chugunov.pro/api-bitrix/sale/delivery/restrictions/bypersontype/validaterestriction/) — Проверка ограничения на соответствие бизнес-правилам.

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-Sale-Delivery-Restrictions-ByPersonType.html
