1 | <?php |
||
11 | class Payment |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $id; |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $token; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $status; |
||
25 | /** |
||
26 | * @var \DateTime |
||
27 | */ |
||
28 | protected $created; |
||
29 | /** |
||
30 | * @var Money |
||
31 | */ |
||
32 | protected $totalAmount; |
||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $merchantReference; |
||
37 | /** |
||
38 | * @var PaymentEvent[] |
||
39 | */ |
||
40 | protected $events = [ ]; |
||
41 | /** |
||
42 | * @var Refund[] |
||
43 | */ |
||
44 | protected $refunds = [ ]; |
||
45 | /** |
||
46 | * @var OrderDetails |
||
47 | */ |
||
48 | protected $orderDetails; |
||
49 | |||
50 | /** |
||
51 | * @return int |
||
52 | */ |
||
53 | public function getId() |
||
57 | |||
58 | /** |
||
59 | * @param string $id |
||
60 | * @return $this |
||
61 | */ |
||
62 | public function setId($id) |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getToken() |
||
76 | |||
77 | /** |
||
78 | * @param string $token |
||
79 | * @return $this |
||
80 | */ |
||
81 | public function setToken($token) |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getStatus() |
||
95 | |||
96 | /** |
||
97 | * @param string $status |
||
98 | * @return $this |
||
99 | */ |
||
100 | public function setStatus($status) |
||
106 | |||
107 | /** |
||
108 | * @return \DateTime |
||
109 | */ |
||
110 | public function getCreated() |
||
114 | |||
115 | /** |
||
116 | * @param \DateTime $created |
||
117 | * @return $this |
||
118 | */ |
||
119 | public function setCreated(\DateTime $created) |
||
125 | |||
126 | /** |
||
127 | * @return Money |
||
128 | */ |
||
129 | public function getTotalAmount() |
||
133 | |||
134 | /** |
||
135 | * @param Money $totalAmount |
||
136 | * @return $this |
||
137 | */ |
||
138 | public function setTotalAmount(Money $totalAmount) |
||
144 | |||
145 | /** |
||
146 | * @return string |
||
147 | */ |
||
148 | public function getMerchantReference() |
||
152 | |||
153 | /** |
||
154 | * @param string $merchantReference |
||
155 | * @return $this |
||
156 | */ |
||
157 | public function setMerchantReference($merchantReference) |
||
163 | |||
164 | /** |
||
165 | * @return PaymentEvent[] |
||
166 | */ |
||
167 | public function getEvents() |
||
171 | |||
172 | /** |
||
173 | * @param PaymentEvent[] $events |
||
174 | * @return $this |
||
175 | */ |
||
176 | public function setEvents(array $events) |
||
182 | |||
183 | /** |
||
184 | * @return Refund[] |
||
185 | */ |
||
186 | public function getRefunds() |
||
190 | |||
191 | /** |
||
192 | * @param Refund[] $refunds |
||
193 | * @return $this |
||
194 | */ |
||
195 | public function setRefunds(array $refunds) |
||
201 | |||
202 | /** |
||
203 | * @return OrderDetails |
||
204 | */ |
||
205 | public function getOrderDetails() |
||
209 | |||
210 | /** |
||
211 | * @param OrderDetails $orderDetails |
||
212 | * @return $this |
||
213 | */ |
||
214 | public function setOrderDetails(OrderDetails $orderDetails) |
||
220 | } |
||
221 |