Skip to content

Commit

Permalink
ECWID-138834 added parameters for searching orders
Browse files Browse the repository at this point in the history
  • Loading branch information
winrokru committed Jun 10, 2024
1 parent 5f79b94 commit ff8343b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<OrderPaymentStatus>? = null,
Expand Down Expand Up @@ -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(",")) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ val ordersSearchRequestRequestNullablePropertyRules: List<NullablePropertyRule<*
AllowNullable(OrdersSearchRequest::customer),
AllowNullable(OrdersSearchRequest::customerId),
AllowNullable(OrdersSearchRequest::email),
AllowNullable(OrdersSearchRequest::customerIdOrEmail),
AllowNullable(OrdersSearchRequest::fulfillmentStatus),
AllowNullable(OrdersSearchRequest::ids),
AllowNullable(OrdersSearchRequest::keywords),
Expand Down

0 comments on commit ff8343b

Please sign in to comment.