1 | <?php |
||
12 | final class RequestData extends AbstractRequestData |
||
13 | { |
||
14 | /** |
||
15 | * The subscription ID. |
||
16 | * |
||
17 | * @var integer |
||
18 | * |
||
19 | * @JMS\Type("integer") |
||
20 | * @JMS\SerializedName("SUBSCRIPTION_ID") |
||
21 | */ |
||
22 | protected $subscriptionId; |
||
23 | |||
24 | /** |
||
25 | * The subscription next event. |
||
26 | * |
||
27 | * @var \DateTime |
||
28 | * |
||
29 | * @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
||
30 | * @JMS\SerializedName("NEXT_EVENT") |
||
31 | */ |
||
32 | protected $nextEvent; |
||
33 | |||
34 | /** |
||
35 | * The external subscription ID. |
||
36 | * |
||
37 | * @var string |
||
38 | * |
||
39 | * @JMS\Type("string") |
||
40 | * @JMS\SerializedName("SUBSCRIPTION_EXT_UID") |
||
41 | */ |
||
42 | protected $subscriptionExternalId; |
||
43 | |||
44 | /** |
||
45 | * The subscription status. |
||
46 | * |
||
47 | * @var string |
||
48 | * |
||
49 | * @JMS\Type("string") |
||
50 | * @JMS\SerializedName("STATUS") |
||
51 | */ |
||
52 | protected $status; |
||
53 | |||
54 | /** |
||
55 | * The subscription X-Attribute. |
||
56 | * |
||
57 | * @var array |
||
58 | * |
||
59 | * @JMS\Type("array") |
||
60 | * @JMS\SerializedName("X_ATTRIBUTES") |
||
61 | */ |
||
62 | protected $xAttributes = array(); |
||
63 | |||
64 | /** |
||
65 | * Product features. |
||
66 | * |
||
67 | * @var array |
||
68 | * |
||
69 | * @JMS\Type("array<Speicher210\Fastbill\Api\Model\Feature>") |
||
70 | * @JMS\SerializedName("FEATURES") |
||
71 | */ |
||
72 | protected $features = array(); |
||
73 | |||
74 | /** |
||
75 | * Constructor. |
||
76 | * |
||
77 | * @param integer $subscriptionId The subscription ID. |
||
78 | */ |
||
79 | 3 | public function __construct($subscriptionId) |
|
83 | |||
84 | /** |
||
85 | * Get the subscription ID of the request body. |
||
86 | * |
||
87 | * @return integer |
||
88 | */ |
||
89 | public function getSubscriptionId() |
||
93 | |||
94 | /** |
||
95 | * Set the subscription ID. |
||
96 | * |
||
97 | * @param integer $subscriptionId The subscription ID. |
||
98 | * @return RequestData |
||
99 | */ |
||
100 | 3 | public function setSubscriptionId($subscriptionId) |
|
104 | |||
105 | /** |
||
106 | * Get the next event date and time. |
||
107 | * |
||
108 | * @return \DateTime |
||
109 | */ |
||
110 | public function getNextEvent() |
||
114 | |||
115 | /** |
||
116 | * Set the next event date and time. |
||
117 | * |
||
118 | * @param \DateTime $nextEvent The next event date and time. |
||
119 | * @return RequestData |
||
120 | */ |
||
121 | 3 | public function setNextEvent(\DateTime $nextEvent = null) |
|
127 | |||
128 | /** |
||
129 | * Get the external subscription ID. |
||
130 | * |
||
131 | * @return string |
||
132 | */ |
||
133 | public function getSubscriptionExternalId() |
||
137 | |||
138 | /** |
||
139 | * Set the external subscription ID. |
||
140 | * |
||
141 | * @param string $subscriptionExternalId The external subscription ID. |
||
142 | * @return RequestData |
||
143 | */ |
||
144 | 3 | public function setSubscriptionExternalId($subscriptionExternalId) |
|
150 | |||
151 | /** |
||
152 | * Get the subscription status. |
||
153 | * |
||
154 | * @return string |
||
155 | */ |
||
156 | public function getStatus() |
||
160 | |||
161 | /** |
||
162 | * Set the subscription status. |
||
163 | * |
||
164 | * @param string $status The subscription status. |
||
165 | * @return RequestData |
||
166 | */ |
||
167 | 3 | public function setStatus($status) |
|
173 | |||
174 | /** |
||
175 | * @return array |
||
176 | */ |
||
177 | public function getXAttributes() |
||
181 | |||
182 | /** |
||
183 | * Set the subscription x attributes. |
||
184 | * |
||
185 | * @param array $xAttributes The subscription x attributes |
||
186 | * @return RequestData |
||
187 | */ |
||
188 | 3 | public function setXAttributes(array $xAttributes) |
|
194 | |||
195 | /** |
||
196 | * Get the features. |
||
197 | * |
||
198 | * @return array |
||
199 | */ |
||
200 | public function getFeatures() |
||
204 | |||
205 | /** |
||
206 | * Set the features. |
||
207 | * |
||
208 | * @param Feature[] $features The features. |
||
209 | * @return RequestData |
||
210 | */ |
||
211 | 3 | public function setFeatures(array $features) |
|
217 | } |
||
218 |