- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/internals/cashboxresthandler.php
- Класс: BitrixSaleInternalsCashboxRestHandlerTable
- Вызов: CashboxRestHandlerTable::getMap
static function getMap()
{
return [
new IntegerField(
'ID',
[
'primary' => true,
'autocomplete' => true,
'title' => Loc::getMessage('CASHBOX_REST_HANDLER_ENTITY_ID_FIELD')
]
),
new StringField(
'NAME',
[
'required' => true,
'validation' => [__CLASS__, 'validateName'],
'title' => Loc::getMessage('CASHBOX_REST_HANDLER_ENTITY_NAME_FIELD')
]
),
new StringField(
'CODE',
[
'required' => true,
'validation' => [__CLASS__, 'validateCode'],
'title' => Loc::getMessage('CASHBOX_REST_HANDLER_ENTITY_CODE_FIELD')
]
),
new IntegerField(
'SORT',
[
'default' => 100,
'title' => Loc::getMessage('CASHBOX_REST_HANDLER_ENTITY_SORT_FIELD')
]
),
new TextField(
'SETTINGS',
[
'required' => true,
'title' => Loc::getMessage('CASHBOX_REST_HANDLER_ENTITY_SETTINGS_FIELD'),
'serialized' => true,
]
),
new StringField('APP_ID'),
];
}