Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
paysystemaction.php
1<?php
9
11use Bitrix\Main\Entity\DeleteResult;
20
21Loc::loadMessages(__FILE__);
22
40{
41 public static function getTableName()
42 {
43 return 'b_sale_pay_system_action';
44 }
45
46 public static function getMap()
47 {
48 return [
49 'ID' => new IntegerField('ID', [
50 'primary' => true,
51 'autocomplete' => true,
52 ]),
53 'PAY_SYSTEM_ID' => new IntegerField('PAY_SYSTEM_ID'),
54 'PERSON_TYPE_ID' => new IntegerField('PERSON_TYPE_ID'),
55 'NAME' => new StringField('NAME'),
56 'PSA_NAME' => new StringField('PSA_NAME'),
57 'CODE' => new StringField('CODE'),
58 'SORT' => new IntegerField('SORT'),
59 'ACTION_FILE' => new StringField('ACTION_FILE'),
60 'RESULT_FILE' => new StringField('RESULT_FILE'),
61 'DESCRIPTION' => new StringField('DESCRIPTION'),
62 'NEW_WINDOW' => new BooleanField('NEW_WINDOW', [
63 'values' => ['N', 'Y'],
64 ]),
65 'PARAMS' => new StringField('PARAMS'),
66 'TARIF' => new StringField('TARIF'),
67 'PS_MODE' => new StringField('PS_MODE'),
68 'PS_CLIENT_TYPE' => new EnumField('PS_CLIENT_TYPE', [
69 'values' => [
70 ClientType::B2C,
71 ClientType::B2B,
72 ],
73 ]),
74 'HAVE_PAYMENT' => new BooleanField('HAVE_PAYMENT', [
75 'values' => ['N', 'Y'],
76 ]),
77 'HAVE_ACTION' => new BooleanField('HAVE_ACTION', [
78 'values' => ['N', 'Y'],
79 ]),
80 'HAVE_RESULT' => new BooleanField('HAVE_RESULT', [
81 'values' => ['N', 'Y'],
82 ]),
83 'HAVE_PREPAY' => new BooleanField('HAVE_PREPAY', [
84 'values' => ['N', 'Y'],
85 ]),
86 'HAVE_PRICE' => new BooleanField('HAVE_PRICE', [
87 'values' => ['N', 'Y'],
88 ]),
89 'HAVE_RESULT_RECEIVE' => new BooleanField('HAVE_RESULT_RECEIVE', [
90 'values' => ['N', 'Y'],
91 ]),
92 'ENCODING' => new StringField('ENCODING'),
93 'LOGOTIP' => new IntegerField('LOGOTIP'),
94 'ACTIVE' => new BooleanField('ACTIVE', [
95 'values' => ['N', 'Y'],
96 ]),
97 'ALLOW_EDIT_PAYMENT' => new BooleanField('ALLOW_EDIT_PAYMENT', [
98 'values' => ['N', 'Y'],
99 ]),
100 'IS_CASH' => new StringField('IS_CASH'),
101 'AUTO_CHANGE_1C' => new BooleanField('AUTO_CHANGE_1C', [
102 'values' => ['N', 'Y'],
103 ]),
104 'CAN_PRINT_CHECK' => new BooleanField('CAN_PRINT_CHECK', [
105 'values' => ['N', 'Y'],
106 ]),
107 'ENTITY_REGISTRY_TYPE' => new StringField('ENTITY_REGISTRY_TYPE'),
108 'XML_ID' => new StringField('XML_ID'),
109 ];
110 }
111
121 public static function delete($primary)
122 {
123 if ($primary == PaySystem\Manager::getInnerPaySystemId())
124 {
125 $cacheManager = Application::getInstance()->getManagedCache();
126 $cacheManager->clean(PaySystem\Manager::CACHE_ID);
127 }
128
129 return parent::delete($primary);
130 }
131}
static loadMessages($file)
Definition loc.php:64