Panagiotis Triantafyllou

event name fixes

...@@ -3119,20 +3119,20 @@ public class WarplyManager { ...@@ -3119,20 +3119,20 @@ public class WarplyManager {
3119 3119
3120 if (jobjUnifiedResponse != null && jobjUnifiedResponse.has("status") && jobjUnifiedResponse.optString("status", "2").equals("1")) { 3120 if (jobjUnifiedResponse != null && jobjUnifiedResponse.has("status") && jobjUnifiedResponse.optString("status", "2").equals("1")) {
3121 LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel(); 3121 LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel();
3122 - dynatraceEvent.setEventName("custom_success_create_unified_coupons"); 3122 + dynatraceEvent.setEventName("custom_success_create_unified_loyalty");
3123 EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent)); 3123 EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent));
3124 3124
3125 RefreshUnifiedCouponsEventModel couponsRefreshed = new RefreshUnifiedCouponsEventModel(); 3125 RefreshUnifiedCouponsEventModel couponsRefreshed = new RefreshUnifiedCouponsEventModel();
3126 EventBus.getDefault().post(new WarplyEventBusManager(couponsRefreshed)); 3126 EventBus.getDefault().post(new WarplyEventBusManager(couponsRefreshed));
3127 } else { 3127 } else {
3128 LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel(); 3128 LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel();
3129 - dynatraceEvent.setEventName("custom_error_create_unified_coupons"); 3129 + dynatraceEvent.setEventName("custom_error_create_unified_loyalty");
3130 EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent)); 3130 EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent));
3131 receiver.onFailure(2); 3131 receiver.onFailure(2);
3132 } 3132 }
3133 } else { 3133 } else {
3134 LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel(); 3134 LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel();
3135 - dynatraceEvent.setEventName("custom_error_create_unified_coupons"); 3135 + dynatraceEvent.setEventName("custom_error_create_unified_loyalty");
3136 EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent)); 3136 EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent));
3137 receiver.onFailure(response.code()); 3137 receiver.onFailure(response.code());
3138 } 3138 }
...@@ -3141,7 +3141,7 @@ public class WarplyManager { ...@@ -3141,7 +3141,7 @@ public class WarplyManager {
3141 @Override 3141 @Override
3142 public void onFailure(Call<ResponseBody> call, Throwable t) { 3142 public void onFailure(Call<ResponseBody> call, Throwable t) {
3143 LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel(); 3143 LoyaltySDKDynatraceEventModel dynatraceEvent = new LoyaltySDKDynatraceEventModel();
3144 - dynatraceEvent.setEventName("custom_error_create_unified_coupons"); 3144 + dynatraceEvent.setEventName("custom_error_create_unified_loyalty");
3145 EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent)); 3145 EventBus.getDefault().post(new WarplyEventBusManager(dynatraceEvent));
3146 receiver.onFailure(2); 3146 receiver.onFailure(2);
3147 } 3147 }
......