breaking: remove deprecated logCheckout, logPurchase, and logRefund methods#1238
breaking: remove deprecated logCheckout, logPurchase, and logRefund methods#1238rmi22186 wants to merge 2 commits intoworkstation/3.0-Releasefrom
Conversation
…ethods These deprecated eCommerce methods have been removed in favor of logProductAction which provides the same functionality with a more flexible API. Users should migrate to logProductAction with the appropriate ProductActionType (Checkout, Purchase, Refund). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
d7a8d6c to
ae3a9b4
Compare
ae3a9b4 to
b4f0815
Compare
…ted methods Adds tests that replace removed logCheckout/logPurchase/logRefund tests with equivalent coverage using logProductAction: - Full DTO validation for purchase and refund events - Badly formed ecommerce input sanitization - Array of products support for purchase and refund - Product position null handling - Expand commerce events with/without summary total (plus-one) - CustomFlags for checkout, purchase, and refund actions - Native SDK bridge product list serialization (Android + iOS) - Clarified expand test names with plus-one context comments Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
b4f0815 to
af285fa
Compare
|
PR SummaryMedium Risk Overview Drops the corresponding internal event helpers ( Updates and reshapes tests to stop asserting deprecated-method behavior and instead validate equivalent purchase/refund/checkout behavior through Written by Cursor Bugbot for commit af285fa. This will update automatically on new commits. Configure here. |


Summary
mParticle.eCommerce.logCheckout(),mParticle.eCommerce.logPurchase(), andmParticle.eCommerce.logRefund()methodslogCheckoutEvent,logPurchaseEvent,logRefundEvent) from events layerBadLogPurchaseerror constantlogProductActionMigration
Users should migrate to
mParticle.eCommerce.logProductAction()with the appropriateProductActionType:logCheckout(step, option, attrs, customFlags)logProductAction(ProductActionType.Checkout, product, attrs, customFlags, transactionAttributes)logPurchase(transactionAttributes, product, clearCart, attrs, customFlags)logProductAction(ProductActionType.Purchase, product, attrs, customFlags, transactionAttributes)logRefund(transactionAttributes, product, clearCart, attrs, customFlags)logProductAction(ProductActionType.Refund, product, attrs, customFlags, transactionAttributes)Test plan
npm run build)npm test— Chrome Headless)