Panagiotis Triantafyllou

sm deals changes

...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library' ...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
2 2
3 ext { 3 ext {
4 PUBLISH_GROUP_ID = 'ly.warp' 4 PUBLISH_GROUP_ID = 'ly.warp'
5 - PUBLISH_VERSION = '4.5.4.6rc77' 5 + PUBLISH_VERSION = '4.5.4.6rc78'
6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk' 6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
7 } 7 }
8 8
......
...@@ -88,8 +88,10 @@ import ly.warp.sdk.activities.LoyaltyWallet; ...@@ -88,8 +88,10 @@ import ly.warp.sdk.activities.LoyaltyWallet;
88 import ly.warp.sdk.activities.WarpViewActivity; 88 import ly.warp.sdk.activities.WarpViewActivity;
89 import ly.warp.sdk.db.WarplyDBHelper; 89 import ly.warp.sdk.db.WarplyDBHelper;
90 import ly.warp.sdk.io.models.CouponEventModel; 90 import ly.warp.sdk.io.models.CouponEventModel;
91 +import ly.warp.sdk.io.models.LoyaltySDKDynatraceEventModel;
91 import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel; 92 import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel;
92 import ly.warp.sdk.io.models.QuestionnaireEventModel; 93 import ly.warp.sdk.io.models.QuestionnaireEventModel;
94 +import ly.warp.sdk.io.models.RefreshUnifiedCouponsEventModel;
93 import ly.warp.sdk.io.models.WarplyCCMSEnabledModel; 95 import ly.warp.sdk.io.models.WarplyCCMSEnabledModel;
94 import ly.warp.sdk.io.models.WarplyPacingCardEventModel; 96 import ly.warp.sdk.io.models.WarplyPacingCardEventModel;
95 import ly.warp.sdk.io.models.WarplyPacingEventModel; 97 import ly.warp.sdk.io.models.WarplyPacingEventModel;
...@@ -593,6 +595,36 @@ public class WarpView extends WebView implements DefaultLifecycleObserver { ...@@ -593,6 +595,36 @@ public class WarpView extends WebView implements DefaultLifecycleObserver {
593 } catch (Exception e) { 595 } catch (Exception e) {
594 e.printStackTrace(); 596 e.printStackTrace();
595 } 597 }
598 + } else if (parts[1].equals("cancel_unified_success")) {
599 + LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel();
600 + dynatraceEvent.setEventName("custom_success_cancel_unified_loyalty");
601 + EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent));
602 +
603 + RefreshUnifiedCouponsEventModel couponsRefreshed = new RefreshUnifiedCouponsEventModel();
604 + EventBus.getDefault().post(new WarplyEventBusManager(couponsRefreshed));
605 + } else if (parts[1].equals("cancel_unified_failed")) {
606 + LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel();
607 + dynatraceEvent.setEventName("custom_error_cancel_unified_loyalty");
608 + EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent));
609 + } else if (parts[1].equals("create_unified_success")) {
610 + LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel();
611 + dynatraceEvent.setEventName("custom_success_create_unified_loyalty");
612 + EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent));
613 +
614 + RefreshUnifiedCouponsEventModel couponsRefreshed = new RefreshUnifiedCouponsEventModel();
615 + EventBus.getDefault().post(new WarplyEventBusManager(couponsRefreshed));
616 + } else if (parts[1].equals("create_unified_failed")) {
617 + LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel();
618 + dynatraceEvent.setEventName("custom_error_create_unified_loyalty");
619 + EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent));
620 + } else if (parts[1].equals("get_unified_success")) {
621 + LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel();
622 + dynatraceEvent.setEventName("custom_success_unified_coupons_loyalty");
623 + EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent));
624 + } else if (parts[1].equals("get_unified_failed")) {
625 + LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel();
626 + dynatraceEvent.setEventName("custom_error_unified_coupons_loyalty");
627 + EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent));
596 } 628 }
597 } 629 }
598 } 630 }
......
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
194 <string name="lbl_telematics_generic_error">Άγνωστο σφάλμα</string> 194 <string name="lbl_telematics_generic_error">Άγνωστο σφάλμα</string>
195 <string name="cos_cancel_unified_coupon">Ακύρωση ενιαίου κουπονιού</string> 195 <string name="cos_cancel_unified_coupon">Ακύρωση ενιαίου κουπονιού</string>
196 <string name="cos_dlg_cancel_unified_coupon_success_title">Ακύρωση Κουπονιού</string> 196 <string name="cos_dlg_cancel_unified_coupon_success_title">Ακύρωση Κουπονιού</string>
197 - <string name="cos_dlg_cancel_unified_coupon_success_subtitle">Το ενιαίο κουπόνι σου ακυρώθηκε επιτυχώς. Βρες τα μεμονωμένα κουπόνια στο καλάθι SM deals.</string> 197 + <string name="cos_dlg_cancel_unified_coupon_success_subtitle">Το ενιαίο κουπόνι σου ακυρώθηκε επιτυχώς. Βρες τα μεμονωμένα κουπόνια στο καλάθι SUPERMARKET DEALS.</string>
198 <string name="cos_dlg_cancel_unified_coupon_success_subtitle2">Είσαι σίγουρος ότι θέλεις να ακυρώσεις το κουπόνι σου;</string> 198 <string name="cos_dlg_cancel_unified_coupon_success_subtitle2">Είσαι σίγουρος ότι θέλεις να ακυρώσεις το κουπόνι σου;</string>
199 <string name="cos_dlg_negative_button4">Όχι</string> 199 <string name="cos_dlg_negative_button4">Όχι</string>
200 <string name="cos_dlg_positive_button3">Ναι</string> 200 <string name="cos_dlg_positive_button3">Ναι</string>
......