1 | <?php |
||
10 | class Subscription extends Resource |
||
11 | { |
||
12 | /** |
||
13 | * The endpoint that will hit the API. |
||
14 | * |
||
15 | * @return string |
||
16 | */ |
||
17 | 22 | public function endpoint() |
|
21 | |||
22 | /** |
||
23 | * Make a GET request to subscriptions/{id}/periods. |
||
24 | * |
||
25 | * @param int $id The resource's id. |
||
26 | * |
||
27 | * @return mixed |
||
28 | */ |
||
29 | 2 | public function periods($id) |
|
33 | |||
34 | /** |
||
35 | * Make a POST request to subscriptions/{id}/reactivate. |
||
36 | * |
||
37 | * @param int $id The resource's id. |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | 2 | public function reactivate($id) |
|
45 | |||
46 | /** |
||
47 | * Make a POST request to subscriptions/{id}/renew. |
||
48 | * |
||
49 | * @param int $id The resource's id. |
||
50 | * |
||
51 | * @return mixed |
||
52 | */ |
||
53 | 2 | public function renew($id) |
|
57 | } |
||
58 |