mollie / mollie-api-php

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

Add support for the list chargebacks API #315

Closed JorikMollie closed 5 years ago

JorikMollie commented 5 years ago

Specifications

Describe the issue

Integrate the List Chargebacks API in the PHP-client. It seems that this API is missing.

Relevant documentation

https://docs.mollie.com/reference/v2/chargebacks-api/list-chargebacks

JorikMollie commented 5 years ago

@sandervanhooft Can you take a look?

sandervanhooft commented 5 years ago

@JorikMollie Sure I'll take a look!

sandervanhooft commented 5 years ago

So the issue is that currently only the paymentChargeback endpoint is implemented. I'll add the (root) Chargeback endpoint, will create and merge a PR later this week.

sandervanhooft commented 5 years ago

@JorikMollie Do you have an example response for a call to https://api.mollie.com/v2/chargebacks?

If it's the same as to https://api.mollie.com/v2/payments/*paymentId*/chargebacks, is the response also non-paginated?

sandervanhooft commented 5 years ago

@JorikMollie Just merged the PR solving this issue. I've assumed that the responses are about the same.

sandervanhooft commented 5 years ago

The docs were outdated; Chargebacks list responses appear to be paginated.

sandervanhooft commented 5 years ago

I'll prepare a fix.

willemstuursma commented 5 years ago

Is this resolved now @sandervanhooft ?

sandervanhooft commented 5 years ago

@willemstuursma Yes it is!