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

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

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

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

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

@return RefundCollection
@throws ApiException
Retrieves all refunds associated with this profile