| 1 | <?php |
||
| 7 | class PreCheckout |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $payload; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var \Kerox\Messenger\Model\Callback\Payment\RequestedUserInfo |
||
| 17 | */ |
||
| 18 | protected $requestedUserInfo; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $amount; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * PreCheckout constructor. |
||
| 27 | * |
||
| 28 | * @param string $payload |
||
| 29 | * @param \Kerox\Messenger\Model\Callback\Payment\RequestedUserInfo $requestedUserInfo |
||
| 30 | * @param array $amount |
||
| 31 | */ |
||
| 32 | 4 | public function __construct(string $payload, RequestedUserInfo $requestedUserInfo, array $amount) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 1 | public function getPayload(): string |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return \Kerox\Messenger\Model\Callback\Payment\RequestedUserInfo |
||
| 49 | */ |
||
| 50 | 2 | public function getRequestedUserInfo(): RequestedUserInfo |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return \Kerox\Messenger\Model\Common\Address |
||
| 57 | */ |
||
| 58 | 2 | public function getShippingAddress(): Address |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return null|string |
||
| 65 | */ |
||
| 66 | 1 | public function getCurrency() |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @return null|string |
||
| 73 | */ |
||
| 74 | 1 | public function getAmount() |
|
| 78 | |||
| 79 | /** |
||
| 80 | * @param array $payload |
||
| 81 | * @return static |
||
| 82 | */ |
||
| 83 | 4 | public static function create(array $payload) |
|
| 89 | } |
||
| 90 |