1 | <?php |
||
12 | class PaymentDetails extends Message |
||
13 | { |
||
14 | |||
15 | /** @var string */ |
||
16 | public $network = 'main'; |
||
17 | |||
18 | /** @var \Bip70\Protobuf\Proto\Output[] */ |
||
19 | public $outputs = array(); |
||
20 | |||
21 | /** @var int */ |
||
22 | public $time; |
||
23 | |||
24 | /** @var int */ |
||
25 | public $expires; |
||
26 | |||
27 | /** @var string */ |
||
28 | public $memo; |
||
29 | |||
30 | /** @var string */ |
||
31 | public $payment_url; |
||
32 | |||
33 | /** @var string */ |
||
34 | public $merchant_data; |
||
35 | |||
36 | |||
37 | /** @var \Closure[] */ |
||
38 | protected static $__extensions = array(); |
||
39 | |||
40 | 1 | public static function descriptor() |
|
108 | |||
109 | /** |
||
110 | * Check if <network> has a value |
||
111 | * |
||
112 | * @return boolean |
||
113 | */ |
||
114 | 1 | public function hasNetwork() |
|
118 | |||
119 | /** |
||
120 | * Clear <network> value |
||
121 | * |
||
122 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
123 | */ |
||
124 | 1 | public function clearNetwork() |
|
128 | |||
129 | /** |
||
130 | * Get <network> value |
||
131 | * |
||
132 | * @return string |
||
133 | */ |
||
134 | 1 | public function getNetwork() |
|
138 | |||
139 | /** |
||
140 | * Set <network> value |
||
141 | * |
||
142 | * @param string $value |
||
143 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
144 | */ |
||
145 | 1 | public function setNetwork($value) |
|
149 | |||
150 | /** |
||
151 | * Check if <outputs> has a value |
||
152 | * |
||
153 | * @return boolean |
||
154 | */ |
||
155 | 2 | public function hasOutputs() |
|
159 | |||
160 | /** |
||
161 | * Clear <outputs> value |
||
162 | * |
||
163 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
164 | */ |
||
165 | 2 | public function clearOutputs() |
|
169 | |||
170 | /** |
||
171 | * Get <outputs> value |
||
172 | * |
||
173 | * @param int $idx |
||
174 | * @return \Bip70\Protobuf\Proto\Output |
||
175 | */ |
||
176 | 2 | public function getOutputs($idx = null) |
|
180 | |||
181 | /** |
||
182 | * Set <outputs> value |
||
183 | * |
||
184 | * @param \Bip70\Protobuf\Proto\Output $value |
||
185 | * @param int $idx |
||
186 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
187 | */ |
||
188 | 2 | public function setOutputs(\Bip70\Protobuf\Proto\Output $value, $idx = null) |
|
192 | |||
193 | /** |
||
194 | * Get all elements of <outputs> |
||
195 | * |
||
196 | * @return \Bip70\Protobuf\Proto\Output[] |
||
197 | */ |
||
198 | 2 | public function getOutputsList() |
|
202 | |||
203 | /** |
||
204 | * Add a new element to <outputs> |
||
205 | * |
||
206 | * @param \Bip70\Protobuf\Proto\Output $value |
||
207 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
208 | */ |
||
209 | 1 | public function addOutputs(\Bip70\Protobuf\Proto\Output $value) |
|
213 | |||
214 | /** |
||
215 | * Check if <time> has a value |
||
216 | * |
||
217 | * @return boolean |
||
218 | */ |
||
219 | 2 | public function hasTime() |
|
223 | |||
224 | /** |
||
225 | * Clear <time> value |
||
226 | * |
||
227 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
228 | */ |
||
229 | 1 | public function clearTime() |
|
233 | |||
234 | /** |
||
235 | * Get <time> value |
||
236 | * |
||
237 | * @return int |
||
238 | */ |
||
239 | 2 | public function getTime() |
|
243 | |||
244 | /** |
||
245 | * Set <time> value |
||
246 | * |
||
247 | * @param int $value |
||
248 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
249 | */ |
||
250 | 18 | public function setTime($value) |
|
254 | |||
255 | /** |
||
256 | * Check if <expires> has a value |
||
257 | * |
||
258 | * @return boolean |
||
259 | */ |
||
260 | 1 | public function hasExpires() |
|
264 | |||
265 | /** |
||
266 | * Clear <expires> value |
||
267 | * |
||
268 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
269 | */ |
||
270 | 1 | public function clearExpires() |
|
274 | |||
275 | /** |
||
276 | * Get <expires> value |
||
277 | * |
||
278 | * @return int |
||
279 | */ |
||
280 | 1 | public function getExpires() |
|
284 | |||
285 | /** |
||
286 | * Set <expires> value |
||
287 | * |
||
288 | * @param int $value |
||
289 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
290 | */ |
||
291 | 1 | public function setExpires($value) |
|
295 | |||
296 | /** |
||
297 | * Check if <memo> has a value |
||
298 | * |
||
299 | * @return boolean |
||
300 | */ |
||
301 | 1 | public function hasMemo() |
|
305 | |||
306 | /** |
||
307 | * Clear <memo> value |
||
308 | * |
||
309 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
310 | */ |
||
311 | 1 | public function clearMemo() |
|
315 | |||
316 | /** |
||
317 | * Get <memo> value |
||
318 | * |
||
319 | * @return string |
||
320 | */ |
||
321 | 1 | public function getMemo() |
|
325 | |||
326 | /** |
||
327 | * Set <memo> value |
||
328 | * |
||
329 | * @param string $value |
||
330 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
331 | */ |
||
332 | 1 | public function setMemo($value) |
|
336 | |||
337 | /** |
||
338 | * Check if <payment_url> has a value |
||
339 | * |
||
340 | * @return boolean |
||
341 | */ |
||
342 | 1 | public function hasPaymentUrl() |
|
346 | |||
347 | /** |
||
348 | * Clear <payment_url> value |
||
349 | * |
||
350 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
351 | */ |
||
352 | 1 | public function clearPaymentUrl() |
|
356 | |||
357 | /** |
||
358 | * Get <payment_url> value |
||
359 | * |
||
360 | * @return string |
||
361 | */ |
||
362 | 1 | public function getPaymentUrl() |
|
366 | |||
367 | /** |
||
368 | * Set <payment_url> value |
||
369 | * |
||
370 | * @param string $value |
||
371 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
372 | */ |
||
373 | 1 | public function setPaymentUrl($value) |
|
377 | |||
378 | /** |
||
379 | * Check if <merchant_data> has a value |
||
380 | * |
||
381 | * @return boolean |
||
382 | */ |
||
383 | 1 | public function hasMerchantData() |
|
387 | |||
388 | /** |
||
389 | * Clear <merchant_data> value |
||
390 | * |
||
391 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
392 | */ |
||
393 | 1 | public function clearMerchantData() |
|
397 | |||
398 | /** |
||
399 | * Get <merchant_data> value |
||
400 | * |
||
401 | * @return string |
||
402 | */ |
||
403 | 1 | public function getMerchantData() |
|
407 | |||
408 | /** |
||
409 | * Set <merchant_data> value |
||
410 | * |
||
411 | * @param string $value |
||
412 | * @return \Bip70\Protobuf\Proto\PaymentDetails |
||
413 | */ |
||
414 | 1 | public function setMerchantData($value) |
|
418 | } |
||
419 |