Showing
1 changed file
with
47 additions
and
0 deletions
... | @@ -14,6 +14,7 @@ public struct GlobalVariables { | ... | @@ -14,6 +14,7 @@ public struct GlobalVariables { |
14 | static var customerState: swiftApi.CustomerStateModel? | 14 | static var customerState: swiftApi.CustomerStateModel? |
15 | static var userTag: String = "" | 15 | static var userTag: String = "" |
16 | static var dfyCoupons: Array<swiftApi.ActiveDFYCouponModel> = [] | 16 | static var dfyCoupons: Array<swiftApi.ActiveDFYCouponModel> = [] |
17 | + static var boxCoupons: Array<swiftApi.ActiveBoxCouponModel> = [] | ||
17 | static var couponList: Array<swiftApi.CouponItemModel> = [] | 18 | static var couponList: Array<swiftApi.CouponItemModel> = [] |
18 | static var oldCouponList: Array<swiftApi.CouponItemModel> = [] | 19 | static var oldCouponList: Array<swiftApi.CouponItemModel> = [] |
19 | static var smOldCouponList: Array<swiftApi.CouponItemModel> = [] | 20 | static var smOldCouponList: Array<swiftApi.CouponItemModel> = [] |
... | @@ -28,6 +29,7 @@ public struct GlobalVariables { | ... | @@ -28,6 +29,7 @@ public struct GlobalVariables { |
28 | static var consumerInternal: swiftApi.ProfileModel? | 29 | static var consumerInternal: swiftApi.ProfileModel? |
29 | static var ccmsCampaigns: Array<swiftApi.LoyaltyContextualOfferModel> = [] | 30 | static var ccmsCampaigns: Array<swiftApi.LoyaltyContextualOfferModel> = [] |
30 | static var dealsSum: Float = 0.0 | 31 | static var dealsSum: Float = 0.0 |
32 | + static var boxSum: Float = 0.0 | ||
31 | static var seasonalList: Array<swiftApi.LoyaltyGiftsForYouPackage> = [] | 33 | static var seasonalList: Array<swiftApi.LoyaltyGiftsForYouPackage> = [] |
32 | static var savedSteps: Int = 0 | 34 | static var savedSteps: Int = 0 |
33 | static var stepsWebview: Int = 0 | 35 | static var stepsWebview: Int = 0 |
... | @@ -8628,4 +8630,49 @@ public class swiftApi { | ... | @@ -8628,4 +8630,49 @@ public class swiftApi { |
8628 | } | 8630 | } |
8629 | 8631 | ||
8630 | 8632 | ||
8633 | + public class ActiveBoxCouponModel { | ||
8634 | + private var value: String | ||
8635 | + private var code: String | ||
8636 | + | ||
8637 | + public init() { | ||
8638 | + self.value = "" | ||
8639 | + self.code = "" | ||
8640 | + } | ||
8641 | + | ||
8642 | + public var _value: String { | ||
8643 | + get { // getter | ||
8644 | + return self.value | ||
8645 | + } | ||
8646 | + set(newValue) { //setter | ||
8647 | + self.value = newValue | ||
8648 | + } | ||
8649 | + } | ||
8650 | + | ||
8651 | + public var _code: String { | ||
8652 | + get { // getter | ||
8653 | + return self.code | ||
8654 | + } | ||
8655 | + set(newValue) { //setter | ||
8656 | + self.code = newValue | ||
8657 | + } | ||
8658 | + } | ||
8659 | + } | ||
8660 | + | ||
8661 | + public func setActiveBoxCoupons(boxCoupons: Array<ActiveBoxCouponModel>) { | ||
8662 | + GlobalVariables.boxCoupons = boxCoupons | ||
8663 | + } | ||
8664 | + | ||
8665 | + public func getActiveBoxCoupons() -> Array<ActiveBoxCouponModel> { | ||
8666 | + return GlobalVariables.boxCoupons | ||
8667 | + } | ||
8668 | + | ||
8669 | + public func setBoxCouponsSum(_ sum: Float) { | ||
8670 | + GlobalVariables.boxSum = sum | ||
8671 | + } | ||
8672 | + | ||
8673 | + public func getBoxCouponsSum() -> Float { | ||
8674 | + return GlobalVariables.boxSum | ||
8675 | + } | ||
8676 | + | ||
8677 | + | ||
8631 | } | 8678 | } | ... | ... |
-
Please register or login to post a comment