Showing
4 changed files
with
11 additions
and
4 deletions
| ... | @@ -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>1</integer> | 10 | + <integer>0</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>0</integer> | 10 | + <integer>1</integer> |
| 11 | </dict> | 11 | </dict> |
| 12 | </dict> | 12 | </dict> |
| 13 | </dict> | 13 | </dict> | ... | ... |
No preview for this file type
| ... | @@ -10,7 +10,7 @@ import Foundation | ... | @@ -10,7 +10,7 @@ import Foundation |
| 10 | 10 | ||
| 11 | // MARK: - Campaign Models | 11 | // MARK: - Campaign Models |
| 12 | 12 | ||
| 13 | -public class CampaignItemModel: Codable { | 13 | +public class CampaignItemModel { |
| 14 | public let index_url: String? | 14 | public let index_url: String? |
| 15 | public var logo_url: String? | 15 | public var logo_url: String? |
| 16 | public let offer_category: String? | 16 | public let offer_category: String? |
| ... | @@ -346,11 +346,18 @@ public class CampaignItemModel: Codable { | ... | @@ -346,11 +346,18 @@ public class CampaignItemModel: Codable { |
| 346 | get { return self.banner_img_mobile } | 346 | get { return self.banner_img_mobile } |
| 347 | set(newValue) { self.banner_img_mobile = newValue } | 347 | set(newValue) { self.banner_img_mobile = newValue } |
| 348 | } | 348 | } |
| 349 | + | ||
| 350 | + // MARK: - Computed properties for UI compatibility | ||
| 351 | + | ||
| 352 | + public var _valid_until: String? { | ||
| 353 | + get { return self._end_date } | ||
| 354 | + set(newValue) { self.end_date = newValue } | ||
| 355 | + } | ||
| 349 | } | 356 | } |
| 350 | 357 | ||
| 351 | // MARK: - Loyalty Contextual Offer Model | 358 | // MARK: - Loyalty Contextual Offer Model |
| 352 | 359 | ||
| 353 | -public class LoyaltyContextualOfferModel: Codable { | 360 | +public class LoyaltyContextualOfferModel { |
| 354 | private var sessionId: String | 361 | private var sessionId: String |
| 355 | private var eligibleAssets: Array<String> | 362 | private var eligibleAssets: Array<String> |
| 356 | private var id: String | 363 | private var id: String | ... | ... |
-
Please register or login to post a comment