1 | <?php |
||
13 | final class RequestData extends AbstractRequestData |
||
14 | { |
||
15 | /** |
||
16 | * The subscription ID. |
||
17 | * |
||
18 | * @var integer |
||
19 | * |
||
20 | * @JMS\Type("integer") |
||
21 | * @JMS\SerializedName("SUBSCRIPTION_ID") |
||
22 | */ |
||
23 | protected $subscriptionId; |
||
24 | |||
25 | /** |
||
26 | * The subscription quantity. |
||
27 | * |
||
28 | * @var integer |
||
29 | * |
||
30 | * @JMS\Type("integer") |
||
31 | * @JMS\SerializedName("QUANTITY") |
||
32 | */ |
||
33 | protected $quantity; |
||
34 | |||
35 | /** |
||
36 | * The subscription article number. |
||
37 | * |
||
38 | * @var string |
||
39 | * |
||
40 | * @JMS\Type("string") |
||
41 | * @JMS\SerializedName("ARTICLE_NUMBER") |
||
42 | */ |
||
43 | protected $articleNumber; |
||
44 | |||
45 | /** |
||
46 | * The title of the article. |
||
47 | * |
||
48 | * @var string |
||
49 | * |
||
50 | * @JMS\Type("string") |
||
51 | * @JMS\SerializedName("TITLE") |
||
52 | */ |
||
53 | protected $title; |
||
54 | |||
55 | /** |
||
56 | * The description of the article. |
||
57 | * |
||
58 | * @var string |
||
59 | * |
||
60 | * @JMS\Type("string") |
||
61 | * @JMS\SerializedName("DESCRIPTION") |
||
62 | */ |
||
63 | protected $description; |
||
64 | |||
65 | /** |
||
66 | * The unit price. |
||
67 | * |
||
68 | * @var float |
||
69 | * |
||
70 | * @JMS\Type("float") |
||
71 | * @JMS\SerializedName("UNIT_PRICE") |
||
72 | */ |
||
73 | protected $unitPrice; |
||
74 | |||
75 | /** |
||
76 | * The currency code. |
||
77 | * |
||
78 | * @var string |
||
79 | * |
||
80 | * @JMS\Type("string") |
||
81 | * @JMS\SerializedName("CURRENCY_CODE") |
||
82 | */ |
||
83 | protected $currencyCode; |
||
84 | |||
85 | /** |
||
86 | * Flag if reset addons. |
||
87 | * |
||
88 | * @var integer |
||
89 | * |
||
90 | * @JMS\Type("integer") |
||
91 | * @JMS\SerializedName("RESET_ADDONS") |
||
92 | */ |
||
93 | protected $resetAddons; |
||
94 | |||
95 | /** |
||
96 | * The coupon code. |
||
97 | * |
||
98 | * @var string |
||
99 | * |
||
100 | * @JMS\Type("string") |
||
101 | * @JMS\SerializedName("COUPON") |
||
102 | */ |
||
103 | protected $coupon; |
||
104 | |||
105 | /** |
||
106 | * Addons. |
||
107 | * |
||
108 | * @var array |
||
109 | * |
||
110 | * @JMS\Type("array<Speicher210\Fastbill\Api\Model\Addon>") |
||
111 | * @JMS\SerializedName("ADDONS") |
||
112 | */ |
||
113 | protected $addons; |
||
114 | |||
115 | /** |
||
116 | * Product features. |
||
117 | * |
||
118 | * @var array |
||
119 | * |
||
120 | * @JMS\Type("array<Speicher210\Fastbill\Api\Model\Feature>") |
||
121 | * @JMS\SerializedName("FEATURES") |
||
122 | */ |
||
123 | protected $features = array(); |
||
124 | |||
125 | /** |
||
126 | * Flag if suppress confirmation mail to customer. |
||
127 | * |
||
128 | * @var integer |
||
129 | * |
||
130 | * @JMS\Type("integer") |
||
131 | * @JMS\SerializedName("SUPPRESS_MAIL") |
||
132 | */ |
||
133 | protected $suppressMail; |
||
134 | |||
135 | /** |
||
136 | * Constructor. |
||
137 | * |
||
138 | * @param integer $subscriptionId The subscription ID. |
||
139 | * @param string $articleNumber The article number. |
||
140 | */ |
||
141 | 3 | public function __construct($subscriptionId, $articleNumber) |
|
142 | { |
||
143 | 3 | $this->setSubscriptionId($subscriptionId); |
|
144 | 3 | $this->setArticleNumber($articleNumber); |
|
145 | 3 | } |
|
146 | |||
147 | /** |
||
148 | * Get the subscription ID. |
||
149 | * |
||
150 | * @return integer |
||
151 | */ |
||
152 | public function getSubscriptionId() |
||
156 | |||
157 | /** |
||
158 | * Set the subscription ID. |
||
159 | * |
||
160 | * @param integer $subscriptionId The subscription ID. |
||
161 | * @return RequestData |
||
162 | */ |
||
163 | 3 | public function setSubscriptionId($subscriptionId) |
|
169 | |||
170 | /** |
||
171 | * Get the quantity. |
||
172 | * |
||
173 | * @return integer |
||
174 | */ |
||
175 | public function getQuantity() |
||
179 | |||
180 | /** |
||
181 | * Set the quantity. |
||
182 | * |
||
183 | * @param integer $quantity The quantity. |
||
184 | * @return RequestData |
||
185 | */ |
||
186 | public function setQuantity($quantity) |
||
195 | |||
196 | /** |
||
197 | * Get the article number. |
||
198 | * |
||
199 | * @return integer |
||
200 | */ |
||
201 | public function getArticleNumber() |
||
205 | |||
206 | /** |
||
207 | * Set the article number. |
||
208 | * |
||
209 | * @param string $articleNumber The article number. |
||
210 | * @return RequestData |
||
211 | */ |
||
212 | 3 | public function setArticleNumber($articleNumber) |
|
218 | |||
219 | /** |
||
220 | * Get the title. |
||
221 | * |
||
222 | * @return string |
||
223 | */ |
||
224 | public function getTitle() |
||
228 | |||
229 | /** |
||
230 | * Set the title. |
||
231 | * |
||
232 | * @param string $title The title. |
||
233 | * @return RequestData |
||
234 | */ |
||
235 | public function setTitle($title) |
||
241 | |||
242 | /** |
||
243 | * Get the description. |
||
244 | * |
||
245 | * @return string |
||
246 | */ |
||
247 | public function getDescription() |
||
251 | |||
252 | /** |
||
253 | * Set the description. |
||
254 | * |
||
255 | * @param string $description The description. |
||
256 | * @return RequestData |
||
257 | */ |
||
258 | public function setDescription($description) |
||
264 | |||
265 | /** |
||
266 | * Get the unit price. |
||
267 | * |
||
268 | * @return float |
||
269 | */ |
||
270 | public function getUnitPrice() |
||
274 | |||
275 | /** |
||
276 | * Set the unit price. |
||
277 | * |
||
278 | * @param float $unitPrice The price. |
||
279 | * @return RequestData |
||
280 | */ |
||
281 | public function setUnitPrice($unitPrice) |
||
287 | |||
288 | /** |
||
289 | * Get the currency code. |
||
290 | * |
||
291 | * @return string |
||
292 | */ |
||
293 | public function getCurrencyCode() |
||
297 | |||
298 | /** |
||
299 | * Set the currency code. |
||
300 | * |
||
301 | * @param string $currencyCode The currency code. |
||
302 | * @return RequestData |
||
303 | */ |
||
304 | public function setCurrencyCode($currencyCode) |
||
310 | |||
311 | /** |
||
312 | * Check if the addons should be reset. |
||
313 | * |
||
314 | * @return boolean |
||
315 | */ |
||
316 | public function isResetAddons() |
||
320 | |||
321 | /** |
||
322 | * Set if the addons should be reset. |
||
323 | * |
||
324 | * @param boolean $resetAddons Flag if reset addons. |
||
325 | * @return RequestData |
||
326 | */ |
||
327 | public function setResetAddons($resetAddons) |
||
333 | |||
334 | /** |
||
335 | * Get the coupon code. |
||
336 | * |
||
337 | * @return string |
||
338 | */ |
||
339 | public function getCoupon() |
||
343 | |||
344 | /** |
||
345 | * Set the coupon code. |
||
346 | * |
||
347 | * @param string $coupon The coupon code. |
||
348 | * @return RequestData |
||
349 | */ |
||
350 | public function setCoupon($coupon) |
||
356 | |||
357 | /** |
||
358 | * Get the addons. |
||
359 | * |
||
360 | * @return array |
||
361 | */ |
||
362 | public function getAddons() |
||
366 | |||
367 | /** |
||
368 | * Set the addons. |
||
369 | * |
||
370 | * @param Addon[] $addons The addons. |
||
371 | * @return RequestData |
||
372 | */ |
||
373 | public function setAddons(array $addons) |
||
379 | |||
380 | /** |
||
381 | * Get the features. |
||
382 | * |
||
383 | * @return array |
||
384 | */ |
||
385 | public function getFeatures() |
||
389 | |||
390 | /** |
||
391 | * Set the features. |
||
392 | * |
||
393 | * @param Feature[] $features The features. |
||
394 | * @return RequestData |
||
395 | */ |
||
396 | public function setFeatures(array $features) |
||
402 | |||
403 | /** |
||
404 | * Check if suppress mail. |
||
405 | * |
||
406 | * @return boolean |
||
407 | */ |
||
408 | public function getSuppressMail() |
||
412 | |||
413 | /** |
||
414 | * Set if suppress mail. |
||
415 | * |
||
416 | * @param boolean $suppressMail Flag if suppress confirmation mail to customer. |
||
417 | * @return RequestData |
||
418 | */ |
||
419 | public function setSuppressMail($suppressMail) |
||
425 | } |
||
426 |