Skip to content

Commit 3a1ee81

Browse files
committed
ECWID-135161 Added searchKeyword param to ProductReviewSearchRequest
1 parent cc03d62 commit 3a1ee81

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ data class ProductReviewSearchRequest(
1919
val createdTo: Instant? = null,
2020
val updatedFrom: Instant? = null,
2121
val updatedTo: Instant? = null,
22+
val searchKeyword: String? = null,
2223
val sortBy: ProductReviewSortOrder? = null,
2324
val limit: Int = 100,
2425
override val offset: Int = 0,
@@ -44,6 +45,7 @@ data class ProductReviewSearchRequest(
4445
request.createdTo?.let { put("createdTo", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) }
4546
request.updatedFrom?.let { put("updatedFrom", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) }
4647
request.updatedTo?.let { put("updatedTo", TimeUnit.MILLISECONDS.toSeconds(it.toEpochMilli()).toString()) }
48+
request.searchKeyword?.let { put("searchKeyword", it) }
4749
request.sortBy?.let { put("sortBy", it.name) }
4850
put("offset", request.offset.toString())
4951
put("limit", request.limit.toString())

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ val productReviewSearchRequestNullablePropertyRules: List<NullablePropertyRule<*
1111
AllowNullable(ProductReviewSearchRequest::productId),
1212
AllowNullable(ProductReviewSearchRequest::rating),
1313
AllowNullable(ProductReviewSearchRequest::reviewId),
14+
AllowNullable(ProductReviewSearchRequest::searchKeyword),
1415
AllowNullable(ProductReviewSearchRequest::sortBy),
1516
AllowNullable(ProductReviewSearchRequest::status),
1617
AllowNullable(ProductReviewSearchRequest::updatedFrom),

0 commit comments

Comments
 (0)