Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
paymentitembasket.php
1<?php
2
4
7
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}