1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\Communication\Notification;
6
7 use Team3\PayU\Communication\Response\Model\RefundModelInterface;
8 use JMS\Serializer\Annotation as JMS;
9
10 /**
11 * This class represents notification received from PayU
12 * about any changes in money refund.
13 *
14 * Class RefundNotification
15 * @package Team3\PayU\Communication\Notification
16 */
17 class RefundNotification implements NotificationInterface
18 {
19 /**
20 * @var string
21 * @JMS\Type("string")
22 */
23 private $orderId;
24
25 /**
26 * @var string
27 * @JMS\Type("string")
28 */
29 private $extOrderId;
30
31 /**
32 * @var RefundModelInterface
33 * @JMS\Type("Team3\PayU\Communication\Response\Model\RefundModelInterface")
34 */
35 private $refund;
36
37 /**
38 * @return string
39 */
40 public function getOrderId()
41 {
42 return $this->orderId;
43 }
44
45 /**
46 * @return string
47 */
48 public function getExtOrderId()
49 {
50 return $this->extOrderId;
51 }
52
53 /**
54 * @return RefundModelInterface
55 */
56 public function getRefund()
57 {
58 return $this->refund;
59 }
60 }
61