1 | <?php |
||
12 | class Refund |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $refundId; |
||
18 | /** |
||
19 | * @var DateTime |
||
20 | */ |
||
21 | protected $refundedAt; |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $merchantReference; |
||
26 | /** |
||
27 | * @var Money |
||
28 | */ |
||
29 | protected $amount; |
||
30 | |||
31 | /** |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getRefundId() |
||
35 | { |
||
36 | return $this->refundId; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return DateTime |
||
41 | */ |
||
42 | public function getRefundedAt() |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getMerchantReference() |
||
54 | |||
55 | /** |
||
56 | * @return Money |
||
57 | */ |
||
58 | public function getAmount() |
||
62 | |||
63 | /** |
||
64 | * @param string $refundId |
||
65 | * @return $this |
||
66 | */ |
||
67 | public function setRefundId($refundId) |
||
68 | { |
||
69 | $this->refundId = $refundId; |
||
70 | |||
71 | return $this; |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * @param DateTime $refundedAt |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function setRefundedAt(DateTime $refundedAt) |
||
84 | |||
85 | /** |
||
86 | * @param string $merchantReference |
||
87 | * @return $this |
||
88 | */ |
||
89 | public function setMerchantReference($merchantReference) |
||
95 | |||
96 | /** |
||
97 | * @param Money $amount |
||
98 | * @return $this |
||
99 | */ |
||
100 | public function setAmount(Money $amount) |
||
106 | } |
||
107 |