Manos Chorianopoulos

conform basic models to Codable

......@@ -152,7 +152,7 @@ public class swiftApi {
}
public class CouponSetItemModel {
public class CouponSetItemModel: Codable {
public let uuid: String?
public let admin_name: String?
public let name: String?
......@@ -263,7 +263,7 @@ public class swiftApi {
}
public class CouponItemModel {
public class CouponItemModel: Codable {
public let couponset_uuid: String?
public let name: String?
public let image: String?
......@@ -463,7 +463,7 @@ public class swiftApi {
return CouponsDataModel().getOldCoupons
}
public class CampaignItemModel {
public class CampaignItemModel: Codable {
public let index_url: String?
public var logo_url: String?
public let offer_category: String?
......@@ -623,7 +623,7 @@ public class swiftApi {
}
public class LoyaltyContextualOfferModel {
public class LoyaltyContextualOfferModel: Codable {
private var sessionId: String
private var eligibleAssets: Array<String>
private var id: String
......@@ -2415,7 +2415,7 @@ public class swiftApi {
}
public class LoyaltyGiftsForYouPackage {
public class LoyaltyGiftsForYouPackage: Codable {
private var title: String
private var imageUrl: String
private var loyaltyPackageId: String
......