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-04-02 16:55:13 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
be863f3c0923411a8e2ef54c23870573b32f942d
be863f3c
1 parent
4bafc865
fix coupon_img at CampaignItemModel
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
be863f3
...
...
@@ -1245,7 +1245,6 @@ public class swiftApi {
self
.
sorting
=
dictionary
[
"sorting"
]
as?
Int
?
??
0
self
.
ccms
=
nil
self
.
coupon_availability
=
nil
self
.
coupon_img
=
dictionary
[
"coupon_img"
]
as?
String
?
??
""
let
startDateString
=
dictionary
[
"start_date"
]
as?
String
?
??
""
// Example expirationString: "start_date" = "2022-06-29 00:00:00";
...
...
@@ -1286,6 +1285,7 @@ public class swiftApi {
self
.
category_id
=
extra_fields
[
"category_id"
]
as?
String
??
""
self
.
filter
=
extra_fields
[
"filter"
]
as?
String
??
""
self
.
show_expiration
=
extra_fields
[
"show_expiration"
]
as?
Bool
?
??
false
self
.
coupon_img
=
extra_fields
[
"coupon_img"
]
as?
String
?
??
""
}
else
{
self
.
subcategory
=
""
self
.
loyaltyCampaignId
=
""
...
...
@@ -1299,6 +1299,7 @@ public class swiftApi {
self
.
banner_title
=
""
self
.
filter
=
""
self
.
show_expiration
=
false
self
.
coupon_img
=
""
}
// let extra_fields = dictionary["extra_fields"] as AnyObject
...
...
Please
register
or
login
to post a comment