1 | <?php |
||
11 | class Receipt extends Structured |
||
12 | { |
||
13 | const TEMPLATE_TYPE = 'receipt'; |
||
14 | |||
15 | /** |
||
16 | * @param string $recipientName |
||
17 | * @param string $orderNumber |
||
18 | * @param string $currency |
||
19 | * @param string $paymentMethod |
||
20 | * @param Element[] $elements |
||
21 | * @param Summary $summary |
||
22 | */ |
||
23 | 19 | public function __construct($recipientName, $orderNumber, $currency, $paymentMethod, array $elements, Summary $summary) |
|
39 | |||
40 | /** |
||
41 | * @return null|Address |
||
42 | */ |
||
43 | 2 | public function getAddress() |
|
47 | |||
48 | /** |
||
49 | * @return Adjustment[] |
||
50 | */ |
||
51 | 2 | public function getAdjustments() |
|
55 | |||
56 | /** |
||
57 | * @return Element[] |
||
58 | */ |
||
59 | 1 | public function getElements() |
|
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | 1 | public function getCurrency() |
|
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | 1 | public function getOrderNumber() |
|
79 | |||
80 | /** |
||
81 | * @return null|string |
||
82 | */ |
||
83 | 2 | public function getOrderUrl() |
|
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | 1 | public function getPaymentMethod() |
|
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | 1 | public function getRecipientName() |
|
103 | |||
104 | /** |
||
105 | * @return Summary |
||
106 | */ |
||
107 | 1 | public function getSummary() |
|
111 | |||
112 | /** |
||
113 | * @return null|string |
||
114 | */ |
||
115 | 2 | public function getTimestamp() |
|
119 | |||
120 | /** |
||
121 | * @param Address $address |
||
122 | */ |
||
123 | 2 | public function setAddress(Address $address) |
|
127 | |||
128 | /** |
||
129 | * @param Adjustment[] $adjustments |
||
130 | */ |
||
131 | 2 | public function setAdjustments(array $adjustments) |
|
135 | |||
136 | /** |
||
137 | * @param string $orderUrl |
||
138 | */ |
||
139 | 2 | public function setOrderUrl($orderUrl) |
|
143 | |||
144 | /** |
||
145 | * @param string $timestamp |
||
146 | */ |
||
147 | 2 | public function setTimestamp($timestamp) |
|
151 | } |
||
152 |