1 | <?php |
||
11 | class ReceiptTemplate extends AbstractTemplate |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $recipientName; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $orderNumber; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $currency; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $paymentMethod; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $timestamp; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $orderUrl; |
||
42 | |||
43 | /** |
||
44 | * @var \Kerox\Messenger\Model\Message\Attachment\Template\Element\ReceiptElement[] |
||
45 | */ |
||
46 | protected $elements; |
||
47 | |||
48 | /** |
||
49 | * @var \Kerox\Messenger\Model\Common\Address|null |
||
50 | */ |
||
51 | protected $address; |
||
52 | |||
53 | /** |
||
54 | * @var \Kerox\Messenger\Model\Message\Attachment\Template\Receipt\Summary |
||
55 | */ |
||
56 | protected $summary; |
||
57 | |||
58 | /** |
||
59 | * @var \Kerox\Messenger\Model\Message\Attachment\Template\Receipt\Adjustment[]|null |
||
60 | */ |
||
61 | protected $adjustments; |
||
62 | |||
63 | /** |
||
64 | * Receipt constructor. |
||
65 | * |
||
66 | * @param \Kerox\Messenger\Model\Message\Attachment\Template\Element\ReceiptElement[] $elements |
||
67 | * |
||
68 | * @throws \Kerox\Messenger\Exception\MessengerException |
||
69 | */ |
||
70 | 6 | public function __construct( |
|
89 | |||
90 | /** |
||
91 | *@throws \Kerox\Messenger\Exception\MessengerException |
||
92 | * |
||
93 | * @return \Kerox\Messenger\Model\Message\Attachment\Template\ReceiptTemplate |
||
94 | */ |
||
95 | 6 | public static function create( |
|
105 | |||
106 | /** |
||
107 | * @return \Kerox\Messenger\Model\Message\Attachment\Template\ReceiptTemplate |
||
108 | */ |
||
109 | 6 | public function setTimestamp(string $timestamp): self |
|
115 | |||
116 | /** |
||
117 | *@throws \Kerox\Messenger\Exception\MessengerException |
||
118 | * |
||
119 | * @return \Kerox\Messenger\Model\Message\Attachment\Template\ReceiptTemplate |
||
120 | */ |
||
121 | 6 | public function setOrderUrl(string $orderUrl): self |
|
129 | |||
130 | /** |
||
131 | * @return \Kerox\Messenger\Model\Message\Attachment\Template\ReceiptTemplate |
||
132 | */ |
||
133 | 6 | public function setAddress(Address $address): self |
|
139 | |||
140 | /** |
||
141 | * @param \Kerox\Messenger\Model\Message\Attachment\Template\Receipt\Adjustment[] $adjustments |
||
142 | * |
||
143 | * @return \Kerox\Messenger\Model\Message\Attachment\Template\ReceiptTemplate |
||
144 | */ |
||
145 | 6 | public function setAdjustments(array $adjustments): self |
|
151 | |||
152 | 5 | public function toArray(): array |
|
173 | } |
||
174 |