| 1 | <?php namespace BB\Services\Payment; |
||
| 3 | class GoCardlessWebhookParser |
||
| 4 | { |
||
| 5 | |||
| 6 | /** |
||
| 7 | * @var array |
||
| 8 | */ |
||
| 9 | private $response; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $action = null; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $resourceType = null; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | private $bills = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | private $subscriptions = []; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | private $preAuthList = []; |
||
| 35 | |||
| 36 | public function parseResponse(array $response) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return null |
||
| 46 | */ |
||
| 47 | public function getAction() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return null |
||
| 54 | */ |
||
| 55 | public function getResourceType() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | public function getBills() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return array |
||
| 70 | */ |
||
| 71 | public function getSubscriptions() |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return array |
||
| 78 | */ |
||
| 79 | public function getPreAuthList() |
||
| 83 | } |
||
| 84 |