mollie / mollie-api-node

Official Mollie API client for Node
http://www.mollie.com
BSD 3-Clause "New" or "Revised" License
228 stars 62 forks source link

Added terminal API endpoints #347

Open iFlyinq opened 2 months ago

iFlyinq commented 2 months ago

I've added the terminal API endpoints. Additionally, to facilitate the API's integration into my project, I ensured that the payment's _links include a "dashboard" link. For creating new payments via a terminal, I introduced an optional "terminalId" parameter.

I tried to follow the conventions used across the project, if any changes have to be done feel free to let me know or do them ;)

iFlyinq commented 2 months ago

The endpoint GET https://api.mollie.com/v2/terminals/*id* appears to lack the _links.profile which is typically included, following convention, in other endpoints such as in GET https://docs.mollie.com/reference/v2/subscriptions-api/get-subscription.