Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECWID-138064 New customers: update the internal API for searching of customers - added new fields to CustomersSearchRequest #398

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ data class CustomersSearchRequest(
val acceptMarketing: Boolean? = null,
val purchasedProductIds: String? = null,
val customerGroupIds: String? = null,
val companyName: String? = null,
val countryCodes: String? = null,
val city: String? = null,
val postalCode: String? = null,
val stateOrProvinceCode: String? = null,
val phone: String? = null,
val createdFrom: Date? = null,
val createdTo: Date? = null,
val updatedFrom: Date? = null,
Expand Down Expand Up @@ -78,7 +83,12 @@ data class CustomersSearchRequest(
request.acceptMarketing?.let { put("acceptMarketing", it.toString()) }
request.purchasedProductIds?.let { put("purchasedProductIds", it) }
request.customerGroupIds?.let { put("customerGroupIds", it) }
request.companyName?.let { put("companyName", it) }
request.countryCodes?.let { put("countryCodes", it) }
request.city?.let { put("city", it) }
request.postalCode?.let { put("postalCode", it) }
request.stateOrProvinceCode?.let { put("stateOrProvinceCode", it) }
request.phone?.let { put("phone", it) }
request.lang?.let { put("lang", it) }
request.sortBy?.let { put("sortBy", it.name) }
put("offset", request.offset.toString())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ val customersSearchRequestNullablePropertyRules: List<NullablePropertyRule<*, *>
AllowNullable(CustomersSearchRequest::updatedTo),
AllowNullable(CustomersSearchRequest::purchasedProductIds),
AllowNullable(CustomersSearchRequest::customerGroupIds),
AllowNullable(CustomersSearchRequest::companyName),
AllowNullable(CustomersSearchRequest::countryCodes),
AllowNullable(CustomersSearchRequest::city),
AllowNullable(CustomersSearchRequest::postalCode),
AllowNullable(CustomersSearchRequest::stateOrProvinceCode),
AllowNullable(CustomersSearchRequest::phone),
AllowNullable(CustomersSearchRequest::taxExempt),
AllowNullable(CustomersSearchRequest::acceptMarketing),
AllowNullable(CustomersSearchRequest::lang),
Expand Down
Loading