Manos Chorianopoulos

fix show_expiration at CampaignItemModel

......@@ -1194,7 +1194,7 @@ public class swiftApi {
private var start_date: String?
private var end_date: String?
private var filter: String? // supermarket - free - contest etc
private var show_expiration: Bool?
private var show_expiration: String?
private var coupon_img: String?
public init() {
......@@ -1227,7 +1227,7 @@ public class swiftApi {
self.start_date = ""
self.end_date = ""
self.filter = ""
self.show_expiration = false
self.show_expiration = "false"
self.coupon_img = ""
}
......@@ -1284,7 +1284,7 @@ public class swiftApi {
self.banner_title = extra_fields["Banner_title"] as? String ?? ""
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.show_expiration = extra_fields["show_expiration"] as? String? ?? "false"
self.coupon_img = extra_fields["coupon_img"] as? String? ?? ""
} else {
self.subcategory = ""
......@@ -1298,7 +1298,7 @@ public class swiftApi {
self.banner_img = ""
self.banner_title = ""
self.filter = ""
self.show_expiration = false
self.show_expiration = "false"
self.coupon_img = ""
}
......@@ -1564,7 +1564,7 @@ public class swiftApi {
}
}
public var _show_expiration: Bool? {
public var _show_expiration: String? {
get { // getter
return self.show_expiration
}
......