Skip to content

Commit 6d7f53f

Browse files
committed
ECWID-178450 Add new productListCardSpacingType design setting
1 parent 9a14398 commit 6d7f53f

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ fun FetchedStoreProfile.DesignSettings.toUpdated(): UpdatedStoreProfile.DesignSe
411411
productFiltersVisibleOnCatalogPages = productFiltersVisibleOnCatalogPages,
412412
productListBuyNowBehaviour = productListBuyNowBehaviour,
413413
productListCardLayout = productListCardLayout,
414+
productListCardSpacingType = productListCardSpacingType,
414415
productListCategoryCellSpacing = productListCategoryCellSpacing,
415416
productListCategoryImageLayout = productListCategoryImageLayout,
416417
productListCategoryImagePosition = productListCategoryImagePosition,

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,9 @@ data class UpdatedStoreProfile(
551551
@JsonFieldName("product_list_product_info_layout")
552552
val productListCardLayout: String? = null,
553553

554+
@JsonFieldName("product_list_card_spacing_type")
555+
val productListCardSpacingType: String? = null,
556+
554557
@JsonFieldName("product_list_category_cell_spacing")
555558
val productListCategoryCellSpacing: Int? = null,
556559

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,9 @@ data class FetchedStoreProfile(
651651
@JsonFieldName("product_list_product_info_layout")
652652
val productListCardLayout: String? = null,
653653

654+
@JsonFieldName("product_list_card_spacing_type")
655+
val productListCardSpacingType: String? = null,
656+
654657
@JsonFieldName("product_list_category_cell_spacing")
655658
val productListCategoryCellSpacing: Int? = null,
656659

src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
136136
AllowNullable(FetchedStoreProfile.DesignSettings::productFiltersVisibleOnCatalogPages),
137137
AllowNullable(FetchedStoreProfile.DesignSettings::productListBuyNowBehaviour),
138138
AllowNullable(FetchedStoreProfile.DesignSettings::productListCardLayout),
139+
AllowNullable(FetchedStoreProfile.DesignSettings::productListCardSpacingType),
139140
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryCellSpacing),
140141
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryImageLayout),
141142
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryImagePosition),

0 commit comments

Comments
 (0)