Skip to content

Commit

Permalink
Merge pull request #234 from Ecwid/design-settings
Browse files Browse the repository at this point in the history
Add another missed field to FetchedStoreProfile.DesignSettings class
  • Loading branch information
Alexis2004 authored Nov 26, 2022
2 parents b2ea597 + 3fd443c commit d12d3a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,9 @@ data class FetchedStoreProfile(

@JsonFieldName("show_root_categories")
val showRootCategories: Boolean? = null,

@JsonFieldName("show_signin_link_with_unified_account_page")
val showSigninLinkWithUnifiedAccountPage: Boolean? = null,
)

data class ProductFilterItem(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,16 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetFixedShape),
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetHorizontalIndent),
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetIcon),
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetIsResponsive),
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetLayout),
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetShowBuyAnimation),
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetShowEmptyCart),
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetStoreCustomIconUrl),
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetVerticalIndent),
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutProductsCollapsedOnDesktop),
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutProductsCollapsedOnMobile),
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutShowAddressLine2),
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutShowStateInput),
AllowNullable(FetchedStoreProfile.DesignSettings::enableCatalogOnOnePage),
AllowNullable(FetchedStoreProfile.DesignSettings::enablePageTransitions),
AllowNullable(FetchedStoreProfile.DesignSettings::enableSimpleCategoryList),
Expand Down Expand Up @@ -121,6 +124,7 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowVkShareButton),
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowWeight),
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowWholesalePrices),
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowZoomedImageInGallery),
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsThumbnailsAspectRatio),
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsTwoColumnsWithLeftSidebarShowProductDescriptionOnSidebar),
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsTwoColumnsWithRightSidebarShowProductDescriptionOnSidebar),
Expand All @@ -129,10 +133,12 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
AllowNullable(FetchedStoreProfile.DesignSettings::productFiltersPositionSearchPage),
AllowNullable(FetchedStoreProfile.DesignSettings::productListBuyNowBehaviour),
AllowNullable(FetchedStoreProfile.DesignSettings::productListCardLayout),
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryCellSpacing),
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryImageLayout),
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryImagePosition),
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryImageSize),
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryNameBehaviour),
AllowNullable(FetchedStoreProfile.DesignSettings::productListCellSpacing),
AllowNullable(FetchedStoreProfile.DesignSettings::productListImageHasShadow),
AllowNullable(FetchedStoreProfile.DesignSettings::productListImageLayout),
AllowNullable(FetchedStoreProfile.DesignSettings::productListImagePosition),
Expand All @@ -154,16 +160,11 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartProductsCollapsedOnDesktop),
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartProductsCollapsedOnMobile),
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowQtyInputs),
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowSku),
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowWeight),
AllowNullable(FetchedStoreProfile.DesignSettings::showCartWidget),
AllowNullable(FetchedStoreProfile.DesignSettings::showRootCategories),
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetIsResponsive),
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutShowAddressLine2),
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutShowStateInput),
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowZoomedImageInGallery),
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryCellSpacing),
AllowNullable(FetchedStoreProfile.DesignSettings::productListCellSpacing),
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowSku),
AllowNullable(FetchedStoreProfile.DesignSettings::showSigninLinkWithUnifiedAccountPage),
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::enabled),
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::fbMessengerMessageUsButtonColor),
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::fbMessengerPageId),
Expand Down

0 comments on commit d12d3a1

Please sign in to comment.