Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2024-05-08 11:41:02 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
af934fcf5ce6bca8f0b58d42f57ed0f79c68b310
af934fcf
1 parent
bb02711b
added ActiveBoxCouponModel and support functions
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
af934fc
...
...
@@ -14,6 +14,7 @@ public struct GlobalVariables {
static
var
customerState
:
swiftApi
.
CustomerStateModel
?
static
var
userTag
:
String
=
""
static
var
dfyCoupons
:
Array
<
swiftApi
.
ActiveDFYCouponModel
>
=
[]
static
var
boxCoupons
:
Array
<
swiftApi
.
ActiveBoxCouponModel
>
=
[]
static
var
couponList
:
Array
<
swiftApi
.
CouponItemModel
>
=
[]
static
var
oldCouponList
:
Array
<
swiftApi
.
CouponItemModel
>
=
[]
static
var
smOldCouponList
:
Array
<
swiftApi
.
CouponItemModel
>
=
[]
...
...
@@ -28,6 +29,7 @@ public struct GlobalVariables {
static
var
consumerInternal
:
swiftApi
.
ProfileModel
?
static
var
ccmsCampaigns
:
Array
<
swiftApi
.
LoyaltyContextualOfferModel
>
=
[]
static
var
dealsSum
:
Float
=
0.0
static
var
boxSum
:
Float
=
0.0
static
var
seasonalList
:
Array
<
swiftApi
.
LoyaltyGiftsForYouPackage
>
=
[]
static
var
savedSteps
:
Int
=
0
static
var
stepsWebview
:
Int
=
0
...
...
@@ -8628,4 +8630,49 @@ public class swiftApi {
}
public
class
ActiveBoxCouponModel
{
private
var
value
:
String
private
var
code
:
String
public
init
()
{
self
.
value
=
""
self
.
code
=
""
}
public
var
_value
:
String
{
get
{
// getter
return
self
.
value
}
set
(
newValue
)
{
//setter
self
.
value
=
newValue
}
}
public
var
_code
:
String
{
get
{
// getter
return
self
.
code
}
set
(
newValue
)
{
//setter
self
.
code
=
newValue
}
}
}
public
func
setActiveBoxCoupons
(
boxCoupons
:
Array
<
ActiveBoxCouponModel
>
)
{
GlobalVariables
.
boxCoupons
=
boxCoupons
}
public
func
getActiveBoxCoupons
()
->
Array
<
ActiveBoxCouponModel
>
{
return
GlobalVariables
.
boxCoupons
}
public
func
setBoxCouponsSum
(
_
sum
:
Float
)
{
GlobalVariables
.
boxSum
=
sum
}
public
func
getBoxCouponsSum
()
->
Float
{
return
GlobalVariables
.
boxSum
}
}
...
...
Please
register
or
login
to post a comment