1 | <?php |
||
11 | class Receipt extends Template |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $recipientName; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $orderNumber; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $currency; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $paymentMethod; |
||
32 | |||
33 | /** |
||
34 | * @var Element[] |
||
35 | */ |
||
36 | private $elements; |
||
37 | |||
38 | /** |
||
39 | * @var Summary |
||
40 | */ |
||
41 | private $summary; |
||
42 | |||
43 | /** |
||
44 | * @var null|string |
||
45 | */ |
||
46 | private $timestamp; |
||
47 | |||
48 | /** |
||
49 | * @var null|string |
||
50 | */ |
||
51 | private $orderUrl; |
||
52 | |||
53 | /** |
||
54 | * @var null|Address |
||
55 | */ |
||
56 | private $address; |
||
57 | |||
58 | /** |
||
59 | * @var Adjustment[] |
||
60 | */ |
||
61 | private $adjustments; |
||
62 | |||
63 | /** |
||
64 | * @param string $recipientName |
||
65 | * @param string $orderNumber |
||
66 | * @param string $currency |
||
67 | * @param string $paymentMethod |
||
68 | * @param Element[] $elements |
||
69 | * @param Summary $summary |
||
70 | */ |
||
71 | 18 | public function __construct($recipientName, $orderNumber, $currency, $paymentMethod, array $elements, Summary $summary) |
|
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | 1 | public function getRecipientName() |
|
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | 1 | public function getOrderNumber() |
|
97 | |||
98 | /** |
||
99 | * @return string |
||
100 | */ |
||
101 | 1 | public function getCurrency() |
|
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | 1 | public function getPaymentMethod() |
|
113 | |||
114 | /** |
||
115 | * @return Receipt\Element[] |
||
116 | */ |
||
117 | 1 | public function getElements() |
|
121 | |||
122 | /** |
||
123 | * @return Summary |
||
124 | */ |
||
125 | 1 | public function getSummary() |
|
129 | |||
130 | /** |
||
131 | * @return null|string |
||
132 | */ |
||
133 | 2 | public function getTimestamp() |
|
137 | |||
138 | /** |
||
139 | * @return null|string |
||
140 | */ |
||
141 | 2 | public function getOrderUrl() |
|
145 | |||
146 | /** |
||
147 | * @return null|Address |
||
148 | */ |
||
149 | 2 | public function getAddress() |
|
153 | |||
154 | /** |
||
155 | * @return Adjustment[] |
||
156 | */ |
||
157 | 2 | public function getAdjustments() |
|
161 | |||
162 | /** |
||
163 | * @return string |
||
164 | */ |
||
165 | 2 | public function getType() |
|
169 | |||
170 | /** |
||
171 | * @param null|string $timestamp |
||
172 | */ |
||
173 | 2 | public function setTimestamp($timestamp) |
|
177 | |||
178 | /** |
||
179 | * @param null|string $orderUrl |
||
180 | */ |
||
181 | 2 | public function setOrderUrl($orderUrl) |
|
185 | |||
186 | /** |
||
187 | * @param null|Address $address |
||
188 | */ |
||
189 | 2 | public function setAddress(Address $address = null) |
|
193 | |||
194 | /** |
||
195 | * @param Adjustment[] $adjustments |
||
196 | */ |
||
197 | 2 | public function setAdjustments(array $adjustments) |
|
201 | |||
202 | /** |
||
203 | * @inheritdoc |
||
204 | */ |
||
205 | 1 | public function jsonSerialize() |
|
221 | } |
||
222 |