Skip to content

Commit

Permalink
ECWID-133523 Product reviews: add new fields to FetchedProduct
Browse files Browse the repository at this point in the history
  • Loading branch information
kitty-ecwid committed Jan 22, 2024
1 parent 2ae67c1 commit 2631e3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ data class FetchedProduct(
val customsHsTariffCode: String? = null,
val minPurchaseQuantity: Int? = null,
val maxPurchaseQuantity: Int? = null,
val reviewsCollectingAllowed: Boolean? = null,
val rating: Double? = null,
val reviewsModerated: Int? = null,
val reviewsPublished: Int? = null,
) : ApiFetchedDTO, ApiResultDTO {

data class BorderInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ val fetchedProductNullablePropertyRules: List<NullablePropertyRule<*, *>> = list
IgnoreNullable(FetchedProduct::productClassId),
IgnoreNullable(FetchedProduct::quantity),
IgnoreNullable(FetchedProduct::outOfStockVisibilityBehaviour),
AllowNullable(FetchedProduct::rating),
IgnoreNullable(FetchedProduct::relatedProducts),
AllowNullable(FetchedProduct::reviewsCollectingAllowed),
AllowNullable(FetchedProduct::reviewsModerated),
AllowNullable(FetchedProduct::reviewsPublished),
IgnoreNullable(FetchedProduct::ribbon),
IgnoreNullable(FetchedProduct::ribbonTranslated),
IgnoreNullable(FetchedProduct::seoDescription),
Expand Down

0 comments on commit 2631e3a

Please sign in to comment.