From dd3b95ab2fc50c2c35de88aa03ffb6891bbe147f Mon Sep 17 00:00:00 2001 From: Tigran Harutyunyan Date: Mon, 2 Sep 2024 11:31:00 +0400 Subject: [PATCH 1/2] ECWID-148213 - added new properties to to FetchedStoreProfile class --- .../apiclient/v3/dto/profile/result/FetchedStoreProfile.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt index 9d02e1b0..9f591174 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt @@ -601,6 +601,9 @@ data class FetchedStoreProfile( @JsonFieldName("product_details_position_product_price") val productDetailsPositionProductPrice: Int? = null, + @JsonFieldName("product_details_position_product_loyalty") + val productDetailsPositionProductLoyalty: Int? = null, + @JsonFieldName("product_details_position_product_sku") val productDetailsPositionProductSku: Int? = null, @@ -667,6 +670,9 @@ data class FetchedStoreProfile( @JsonFieldName("product_details_show_product_price") val productDetailsShowProductPrice: Boolean? = null, + @JsonFieldName("product_details_show_product_loyalty") + val productDetailsShowProductLoyalty: Boolean? = null, + @JsonFieldName("product_details_show_product_sku") val productDetailsShowProductSku: Boolean? = null, From a94cb11976f84030aece91f546e310f92fa4e865 Mon Sep 17 00:00:00 2001 From: Tigran Harutyunyan Date: Mon, 2 Sep 2024 11:58:11 +0400 Subject: [PATCH 2/2] ECWID-148213 - added 'productDetailsShowProductLoyalty' and 'productDetailsPositionProductLoyalty' to FetchedStoreProfileRules --- .../v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt index c82f1727..3f928702 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt @@ -91,6 +91,7 @@ val fetchedStoreProfileNullablePropertyRules: List> = AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionProductName), AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionProductOptions), AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionProductPrice), + AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionProductLoyalty), AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionProductSku), AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionSaveForLater), AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionShareButtons), @@ -113,6 +114,7 @@ val fetchedStoreProfileNullablePropertyRules: List> = AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductOptions), AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductPhotoZoom), AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductPrice), + AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductLoyalty), AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductSku), AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowQty), AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowSalePrice),