Skip to content

Commit b2ea597

Browse files
authored
Merge pull request #233 from Ecwid/design-settings
New design settings options
2 parents bdd58e4 + 3a26b34 commit b2ea597

File tree

2 files changed

+44
-16
lines changed

2 files changed

+44
-16
lines changed

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

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@ data class FetchedStoreProfile(
449449
@JsonFieldName("cart_widget_icon")
450450
val cartWidgetIcon: String? = null,
451451

452+
@JsonFieldName("cart_widget_is_responsive")
453+
val cartWidgetIsResponsive: Boolean? = null,
454+
452455
@JsonFieldName("cart_widget_layout")
453456
val cartWidgetLayout: String? = null,
454457

@@ -470,6 +473,12 @@ data class FetchedStoreProfile(
470473
@JsonFieldName("checkout_products_collapsed_on_mobile")
471474
val checkoutProductsCollapsedOnMobile: Boolean? = null,
472475

476+
@JsonFieldName("checkout_show_address_line_2")
477+
val checkoutShowAddressLine2: Boolean? = null,
478+
479+
@JsonFieldName("checkout_show_state_input")
480+
val checkoutShowStateInput: Boolean? = null,
481+
473482
@JsonFieldName("enable_catalog_on_one_page")
474483
val enableCatalogOnOnePage: Boolean? = null,
475484

@@ -515,9 +524,6 @@ data class FetchedStoreProfile(
515524
@JsonFieldName("product_details_position_delivery_time")
516525
val productDetailsPositionDeliveryTime: Int? = null,
517526

518-
@JsonFieldName("product_details_show_delivery_time")
519-
val productDetailsShowDeliveryTime: Boolean? = null,
520-
521527
@JsonFieldName("product_details_position_product_description")
522528
val productDetailsPositionProductDescription: Int? = null,
523529

@@ -557,6 +563,9 @@ data class FetchedStoreProfile(
557563
@JsonFieldName("product_details_show_buy_button")
558564
val productDetailsShowBuyButton: Boolean? = null,
559565

566+
@JsonFieldName("product_details_show_delivery_time")
567+
val productDetailsShowDeliveryTime: Boolean? = null,
568+
560569
@JsonFieldName("product_details_show_facebook_share_button")
561570
val productDetailsShowFacebookShareButton: Boolean? = null,
562571

@@ -626,6 +635,9 @@ data class FetchedStoreProfile(
626635
@JsonFieldName("product_details_show_wholesale_prices")
627636
val productDetailsShowWholesalePrices: Boolean? = null,
628637

638+
@JsonFieldName("product_details_show_zoomed_image_in_gallery")
639+
val productDetailsShowZoomedImageInGallery: Boolean? = null,
640+
629641
@JsonFieldName("product_details_thumbnails_aspect_ratio")
630642
val productDetailsThumbnailsAspectRatio: String? = null,
631643

@@ -647,6 +659,12 @@ data class FetchedStoreProfile(
647659
@JsonFieldName("product_list_buybutton_behavior")
648660
val productListBuyNowBehaviour: String? = null,
649661

662+
@JsonFieldName("product_list_product_info_layout")
663+
val productListCardLayout: String? = null,
664+
665+
@JsonFieldName("product_list_category_cell_spacing")
666+
val productListCategoryCellSpacing: Int? = null,
667+
650668
@JsonFieldName("product_list_category_image_aspect_ratio")
651669
val productListCategoryImageLayout: String? = null,
652670

@@ -659,23 +677,29 @@ data class FetchedStoreProfile(
659677
@JsonFieldName("product_list_category_title_behavior")
660678
val productListCategoryNameBehaviour: String? = null,
661679

662-
@JsonFieldName("product_list_image_aspect_ratio")
663-
val productListImageLayout: String? = null,
680+
@JsonFieldName("product_list_cell_spacing")
681+
val productListCellSpacing: Int? = null,
664682

665683
@JsonFieldName("product_list_image_has_shadow")
666684
val productListImageHasShadow: Boolean? = null,
667685

686+
@JsonFieldName("product_list_image_aspect_ratio")
687+
val productListImageLayout: String? = null,
688+
668689
@JsonFieldName("product_list_image_position")
669690
val productListImagePosition: String? = null,
670691

671692
@JsonFieldName("product_list_image_size")
672693
val productListImageSize: String? = null,
673694

695+
@JsonFieldName("product_list_title_behavior")
696+
val productListNameBehaviour: String? = null,
697+
674698
@JsonFieldName("product_list_price_behavior")
675699
val productListPriceBehaviour: String? = null,
676700

677-
@JsonFieldName("product_list_product_info_layout")
678-
val productListCardLayout: String? = null,
701+
@JsonFieldName("product_list_sku_behavior")
702+
val productListSKUBehaviour: String? = null,
679703

680704
@JsonFieldName("product_list_show_additional_image_on_hover")
681705
val productListShowAdditionalImage: Boolean? = null,
@@ -707,22 +731,19 @@ data class FetchedStoreProfile(
707731
@JsonFieldName("product_list_show_sort_viewas_options")
708732
val productListShowSortViewAsOptions: Boolean? = null,
709733

710-
@JsonFieldName("product_list_sku_behavior")
711-
val productListSKUBehaviour: String? = null,
712-
713734
@JsonFieldName("product_list_subtitles_behavior")
714735
val productListSubtitlesBehavior: String? = null,
715736

716-
@JsonFieldName("product_list_title_behavior")
717-
val productListNameBehaviour: String? = null,
718-
719737
@JsonFieldName("shopping_cart_products_collapsed_on_desktop")
720738
val shoppingCartProductsCollapsedOnDesktop: Boolean? = null,
721739

722740
@JsonFieldName("shopping_cart_products_collapsed_on_mobile")
723741
val shoppingCartProductsCollapsedOnMobile: Boolean? = null,
724742

725-
@JsonFieldName("shopping_cart_show_qty_inputs_on_mobile")
743+
@JsonFieldName("shopping_cart_show_sku")
744+
val shoppingCartShowSku: Boolean? = null,
745+
746+
@JsonFieldName("shopping_cart_show_qty_inputs")
726747
val shoppingCartShowQtyInputs: Boolean? = null,
727748

728749
@JsonFieldName("shopping_cart_show_weight")

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
8383
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsLayout),
8484
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionBreadcrumbs),
8585
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionBuyButton),
86-
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionProductDescription),
8786
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionDeliveryTime),
87+
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionProductDescription),
8888
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionProductName),
8989
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionProductOptions),
9090
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsPositionProductPrice),
@@ -97,14 +97,14 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
9797
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowBreadcrumbs),
9898
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowBreadcrumbsPosition),
9999
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowBuyButton),
100+
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowDeliveryTime),
100101
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowFacebookShareButton),
101102
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowInStockLabel),
102103
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowNavigationArrows),
103104
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowNumberOfItemsInStock),
104105
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowPinterestShareButton),
105106
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowPricePerUnit),
106107
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductDescription),
107-
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowDeliveryTime),
108108
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductName),
109109
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductNameAlwaysFirstOnMobile),
110110
AllowNullable(FetchedStoreProfile.DesignSettings::productDetailsShowProductOptions),
@@ -157,6 +157,13 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
157157
AllowNullable(FetchedStoreProfile.DesignSettings::shoppingCartShowWeight),
158158
AllowNullable(FetchedStoreProfile.DesignSettings::showCartWidget),
159159
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),
160167
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::enabled),
161168
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::fbMessengerMessageUsButtonColor),
162169
IgnoreNullable(FetchedStoreProfile.FBMessengerSettings::fbMessengerPageId),

0 commit comments

Comments
 (0)