diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt b/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt index fde7d6762..a644a18c2 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/entity/CustomersTest.kt @@ -119,7 +119,6 @@ class CustomersTest : BaseEntityTest() { } @Test - @Disabled("Will be fixed in ECWID-75364") fun testSearchFields() { // Creating new customer group val customerGroupCreateRequest = CustomerGroupCreateRequest( @@ -130,12 +129,13 @@ class CustomersTest : BaseEntityTest() { val customerGroupCreateResult = apiClient.createCustomerGroup(customerGroupCreateRequest) assertTrue(customerGroupCreateResult.id > 0) + val customerName = randomAlphanumeric(16) // Creating new customer attached to this customer group val customerCreateRequest = CustomerCreateRequest( newCustomer = UpdatedCustomer( email = randomEmail(), billingPerson = UpdatedCustomer.BillingPerson( - name = randomAlphanumeric(16) + name = customerName, ), customerGroupId = customerGroupCreateResult.id ) @@ -146,7 +146,10 @@ class CustomersTest : BaseEntityTest() { // Creating new order for this customer val orderCreateRequest = OrderCreateRequest( newOrder = UpdatedOrder( - email = customerCreateRequest.newCustomer.email + email = customerCreateRequest.newCustomer.email, + billingPerson = UpdatedOrder.PersonInfo( + name = customerName, + ) ) ) val orderCreateResult = apiClient.createOrder(orderCreateRequest)