1 | <?php |
||
14 | final class IntentNextAction implements CreatableFromArray |
||
15 | { |
||
16 | const TYPE_REDIRECT_TO_URL = 'redirect_to_url'; |
||
17 | const TYPE_USE_STRIPE_SDK = 'use_stripe_sdk'; |
||
18 | |||
19 | /** |
||
20 | * @var ?array |
||
21 | */ |
||
22 | private $redirectToUrl; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $type; |
||
28 | |||
29 | /** |
||
30 | * @var ?array |
||
31 | */ |
||
32 | private $useStripeSDK; |
||
33 | |||
34 | public static function createFromArray(array $data): self |
||
43 | |||
44 | public function useStripeSDK(): bool |
||
48 | |||
49 | public function getRedirectToUrl(): ?array |
||
53 | |||
54 | public function getType(): string |
||
58 | |||
59 | public function getUseStripeSDK(): ?array |
||
63 | } |
||
64 |