Skip to content

Commit 557c0e6

Browse files
committed
Added missing fields to class FetchedStoreProfile.DesignSettings
1 parent 597d0ad commit 557c0e6

2 files changed

Lines changed: 95 additions & 15 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt

Lines changed: 69 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,42 @@ data class FetchedStoreProfile(
411411
@JsonFieldName("breadcrumbs_home_url")
412412
val breadcrumbsHomeUrl: String? = null,
413413

414+
@JsonFieldName("cart_widget_fixed")
415+
val cartWidgetFixed: Boolean? = null,
416+
417+
@JsonFieldName("cart_widget_fixed_position")
418+
val cartWidgetFixedPosition: String? = null,
419+
420+
@JsonFieldName("cart_widget_fixed_shape")
421+
val cartWidgetFixedShape: String? = null,
422+
423+
@JsonFieldName("cart_widget_horizontal_indent")
424+
val cartWidgetHorizontalIndent: Int? = null,
425+
426+
@JsonFieldName("cart_widget_icon")
427+
val cartWidgetIcon: String? = null,
428+
429+
@JsonFieldName("cart_widget_layout")
430+
val cartWidgetLayout: String? = null,
431+
432+
@JsonFieldName("cart_widget_show_buy_animation")
433+
val cartWidgetShowBuyAnimation: Boolean? = null,
434+
435+
@JsonFieldName("cart_widget_show_empty_cart")
436+
val cartWidgetShowEmptyCart: Boolean? = null,
437+
438+
@JsonFieldName("cart_widget_store_custom_icon_url")
439+
val cartWidgetStoreCustomIconUrl: String? = null,
440+
441+
@JsonFieldName("cart_widget_vertical_indent")
442+
val cartWidgetVerticalIndent: Int? = null,
443+
444+
@JsonFieldName("checkout_products_collapsed_on_desktop")
445+
val checkoutProductsCollapsedOnDesktop: Boolean? = null,
446+
447+
@JsonFieldName("checkout_products_collapsed_on_mobile")
448+
val checkoutProductsCollapsedOnMobile: Boolean? = null,
449+
414450
@JsonFieldName("enable_catalog_on_one_page")
415451
val enableCatalogOnOnePage: Boolean? = null,
416452

@@ -420,6 +456,12 @@ data class FetchedStoreProfile(
420456
@JsonFieldName("enable_simple_category_list")
421457
val enableSimpleCategoryList: Boolean? = null,
422458

459+
@JsonFieldName("feedback_message_position")
460+
val feedbackMessagePosition: String? = null,
461+
462+
@JsonFieldName("legal_pages_show_page_links")
463+
val legalPagesShowPageLinks: Boolean? = null,
464+
423465
@JsonFieldName("product_details_additional_images_has_shadow")
424466
val productDetailsAdditionalImagesHasShadow: Boolean? = null,
425467

@@ -570,6 +612,9 @@ data class FetchedStoreProfile(
570612
@JsonFieldName("product_filters_position_category_page")
571613
val productFiltersPositionCategoryPage: String? = null,
572614

615+
@JsonFieldName("product_filters_position_search_page")
616+
val productFiltersPositionSearchPage: String? = null,
617+
573618
@JsonFieldName("product_list_buybutton_behavior")
574619
val productListBuyNowBehaviour: String? = null,
575620

@@ -606,18 +651,27 @@ data class FetchedStoreProfile(
606651
@JsonFieldName("product_list_show_additional_image_on_hover")
607652
val productListShowAdditionalImage: Boolean? = null,
608653

654+
@JsonFieldName("show_breadcrumbs")
655+
val productListShowBreadcrumbs: Boolean? = null,
656+
609657
@JsonFieldName("product_list_show_frame")
610658
val productListShowCardFrame: Boolean? = null,
611659

612-
@JsonFieldName("product_list_show_name_your_price_label")
613-
val productListShowPayWhatYouWantLabel: Boolean? = null,
660+
@JsonFieldName("show_footer_menu")
661+
val productListShowFooterMenu: Boolean? = null,
614662

615663
@JsonFieldName("product_list_show_on_sale_label")
616664
val productListShowOnSaleLabel: Boolean? = null,
617665

666+
@JsonFieldName("product_list_show_name_your_price_label")
667+
val productListShowPayWhatYouWantLabel: Boolean? = null,
668+
618669
@JsonFieldName("product_list_show_product_images")
619670
val productListShowProductImages: Boolean? = null,
620671

672+
@JsonFieldName("show_signin_link")
673+
val productListShowSignInLink: Boolean? = null,
674+
621675
@JsonFieldName("product_list_show_sold_out_label")
622676
val productListShowSoldOutLabel: Boolean? = null,
623677

@@ -633,17 +687,23 @@ data class FetchedStoreProfile(
633687
@JsonFieldName("product_list_title_behavior")
634688
val productListNameBehaviour: String? = null,
635689

636-
@JsonFieldName("show_breadcrumbs")
637-
val productListShowBreadcrumbs: Boolean? = null,
690+
@JsonFieldName("shopping_cart_products_collapsed_on_desktop")
691+
val shoppingCartProductsCollapsedOnDesktop: Boolean? = null,
638692

639-
@JsonFieldName("show_footer_menu")
640-
val productListShowFooterMenu: Boolean? = null,
693+
@JsonFieldName("shopping_cart_products_collapsed_on_mobile")
694+
val shoppingCartProductsCollapsedOnMobile: Boolean? = null,
695+
696+
@JsonFieldName("shopping_cart_show_qty_inputs_on_mobile")
697+
val shoppingCartShowQtyInputs: Boolean? = null,
698+
699+
@JsonFieldName("shopping_cart_show_weight")
700+
val shoppingCartShowWeight: Boolean? = null,
701+
702+
@JsonFieldName("show_cart_widget")
703+
val showCartWidget: Boolean? = null,
641704

642705
@JsonFieldName("show_root_categories")
643706
val showRootCategories: Boolean? = null,
644-
645-
@JsonFieldName("show_signin_link")
646-
val productListShowSignInLink: Boolean? = null,
647707
)
648708

649709
data class ProductFiltersSettings(

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

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ package com.ecwid.apiclient.v3.rule.nullablepropertyrules
22

33
import com.ecwid.apiclient.v3.dto.profile.result.FetchedStoreProfile
44
import com.ecwid.apiclient.v3.rule.NullablePropertyRule
5-
import com.ecwid.apiclient.v3.rule.NullablePropertyRule.IgnoreNullable
65
import com.ecwid.apiclient.v3.rule.NullablePropertyRule.AllowNullable
6+
import com.ecwid.apiclient.v3.rule.NullablePropertyRule.IgnoreNullable
77

88
val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(
9-
IgnoreNullable(FetchedStoreProfile::account),
9+
IgnoreNullable(FetchedStoreProfile::account),
1010
IgnoreNullable(FetchedStoreProfile::businessRegistrationID),
1111
IgnoreNullable(FetchedStoreProfile::company),
1212
IgnoreNullable(FetchedStoreProfile::designSettings),
@@ -56,9 +56,23 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
5656
IgnoreNullable(FetchedStoreProfile.DefaultPostageDimensions::width),
5757
AllowNullable(FetchedStoreProfile.DesignSettings::breadcrumbsHaveHomeItem),
5858
AllowNullable(FetchedStoreProfile.DesignSettings::breadcrumbsHomeUrl),
59+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetFixed),
60+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetFixedPosition),
61+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetFixedShape),
62+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetHorizontalIndent),
63+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetIcon),
64+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetLayout),
65+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetShowBuyAnimation),
66+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetShowEmptyCart),
67+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetStoreCustomIconUrl),
68+
AllowNullable(FetchedStoreProfile.DesignSettings::cartWidgetVerticalIndent),
69+
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutProductsCollapsedOnDesktop),
70+
AllowNullable(FetchedStoreProfile.DesignSettings::checkoutProductsCollapsedOnMobile),
5971
AllowNullable(FetchedStoreProfile.DesignSettings::enableCatalogOnOnePage),
6072
AllowNullable(FetchedStoreProfile.DesignSettings::enablePageTransitions),
6173
AllowNullable(FetchedStoreProfile.DesignSettings::enableSimpleCategoryList),
74+
AllowNullable(FetchedStoreProfile.DesignSettings::feedbackMessagePosition),
75+
AllowNullable(FetchedStoreProfile.DesignSettings::legalPagesShowPageLinks),
6276
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsAdditionalImagesHasShadow),
6377
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsAdditionalImagesPreviewOnClick),
6478
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsCutProductDescriptionInSidebar),
@@ -79,16 +93,19 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
7993
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionWholesalePrices),
8094
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowAttributes),
8195
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowBreadcrumbs),
96+
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowBreadcrumbsPosition),
8297
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowBuyButton),
8398
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowFacebookShareButton),
8499
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowInStockLabel),
100+
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowNavigationArrows),
85101
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowNumberOfItemsInStock),
86102
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowPinterestShareButton),
87103
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowPricePerUnit),
88104
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductDescription),
89105
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductName),
90106
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductNameAlwaysFirstOnMobile),
91107
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductOptions),
108+
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductPhotoZoom),
92109
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductPrice),
93110
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductSku),
94111
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowQty),
@@ -106,6 +123,7 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
106123
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsTwoColumnsWithRightSidebarShowProductDescriptionOnSidebar),
107124
AllowNullable(FetchedStoreProfile.DesignSettings::productFiltersOpenedByDefaultOnCategoryPage),
108125
AllowNullable(FetchedStoreProfile.DesignSettings::productFiltersPositionCategoryPage),
126+
AllowNullable(FetchedStoreProfile.DesignSettings::productFiltersPositionSearchPage),
109127
AllowNullable(FetchedStoreProfile.DesignSettings::productListBuyNowBehaviour),
110128
AllowNullable(FetchedStoreProfile.DesignSettings::productListCardLayout),
111129
AllowNullable(FetchedStoreProfile.DesignSettings::productListCategoryImageLayout),
@@ -130,10 +148,12 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
130148
AllowNullable(FetchedStoreProfile.DesignSettings::productListShowSoldOutLabel),
131149
AllowNullable(FetchedStoreProfile.DesignSettings::productListShowSortViewAsOptions),
132150
AllowNullable(FetchedStoreProfile.DesignSettings::productListSubtitlesBehavior),
151+
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartProductsCollapsedOnDesktop),
152+
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartProductsCollapsedOnMobile),
153+
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowQtyInputs),
154+
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowWeight),
155+
AllowNullable(FetchedStoreProfile.DesignSettings::showCartWidget),
133156
AllowNullable(FetchedStoreProfile.DesignSettings::showRootCategories),
134-
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowNavigationArrows),
135-
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductPhotoZoom),
136-
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowBreadcrumbsPosition),
137157
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::enabled),
138158
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::fbMessengerMessageUsButtonColor),
139159
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::fbMessengerPageId),
@@ -305,6 +325,6 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
305325
IgnoreNullable(FetchedStoreProfile.Zone::name),
306326
IgnoreNullable(FetchedStoreProfile.Zone::postCodes),
307327
IgnoreNullable(FetchedStoreProfile.Zone::stateOrProvinceCodes),
308-
AllowNullable(FetchedStoreProfile.Settings::googleProductCategory),
328+
AllowNullable(FetchedStoreProfile.Settings::googleProductCategory),
309329
AllowNullable(FetchedStoreProfile.Settings::googleProductCategoryName)
310330
)

0 commit comments

Comments
 (0)