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 {
124124 storeName = storeName,
125125 tikTokPixel = tikTokPixel?.toUpdated(),
126126 askAgeConfirmationInStorefront = askAgeConfirmationInStorefront,
127+ fbMessengerSettings = fbMessengerSettings?.toUpdated(),
127128 )
128129}
129130
@@ -133,6 +134,14 @@ fun FetchedStoreProfile.TikTokPixelSettings.toUpdated(): UpdatedStoreProfile.Tik
133134 )
134135}
135136
137+ fun FetchedStoreProfile.FbMessengerSettings.toUpdated (): UpdatedStoreProfile .FbMessengerSettings {
138+ return UpdatedStoreProfile .FbMessengerSettings (
139+ fbMessengerPageId = fbMessengerPageId,
140+ fbMessengerThemeColor = fbMessengerThemeColor,
141+ fbMessengerMessageUsButtonColor = fbMessengerMessageUsButtonColor
142+ )
143+ }
144+
136145fun FetchedStoreProfile.ProductSortOrder.toUpdated (): UpdatedStoreProfile .ProductSortOrder {
137146 return when (this ) {
138147 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(
117117 val storeName : String? = null ,
118118 val tikTokPixel : TikTokPixelSettings ? = null ,
119119 val askAgeConfirmationInStorefront : Boolean? = null ,
120+ val fbMessengerSettings : FbMessengerSettings ? = null ,
120121 )
121122
122123 data class TikTokPixelSettings (
123124 val advancedMatching : Boolean? = null
124125 )
125126
127+ data class FbMessengerSettings (
128+ val fbMessengerPageId : String? = null ,
129+ val fbMessengerThemeColor : String? = null ,
130+ val fbMessengerMessageUsButtonColor : String? = null ,
131+ )
132+
126133 enum class ProductSortOrder {
127134 DEFINED_BY_STORE_OWNER ,
128135 ADDED_TIME_DESC ,
Original file line number Diff line number Diff line change @@ -149,13 +149,20 @@ data class FetchedStoreProfile(
149149 val storeName : String? = null ,
150150 val tikTokPixel : TikTokPixelSettings ? = null ,
151151 val askAgeConfirmationInStorefront : Boolean = false ,
152+ val fbMessengerSettings : FbMessengerSettings ? = null ,
152153 )
153154
154155 data class TikTokPixelSettings (
155156 val code : String? = null ,
156157 val advancedMatching : Boolean = false
157158 )
158159
160+ data class FbMessengerSettings (
161+ val fbMessengerPageId : String? = null ,
162+ val fbMessengerThemeColor : String? = null ,
163+ val fbMessengerMessageUsButtonColor : String? = null ,
164+ )
165+
159166 enum class ProductSortOrder {
160167 DEFINED_BY_STORE_OWNER ,
161168 ADDED_TIME_DESC ,
You can’t perform that action at this time.
0 commit comments