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 GET request to subscriptions/{id}/periods. |
||
19 | * |
||
20 | * @param int $id The resource's id. |
||
21 | * |
||
22 | * @return mixed |
||
23 | */ |
||
24 | 2 | public function periods($id) |
|
28 | |||
29 | /** |
||
30 | * Make a POST request to subscriptions/{id}/renew. |
||
31 | * |
||
32 | * @param int $id The resource's id. |
||
33 | * |
||
34 | * @return mixed |
||
35 | */ |
||
36 | 2 | public function renew($id) |
|
40 | |||
41 | /** |
||
42 | * Make a POST request to subscriptions/{id}/reactivate. |
||
43 | * |
||
44 | * @param int $id The resource's id. |
||
45 | * |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function reactivate($id) |
||
52 | |||
53 | } |
||
54 |