Manos Chorianopoulos

add set get CouponSetList functions

......@@ -15,6 +15,7 @@ public struct GlobalVariables {
static var userTag: String = ""
static var dfyCoupons: Array<swiftApi.ActiveDFYCouponModel> = []
static var couponList: Array<swiftApi.CouponItemModel> = []
static var couponSetList: Array<swiftApi.CouponSetItemModel> = []
static var loyaltyBadge: swiftApi.LoyaltyBadgeModel = swiftApi.LoyaltyBadgeModel()
static var consumer: swiftApi.ProfileModel?
static var ccmsCampaigns: Array<swiftApi.LoyaltyContextualOfferModel> = []
......@@ -246,6 +247,7 @@ public class swiftApi {
}
swiftApi().setCouponSetList(couponSetsArray)
getCouponSetsCallback(couponSetsArray)
}
......@@ -2492,6 +2494,16 @@ public class swiftApi {
public func getCouponList() -> Array<CouponItemModel> {
return GlobalVariables.couponList
}
public func setCouponSetList(_ couponSets: Array<CouponSetItemModel>) {
GlobalVariables.couponSetList = couponSets
}
public func getCouponSetList() -> Array<CouponSetItemModel> {
return GlobalVariables.couponSetList
}
public func getLoyaltyBadge() -> LoyaltyBadgeModel {
......