Skip to content

Commit d12d3a1

Browse files
authored
Merge pull request #234 from Ecwid/design-settings
Add another missed field to FetchedStoreProfile.DesignSettings class
2 parents b2ea597 + 3fd443c commit d12d3a1

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

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
@@ -754,6 +754,9 @@ data class FetchedStoreProfile(
754754

755755
@JsonFieldName("show_root_categories")
756756
val showRootCategories: Boolean? = null,
757+
758+
@JsonFieldName("show_signin_link_with_unified_account_page")
759+
val showSigninLinkWithUnifiedAccountPage: Boolean? = null,
757760
)
758761

759762
data class ProductFilterItem(

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,16 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
6262
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetFixedShape),
6363
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetHorizontalIndent),
6464
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetIcon),
65+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetIsResponsive),
6566
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetLayout),
6667
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetShowBuyAnimation),
6768
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetShowEmptyCart),
6869
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetStoreCustomIconUrl),
6970
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetVerticalIndent),
7071
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutProductsCollapsedOnDesktop),
7172
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutProductsCollapsedOnMobile),
73+
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutShowAddressLine2),
74+
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutShowStateInput),
7275
AllowNullable(FetchedStoreProfile.DesignSettings::enableCatalogOnOnePage),
7376
AllowNullable(FetchedStoreProfile.DesignSettings::enablePageTransitions),
7477
AllowNullable(FetchedStoreProfile.DesignSettings::enableSimpleCategoryList),
@@ -121,6 +124,7 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
121124
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowVkShareButton),
122125
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowWeight),
123126
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowWholesalePrices),
127+
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowZoomedImageInGallery),
124128
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsThumbnailsAspectRatio),
125129
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsTwoColumnsWithLeftSidebarShowProductDescriptionOnSidebar),
126130
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsTwoColumnsWithRightSidebarShowProductDescriptionOnSidebar),
@@ -129,10 +133,12 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
129133
AllowNullable(FetchedStoreProfile.DesignSettings::productFiltersPositionSearchPage),
130134
AllowNullable(FetchedStoreProfile.DesignSettings::productListBuyNowBehaviour),
131135
AllowNullable(FetchedStoreProfile.DesignSettings::productListCardLayout),
136+
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryCellSpacing),
132137
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryImageLayout),
133138
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryImagePosition),
134139
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryImageSize),
135140
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryNameBehaviour),
141+
AllowNullable(FetchedStoreProfile.DesignSettings::productListCellSpacing),
136142
AllowNullable(FetchedStoreProfile.DesignSettings::productListImageHasShadow),
137143
AllowNullable(FetchedStoreProfile.DesignSettings::productListImageLayout),
138144
AllowNullable(FetchedStoreProfile.DesignSettings::productListImagePosition),
@@ -154,16 +160,11 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
154160
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartProductsCollapsedOnDesktop),
155161
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartProductsCollapsedOnMobile),
156162
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowQtyInputs),
163+
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowSku),
157164
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowWeight),
158165
AllowNullable(FetchedStoreProfile.DesignSettings::showCartWidget),
159166
AllowNullable(FetchedStoreProfile.DesignSettings::showRootCategories),
160-
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetIsResponsive),
161-
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutShowAddressLine2),
162-
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutShowStateInput),
163-
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowZoomedImageInGallery),
164-
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryCellSpacing),
165-
AllowNullable(FetchedStoreProfile.DesignSettings::productListCellSpacing),
166-
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowSku),
167+
AllowNullable(FetchedStoreProfile.DesignSettings::showSigninLinkWithUnifiedAccountPage),
167168
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::enabled),
168169
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::fbMessengerMessageUsButtonColor),
169170
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::fbMessengerPageId),

0 commit comments

Comments
 (0)