v4.0.9
Added
- Batch events endpoint —
$client->event->createBatchEvents()now available to track multiple contact interactions in a single request
- Email campaign
excludeHtmlContentparameter —getEmailCampaign()accepts a new optionalexcludeHtmlContentflag to omit HTML body from the response, reducing payload size
Fixed
Order::productsitem type —OrderProductsItemnow correctly exposes all product fields (price,productId,variantId,quantity,quantityFloat). Previously onlyquantitywas accessible via the oldOrderProductsItemQuantityclass
GetCampaignStatsnullable fields —appleMppOpensandopensRateare now correctly typed as nullable (?int,?float), preventingTypeErrorwhen the API returnsnullfor these fields
Deprecated
sendTransacSms()— UsesendAsyncTransactionalSms()instead. The synchronous method is deprecated; the async variant is the recommended approach for all transactional SMS sending. Note:remainingCreditsis intentionally not returned by the async endpoint.
Internal
- Generator updated from
2.1.4→2.1.10
- Fern CLI updated from
3.91.2→4.22.0