diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/request/CustomersSearchRequest.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/request/CustomersSearchRequest.kt index e392f023..38d27c64 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/request/CustomersSearchRequest.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/request/CustomersSearchRequest.kt @@ -11,6 +11,7 @@ data class CustomersSearchRequest( val name: String? = null, val email: String? = null, val customerGroupId: Int? = null, + val usePrecalculatedOrderCount: Boolean? = null, val minOrderCount: Int? = null, val maxOrderCount: Int? = null, val minSalesValue: Int? = null, @@ -70,6 +71,7 @@ data class CustomersSearchRequest( request.name?.let { put("name", it) } request.email?.let { put("email", it) } request.customerGroupId?.let { put("customerGroup", it.toString()) } + request.usePrecalculatedOrderCount?.let { put("usePrecalculatedOrderCount", it.toString()) } request.minOrderCount?.let { put("minOrderCount", it.toString()) } request.maxOrderCount?.let { put("maxOrderCount", it.toString()) } request.minSalesValue?.let { put("minSalesValue", it.toString()) } diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CustomersSearchRequestRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CustomersSearchRequestRules.kt index a0d81eac..532e6fe8 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CustomersSearchRequestRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CustomersSearchRequestRules.kt @@ -10,6 +10,7 @@ val customersSearchRequestNullablePropertyRules: List AllowNullable(CustomersSearchRequest::customerGroupId), AllowNullable(CustomersSearchRequest::email), AllowNullable(CustomersSearchRequest::keyword), + AllowNullable(CustomersSearchRequest::usePrecalculatedOrderCount), AllowNullable(CustomersSearchRequest::maxOrderCount), AllowNullable(CustomersSearchRequest::minOrderCount), AllowNullable(CustomersSearchRequest::maxSalesValue),