Skip to content
Merged
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
Expand Up @@ -104,6 +104,7 @@ fun FetchedStoreProfile.Settings.toUpdated(): UpdatedStoreProfile.Settings {
googleRemarketingEnabled = googleRemarketingEnabled,
googleTagId = googleTagId,
hideOutOfStockProductsInStorefront = hideOutOfStockProductsInStorefront,
highlightCompositeProductsOnStorefront = highlightCompositeProductsOnStorefront,
openBagOnAddition = openBagOnAddition,
orderCommentsCaption = orderCommentsCaption,
orderCommentsEnabled = orderCommentsEnabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class StoreProfileTest : BaseEntityTest() {
orderCommentsCaption = "orderCommentsCaption",
orderCommentsRequired = true,
hideOutOfStockProductsInStorefront = true,
highlightCompositeProductsOnStorefront = true,
askCompanyName = true,
favoritesEnabled = true,
defaultProductSortOrder = UpdatedStoreProfile.ProductSortOrder.NAME_ASC,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -56,6 +57,7 @@ val nonnullPropertyRules: List<NonnullPropertyRule<*, *>> = listOf(
AllowNonnull(UpdatedStoreProfile.ProductFiltersSettings::filterSections),
AllowNonnull(UpdatedVariation.RecurringChargeSettings::recurringInterval),
AllowNonnull(UpdatedVariation.RecurringChargeSettings::recurringIntervalCount),
AllowNonnull(FetchedStoreProfile.Settings::highlightCompositeProductsOnStorefront),
)

sealed class NonnullPropertyRule<T, R>(
Expand Down
Loading