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\Model\Message\Attachment\Template\Element\ReceiptElement[] |
||
43 | */ |
||
44 | protected $elements; |
||
45 | |||
46 | /** |
||
47 | * @var null|\Kerox\Messenger\Model\Message\Attachment\Template\Receipt\Address |
||
48 | */ |
||
49 | protected $address; |
||
50 | |||
51 | /** |
||
52 | * @var \Kerox\Messenger\Model\Message\Attachment\Template\Receipt\Summary |
||
53 | */ |
||
54 | protected $summary; |
||
55 | |||
56 | /** |
||
57 | * @var null|\Kerox\Messenger\Model\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\Model\Message\Attachment\Template\Element\ReceiptElement[] $elements |
||
69 | * @param \Kerox\Messenger\Model\Message\Attachment\Template\Receipt\Summary $summary |
||
70 | */ |
||
71 | public function __construct( |
||
90 | |||
91 | /** |
||
92 | * @param string $timestamp |
||
93 | * @return Receipt |
||
94 | */ |
||
95 | public function setTimestamp(string $timestamp): Receipt |
||
101 | |||
102 | /** |
||
103 | * @param string $orderUrl |
||
104 | * @return Receipt |
||
105 | */ |
||
106 | public function setOrderUrl(string $orderUrl): Receipt |
||
113 | |||
114 | /** |
||
115 | * @param \Kerox\Messenger\Model\Message\Attachment\Template\Receipt\Address $address |
||
116 | * @return Receipt |
||
117 | */ |
||
118 | public function setAddress(Address $address): Receipt |
||
124 | |||
125 | /** |
||
126 | * @param \Kerox\Messenger\Model\Message\Attachment\Template\Receipt\Adjustment[] $adjustments |
||
127 | * @return Receipt |
||
128 | */ |
||
129 | public function setAdjustments(array $adjustments): Receipt |
||
135 | |||
136 | /** |
||
137 | * @return array |
||
138 | */ |
||
139 | public function jsonSerialize(): array |
||
162 | } |
||
163 |