Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
paymentitembasket.php
1
<?php
2
3
namespace
Bitrix\Sale\Rest\View
;
4
5
use
Bitrix\Rest\Integration\View\Attributes
;
6
use
Bitrix\Rest\Integration\View\DataType
;
7
8
class
PaymentItemBasket
extends
Base
9
{
10
public
function
getFields
()
11
{
12
return
[
13
'ID'
=>[
14
'TYPE'
=>DataType::TYPE_INT,
15
'ATTRIBUTES'
=>[Attributes::READONLY]
16
],
17
'PAYMENT_ID'
=>[
18
'TYPE'
=>DataType::TYPE_INT,
19
'ATTRIBUTES'
=>[
20
Attributes::REQUIRED,
21
Attributes::IMMUTABLE
22
]
23
],
24
'BASKET_ID'
=>[
25
'TYPE'
=>DataType::TYPE_INT,
26
'ATTRIBUTES'
=>[
27
Attributes::REQUIRED,
28
Attributes::IMMUTABLE
29
]
30
],
31
'QUANTITY'
=>[
32
'TYPE'
=>DataType::TYPE_FLOAT,
33
'ATTRIBUTES'
=>[Attributes::REQUIRED]
34
],
35
'XML_ID'
=>[
36
'TYPE'
=>DataType::TYPE_STRING
37
],
38
'DATE_INSERT'
=>[
39
'TYPE'
=>DataType::TYPE_DATETIME,
40
'ATTRIBUTES'
=>[Attributes::READONLY]
41
]
42
];
43
}
44
45
protected
function
getRewriteFields
(): array
46
{
47
return
[
48
'BASKET_ID'
=>[
49
'REFERENCE_FIELD'
=>
'ENTITY_ID'
50
]
51
];
52
}
53
}
Bitrix\Rest\Integration\View\Attributes
Definition
attributes.php:8
Bitrix\Rest\Integration\View\Base
Definition
base.php:16
Bitrix\Rest\Integration\View\DataType
Definition
datatype.php:11
Bitrix\Sale\Controller\PaymentItemBasket
Definition
paymentitembasket.php:21
Bitrix\Sale\Rest\View\PaymentItemBasket\getRewriteFields
getRewriteFields()
Definition
paymentitembasket.php:45
Bitrix\Sale\Rest\View\PaymentItemBasket\getFields
getFields()
Definition
paymentitembasket.php:10
Bitrix\Sale\Rest\View
Definition
base.php:3
modules
sale
lib
rest
view
paymentitembasket.php
Создано системой
1.10.0