v4.0.10
Added
- Batch events endpoint —
$client->event->createBatchEvents()to track multiple contact interactions in a single request - Email campaign
excludeHtmlContentparameter —getEmailCampaign()accepts a new optional flag to omit the HTML body from the response, reducing payload size
Fixed
- Boolean attributes serialization —
UpdateContactRequestandCreateContactRequestnow correctly serialize boolean values in union-typed attribute maps (float | string | bool | array). Previously threwJsonException: Cannot serialize value of type boolean Order::productsitem type —OrderProductsItemnow correctly exposes all product fields:price,productId,variantId,quantity,quantityFloat. Previously onlyquantitywas accessibleGetCampaignStatsnullable fields —appleMppOpensandopensRateare now correctly typed as nullable (?int,?float), preventingTypeErrorwhen the API returnsnull
Deprecated
sendTransacSms()— UsesendAsyncTransactionalSms()instead. The synchronous method is deprecated. Note:remainingCreditsis intentionally not returned by the async endpoint; use the account endpoints to retrieve credit balance
Internal
- Generator updated from
2.1.4→2.1.10 - Fern CLI updated from
3.91.2→4.22.0