Showing
1 changed file
with
11 additions
and
0 deletions
... | @@ -17,6 +17,7 @@ public struct GlobalVariables { | ... | @@ -17,6 +17,7 @@ public struct GlobalVariables { |
17 | static var loyaltyBadge: swiftApi.LoyaltyBadgeModel = swiftApi.LoyaltyBadgeModel() | 17 | static var loyaltyBadge: swiftApi.LoyaltyBadgeModel = swiftApi.LoyaltyBadgeModel() |
18 | static var consumer: swiftApi.ProfileModel? | 18 | static var consumer: swiftApi.ProfileModel? |
19 | static var ccmsCampaigns: Array<swiftApi.LoyaltyContextualOfferModel> = [] | 19 | static var ccmsCampaigns: Array<swiftApi.LoyaltyContextualOfferModel> = [] |
20 | + static var dealsSum: Float = 0.0 | ||
20 | } | 21 | } |
21 | 22 | ||
22 | public class swiftApi { | 23 | public class swiftApi { |
... | @@ -1949,4 +1950,14 @@ public class swiftApi { | ... | @@ -1949,4 +1950,14 @@ public class swiftApi { |
1949 | return GlobalVariables.consumer | 1950 | return GlobalVariables.consumer |
1950 | } | 1951 | } |
1951 | 1952 | ||
1953 | + | ||
1954 | + public func setDealsCouponsSum(_ sum: Float) { | ||
1955 | + GlobalVariables.dealsSum = sum | ||
1956 | + } | ||
1957 | + | ||
1958 | + | ||
1959 | + public func getDealsCouponsSum() -> Float { | ||
1960 | + return GlobalVariables.dealsSum | ||
1961 | + } | ||
1962 | + | ||
1952 | } | 1963 | } | ... | ... |
-
Please register or login to post a comment