1
0
mirror of synced 2024-12-12 15:16:05 +03:00
bitrix-module/intaro.retailcrm/lib/model/bitrix/orm/utsuser.php
Сергей Чазов 34e8105583
Loyalty (#241)
* Loyalty program
* fix dot bug for shops-exoprt option
* delete credantials request from services
* add CurlException for credentials catch
* add catching CurlException
* edit error msgs
* add supportind double bonuses
* add any step for bonus-input field in sale.order.ajax template
* recalculate bonuses
* fix bonus rounded
* strtoupper for params in icml
* change delivery service code
2022-03-02 15:40:53 +03:00

78 lines
2.2 KiB
PHP

<?php
namespace Intaro\RetailCrm\Model\Bitrix\ORM;
use Bitrix\Main,
Bitrix\Main\Localization\Loc;
Loc::loadMessages(__FILE__);
/**
* Class UtsUserTable
*
* Fields:
* <ul>
* <li> VALUE_ID int mandatory
* <li> UF_CARD_NUM_INTARO string optional
* <li> UF_LP_ID_INTARO string optional
* <li> UF_REG_IN_PL_INTARO int optional
* <li> UF_AGREE_PL_INTARO int optional
* <li> UF_PD_PROC_PL_INTARO int optional
* <li> UF_EXT_REG_PL_INTARO int optional
* </ul>
*
* @package Bitrix\Uts
**/
class UtsUserTable extends Main\Entity\DataManager
{
/**
* Returns DB table name for entity.
*
* @return string
*/
public static function getTableName()
{
return 'b_uts_user';
}
/**
* Returns entity map definition.
*
* @return array
*/
public static function getMap()
{
return [
'VALUE_ID' => [
'data_type' => 'integer',
'primary' => true,
'title' => Loc::getMessage('USER_ENTITY_VALUE_ID_FIELD'),
],
'UF_CARD_NUM_INTARO' => [
'data_type' => 'text',
'title' => Loc::getMessage('USER_ENTITY_UF_CARD_NUM_INTARO_FIELD'),
],
'UF_LP_ID_INTARO' => [
'data_type' => 'text',
'title' => Loc::getMessage('USER_ENTITY_UF_LP_ID_INTARO_FIELD'),
],
'UF_REG_IN_PL_INTARO' => [
'data_type' => 'integer',
'title' => Loc::getMessage('USER_ENTITY_UF_REG_IN_PL_INTARO_FIELD'),
],
'UF_AGREE_PL_INTARO' => [
'data_type' => 'integer',
'title' => Loc::getMessage('USER_ENTITY_UF_AGREE_PL_INTARO_FIELD'),
],
'UF_PD_PROC_PL_INTARO' => [
'data_type' => 'integer',
'title' => Loc::getMessage('USER_ENTITY_UF_PD_PROC_PL_INTARO_FIELD'),
],
'UF_EXT_REG_PL_INTARO' => [
'data_type' => 'integer',
'title' => Loc::getMessage('USER_ENTITY_UF_EXT_REG_PL_INTARO_FIELD'),
],
];
}
}