1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace AcquiroPay\Models\Entities; |
6
|
|
|
|
7
|
|
|
class Product extends Entity |
8
|
|
|
{ |
9
|
|
|
const TYPE_FREE_PRICE = 'FREE_PRICE'; |
10
|
|
|
const TYPE_FIXED_PRICE = 'FIXED_PRICE'; |
11
|
|
|
const TYPE_SUBSCRIBE = 'SUBSCRIBE'; |
12
|
|
|
|
13
|
|
|
private $status; |
14
|
|
|
private $type; |
15
|
|
|
private $price; |
16
|
|
|
private $description; |
17
|
|
|
private $allowRandomPrice; |
18
|
|
|
private $fields; |
19
|
|
|
private $currencyId; |
20
|
|
|
private $siteId; |
21
|
|
|
private $site; |
22
|
|
|
private $notifyUrl; |
23
|
|
|
private $workThrough; |
24
|
|
|
private $confirmPaymentType; |
25
|
|
|
private $notifyEmail; |
26
|
|
|
private $messengerNotifyUrl; |
27
|
|
|
private $supportEmail; |
28
|
|
|
private $supportPhone; |
29
|
|
|
private $accessUrl; |
30
|
|
|
private $secretWord; |
31
|
|
|
private $allowRebill; |
32
|
|
|
private $UUID; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var Payment[] |
36
|
|
|
*/ |
37
|
|
|
private $payments; |
38
|
|
|
|
39
|
|
|
|
40
|
|
|
public function getType(): ?string |
41
|
|
|
{ |
42
|
|
|
return $this->type; |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
public function setType(?string $type): void |
46
|
|
|
{ |
47
|
|
|
$this->type = $type; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
public function getPrice(): ?float |
51
|
|
|
{ |
52
|
|
|
return $this->price; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
public function setPrice(?float $price): void |
56
|
|
|
{ |
57
|
|
|
$this->price = $price; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
public function getDescription(): ?string |
61
|
|
|
{ |
62
|
|
|
return $this->description; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
public function setDescription(?string $description): void |
66
|
|
|
{ |
67
|
|
|
$this->description = $description; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
public function getAllowRandomPrice(): bool |
71
|
|
|
{ |
72
|
|
|
return $this->allowRandomPrice; |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
public function setAllowRandomPrice(bool $allowRandomPrice): void |
76
|
|
|
{ |
77
|
|
|
$this->allowRandomPrice = $allowRandomPrice; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
public function getFields(): ?string |
81
|
|
|
{ |
82
|
|
|
return $this->fields; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
public function setFields(?string $fields): void |
86
|
|
|
{ |
87
|
|
|
$this->fields = $fields; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
public function getCurrencyId(): ?int |
91
|
|
|
{ |
92
|
|
|
return $this->currencyId; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
public function setCurrencyId(?int $currencyId): void |
96
|
|
|
{ |
97
|
|
|
$this->currencyId = $currencyId; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
public function getSiteId(): ?int |
101
|
|
|
{ |
102
|
|
|
return $this->siteId; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
public function setSiteId(?int $siteId): void |
106
|
|
|
{ |
107
|
|
|
$this->siteId = $siteId; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
public function getSite(): ?Site |
111
|
|
|
{ |
112
|
|
|
return $this->site; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
public function setSite(?Site $site): void |
116
|
|
|
{ |
117
|
|
|
$this->site = $site; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @return Payment[] |
122
|
|
|
*/ |
123
|
|
|
public function getPayments(): array |
124
|
|
|
{ |
125
|
|
|
return $this->payments; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @param Payment[] $payments |
130
|
|
|
*/ |
131
|
|
|
public function setPayments(array $payments) |
132
|
|
|
{ |
133
|
|
|
$this->payments = $payments; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
public function getStatus(): ?string |
137
|
|
|
{ |
138
|
|
|
return $this->status; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
public function setStatus(?string $status) |
142
|
|
|
{ |
143
|
|
|
$this->status = $status; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
public function getNotifyUrl(): ?string |
147
|
|
|
{ |
148
|
|
|
return $this->notifyUrl; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
public function setNotifyUrl(?string $notifyUrl) |
152
|
|
|
{ |
153
|
|
|
$this->notifyUrl = $notifyUrl; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
public function getWorkThrough():?string |
157
|
|
|
{ |
158
|
|
|
return $this->workThrough; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
public function setWorkThrough(?string $workThrough) |
162
|
|
|
{ |
163
|
|
|
$this->workThrough = $workThrough; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
public function getConfirmPaymentType(): string |
167
|
|
|
{ |
168
|
|
|
return $this->confirmPaymentType; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
public function setConfirmPaymentType(string $confirmPaymentType) |
172
|
|
|
{ |
173
|
|
|
$this->confirmPaymentType = $confirmPaymentType; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
public function getNotifyEmail(): ?string |
177
|
|
|
{ |
178
|
|
|
return $this->notifyEmail; |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
public function setNotifyEmail(?string $notifyEmail) |
182
|
|
|
{ |
183
|
|
|
$this->notifyEmail = $notifyEmail; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
public function getMessengerNotifyUrl(): ?string |
187
|
|
|
{ |
188
|
|
|
return $this->messengerNotifyUrl; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
public function setMessengerNotifyUrl(?string $messengerNotifyUrl) |
192
|
|
|
{ |
193
|
|
|
$this->messengerNotifyUrl = $messengerNotifyUrl; |
194
|
|
|
} |
195
|
|
|
|
196
|
|
|
public function getSupportEmail(): ?string |
197
|
|
|
{ |
198
|
|
|
return $this->supportEmail; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
public function setSupportEmail(?string $supportEmail) |
202
|
|
|
{ |
203
|
|
|
$this->supportEmail = $supportEmail; |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
public function getSupportPhone(): ?string |
207
|
|
|
{ |
208
|
|
|
return $this->supportPhone; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
public function setSupportPhone(?string $supportPhone) |
212
|
|
|
{ |
213
|
|
|
$this->supportPhone = $supportPhone; |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
public function getAccessUrl(): ?string |
217
|
|
|
{ |
218
|
|
|
return $this->accessUrl; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
public function setAccessUrl(?string $accessUrl) |
222
|
|
|
{ |
223
|
|
|
$this->accessUrl = $accessUrl; |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
public function getSecretWord(): ?string |
227
|
|
|
{ |
228
|
|
|
return $this->secretWord; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
public function setSecretWord(?string $secretWord) |
232
|
|
|
{ |
233
|
|
|
$this->secretWord = $secretWord; |
234
|
|
|
} |
235
|
|
|
|
236
|
|
|
public function getAllowRebill():?int |
237
|
|
|
{ |
238
|
|
|
return $this->allowRebill; |
239
|
|
|
} |
240
|
|
|
|
241
|
|
|
public function setAllowRebill(?int $allowRebill) |
242
|
|
|
{ |
243
|
|
|
$this->allowRebill = $allowRebill; |
244
|
|
|
} |
245
|
|
|
|
246
|
|
|
public function getUUID(): ?string |
247
|
|
|
{ |
248
|
|
|
return $this->UUID; |
249
|
|
|
} |
250
|
|
|
|
251
|
|
|
public function setUUID(?string $UUID) |
252
|
|
|
{ |
253
|
|
|
$this->UUID = $UUID; |
254
|
|
|
} |
255
|
|
|
} |
256
|
|
|
|