1 | <?php |
||
8 | class Receipt extends Template |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $recipientName; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $orderNumber; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $currency; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $paymentMethod; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $timestamp; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $orderUrl; |
||
40 | |||
41 | /** |
||
42 | * @var \Kerox\Messenger\Message\Attachment\Template\Element\ReceiptElement[] |
||
43 | */ |
||
44 | protected $elements; |
||
45 | |||
46 | /** |
||
47 | * @var null|\Kerox\Messenger\Message\Attachment\Template\Receipt\Address |
||
48 | */ |
||
49 | protected $address; |
||
50 | |||
51 | /** |
||
52 | * @var \Kerox\Messenger\Message\Attachment\Template\Receipt\Summary |
||
53 | */ |
||
54 | protected $summary; |
||
55 | |||
56 | /** |
||
57 | * @var null|\Kerox\Messenger\Message\Attachment\Template\Receipt\Adjustment[] |
||
58 | */ |
||
59 | protected $adjustments; |
||
60 | |||
61 | /** |
||
62 | * Receipt constructor. |
||
63 | * |
||
64 | * @param string $recipientName |
||
65 | * @param string $orderNumber |
||
66 | * @param string $currency |
||
67 | * @param string $paymentMethod |
||
68 | * @param \Kerox\Messenger\Message\Attachment\Template\Element\ReceiptElement[] $elements |
||
69 | * @param \Kerox\Messenger\Message\Attachment\Template\Receipt\Summary $summary |
||
70 | */ |
||
71 | public function __construct(string $recipientName, |
||
89 | |||
90 | /** |
||
91 | * @param string $timestamp |
||
92 | * @return Receipt |
||
93 | */ |
||
94 | public function setTimestamp(string $timestamp): Receipt |
||
100 | |||
101 | /** |
||
102 | * @param string $orderUrl |
||
103 | * @return Receipt |
||
104 | */ |
||
105 | public function setOrderUrl(string $orderUrl): Receipt |
||
112 | |||
113 | /** |
||
114 | * @param \Kerox\Messenger\Message\Attachment\Template\Receipt\Address $address |
||
115 | * @return Receipt |
||
116 | */ |
||
117 | public function setAddress(Address $address): Receipt |
||
123 | |||
124 | /** |
||
125 | * @param \Kerox\Messenger\Message\Attachment\Template\Receipt\Adjustment[] $adjustments |
||
126 | * @return Receipt |
||
127 | */ |
||
128 | public function setAdjustments(array $adjustments): Receipt |
||
134 | |||
135 | /** |
||
136 | * @return array |
||
137 | */ |
||
138 | public function jsonSerialize(): array |
||
161 | } |
||
162 |