Skip to content

Commit

Permalink
ECWID-135161 Added searchKeyword param to ProductReviewSearchRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
kitty-ecwid committed Feb 29, 2024
1 parent cc03d62 commit 3a1ee81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ data class ProductReviewSearchRequest(
val createdTo: Instant? = null,
val updatedFrom: Instant? = null,
val updatedTo: Instant? = null,
val searchKeyword: String? = null,
val sortBy: ProductReviewSortOrder? = null,
val limit: Int = 100,
override val offset: Int = 0,
Expand All @@ -44,6 +45,7 @@ data class ProductReviewSearchRequest(
request.createdTo?.let { put("createdTo", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) }
request.updatedFrom?.let { put("updatedFrom", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) }
request.updatedTo?.let { put("updatedTo", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) }
request.searchKeyword?.let { put("searchKeyword", it) }
request.sortBy?.let { put("sortBy", it.name) }
put("offset", request.offset.toString())
put("limit", request.limit.toString())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ val productReviewSearchRequestNullablePropertyRules: List<NullablePropertyRule<*
AllowNullable(ProductReviewSearchRequest::productId),
AllowNullable(ProductReviewSearchRequest::rating),
AllowNullable(ProductReviewSearchRequest::reviewId),
AllowNullable(ProductReviewSearchRequest::searchKeyword),
AllowNullable(ProductReviewSearchRequest::sortBy),
AllowNullable(ProductReviewSearchRequest::status),
AllowNullable(ProductReviewSearchRequest::updatedFrom),
Expand Down

0 comments on commit 3a1ee81

Please sign in to comment.