diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/enums/HighlightCompositeProductsOnStorefront.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/enums/HighlightCompositeProductsOnStorefront.kt new file mode 100644 index 00000000..0504f13a --- /dev/null +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/enums/HighlightCompositeProductsOnStorefront.kt @@ -0,0 +1,6 @@ +package com.ecwid.apiclient.v3.dto.profile.enums + +enum class HighlightCompositeProductsOnStorefront { + DISABLED, + ENABLED, +} 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 24fba898..374837d0 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 @@ -4,6 +4,7 @@ import com.ecwid.apiclient.v3.dto.common.ApiUpdatedDTO import com.ecwid.apiclient.v3.dto.common.ApiUpdatedDTO.ModifyKind import com.ecwid.apiclient.v3.dto.common.LocalizedValueMap import com.ecwid.apiclient.v3.dto.common.ProductCondition +import com.ecwid.apiclient.v3.dto.profile.enums.HighlightCompositeProductsOnStorefront import com.ecwid.apiclient.v3.dto.profile.enums.ProductFilterType import com.ecwid.apiclient.v3.dto.profile.result.FetchedStoreProfile import com.ecwid.apiclient.v3.jsontransformer.JsonFieldName @@ -98,7 +99,7 @@ data class UpdatedStoreProfile( val googleRemarketingEnabled: Boolean? = null, val googleTagId: String? = null, val hideOutOfStockProductsInStorefront: Boolean? = null, - val highlightCompositeProductsOnStorefront: Boolean? = null, + val highlightCompositeProductsOnStorefront: HighlightCompositeProductsOnStorefront? = 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 3c2f59f5..bdfa1871 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 @@ -5,6 +5,7 @@ import com.ecwid.apiclient.v3.dto.common.ApiFetchedDTO.ModifyKind import com.ecwid.apiclient.v3.dto.common.ApiResultDTO import com.ecwid.apiclient.v3.dto.common.LocalizedValueMap import com.ecwid.apiclient.v3.dto.common.ProductCondition +import com.ecwid.apiclient.v3.dto.profile.enums.HighlightCompositeProductsOnStorefront import com.ecwid.apiclient.v3.dto.profile.enums.ProductFilterType import com.ecwid.apiclient.v3.dto.profile.request.UpdatedPaymentOption import com.ecwid.apiclient.v3.dto.profile.request.UpdatedStoreProfile @@ -127,7 +128,7 @@ data class FetchedStoreProfile( val googleRemarketingEnabled: Boolean? = null, val googleTagId: String? = null, val hideOutOfStockProductsInStorefront: Boolean? = null, - val highlightCompositeProductsOnStorefront: Boolean = false, + val highlightCompositeProductsOnStorefront: HighlightCompositeProductsOnStorefront = HighlightCompositeProductsOnStorefront.DISABLED, 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 13995465..c62dd211 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt @@ -2,6 +2,7 @@ package com.ecwid.apiclient.v3.entity import com.ecwid.apiclient.v3.converter.toUpdated import com.ecwid.apiclient.v3.dto.common.ProductCondition +import com.ecwid.apiclient.v3.dto.profile.enums.HighlightCompositeProductsOnStorefront import com.ecwid.apiclient.v3.dto.profile.enums.ProductFilterType import com.ecwid.apiclient.v3.dto.profile.request.StoreProfileRequest import com.ecwid.apiclient.v3.dto.profile.request.StoreProfileUpdateRequest @@ -49,7 +50,7 @@ class StoreProfileTest : BaseEntityTest() { orderCommentsCaption = "orderCommentsCaption", orderCommentsRequired = true, hideOutOfStockProductsInStorefront = true, - highlightCompositeProductsOnStorefront = true, + highlightCompositeProductsOnStorefront = HighlightCompositeProductsOnStorefront.ENABLED, askCompanyName = true, favoritesEnabled = true, defaultProductSortOrder = UpdatedStoreProfile.ProductSortOrder.NAME_ASC,