- Replaceable HTTP layer via
HttpClientInterfaceand defaultCurlHttpClient. - Structured exceptions:
MonoApiException,MonoTransportException,MonoJsonException, andMonoWebhookException. WebhookServiceandWebhookVerifierforX-Signverification, webhook JSON parsing, public-key fetching, andmodifiedDatestale-event checks.WebhookPayloadhelper with typed accessors, event type detection, event keys, status helpers, and sanitized payload output.SensitiveData::sanitize()helper for safer application logging.- Expanded
InvoiceDatasupport forccy,validity,paymentType,qrId,code,agentFeePercent, andtipsEmployeeId. - Invoice operations for invalidation and hold finalization.
- Merchant details endpoint.
- Statement
codeparameter support for submerchant statements. - Self-contained regression tests runnable with
composer test.
- Service methods now return typed arrays and build query strings with
http_build_query. - Request JSON uses
JSON_THROW_ON_ERROR,JSON_UNESCAPED_UNICODE, andJSON_PRESERVE_ZERO_FRACTION. - Payload serializers omit
nullvalues from nested fiscalization models. - Composer metadata now declares the real runtime extensions and MIT license.
- Existing v1.x calls such as
new MonoClient($key),invoices()->createInvoice(),getInvoiceStatus(),subscriptions(), and the current model constructors remain supported.