From 1f7af75353cd740718d3890d538f468c8315685d Mon Sep 17 00:00:00 2001 From: Timofei Stanskov Date: Thu, 6 Feb 2025 17:34:28 +0400 Subject: [PATCH] ECWID-154657 - Add askAgeConfirmationInStorefront field to FetchedProfile.Settings --- .../com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt | 1 + .../apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt | 1 + .../ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt index 137eac665..2e049e4bc 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt @@ -123,6 +123,7 @@ fun FetchedStoreProfile.Settings.toUpdated(): UpdatedStoreProfile.Settings { storeDescriptionTranslated = storeDescriptionTranslated, storeName = storeName, tikTokPixel = tikTokPixel?.toUpdated(), + askAgeConfirmationInStorefront = askAgeConfirmationInStorefront, ) } diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt index eb358751d..222bbfe29 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt @@ -116,6 +116,7 @@ data class UpdatedStoreProfile( val storeDescriptionTranslated: LocalizedValueMap? = null, val storeName: String? = null, val tikTokPixel: TikTokPixelSettings? = null, + val askAgeConfirmationInStorefront: Boolean? = null, ) data class TikTokPixelSettings( diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt index d5d9e6a7c..d2251d1a3 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt @@ -148,6 +148,7 @@ data class FetchedStoreProfile( val storeDescriptionTranslated: LocalizedValueMap? = null, val storeName: String? = null, val tikTokPixel: TikTokPixelSettings? = null, + val askAgeConfirmationInStorefront: Boolean = false, ) data class TikTokPixelSettings(