# ByLocation

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

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

## Описание

Класс ByLocation
Ограничивает доставку по местоположению(ям)

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

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

- `static $$easeSort`

## Методы (16)

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

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