Skip to content

Commit dc12ba4

Browse files
committed
ECWID-178450 Add new productListCardSpacingType design setting
1 parent 01ad0db commit dc12ba4

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
@@ -410,6 +410,7 @@ fun FetchedStoreProfile.DesignSettings.toUpdated(): UpdatedStoreProfile.DesignSe
410410
productFiltersVisibleOnCatalogPages = productFiltersVisibleOnCatalogPages,
411411
productListBuyNowBehaviour = productListBuyNowBehaviour,
412412
productListCardLayout = productListCardLayout,
413+
productListCardSpacingType = productListCardSpacingType,
413414
productListCategoryCellSpacing = productListCategoryCellSpacing,
414415
productListCategoryImageLayout = productListCategoryImageLayout,
415416
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
@@ -550,6 +550,9 @@ data class UpdatedStoreProfile(
550550
@JsonFieldName("product_list_product_info_layout")
551551
val productListCardLayout: String? = null,
552552

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

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
@@ -650,6 +650,9 @@ data class FetchedStoreProfile(
650650
@JsonFieldName("product_list_product_info_layout")
651651
val productListCardLayout: String? = null,
652652

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

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)