Manos Chorianopoulos

add dynatraceEvents

...@@ -621,7 +621,7 @@ public class swiftApi { ...@@ -621,7 +621,7 @@ public class swiftApi {
621 if let responseDataDictionary = couponSetsData as? [String : AnyObject] { 621 if let responseDataDictionary = couponSetsData as? [String : AnyObject] {
622 if (responseDataDictionary["status"] as? Int == 1) { 622 if (responseDataDictionary["status"] as? Int == 1) {
623 let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() 623 let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
624 - dynatraceEvent._eventName = "custom_success_couponset_sm_loyalty" 624 + dynatraceEvent._eventName = "custom_success_couponsets_sm_loyalty"
625 dynatraceEvent._parameters = nil 625 dynatraceEvent._parameters = nil
626 SwiftEventBus.post("dynatrace", sender: dynatraceEvent) 626 SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
627 627
...@@ -633,21 +633,21 @@ public class swiftApi { ...@@ -633,21 +633,21 @@ public class swiftApi {
633 } 633 }
634 } else { 634 } else {
635 let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() 635 let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
636 - dynatraceEvent._eventName = "custom_error_couponset_sm_loyalty" 636 + dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty"
637 dynatraceEvent._parameters = nil 637 dynatraceEvent._parameters = nil
638 SwiftEventBus.post("dynatrace", sender: dynatraceEvent) 638 SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
639 } 639 }
640 640
641 } else { 641 } else {
642 let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() 642 let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
643 - dynatraceEvent._eventName = "custom_error_couponset_sm_loyalty" 643 + dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty"
644 dynatraceEvent._parameters = nil 644 dynatraceEvent._parameters = nil
645 SwiftEventBus.post("dynatrace", sender: dynatraceEvent) 645 SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
646 } 646 }
647 647
648 } else { 648 } else {
649 let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() 649 let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
650 - dynatraceEvent._eventName = "custom_error_couponset_sm_loyalty" 650 + dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty"
651 dynatraceEvent._parameters = nil 651 dynatraceEvent._parameters = nil
652 SwiftEventBus.post("dynatrace", sender: dynatraceEvent) 652 SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
653 } 653 }
...@@ -660,7 +660,7 @@ public class swiftApi { ...@@ -660,7 +660,7 @@ public class swiftApi {
660 print("getCouponSetsDeals error: ") 660 print("getCouponSetsDeals error: ")
661 661
662 let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() 662 let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
663 - dynatraceEvent._eventName = "custom_error_couponset_sm_loyalty" 663 + dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty"
664 dynatraceEvent._parameters = nil 664 dynatraceEvent._parameters = nil
665 SwiftEventBus.post("dynatrace", sender: dynatraceEvent) 665 SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
666 666
...@@ -7217,10 +7217,10 @@ public class swiftApi { ...@@ -7217,10 +7217,10 @@ public class swiftApi {
7217 if let responseDataDictionary = responseData as? [String: AnyObject] { 7217 if let responseDataDictionary = responseData as? [String: AnyObject] {
7218 7218
7219 if (responseDataDictionary["status"] as? Int == 1) { 7219 if (responseDataDictionary["status"] as? Int == 1) {
7220 -// let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() 7220 + let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
7221 -// dynatraceEvent._eventName = "custom_success_campaigns_loyalty" 7221 + dynatraceEvent._eventName = "custom_success_unified_coupons_loyalty"
7222 -// dynatraceEvent._parameters = nil 7222 + dynatraceEvent._parameters = nil
7223 -// SwiftEventBus.post("dynatrace", sender: dynatraceEvent) 7223 + SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
7224 7224
7225 if let responseDataResult = responseDataDictionary["result"] as? [String: Any] { 7225 if let responseDataResult = responseDataDictionary["result"] as? [String: Any] {
7226 if let responseDataCoupons = responseDataResult["coupons"] as? [[String : Any]?] { 7226 if let responseDataCoupons = responseDataResult["coupons"] as? [[String : Any]?] {
...@@ -7274,19 +7274,19 @@ public class swiftApi { ...@@ -7274,19 +7274,19 @@ public class swiftApi {
7274 } 7274 }
7275 7275
7276 } else { 7276 } else {
7277 -// let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() 7277 + let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
7278 -// dynatraceEvent._eventName = "custom_error_campaigns_loyalty" 7278 + dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty"
7279 -// dynatraceEvent._parameters = nil 7279 + dynatraceEvent._parameters = nil
7280 -// SwiftEventBus.post("dynatrace", sender: dynatraceEvent) 7280 + SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
7281 7281
7282 successCallback(nil) 7282 successCallback(nil)
7283 } 7283 }
7284 7284
7285 } else { 7285 } else {
7286 -// let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() 7286 + let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
7287 -// dynatraceEvent._eventName = "custom_error_campaigns_loyalty" 7287 + dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty"
7288 -// dynatraceEvent._parameters = nil 7288 + dynatraceEvent._parameters = nil
7289 -// SwiftEventBus.post("dynatrace", sender: dynatraceEvent) 7289 + SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
7290 7290
7291 successCallback(nil) 7291 successCallback(nil)
7292 } 7292 }
...@@ -7297,10 +7297,10 @@ public class swiftApi { ...@@ -7297,10 +7297,10 @@ public class swiftApi {
7297 print(error) 7297 print(error)
7298 print("====================") 7298 print("====================")
7299 7299
7300 -// let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() 7300 + let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel()
7301 -// dynatraceEvent._eventName = "custom_error_campaigns_loyalty" 7301 + dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty"
7302 -// dynatraceEvent._parameters = nil 7302 + dynatraceEvent._parameters = nil
7303 -// SwiftEventBus.post("dynatrace", sender: dynatraceEvent) 7303 + SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
7304 7304
7305 successCallback(nil) 7305 successCallback(nil)
7306 } 7306 }
......