| 1 | <?php |
||
| 12 | final class IntentNextAction implements CreatableFromArray |
||
| 13 | { |
||
| 14 | const TYPE_REDIRECT_TO_URL = 'redirect_to_url'; |
||
| 15 | const TYPE_USE_STRIPE_SDK = 'use_stripe_sdk'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var ?array |
||
| 19 | */ |
||
| 20 | private $redirectToUrl; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $type; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var ?array |
||
| 29 | */ |
||
| 30 | private $useStripeSDK; |
||
| 31 | |||
| 32 | public static function createFromArray(array $data): self |
||
| 41 | |||
| 42 | public function useStripeSDK(): bool |
||
| 46 | |||
| 47 | public function getRedirectToUrl(): ?array |
||
| 51 | |||
| 52 | public function getType(): string |
||
| 56 | |||
| 57 | public function getUseStripeSDK(): ?array |
||
| 61 | } |
||
| 62 |