1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Yandex\Market\Partner\Models; |
4
|
|
|
|
5
|
|
|
use Yandex\Market\Partner\Models\DatesRange; |
6
|
|
|
use Yandex\Market\Partner\Models\Outlets; |
7
|
|
|
use Yandex\Common\Model; |
8
|
|
|
|
9
|
|
|
class DeliveryOption extends Model |
10
|
|
|
{ |
11
|
|
|
|
12
|
|
|
protected $id = null; |
13
|
|
|
|
14
|
|
|
protected $type = null; |
15
|
|
|
|
16
|
|
|
protected $serviceName = null; |
17
|
|
|
|
18
|
|
|
protected $price = null; |
19
|
|
|
|
20
|
|
|
protected $dates = null; |
21
|
|
|
|
22
|
|
|
protected $outlets = null; |
23
|
|
|
|
24
|
|
|
protected $paymentMethods = null; |
25
|
|
|
|
26
|
|
|
protected $mappingClasses = [ |
27
|
|
|
'dates' => 'Yandex\Market\Partner\Models\DatesRange', |
28
|
|
|
'outlets' => 'Yandex\Market\Partner\Models\Outlets' |
29
|
|
|
]; |
30
|
|
|
|
31
|
|
|
protected $propNameMap = []; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* Retrieve the id property |
35
|
|
|
* |
36
|
|
|
* @return string|null |
37
|
|
|
*/ |
38
|
|
|
public function getId() |
39
|
|
|
{ |
40
|
|
|
return $this->id; |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* Set the id property |
45
|
|
|
* |
46
|
|
|
* @param string $id |
47
|
|
|
* @return $this |
48
|
|
|
*/ |
49
|
|
|
public function setId($id) |
50
|
|
|
{ |
51
|
|
|
$this->id = $id; |
52
|
|
|
return $this; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* Retrieve the type property |
57
|
|
|
* |
58
|
|
|
* @return string|null |
59
|
|
|
*/ |
60
|
|
|
public function getType() |
61
|
|
|
{ |
62
|
|
|
return $this->type; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* Set the type property |
67
|
|
|
* |
68
|
|
|
* @param string $type |
69
|
|
|
* @return $this |
70
|
|
|
*/ |
71
|
1 |
|
public function setType($type) |
72
|
|
|
{ |
73
|
1 |
|
$this->type = $type; |
74
|
1 |
|
return $this; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* Retrieve the serviceName property |
79
|
|
|
* |
80
|
|
|
* @return string|null |
81
|
|
|
*/ |
82
|
|
|
public function getServiceName() |
83
|
|
|
{ |
84
|
|
|
return $this->serviceName; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* Set the serviceName property |
89
|
|
|
* |
90
|
|
|
* @param string $serviceName |
91
|
|
|
* @return $this |
92
|
|
|
*/ |
93
|
1 |
|
public function setServiceName($serviceName) |
94
|
|
|
{ |
95
|
1 |
|
$this->serviceName = $serviceName; |
96
|
1 |
|
return $this; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* Retrieve the price property |
101
|
|
|
* |
102
|
|
|
* @return int|null |
103
|
|
|
*/ |
104
|
|
|
public function getPrice() |
105
|
|
|
{ |
106
|
|
|
return $this->price; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* Set the price property |
111
|
|
|
* |
112
|
|
|
* @param int $price |
113
|
|
|
* @return $this |
114
|
|
|
*/ |
115
|
1 |
|
public function setPrice($price) |
116
|
|
|
{ |
117
|
1 |
|
$this->price = $price; |
118
|
1 |
|
return $this; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* Retrieve the dates property |
123
|
|
|
* |
124
|
|
|
* @return DatesRange|null |
125
|
|
|
*/ |
126
|
|
|
public function getDates() |
127
|
|
|
{ |
128
|
|
|
return $this->dates; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* Set the dates property |
133
|
|
|
* |
134
|
|
|
* @param DatesRange $dates |
135
|
|
|
* @return $this |
136
|
|
|
*/ |
137
|
1 |
|
public function setDates($dates) |
138
|
|
|
{ |
139
|
1 |
|
$this->dates = $dates; |
140
|
1 |
|
return $this; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* Retrieve the outlets property |
145
|
|
|
* |
146
|
|
|
* @return Outlets|null |
147
|
|
|
*/ |
148
|
|
|
public function getOutlets() |
149
|
|
|
{ |
150
|
|
|
return $this->outlets; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* Set the outlets property |
155
|
|
|
* |
156
|
|
|
* @param Outlets $outlets |
157
|
|
|
* @return $this |
158
|
|
|
*/ |
159
|
1 |
|
public function setOutlets($outlets) |
160
|
|
|
{ |
161
|
1 |
|
$this->outlets = $outlets; |
162
|
1 |
|
return $this; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* Retrieve the paymentMethods property |
167
|
|
|
* |
168
|
|
|
* @return array|null |
169
|
|
|
*/ |
170
|
|
|
public function getPaymentMethods() |
171
|
|
|
{ |
172
|
|
|
return $this->paymentMethods; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* Set the paymentMethods property |
177
|
|
|
* |
178
|
|
|
* @param array $paymentMethods |
179
|
|
|
* @return $this |
180
|
|
|
*/ |
181
|
|
|
public function setPaymentMethods($paymentMethods) |
182
|
|
|
{ |
183
|
|
|
$this->paymentMethods = $paymentMethods; |
184
|
|
|
return $this; |
185
|
|
|
} |
186
|
|
|
} |
187
|
|
|
|