Manos Chorianopoulos

fix coupon_img at CampaignItemModel

......@@ -1245,7 +1245,6 @@ public class swiftApi {
self.sorting = dictionary["sorting"] as? Int? ?? 0
self.ccms = nil
self.coupon_availability = nil
self.coupon_img = dictionary["coupon_img"] as? String? ?? ""
let startDateString = dictionary["start_date"] as? String? ?? ""
// Example expirationString: "start_date" = "2022-06-29 00:00:00";
......@@ -1286,6 +1285,7 @@ public class swiftApi {
self.category_id = extra_fields["category_id"] as? String ?? ""
self.filter = extra_fields["filter"] as? String ?? ""
self.show_expiration = extra_fields["show_expiration"] as? Bool? ?? false
self.coupon_img = extra_fields["coupon_img"] as? String? ?? ""
} else {
self.subcategory = ""
self.loyaltyCampaignId = ""
......@@ -1299,6 +1299,7 @@ public class swiftApi {
self.banner_title = ""
self.filter = ""
self.show_expiration = false
self.coupon_img = ""
}
// let extra_fields = dictionary["extra_fields"] as AnyObject
......