mollie-api-node
mollie-api-node copied to clipboard
status url missing in Docs
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