Manos Chorianopoulos

update CampaignItemModel

...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> 7 <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
8 <dict> 8 <dict>
9 <key>orderHint</key> 9 <key>orderHint</key>
10 - <integer>0</integer> 10 + <integer>1</integer>
11 </dict> 11 </dict>
12 </dict> 12 </dict>
13 </dict> 13 </dict>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> 7 <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
8 <dict> 8 <dict>
9 <key>orderHint</key> 9 <key>orderHint</key>
10 - <integer>1</integer> 10 + <integer>0</integer>
11 </dict> 11 </dict>
12 </dict> 12 </dict>
13 </dict> 13 </dict>
......
...@@ -648,6 +648,7 @@ public class swiftApi { ...@@ -648,6 +648,7 @@ public class swiftApi {
648 public var couponset: String? 648 public var couponset: String?
649 public var type: String? 649 public var type: String?
650 public var sorting: Int? 650 public var sorting: Int?
651 + private var ccms: LoyaltyContextualOfferModel?
651 652
652 public init() { 653 public init() {
653 self.index_url = "" 654 self.index_url = ""
...@@ -669,6 +670,7 @@ public class swiftApi { ...@@ -669,6 +670,7 @@ public class swiftApi {
669 self.couponset = "" 670 self.couponset = ""
670 self.type = "" 671 self.type = ""
671 self.sorting = 0 672 self.sorting = 0
673 + self.ccms = nil
672 } 674 }
673 675
674 public init(dictionary: [String: Any]) { 676 public init(dictionary: [String: Any]) {
...@@ -683,6 +685,7 @@ public class swiftApi { ...@@ -683,6 +685,7 @@ public class swiftApi {
683 self.loyaltyPackageId = "" 685 self.loyaltyPackageId = ""
684 self.campaign_type = dictionary["campaign_type"] as? String? ?? "" 686 self.campaign_type = dictionary["campaign_type"] as? String? ?? ""
685 self.sorting = dictionary["sorting"] as? Int? ?? 0 687 self.sorting = dictionary["sorting"] as? Int? ?? 0
688 + self.ccms = nil
686 689
687 // let extra_fields = dictionary["extra_fields"] as? [String: Any]? ?? ["":""] 690 // let extra_fields = dictionary["extra_fields"] as? [String: Any]? ?? ["":""]
688 if let extra_fields = dictionary["extra_fields"] as? [String: Any] { 691 if let extra_fields = dictionary["extra_fields"] as? [String: Any] {
...@@ -854,6 +857,15 @@ public class swiftApi { ...@@ -854,6 +857,15 @@ public class swiftApi {
854 self.sorting = newValue 857 self.sorting = newValue
855 } 858 }
856 } 859 }
860 +
861 + public var _ccms: LoyaltyContextualOfferModel? {
862 + get { // getter
863 + return self.ccms
864 + }
865 + set(newValue) { //setter
866 + self.ccms = newValue
867 + }
868 + }
857 } 869 }
858 870
859 public class CampaignDataModel { 871 public class CampaignDataModel {
......