| 1 | <?php |
||
| 7 | class Webhook extends MoipResource |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Initialize a new instance. |
||
| 11 | */ |
||
| 12 | public function initialize() |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Get webhook id. |
||
| 19 | * |
||
| 20 | * @return string The webhook id. |
||
| 21 | */ |
||
| 22 | public function getId() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get resource id. |
||
| 29 | * |
||
| 30 | * @return string The webhook id. |
||
| 31 | */ |
||
| 32 | public function getResourceId() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get event. |
||
| 39 | * |
||
| 40 | * @return string event. |
||
| 41 | */ |
||
| 42 | public function getEvent() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Get url. |
||
| 49 | * |
||
| 50 | * @return string url. |
||
| 51 | */ |
||
| 52 | public function getUrl() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get webhook status. |
||
| 59 | * |
||
| 60 | * @return string webhook status. |
||
| 61 | */ |
||
| 62 | public function getStatus() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Mount structure of Webhook. |
||
| 69 | * |
||
| 70 | * @param \stdClass $response |
||
| 71 | * |
||
| 72 | * @return \Moip\Resource\Webhook Webhook |
||
| 73 | */ |
||
| 74 | protected function populate(stdClass $response) |
||
| 87 | } |
||
| 88 |