Skip to content

Commit 3e8a18e

Browse files
authored
Merge pull request #466 from Ecwid/add-ask-age-confirmation-in-storefront-field
ECWID-154657 - Add askAgeConfirmationInStorefront field to FetchedProfile.Settings
2 parents c5a1a0d + 1f7af75 commit 3e8a18e

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ fun FetchedStoreProfile.Settings.toUpdated(): UpdatedStoreProfile.Settings {
123123
storeDescriptionTranslated = storeDescriptionTranslated,
124124
storeName = storeName,
125125
tikTokPixel = tikTokPixel?.toUpdated(),
126+
askAgeConfirmationInStorefront = askAgeConfirmationInStorefront,
126127
)
127128
}
128129

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ data class UpdatedStoreProfile(
116116
val storeDescriptionTranslated: LocalizedValueMap? = null,
117117
val storeName: String? = null,
118118
val tikTokPixel: TikTokPixelSettings? = null,
119+
val askAgeConfirmationInStorefront: Boolean? = null,
119120
)
120121

121122
data class TikTokPixelSettings(

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ data class FetchedStoreProfile(
148148
val storeDescriptionTranslated: LocalizedValueMap? = null,
149149
val storeName: String? = null,
150150
val tikTokPixel: TikTokPixelSettings? = null,
151+
val askAgeConfirmationInStorefront: Boolean = false,
151152
)
152153

153154
data class TikTokPixelSettings(

0 commit comments

Comments
 (0)