1 | <?php |
||
7 | class Contract extends Base |
||
8 | { |
||
9 | /** |
||
10 | * @param string $accountCode |
||
11 | * @return array|null |
||
12 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
13 | */ |
||
14 | public function listContracts(string $accountCode): ?array |
||
18 | |||
19 | /** |
||
20 | * @param string $accountCode |
||
21 | * @param string $uuid |
||
22 | * @return array|null |
||
23 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
24 | */ |
||
25 | public function getContract(string $accountCode, string $uuid): ?array |
||
29 | |||
30 | /** |
||
31 | * @param array $data |
||
32 | * @param string $accountCode |
||
33 | * @return array|null |
||
34 | * @throws \Fenerum\API\Exceptions\FenerumValidationException |
||
35 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
36 | */ |
||
37 | public function createContract(array $data, string $accountCode): ?array |
||
49 | |||
50 | /** |
||
51 | * @param array $data |
||
52 | * @param string $accountCode |
||
53 | * @param string $uuid |
||
54 | * @return array|null |
||
55 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
56 | * @throws \Fenerum\API\Exceptions\FenerumValidationException |
||
57 | */ |
||
58 | public function updateContract(array $data, string $accountCode, string $uuid): ?array |
||
70 | |||
71 | /** |
||
72 | * @param string $accountCode |
||
73 | * @param string $uuid |
||
74 | * @return array|null |
||
75 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
76 | */ |
||
77 | public function deleteContract(string $accountCode, string $uuid): ?array |
||
81 | } |
||
82 |