Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.ecwid.apiclient.v3.dto.profile.enums

enum class HighlightCompositeProductsOnStorefront {
DISABLED,
ENABLED,
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
Loading