1 | <?php |
||
7 | class Account extends Base |
||
8 | { |
||
9 | /** |
||
10 | * @return array|null |
||
11 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
12 | */ |
||
13 | public function listAccounts(): ?array |
||
17 | |||
18 | /** |
||
19 | * @param string $code |
||
20 | * @return array|null |
||
21 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
22 | */ |
||
23 | public function getAccount(string $code): ?array |
||
27 | |||
28 | /** |
||
29 | * @see http://docs.fenerum.com/#operation/accounts_create |
||
30 | * |
||
31 | * @param array $data |
||
32 | * @return array|null |
||
33 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
34 | * @throws \Fenerum\API\Exceptions\FenerumValidationException |
||
35 | */ |
||
36 | public function createAccount(array $data): ?array |
||
59 | |||
60 | /** |
||
61 | * @param array $data |
||
62 | * @param string $code |
||
63 | * @return array|null |
||
64 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
65 | * @throws \Fenerum\API\Exceptions\FenerumValidationException |
||
66 | */ |
||
67 | public function updateAccount(array $data, string $code): ?array |
||
90 | } |
||
91 |