Skip to content

Commit

Permalink
ECWID-124685 the datatype for groups has been changed to allow a list…
Browse files Browse the repository at this point in the history
… of ids to be passed
  • Loading branch information
winrokru committed Aug 3, 2023
1 parent 360ec2c commit 937ea8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data class CustomersSearchRequest(
val keyword: String? = null,
val name: String? = null,
val email: String? = null,
val customerGroupId: Int? = null,
val customerGroupId: String? = null,
val minOrderCount: Int? = null,
val maxOrderCount: Int? = null,
val minSalesValue: Int? = null,
Expand Down Expand Up @@ -62,7 +62,7 @@ data class CustomersSearchRequest(
request.keyword?.let { put("keyword", it) }
request.name?.let { put("name", it) }
request.email?.let { put("email", it) }
request.customerGroupId?.let { put("customerGroup", it.toString()) }
request.customerGroupId?.let { put("customerGroup", it) }
request.minOrderCount?.let { put("minOrderCount", it.toString()) }
request.maxOrderCount?.let { put("maxOrderCount", it.toString()) }
request.minSalesValue?.let { put("minSalesValue", it.toString()) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ class CustomersTest : BaseEntityTest() {

assertCustomersSearch(
positiveCustomerId = customerCreateResult.id,
positiveSearchRequest = CustomersSearchRequest(customerGroupId = customerCreateRequest.newCustomer.customerGroupId),
negativeSearchRequest = CustomersSearchRequest(customerGroupId = 0)
positiveSearchRequest = CustomersSearchRequest(customerGroupId = customerCreateRequest.newCustomer.customerGroupId.toString()),
negativeSearchRequest = CustomersSearchRequest(customerGroupId = "0")
)

assertCustomersSearch(
Expand Down

0 comments on commit 937ea8c

Please sign in to comment.