zwaldeck / mollie

Java framework to consume the Mollie API
Other
39 stars 37 forks source link

PaymentRequest#method should be a list #43

Closed adelinmaubray closed 3 years ago

adelinmaubray commented 4 years ago

Hi

First of all, thanks for this amazing Mollie client.

I have a little request for the PaymentRequest#method field. The Mollie documentation says:

method

string|array
OPTIONAL

You can also specify the methods in an array.

https://docs.mollie.com/reference/v2/payments-api/create-payment

Is is possible to change the type of the method field to Optional<List<PaymentMethod>> or another way to support array/list? Or do you have a workaround ?

Thank you so much Adelin

zwaldeck commented 3 years ago

I put it as you said an Optional List

adelinmaubray commented 3 years ago

Thanks, I will test this asap 😁 Have a nice day

zwaldeck commented 3 years ago

I still need to release this, I'm trying fix some more issues and release those fixes tonight

zwaldeck commented 3 years ago

Deployed in version 3.1.0