Skip to content

Commit 5484481

Browse files
authored
Merge pull request #530 from Ecwid/ECWID-175647
ECWID-175647 Size charts: add productDetailsPositionSizeChart design setting
2 parents 2081bf1 + 8afe92a commit 5484481

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ fun FetchedStoreProfile.DesignSettings.toUpdated(): UpdatedStoreProfile.DesignSe
363363
productDetailsPositionReviewSection = productDetailsPositionReviewSection,
364364
productDetailsPositionSaveForLater = productDetailsPositionSaveForLater,
365365
productDetailsPositionShareButtons = productDetailsPositionShareButtons,
366+
productDetailsPositionSizeChart = productDetailsPositionSizeChart,
366367
productDetailsPositionSubtitle = productDetailsPositionSubtitle,
367368
productDetailsPositionWholesalePrices = productDetailsPositionWholesalePrices,
368369
productDetailsShowAttributes = productDetailsShowAttributes,

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
@@ -409,6 +409,9 @@ data class UpdatedStoreProfile(
409409
@JsonFieldName("product_details_position_share_buttons")
410410
val productDetailsPositionShareButtons: Int? = null,
411411

412+
@JsonFieldName("product_details_position_size_chart")
413+
val productDetailsPositionSizeChart: Int? = null,
414+
412415
@JsonFieldName("product_details_position_subtitle")
413416
val productDetailsPositionSubtitle: Int? = null,
414417

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
@@ -509,6 +509,9 @@ data class FetchedStoreProfile(
509509
@JsonFieldName("product_details_position_share_buttons")
510510
val productDetailsPositionShareButtons: Int? = null,
511511

512+
@JsonFieldName("product_details_position_size_chart")
513+
val productDetailsPositionSizeChart: Int? = null,
514+
512515
@JsonFieldName("product_details_position_subtitle")
513516
val productDetailsPositionSubtitle: Int? = null,
514517

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
@@ -89,6 +89,7 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
8989
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionReviewSection),
9090
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionSaveForLater),
9191
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionShareButtons),
92+
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionSizeChart),
9293
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionSubtitle),
9394
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionWholesalePrices),
9495
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowAttributes),

0 commit comments

Comments
 (0)