@@ 4-24 (lines=21) @@ | ||
1 | <?php |
|
2 | namespace Culqi; |
|
3 | ||
4 | class Cargos extends Resource { |
|
5 | ||
6 | const URL_CARGOS = "/cargos/"; |
|
7 | ||
8 | public function create($options = NULL) |
|
9 | { |
|
10 | return $this->request("POST", Cargos::URL_CARGOS, $api_key = $this->culqi->api_key, $options); |
|
11 | } |
|
12 | ||
13 | public function getList($options = NULL) |
|
14 | { |
|
15 | return $this->request("GET", Cargos::URL_CARGOS, $api_key = $this->culqi->api_key, $options); |
|
16 | } |
|
17 | ||
18 | public function get($id) |
|
19 | { |
|
20 | return $this->request("GET", Cargos::URL_CARGOS . $id . "/", $api_key = $this->culqi->api_key); |
|
21 | } |
|
22 | ||
23 | ||
24 | } |
|
25 |
@@ 4-24 (lines=21) @@ | ||
1 | <?php |
|
2 | namespace Culqi; |
|
3 | ||
4 | class Devoluciones extends Resource { |
|
5 | ||
6 | const URL_REFUND = "/cargos/devoluciones/"; |
|
7 | ||
8 | public function create($options = NULL) |
|
9 | { |
|
10 | return $this->request("POST", Devoluciones::URL_REFUND, $api_key = $this->culqi->api_key, $options); |
|
11 | } |
|
12 | ||
13 | public function getList($options = NULL) |
|
14 | { |
|
15 | return $this->request("GET", Devoluciones::URL_REFUND, $api_key = $this->culqi->api_key, $options); |
|
16 | } |
|
17 | ||
18 | public function get($id) |
|
19 | { |
|
20 | return $this->request("GET", Devoluciones::URL_REFUND . $id . "/", $api_key = $this->culqi->api_key); |
|
21 | } |
|
22 | ||
23 | ||
24 | } |
|
25 |