1 | <?php |
||
10 | abstract class Transaction |
||
11 | { |
||
12 | /** |
||
13 | * REQUIRED |
||
14 | * |
||
15 | * Transaction amount, in cents (such as 4207 for 42,07€). |
||
16 | * |
||
17 | * @var integer |
||
18 | */ |
||
19 | private $amount; |
||
20 | |||
21 | /** |
||
22 | * The customer’s email address, either provided when creating the payment URL |
||
23 | * or entered manually on the payment page by the customer. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | private $email; |
||
28 | |||
29 | /** |
||
30 | * The customer’s first name, either provided when creating the payment URL |
||
31 | * or entered manually on the payment page by the customer. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | private $firstName; |
||
36 | |||
37 | /** |
||
38 | * The customer’s last name, either provided when creating the payment URL |
||
39 | * or entered manually on the payment page by the customer. |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | private $lastName; |
||
44 | |||
45 | /** |
||
46 | * Customer ID provided when creating the payment URL. |
||
47 | * |
||
48 | * @var string |
||
49 | */ |
||
50 | private $customer; |
||
51 | |||
52 | /** |
||
53 | * Order ID provided when creating the payment URL. |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | private $order; |
||
58 | |||
59 | /** |
||
60 | * Custom data provided when creating the payment URL. |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | private $customData; |
||
65 | |||
66 | /** |
||
67 | * Information about your website version (e.g., ‘My Website 1.2 payplug_php0.9 PHP 5.3’), |
||
68 | * provided when creating the payment URL, with additional data sent by the library itself. |
||
69 | * |
||
70 | * @var string |
||
71 | */ |
||
72 | private $origin; |
||
73 | |||
74 | /** |
||
75 | * Set amount |
||
76 | * |
||
77 | * @param integer $amount |
||
78 | * @return Transaction |
||
79 | */ |
||
80 | public function setAmount($amount) |
||
86 | |||
87 | /** |
||
88 | * Get amount |
||
89 | * |
||
90 | * @return integer |
||
91 | */ |
||
92 | public function getAmount() |
||
96 | |||
97 | /** |
||
98 | * Set email |
||
99 | * |
||
100 | * @param string $email |
||
101 | * @return Transaction |
||
102 | */ |
||
103 | public function setEmail($email) |
||
109 | |||
110 | /** |
||
111 | * Get email |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | public function getEmail() |
||
119 | |||
120 | /** |
||
121 | * Set firstName |
||
122 | * |
||
123 | * @param string $firstName |
||
124 | * @return Transaction |
||
125 | */ |
||
126 | public function setFirstName($firstName) |
||
132 | |||
133 | /** |
||
134 | * Get firstName |
||
135 | * |
||
136 | * @return string |
||
137 | */ |
||
138 | public function getFirstName() |
||
142 | |||
143 | /** |
||
144 | * Set lastName |
||
145 | * |
||
146 | * @param string $lastName |
||
147 | * @return Transaction |
||
148 | */ |
||
149 | public function setLastName($lastName) |
||
155 | |||
156 | /** |
||
157 | * Get lastName |
||
158 | * |
||
159 | * @return string |
||
160 | */ |
||
161 | public function getLastName() |
||
165 | |||
166 | /** |
||
167 | * Set customer |
||
168 | * |
||
169 | * @param string $customer |
||
170 | * @return Transaction |
||
171 | */ |
||
172 | public function setCustomer($customer) |
||
178 | |||
179 | /** |
||
180 | * Get customer |
||
181 | * |
||
182 | * @return string |
||
183 | */ |
||
184 | public function getCustomer() |
||
188 | |||
189 | /** |
||
190 | * Set order |
||
191 | * |
||
192 | * @param string $order |
||
193 | * @return Transaction |
||
194 | */ |
||
195 | public function setOrder($order) |
||
201 | |||
202 | /** |
||
203 | * Get order |
||
204 | * |
||
205 | * @return string |
||
206 | */ |
||
207 | public function getOrder() |
||
211 | |||
212 | /** |
||
213 | * Set customData |
||
214 | * |
||
215 | * @param string $customData |
||
216 | * @return Transaction |
||
217 | */ |
||
218 | public function setCustomData($customData) |
||
224 | |||
225 | /** |
||
226 | * Get customData |
||
227 | * |
||
228 | * @return string |
||
229 | */ |
||
230 | public function getCustomData() |
||
234 | |||
235 | /** |
||
236 | * Set origin |
||
237 | * |
||
238 | * @param string $origin |
||
239 | * @return Transaction |
||
240 | */ |
||
241 | public function setOrigin($origin) |
||
247 | |||
248 | /** |
||
249 | * Get origin |
||
250 | * |
||
251 | * @return string |
||
252 | */ |
||
253 | public function getOrigin() |
||
257 | } |
||
258 |