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 | * Get Merchant Payments. Filter Params can accept |
||
113 | * - since, until : (string - ISO8601 Date Part Only) |
||
114 | * - limit, offset : (int) |
||
115 | * |
||
116 | * @author SL |
||
117 | * @param $application |
||
118 | * @param $token |
||
119 | 4 | * @param array $filterParams |
|
120 | * @return array |
||
121 | 4 | */ |
|
122 | 4 | public function getMerchantPayments($application, $token, array $filterParams = []) |
|
131 | |||
132 | /** |
||
133 | * Add a Merchant Payment to the given application. Amount should be supplied in pence. |
||
134 | * |
||
135 | * @author SL |
||
136 | * @param string $application |
||
137 | * @param \DateTime $effectiveDate |
||
138 | * @param int $amount |
||
139 | * @param string $token |
||
140 | * @return array |
||
141 | */ |
||
142 | public function addMerchantPayment($application, \DateTime $effectiveDate, $amount, $token) |
||
154 | |||
155 | /** |
||
156 | * @author WN |
||
157 | * @param string $action |
||
158 | * @param array $data |
||
159 | * @param string $token |
||
160 | * @return bool |
||
161 | * @throws SdkException |
||
162 | */ |
||
163 | private function requestAction($action, $data, $token) |
||
168 | } |
||
169 |