1 | <?php |
||
10 | class PreCheckout |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $payload; |
||
16 | |||
17 | /** |
||
18 | * @var \Kerox\Messenger\Model\Callback\Payment\RequestedUserInfo |
||
19 | */ |
||
20 | protected $requestedUserInfo; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $amount; |
||
26 | |||
27 | /** |
||
28 | * PreCheckout constructor. |
||
29 | */ |
||
30 | 1 | public function __construct(string $payload, RequestedUserInfo $requestedUserInfo, array $amount) |
|
36 | |||
37 | 1 | public function getPayload(): string |
|
41 | |||
42 | 1 | public function getRequestedUserInfo(): RequestedUserInfo |
|
46 | |||
47 | 1 | public function getShippingAddress(): Address |
|
51 | |||
52 | 1 | public function getCurrency(): ?string |
|
56 | |||
57 | 1 | public function getAmount(): ?string |
|
61 | |||
62 | /** |
||
63 | * @return \Kerox\Messenger\Model\Callback\PreCheckout |
||
64 | */ |
||
65 | 1 | public static function create(array $callbackData): self |
|
71 | } |
||
72 |