File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
src/main/kotlin/com/ecwid/apiclient/v3 Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ fun FetchedStoreProfile.Settings.toUpdated(): UpdatedStoreProfile.Settings {
124
124
storeName = storeName,
125
125
tikTokPixel = tikTokPixel?.toUpdated(),
126
126
askAgeConfirmationInStorefront = askAgeConfirmationInStorefront,
127
+ fbMessengerSettings = fbMessengerSettings?.toUpdated(),
127
128
)
128
129
}
129
130
@@ -133,6 +134,14 @@ fun FetchedStoreProfile.TikTokPixelSettings.toUpdated(): UpdatedStoreProfile.Tik
133
134
)
134
135
}
135
136
137
+ fun FetchedStoreProfile.FbMessengerSettings.toUpdated (): UpdatedStoreProfile .FbMessengerSettings {
138
+ return UpdatedStoreProfile .FbMessengerSettings (
139
+ fbMessengerPageId = fbMessengerPageId,
140
+ fbMessengerThemeColor = fbMessengerThemeColor,
141
+ fbMessengerMessageUsButtonColor = fbMessengerMessageUsButtonColor
142
+ )
143
+ }
144
+
136
145
fun FetchedStoreProfile.ProductSortOrder.toUpdated (): UpdatedStoreProfile .ProductSortOrder {
137
146
return when (this ) {
138
147
FetchedStoreProfile .ProductSortOrder .DEFINED_BY_STORE_OWNER -> UpdatedStoreProfile .ProductSortOrder .DEFINED_BY_STORE_OWNER
Original file line number Diff line number Diff line change @@ -117,12 +117,19 @@ data class UpdatedStoreProfile(
117
117
val storeName : String? = null ,
118
118
val tikTokPixel : TikTokPixelSettings ? = null ,
119
119
val askAgeConfirmationInStorefront : Boolean? = null ,
120
+ val fbMessengerSettings : FbMessengerSettings ? = null ,
120
121
)
121
122
122
123
data class TikTokPixelSettings (
123
124
val advancedMatching : Boolean? = null
124
125
)
125
126
127
+ data class FbMessengerSettings (
128
+ val fbMessengerPageId : String? = null ,
129
+ val fbMessengerThemeColor : String? = null ,
130
+ val fbMessengerMessageUsButtonColor : String? = null ,
131
+ )
132
+
126
133
enum class ProductSortOrder {
127
134
DEFINED_BY_STORE_OWNER ,
128
135
ADDED_TIME_DESC ,
Original file line number Diff line number Diff line change @@ -149,13 +149,20 @@ data class FetchedStoreProfile(
149
149
val storeName : String? = null ,
150
150
val tikTokPixel : TikTokPixelSettings ? = null ,
151
151
val askAgeConfirmationInStorefront : Boolean = false ,
152
+ val fbMessengerSettings : FbMessengerSettings ? = null ,
152
153
)
153
154
154
155
data class TikTokPixelSettings (
155
156
val code : String? = null ,
156
157
val advancedMatching : Boolean = false
157
158
)
158
159
160
+ data class FbMessengerSettings (
161
+ val fbMessengerPageId : String? = null ,
162
+ val fbMessengerThemeColor : String? = null ,
163
+ val fbMessengerMessageUsButtonColor : String? = null ,
164
+ )
165
+
159
166
enum class ProductSortOrder {
160
167
DEFINED_BY_STORE_OWNER ,
161
168
ADDED_TIME_DESC ,
You can’t perform that action at this time.
0 commit comments