Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
paymentitemshipment.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
PaymentItemShipment
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
'SHIPMENT_ID'
=>[
25
'TYPE'
=>DataType::TYPE_INT,
26
'ATTRIBUTES'
=>[
27
Attributes::REQUIRED,
28
Attributes::IMMUTABLE
29
]
30
],
31
'XML_ID'
=>[
32
'TYPE'
=>DataType::TYPE_STRING
33
],
34
'DATE_INSERT'
=>[
35
'TYPE'
=>DataType::TYPE_DATETIME,
36
'ATTRIBUTES'
=>[Attributes::READONLY]
37
]
38
];
39
}
40
41
protected
function
getRewriteFields
(): array
42
{
43
return
[
44
'SHIPMENT_ID'
=>[
45
'REFERENCE_FIELD'
=>
'ENTITY_ID'
46
]
47
];
48
}
49
}
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\PaymentItemShipment
Definition
paymentitemshipment.php:19
Bitrix\Sale\Rest\View\PaymentItemShipment\getRewriteFields
getRewriteFields()
Definition
paymentitemshipment.php:41
Bitrix\Sale\Rest\View\PaymentItemShipment\getFields
getFields()
Definition
paymentitemshipment.php:10
Bitrix\Sale\Rest\View
Definition
base.php:3
modules
sale
lib
rest
view
paymentitemshipment.php
Создано системой
1.10.0