Showing
1 changed file
with
12 additions
and
0 deletions
| ... | @@ -435,6 +435,7 @@ public class swiftApi { | ... | @@ -435,6 +435,7 @@ public class swiftApi { |
| 435 | public let loyaltyCampaignId: String? | 435 | public let loyaltyCampaignId: String? |
| 436 | public let hasExtraFields: Bool? | 436 | public let hasExtraFields: Bool? |
| 437 | public let ccms_offer: String? | 437 | public let ccms_offer: String? |
| 438 | + public var loyaltyPackageId: String? | ||
| 438 | 439 | ||
| 439 | public init() { | 440 | public init() { |
| 440 | self.index_url = "" | 441 | self.index_url = "" |
| ... | @@ -449,6 +450,7 @@ public class swiftApi { | ... | @@ -449,6 +450,7 @@ public class swiftApi { |
| 449 | self.loyaltyCampaignId = "" | 450 | self.loyaltyCampaignId = "" |
| 450 | self.hasExtraFields = false | 451 | self.hasExtraFields = false |
| 451 | self.ccms_offer = "false" | 452 | self.ccms_offer = "false" |
| 453 | + self.loyaltyPackageId = "" | ||
| 452 | } | 454 | } |
| 453 | 455 | ||
| 454 | public init(dictionary: [String: Any]) { | 456 | public init(dictionary: [String: Any]) { |
| ... | @@ -460,6 +462,7 @@ public class swiftApi { | ... | @@ -460,6 +462,7 @@ public class swiftApi { |
| 460 | self.session_uuid = dictionary["session_uuid"] as? String? ?? "" | 462 | self.session_uuid = dictionary["session_uuid"] as? String? ?? "" |
| 461 | self.is_new = dictionary["is_new"] as? Bool? ?? false | 463 | self.is_new = dictionary["is_new"] as? Bool? ?? false |
| 462 | self.message = dictionary["message"] as? String? ?? "" | 464 | self.message = dictionary["message"] as? String? ?? "" |
| 465 | + self.loyaltyPackageId = "" | ||
| 463 | 466 | ||
| 464 | // let extra_fields = dictionary["extra_fields"] as? [String: Any]? ?? ["":""] | 467 | // let extra_fields = dictionary["extra_fields"] as? [String: Any]? ?? ["":""] |
| 465 | let extra_fields = dictionary["extra_fields"] as AnyObject | 468 | let extra_fields = dictionary["extra_fields"] as AnyObject |
| ... | @@ -507,6 +510,15 @@ public class swiftApi { | ... | @@ -507,6 +510,15 @@ public class swiftApi { |
| 507 | self.title = newValue | 510 | self.title = newValue |
| 508 | } | 511 | } |
| 509 | } | 512 | } |
| 513 | + | ||
| 514 | + public var _loyaltyPackageId: String? { | ||
| 515 | + get { // getter | ||
| 516 | + return self.loyaltyPackageId | ||
| 517 | + } | ||
| 518 | + set(newValue) { //setter | ||
| 519 | + self.loyaltyPackageId = newValue | ||
| 520 | + } | ||
| 521 | + } | ||
| 510 | } | 522 | } |
| 511 | 523 | ||
| 512 | public class CampaignDataModel { | 524 | public class CampaignDataModel { | ... | ... |
-
Please register or login to post a comment