public function getCharges($limit = 10, $startingAfter = null, $endingBefore = null)
    {
        $endpointUrl = '/charges?limit=' . $limit;

        if ($startingAfter) {
            $endpointUrl .= '&starting_after=' . $startingAfter;
        }
        if ($endingBefore) {
            $endpointUrl .= '&ending_before=' . $endingBefore;
        }

        $result = $this->request('GET', $endpointUrl);

        return $this->objectConverter->convert($result);
    }