Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
paysystemaction.php
1
<?php
8
namespace
Bitrix\Sale\Internals
;
9
10
use
Bitrix\Main\Application
;
11
use Bitrix\Main\Entity\DeleteResult;
12
use
Bitrix\Main\Localization\Loc
;
13
use
Bitrix\Main\ORM\Data\DataManager
;
14
use
Bitrix\Main\ORM\Fields\BooleanField
;
15
use
Bitrix\Main\ORM\Fields\EnumField
;
16
use
Bitrix\Main\ORM\Fields\IntegerField
;
17
use
Bitrix\Main\ORM\Fields\StringField
;
18
use
Bitrix\Sale\PaySystem
;
19
use
Bitrix\Sale\PaySystem\ClientType
;
20
21
Loc::loadMessages
(__FILE__);
22
39
class
PaySystemActionTable
extends
DataManager
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
}
Bitrix\Main\Application
Definition
application.php:28
Bitrix\Main\Application\getInstance
static getInstance()
Definition
application.php:95
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\BooleanField
Definition
booleanfield.php:20
Bitrix\Main\ORM\Fields\EnumField
Definition
enumfield.php:20
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Sale\Internals\PaySystemActionTable
Definition
paysystemaction.php:40
Bitrix\Sale\Internals\PaySystemActionTable\getMap
static getMap()
Definition
paysystemaction.php:46
Bitrix\Sale\Internals\PaySystemActionTable\getTableName
static getTableName()
Definition
paysystemaction.php:41
Bitrix\Sale\PaySystem\ClientType
Definition
clienttype.php:9
Bitrix\Sale\Internals
Definition
accountnumber.php:3
Bitrix\Sale\PaySystem
Definition
applepay.php:3
modules
sale
lib
internals
paysystemaction.php
Создано системой
1.10.0