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);
    }
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);
    }
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 ) ; }
Returns the charges.

@param  integer $limit
@param  Charge|string $startingAfter
@param  Charge|string $endingBefore
@return Charge[]

@throws RequestException
Returns the charges .