| 1 | <?php |
||
| 5 | class Subscription extends Resource |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The endpoint that will hit the API. |
||
| 9 | * |
||
| 10 | * @return string |
||
| 11 | */ |
||
| 12 | 20 | public function endpoint() |
|
| 16 | |||
| 17 | /** |
||
| 18 | * Make a POST request to subscriptions/{id}/renew. |
||
| 19 | * |
||
| 20 | * @param int $id The resource's id. |
||
| 21 | * |
||
| 22 | * @return mixed |
||
| 23 | */ |
||
| 24 | 2 | public function renew($id) |
|
| 25 | { |
||
| 26 | 2 | return $this->post($id, 'renew'); |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Make a POST request to subscriptions/{id}/reactivate. |
||
| 31 | * |
||
| 32 | * @param int $id The resource's id. |
||
| 33 | * |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | 2 | public function reactivate($id) |
|
| 40 | } |
||
| 41 |