Manos Chorianopoulos

CouponsetViewController fixes

......@@ -87,7 +87,8 @@ public class CouponSetItemModel {
self.admin_name = dictionary["admin_name"] as? String? ?? ""
self.name = dictionary["name"] as? String? ?? ""
self.img_preview = dictionary["img_preview"] as? String? ?? ""
self.description = dictionary["description"] as? String? ?? ""
let htmlDescription = dictionary["description"] as? String? ?? ""
self.description = htmlDescription?.htmlToString ?? ""
self.short_description = dictionary["short_description"] as? String? ?? ""
self.discount = dictionary["discount"] as? String? ?? ""
self.sorting = dictionary["sorting"] as? Int? ?? 0
......@@ -95,7 +96,8 @@ public class CouponSetItemModel {
self.inner_text = htmlText?.htmlToString ?? ""
self.buyable = dictionary["buyable"] as? Bool? ?? false
self.visible = dictionary["visible"] as? Bool? ?? false
self.terms = dictionary["terms"] as? String? ?? ""
let htmlTerms = dictionary["terms"] as? String? ?? ""
self.terms = htmlTerms?.htmlToString ?? ""
self.merchant_uuid = dictionary["merchant_uuid"] as? String? ?? ""
self.discount_type = dictionary["discount_type"] as? String? ?? ""
......
......@@ -568,7 +568,7 @@ import UIKit
private func openCouponsetViewController(with couponSet: CouponSetItemModel) {
let vc = SwiftWarplyFramework.CouponsetViewController(nibName: "CouponsetViewController", bundle: Bundle.frameworkBundle)
vc.couponSet = couponSet
vc.couponset = couponSet
self.navigationController?.pushViewController(vc, animated: true)
}
......