diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/productreview/request/ProductReviewMassUpdate.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/productreview/request/ProductReviewMassUpdate.kt index 8012f8ad9..e6ac3ca55 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/productreview/request/ProductReviewMassUpdate.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/productreview/request/ProductReviewMassUpdate.kt @@ -14,11 +14,11 @@ data class ProductReviewMassUpdate( ) : ApiRequestDTO { data class Filters( - val reviewId: String? = null, - val productId: String? = null, - val orderId: String? = null, + val reviewId: List? = null, + val productId: List? = null, + val orderId: List? = null, val status: ProductReviewStatus? = null, - val rating: Int? = null, + val rating: List? = null, val createdFrom: Instant? = null, val createdTo: Instant? = null, val searchKeyword: String? = null, diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/productreview/request/ProductReviewSearchRequest.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/productreview/request/ProductReviewSearchRequest.kt index 9082bbbd5..178696c30 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/productreview/request/ProductReviewSearchRequest.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/productreview/request/ProductReviewSearchRequest.kt @@ -14,7 +14,7 @@ data class ProductReviewSearchRequest( val productId: String? = null, val orderId: String? = null, val status: ProductReviewStatus? = null, - val rating: Int? = null, + val rating: String? = null, val createdFrom: Instant? = null, val createdTo: Instant? = null, val updatedFrom: Instant? = null, @@ -40,7 +40,7 @@ data class ProductReviewSearchRequest( request.productId?.let { put("productId", it) } request.orderId?.let { put("orderId", it) } request.status?.let { put("status", it.toString()) } - request.rating?.let { put("rating", it.toString()) } + request.rating?.let { put("rating", it) } request.createdFrom?.let { put("createdFrom", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) } request.createdTo?.let { put("createdTo", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) } request.updatedFrom?.let { put("updatedFrom", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) }