1 | <?php |
||
23 | class ApplicationGateway extends AbstractGateway |
||
24 | { |
||
25 | /** |
||
26 | * @author WN |
||
27 | * @param int $id |
||
28 | * @param string $token |
||
29 | * @return ApplicationEntity |
||
30 | * @throws SdkException |
||
31 | */ |
||
32 | 2 | public function getApplication($id, $token) |
|
36 | |||
37 | /** |
||
38 | * @author WN |
||
39 | * @param ApplicationEntity $application |
||
40 | * @param string $token |
||
41 | * @return ApplicationEntity |
||
42 | * @throws SdkException |
||
43 | */ |
||
44 | public function initialiseApplication(ApplicationEntity $application, $token) |
||
67 | |||
68 | /** |
||
69 | * @author WN |
||
70 | * @param int $id |
||
71 | * @param string $token |
||
72 | * @return bool |
||
73 | * @throws SdkException |
||
74 | */ |
||
75 | 2 | public function fulfilApplication($id, $token) |
|
79 | |||
80 | /** |
||
81 | * @param int $id |
||
82 | * @param string $description |
||
83 | * @param string $token |
||
84 | * @return bool |
||
85 | * @throws SdkException |
||
86 | */ |
||
87 | 2 | public function cancelApplication($id, $description, $token) |
|
95 | |||
96 | /** |
||
97 | * @param $token |
||
98 | * @return array |
||
99 | * @throws SdkException |
||
100 | */ |
||
101 | public function getPendingCancellations($installationId, $token) |
||
110 | |||
111 | /** |
||
112 | * @author EB |
||
113 | * @param $installationId |
||
114 | * @param $application |
||
115 | * @param $token |
||
116 | * @return array |
||
117 | */ |
||
118 | public function getApplicationCreditInfo($installationId, $application, $token) |
||
127 | |||
128 | /** |
||
129 | * @author WN |
||
130 | * @param string $action |
||
131 | * @param array $data |
||
132 | * @param string $token |
||
133 | * @return bool |
||
134 | * @throws SdkException |
||
135 | */ |
||
136 | 4 | private function requestAction($action, $data, $token) |
|
141 | } |
||
142 |