# ProductCategory

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

Класс `\Bitrix\Sale\Services\PaySystem\Restrictions\ProductCategory`
Модуль: Sale.

## Описание

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

Исходный файл: `source/sale/lib/services/paysystem/restrictions/productcategory.php:18`

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

- `static $$easeSort`

## Методы (16)

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

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