When you try to do this with the API client $payment->listRefunds($parameters) this results in an exception "Error executing API call (400: Bad Request): Invalid value passed. Field: from."
I guess that either Payment::listRefunds needs to accept a $from and $limit parameter that gets passed along or it should extract those from the $parameters array.
Specifications
Describe the issue
According to the API documentation, you can pass a from and limit parameter when getting a list of all the refunds for a payment.
When you try to do this with the API client
$payment->listRefunds($parameters)
this results in an exception "Error executing API call (400: Bad Request): Invalid value passed. Field: from."Thee reason for this is that it's trying to pass the parameter array as the $from parameter to
EndpointAbstract::rest_list
here https://github.com/mollie/mollie-api-php/blob/master/src/Endpoints/PaymentRefundEndpoint.php#L87I guess that either
Payment::listRefunds
needs to accept a $from and $limit parameter that gets passed along or it should extract those from the $parameters array.