diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/order/request/OrdersSearchRequest.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/order/request/OrdersSearchRequest.kt index afba5ab6e..d9bfc93c8 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/order/request/OrdersSearchRequest.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/order/request/OrdersSearchRequest.kt @@ -23,6 +23,7 @@ data class OrdersSearchRequest( val customer: String? = null, val customerId: Int? = null, val email: String? = null, + val customerIdOrEmail: Boolean? = null, val paymentMethod: String? = null, val shippingMethod: String? = null, val paymentStatus: List? = null, @@ -60,6 +61,7 @@ data class OrdersSearchRequest( request.customer?.let { put("customer", it) } request.customerId?.let { put("customerId", it.toString()) } request.email?.let { put("email", it) } + request.customerIdOrEmail?.let { put("customerIdOrEmail", it.toString()) } request.paymentMethod?.let { put("paymentMethod", it) } request.shippingMethod?.let { put("shippingMethod", it) } request.paymentStatus?.let { put("paymentStatus", it.joinToString(",")) } diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/OrdersSearchRequestRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/OrdersSearchRequestRules.kt index 20ed11a54..8092c0149 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/OrdersSearchRequestRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/OrdersSearchRequestRules.kt @@ -11,6 +11,7 @@ val ordersSearchRequestRequestNullablePropertyRules: List