Covers the Mollie API additions in #950.
Added
PaymentRouteEndpointCollection::getFor()/getForId()andGetPaymentRouteRequestforGET /payments/{paymentId}/routes/{routeId}.- Webhook event classes and
WebhookEventTypeconstants for payment, refund, chargeback, capture, sales invoice e-invoice, business account, business account draft transfer, unmatched credit transfer action, and report events. SettlementStatus::ProcessingandSettlementStatus::ProcessingAtBank, withSettlement::isProcessing()andisProcessingAtBank().- The response-only sales invoice statuses (
issuing,pending-payment,overdue,payment-reversed,cancelled,expired,failed) with matchingSalesInvoice::is*()helpers, andSalesInvoice::$eInvoiceStatustyped as the newSalesInvoiceEInvoiceStatusenum.
Changed
SalesInvoice::$statusandSettlement::$statushydrate more values to enum cases. Sales invoice statuses such asoverdue,payment-reversedandcancelled, and the settlement statusesprocessingandprocessing-at-bank, used to arrive as raw strings because the enums had no matching case. They now hydrate toSalesInvoiceStatus/SettlementStatuscases, so a strict comparison such as$invoice->status === 'overdue'no longer matches. Compare against the enum case, or useUtility::equals()or theis*()helpers, which work with both.
Deprecated
settlementAmountonPayment,Refund,ChargebackandCapture, andPayment::getSettlementAmount(). Mollie removes the field on 2027-01-01.
Full Changelog: v4.1.2...v4.2.0