Skip to content

Commit 6af0e7d

Browse files
authored
Merge pull request #221 from Ecwid/customerid-email-params-for-order-search
customerId and email params for OrderSearchRequest
2 parents 858a0f6 + 8c307c6 commit 6af0e7d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/dto/order/request/OrdersSearchRequest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ data class OrdersSearchRequest(
2020
val orderNumber: Int? = null,
2121
val vendorOrderNumber: String? = null,
2222
val customer: String? = null,
23+
val customerId: Int? = null,
24+
val email: String? = null,
2325
val paymentMethod: String? = null,
2426
val shippingMethod: String? = null,
2527
val paymentStatus: OrderPaymentStatus? = null,
@@ -50,6 +52,8 @@ data class OrdersSearchRequest(
5052
request.orderNumber?.let { put("orderNumber", it.toString()) }
5153
request.vendorOrderNumber?.let { put("vendorOrderNumber", it) }
5254
request.customer?.let { put("customer", it) }
55+
request.customerId?.let { put("customerId", it.toString()) }
56+
request.email?.let { put("email", it) }
5357
request.paymentMethod?.let { put("paymentMethod", it) }
5458
request.shippingMethod?.let { put("shippingMethod", it) }
5559
request.paymentStatus?.let { put("paymentStatus", it.name) }

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ val ordersSearchRequestRequestNullablePropertyRules: List<NullablePropertyRule<*
99
AllowNullable(OrdersSearchRequest::createdFrom),
1010
AllowNullable(OrdersSearchRequest::createdTo),
1111
AllowNullable(OrdersSearchRequest::customer),
12+
AllowNullable(OrdersSearchRequest::customerId),
13+
AllowNullable(OrdersSearchRequest::email),
1214
AllowNullable(OrdersSearchRequest::fulfillmentStatus),
1315
AllowNullable(OrdersSearchRequest::ids),
1416
AllowNullable(OrdersSearchRequest::keywords),

0 commit comments

Comments
 (0)