public function chargebacks()
    {
        if (!isset($this->_links->chargebacks->href)) {
            return new ChargebackCollection($this->client, 0, null);
        }

        $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->chargebacks->href);

        return ResourceFactory::createCursorResourceCollection(
            $this->client,
            $result->_embedded->chargebacks,
            Chargeback::class,
            $result->_links
        );
    }
public function chargebacks()
    {
        if (!isset($this->_links->chargebacks->href)) {
            return new ChargebackCollection($this->client, 0, null);
        }

        $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->chargebacks->href);

        return ResourceFactory::createCursorResourceCollection(
            $this->client,
            $result->_embedded->chargebacks,
            Chargeback::class,
            $result->_links
        );
    }
public function chargebacks ( ) { if ( ! isset ( $ this -> _links -> chargebacks -> href ) ) { return new ChargebackCollection ( $ this -> client , 0 , null ) ; } $ result = $ this -> client -> performHttpCallToFullUrl ( MollieApiClient :: HTTP_GET , $ this -> _links -> chargebacks -> href ) ; return ResourceFactory :: createCursorResourceCollection ( $ this -> client , $ result -> _embedded -> chargebacks , Chargeback :: class , $ result -> _links ) ; }
Retrieves all chargebacks associated with this profile

@return ChargebackCollection
@throws ApiException
Retrieves all chargebacks associated with this profile