1 | <?php |
||
11 | class Payment |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $payload; |
||
17 | |||
18 | /** |
||
19 | * @var \Kerox\Messenger\Model\Callback\Payment\RequestedUserInfo |
||
20 | */ |
||
21 | protected $requestedUserInfo; |
||
22 | |||
23 | /** |
||
24 | * @var \Kerox\Messenger\Model\Callback\Payment\PaymentCredential |
||
25 | */ |
||
26 | protected $paymentCredential; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $amount; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $shippingOptionId; |
||
37 | |||
38 | /** |
||
39 | * Payment constructor. |
||
40 | */ |
||
41 | 1 | public function __construct( |
|
54 | |||
55 | 1 | public function getPayload(): string |
|
59 | |||
60 | 1 | public function getRequestedUserInfo(): RequestedUserInfo |
|
64 | |||
65 | 1 | public function getShippingAddress(): Address |
|
69 | |||
70 | 1 | public function getPaymentCredential(): PaymentCredential |
|
74 | |||
75 | 1 | public function getCurrency(): ?string |
|
79 | |||
80 | 1 | public function getAmount(): ?string |
|
84 | |||
85 | 1 | public function getShippingOptionId(): string |
|
89 | |||
90 | /** |
||
91 | * @return \Kerox\Messenger\Model\Callback\Payment |
||
92 | */ |
||
93 | 1 | public static function create(array $callbackData): self |
|
106 | } |
||
107 |