mollie-api-node icon indicating copy to clipboard operation
mollie-api-node copied to clipboard

status url missing in Docs

Open thijnmens opened this issue 6 months ago • 6 comments

the following typescript code will complain about "status" not being valid

const mollieClient = createMollieClient({apiKey: process.env.MOLLIE_KEY as string});
const payment = await mollieClient.payments.get(payment_id);

console.log(payment._links.status) // TS2339: Property status does not exist on type PaymentLinks

console.log(payment._links) // { ... status: { href: "...", type: 'text/html' } ... }

After checking, the type PaymentLinks indeed does not include status

thijnmens avatar Jun 01 '25 15:06 thijnmens