From 88167e7ec66e5a695a3cccf18da3486eb11d4fd5 Mon Sep 17 00:00:00 2001 From: Timur Efimov Date: Mon, 15 Dec 2025 23:07:21 +0400 Subject: [PATCH] ECOM-260 store setting highlightCompositeProductsOnStorefront --- .../com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt | 1 + .../apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt | 1 + .../apiclient/v3/dto/profile/result/FetchedStoreProfile.kt | 1 + .../kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt | 1 + .../kotlin/com/ecwid/apiclient/v3/rule/NonnullPropertyRules.kt | 2 ++ 5 files changed, 6 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 16dd04fa..0c640310 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt @@ -104,6 +104,7 @@ fun FetchedStoreProfile.Settings.toUpdated(): UpdatedStoreProfile.Settings { googleRemarketingEnabled = googleRemarketingEnabled, googleTagId = googleTagId, hideOutOfStockProductsInStorefront = hideOutOfStockProductsInStorefront, + highlightCompositeProductsOnStorefront = highlightCompositeProductsOnStorefront, openBagOnAddition = openBagOnAddition, orderCommentsCaption = orderCommentsCaption, orderCommentsEnabled = orderCommentsEnabled, 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 e00383df..24fba898 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 @@ -98,6 +98,7 @@ data class UpdatedStoreProfile( val googleRemarketingEnabled: Boolean? = null, val googleTagId: String? = null, val hideOutOfStockProductsInStorefront: Boolean? = null, + val highlightCompositeProductsOnStorefront: Boolean? = null, val orderCommentsCaption: String? = null, val orderCommentsEnabled: Boolean? = null, val orderCommentsRequired: Boolean? = null, 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 fd83c427..3c2f59f5 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 @@ -127,6 +127,7 @@ data class FetchedStoreProfile( val googleRemarketingEnabled: Boolean? = null, val googleTagId: String? = null, val hideOutOfStockProductsInStorefront: Boolean? = null, + val highlightCompositeProductsOnStorefront: Boolean = false, val invoiceLogoUrl: String? = null, val openBagOnAddition: Boolean = false, val orderCommentsCaption: String? = null, diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt b/src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt index 01e1dea9..13995465 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt @@ -49,6 +49,7 @@ class StoreProfileTest : BaseEntityTest() { orderCommentsCaption = "orderCommentsCaption", orderCommentsRequired = true, hideOutOfStockProductsInStorefront = true, + highlightCompositeProductsOnStorefront = true, askCompanyName = true, favoritesEnabled = true, defaultProductSortOrder = UpdatedStoreProfile.ProductSortOrder.NAME_ASC, diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonnullPropertyRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonnullPropertyRules.kt index 3352026a..47c279d5 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonnullPropertyRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonnullPropertyRules.kt @@ -5,6 +5,7 @@ import com.ecwid.apiclient.v3.dto.coupon.request.UpdatedCoupon import com.ecwid.apiclient.v3.dto.customergroup.request.UpdatedCustomerGroup import com.ecwid.apiclient.v3.dto.product.request.UpdatedProduct import com.ecwid.apiclient.v3.dto.profile.request.UpdatedStoreProfile +import com.ecwid.apiclient.v3.dto.profile.result.FetchedStoreProfile import com.ecwid.apiclient.v3.dto.storage.request.UpdatedStorageData import com.ecwid.apiclient.v3.dto.variation.request.UpdatedVariation import com.ecwid.apiclient.v3.rule.NonnullPropertyRule.AllowNonnull @@ -56,6 +57,7 @@ val nonnullPropertyRules: List> = listOf( AllowNonnull(UpdatedStoreProfile.ProductFiltersSettings::filterSections), AllowNonnull(UpdatedVariation.RecurringChargeSettings::recurringInterval), AllowNonnull(UpdatedVariation.RecurringChargeSettings::recurringIntervalCount), + AllowNonnull(FetchedStoreProfile.Settings::highlightCompositeProductsOnStorefront), ) sealed class NonnullPropertyRule(