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