Skip to content

Commit faed238

Browse files
committed
ECWID-136424 Product reviews: review list page. Added filtering reviews by several rating values
1 parent bbb2a12 commit faed238

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/dto/productreview/request/ProductReviewMassUpdate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ data class ProductReviewMassUpdate(
1818
val productId: String? = null,
1919
val orderId: String? = null,
2020
val status: ProductReviewStatus? = null,
21-
val rating: Int? = null,
21+
val rating: String? = null,
2222
val createdFrom: Instant? = null,
2323
val createdTo: Instant? = null,
2424
val searchKeyword: String? = null,

src/main/kotlin/com/ecwid/apiclient/v3/dto/productreview/request/ProductReviewSearchRequest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ data class ProductReviewSearchRequest(
1414
val productId: String? = null,
1515
val orderId: String? = null,
1616
val status: ProductReviewStatus? = null,
17-
val rating: Int? = null,
17+
val rating: String? = null,
1818
val createdFrom: Instant? = null,
1919
val createdTo: Instant? = null,
2020
val updatedFrom: Instant? = null,
@@ -40,7 +40,7 @@ data class ProductReviewSearchRequest(
4040
request.productId?.let { put("productId", it) }
4141
request.orderId?.let { put("orderId", it) }
4242
request.status?.let { put("status", it.toString()) }
43-
request.rating?.let { put("rating", it.toString()) }
43+
request.rating?.let { put("rating", it) }
4444
request.createdFrom?.let { put("createdFrom", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) }
4545
request.createdTo?.let { put("createdTo", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) }
4646
request.updatedFrom?.let { put("updatedFrom", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) }

0 commit comments

Comments
 (0)