mollie / mollie-api-php

Mollie API client for PHP
http://www.mollie.com
BSD 2-Clause "Simplified" License
552 stars 191 forks source link

Missing methods `listFor` and `listForId` in PaymentChargebackEndpoint #606

Closed adrenth closed 2 years ago

adrenth commented 2 years ago

Specifications

Describe the issue

It would be nice to have the methods listFor and listForId in \Mollie\Api\Endpoints\PaymentChargebackEndpoint as well. To be consistent with the \Mollie\Api\Endpoints\PaymentRefundEndpoint class.

E.g.


// Get the refunds
$collection = $this->client->paymentRefunds->listForId('tr_....');

// Get the chargebacks
$collection = $this->client->paymentChargebacks->listForId('tr_....');
sandervanhooft commented 2 years ago

Hi @adrenth !

Thanks for opening this ticket.

I'll put it on the backlog; feel free to submit a PR if you need the feature sooner.