1 | <?php |
||
7 | class Subscription extends Base |
||
8 | { |
||
9 | /** |
||
10 | * @return array|null |
||
11 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
12 | */ |
||
13 | public function listSubscriptions(): ?array |
||
17 | |||
18 | /** |
||
19 | * @param string $uuid |
||
20 | * @return array|null |
||
21 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
22 | */ |
||
23 | public function getSubscription(string $uuid): ?array |
||
27 | |||
28 | /** |
||
29 | * @param array $data |
||
30 | * @return array|null |
||
31 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
32 | * @throws \Fenerum\API\Exceptions\FenerumValidationException |
||
33 | */ |
||
34 | public function createSubscription(array $data): ?array |
||
51 | |||
52 | /** |
||
53 | * @param array $data |
||
54 | * @param string $uuid |
||
55 | * @return array|null |
||
56 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
57 | */ |
||
58 | public function updateSubscription(array $data, string $uuid): ?array |
||
62 | |||
63 | /** |
||
64 | * @param array $data |
||
65 | * @param string $uuid |
||
66 | * @return array|null |
||
67 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
68 | * @throws \Fenerum\API\Exceptions\FenerumValidationException |
||
69 | */ |
||
70 | public function cancelSubscription(array $data, string $uuid): ?array |
||
78 | } |
||
79 |