@@ -921,37 +921,6 @@ export default function mParticleInstance(this: IMParticleWebSDKInstance, instan
921921 tax
922922 ) ;
923923 } ,
924- /**
925- * Logs a checkout action
926- * @for mParticle.eCommerce
927- * @method logCheckout
928- * @param {Number } step checkout step number
929- * @param {String } checkout option string
930- * @param {Object } attrs
931- * @param {Object } [customFlags] Custom flags for the event
932- * @deprecated
933- */
934- logCheckout : function ( step , option , attrs , customFlags ) {
935- self . Logger . warning (
936- 'mParticle.logCheckout is deprecated, please use mParticle.logProductAction instead'
937- ) ;
938-
939- if ( ! self . _Store . isInitialized ) {
940- self . ready ( function ( ) {
941- self . eCommerce . logCheckout (
942- step ,
943- option ,
944- attrs ,
945- customFlags
946- ) ;
947- } ) ;
948-
949- return ;
950- }
951-
952- self . _SessionManager . resetSessionTimer ( ) ;
953- self . _Events . logCheckoutEvent ( step , option , attrs , customFlags ) ;
954- } ,
955924 /**
956925 * Logs a product action
957926 * @for mParticle.eCommerce
@@ -994,51 +963,6 @@ export default function mParticleInstance(this: IMParticleWebSDKInstance, instan
994963 eventOptions
995964 ) ;
996965 } ,
997- /**
998- * Logs a product purchase
999- * @for mParticle.eCommerce
1000- * @method logPurchase
1001- * @param {Object } transactionAttributes transactionAttributes object
1002- * @param {Object } product the product being purchased
1003- * @param {Boolean } [clearCart] boolean to clear the cart after logging or not. Defaults to false
1004- * @param {Object } [attrs] other attributes related to the product purchase
1005- * @param {Object } [customFlags] Custom flags for the event
1006- * @deprecated
1007- */
1008- logPurchase : function (
1009- transactionAttributes ,
1010- product ,
1011- clearCart ,
1012- attrs ,
1013- customFlags
1014- ) {
1015- self . Logger . warning (
1016- 'mParticle.logPurchase is deprecated, please use mParticle.logProductAction instead'
1017- ) ;
1018- if ( ! self . _Store . isInitialized ) {
1019- self . ready ( function ( ) {
1020- self . eCommerce . logPurchase (
1021- transactionAttributes ,
1022- product ,
1023- clearCart ,
1024- attrs ,
1025- customFlags
1026- ) ;
1027- } ) ;
1028- return ;
1029- }
1030- if ( ! transactionAttributes || ! product ) {
1031- self . Logger . error ( Messages . ErrorMessages . BadLogPurchase ) ;
1032- return ;
1033- }
1034- self . _SessionManager . resetSessionTimer ( ) ;
1035- self . _Events . logPurchaseEvent (
1036- transactionAttributes ,
1037- product ,
1038- attrs ,
1039- customFlags
1040- ) ;
1041- } ,
1042966 /**
1043967 * Logs a product promotion
1044968 * @for mParticle.eCommerce
@@ -1106,47 +1030,6 @@ export default function mParticleInstance(this: IMParticleWebSDKInstance, instan
11061030 eventOptions
11071031 ) ;
11081032 } ,
1109- /**
1110- * Logs a refund
1111- * @for mParticle.eCommerce
1112- * @method logRefund
1113- * @param {Object } transactionAttributes transaction attributes related to the refund
1114- * @param {Object } product product being refunded
1115- * @param {Boolean } [clearCart] boolean to clear the cart after refund is logged. Defaults to false.
1116- * @param {Object } [attrs] attributes related to the refund
1117- * @param {Object } [customFlags] Custom flags for the event
1118- * @deprecated
1119- */
1120- logRefund : function (
1121- transactionAttributes ,
1122- product ,
1123- clearCart ,
1124- attrs ,
1125- customFlags
1126- ) {
1127- self . Logger . warning (
1128- 'mParticle.logRefund is deprecated, please use mParticle.logProductAction instead'
1129- ) ;
1130- if ( ! self . _Store . isInitialized ) {
1131- self . ready ( function ( ) {
1132- self . eCommerce . logRefund (
1133- transactionAttributes ,
1134- product ,
1135- clearCart ,
1136- attrs ,
1137- customFlags
1138- ) ;
1139- } ) ;
1140- return ;
1141- }
1142- self . _SessionManager . resetSessionTimer ( ) ;
1143- self . _Events . logRefundEvent (
1144- transactionAttributes ,
1145- product ,
1146- attrs ,
1147- customFlags
1148- ) ;
1149- } ,
11501033 expandCommerceEvent : function ( event ) {
11511034 return self . _Ecommerce . expandCommerceEvent ( event ) ;
11521035 } ,
0 commit comments