1 | <?php |
||
10 | class Charge extends Resource |
||
11 | { |
||
12 | /** |
||
13 | * The endpoint that will hit the API. |
||
14 | * |
||
15 | * @return string |
||
16 | */ |
||
17 | 24 | public function endpoint() |
|
21 | |||
22 | /** |
||
23 | * Make a POST request to charges/{id}/reissue. |
||
24 | * |
||
25 | * @param int $id The resource's id. |
||
26 | * @param array $form_params |
||
27 | * |
||
28 | * @return mixed |
||
29 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
30 | * @throws \Vindi\Exceptions\RateLimitException |
||
31 | * @throws \Vindi\Exceptions\RequestException |
||
32 | */ |
||
33 | 2 | public function reissue($id, array $form_params = []) |
|
37 | |||
38 | /** |
||
39 | * Make a POST request to charges/{id}/charge. |
||
40 | * |
||
41 | * @param int $id The resource's id. |
||
42 | * @param array $form_params |
||
43 | * |
||
44 | * @return mixed |
||
45 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
46 | * @throws \Vindi\Exceptions\RateLimitException |
||
47 | * @throws \Vindi\Exceptions\RequestException |
||
48 | */ |
||
49 | 2 | public function charge($id, array $form_params = []) |
|
53 | |||
54 | /** |
||
55 | * Make a POST request to charges/{id}/refund. |
||
56 | * |
||
57 | * @param int $id The resource's id. |
||
58 | * |
||
59 | * @return mixed |
||
60 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
61 | * @throws \Vindi\Exceptions\RateLimitException |
||
62 | * @throws \Vindi\Exceptions\RequestException |
||
63 | */ |
||
64 | 2 | public function refund($id) |
|
68 | |||
69 | /** |
||
70 | * Make a POST request to charges/{id}/fraud_review. |
||
71 | * |
||
72 | * @param int $id The resource's id. |
||
73 | * |
||
74 | * @return mixed |
||
75 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
76 | * @throws \Vindi\Exceptions\RateLimitException |
||
77 | * @throws \Vindi\Exceptions\RequestException |
||
78 | */ |
||
79 | 2 | public function fraudReview($id) |
|
83 | } |
||
84 |