| 1 | <?php |
||
| 10 | class Bill extends Resource |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The endpoint that will hit the API. |
||
| 14 | * |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | 22 | public function endpoint() |
|
| 21 | |||
| 22 | /** |
||
| 23 | * Make a POST request to bills/{id}/approve. |
||
| 24 | * |
||
| 25 | * @param int $id The resource's id. |
||
| 26 | * |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | 2 | public function approve($id) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Make a POST request to bills/{id}/charge. |
||
| 36 | * |
||
| 37 | * @param int $id The resource's id. |
||
| 38 | * |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | 2 | public function charge($id) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Make a POST request to bills/{id}/invoice. |
||
| 48 | * |
||
| 49 | * @param int $id The resource's id. |
||
| 50 | * |
||
| 51 | * @return mixed |
||
| 52 | */ |
||
| 53 | 2 | public function invoice($id) |
|
| 57 | } |
||
| 58 |