1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Yandex\Market\Partner\Models; |
4
|
|
|
|
5
|
|
|
use Yandex\Common\Model; |
6
|
|
|
|
7
|
|
|
class DeliveryRule extends Model |
8
|
|
|
{ |
9
|
|
|
/** |
10
|
|
|
* @var float|null |
11
|
|
|
*/ |
12
|
|
|
protected $cost = null; |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* @var integer|null |
16
|
|
|
*/ |
17
|
|
|
protected $dateSwitchHour = null; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var integer|null |
21
|
|
|
*/ |
22
|
|
|
protected $minDeliveryDays = null; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var integer|null |
26
|
|
|
*/ |
27
|
|
|
protected $maxDeliveryDays = null; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var float|null |
31
|
|
|
*/ |
32
|
|
|
protected $priceFrom = null; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var float|null |
36
|
|
|
*/ |
37
|
|
|
protected $priceTo = null; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string|null |
41
|
|
|
*/ |
42
|
|
|
protected $shipperHumanReadableId = null; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var integer|null |
46
|
|
|
*/ |
47
|
|
|
protected $shipperId = null; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var string|null |
51
|
|
|
*/ |
52
|
|
|
protected $shipperName = null; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var boolean|null |
56
|
|
|
*/ |
57
|
|
|
protected $unspecifiedDeliveryInterval = null; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var boolean|null |
61
|
|
|
*/ |
62
|
|
|
protected $workInHoliday = null; |
63
|
|
|
|
64
|
|
|
protected $mappingClasses = [ |
65
|
|
|
]; |
66
|
|
|
|
67
|
|
|
protected $propNameMap = []; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @return float|null |
71
|
|
|
*/ |
72
|
1 |
|
public function getCost() |
73
|
|
|
{ |
74
|
1 |
|
return $this->cost; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @return int|null |
79
|
|
|
*/ |
80
|
1 |
|
public function getDateSwitchHour() |
81
|
|
|
{ |
82
|
1 |
|
return $this->dateSwitchHour; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @return int|null |
87
|
|
|
*/ |
88
|
1 |
|
public function getMinDeliveryDays() |
89
|
|
|
{ |
90
|
1 |
|
return $this->minDeliveryDays; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @return int|null |
95
|
|
|
*/ |
96
|
1 |
|
public function getMaxDeliveryDays() |
97
|
|
|
{ |
98
|
1 |
|
return $this->maxDeliveryDays; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* @return float|null |
103
|
|
|
*/ |
104
|
1 |
|
public function getPriceFrom() |
105
|
|
|
{ |
106
|
1 |
|
return $this->priceFrom; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @return float|null |
111
|
|
|
*/ |
112
|
1 |
|
public function getPriceTo() |
113
|
|
|
{ |
114
|
1 |
|
return $this->priceTo; |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* @return null|string |
119
|
|
|
*/ |
120
|
1 |
|
public function getShipperHumanReadableId() |
121
|
|
|
{ |
122
|
1 |
|
return $this->shipperHumanReadableId; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* @return int|null |
127
|
|
|
*/ |
128
|
1 |
|
public function getShipperId() |
129
|
|
|
{ |
130
|
1 |
|
return $this->shipperId; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @return null|string |
135
|
|
|
*/ |
136
|
1 |
|
public function getShipperName() |
137
|
|
|
{ |
138
|
1 |
|
return $this->shipperName; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* @return bool|null |
143
|
|
|
*/ |
144
|
1 |
|
public function getUnspecifiedDeliveryInterval() |
145
|
|
|
{ |
146
|
1 |
|
return $this->unspecifiedDeliveryInterval; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @return bool|null |
151
|
|
|
*/ |
152
|
1 |
|
public function getWorkInHoliday() |
153
|
|
|
{ |
154
|
1 |
|
return $this->workInHoliday; |
155
|
|
|
} |
156
|
|
|
} |
157
|
|
|
|