@@ -23,7 +23,11 @@ CustomersApi customersApi = client.getCustomersApi();
2323
2424## List Customers
2525
26- Lists a business's customers.
26+ Lists customer profiles associated with a Square account.
27+
28+ Under normal operating conditions, newly created or updated customer profiles become available
29+ for the listing operation in well under 30 seconds. Occasionally, propagation of the new or updated
30+ profiles can take closer to one minute or longer, espeically during network incidents and outages.
2731
2832``` java
2933CompletableFuture<ListCustomersResponse > listCustomersAsync(
@@ -114,10 +118,16 @@ customersApi.createCustomerAsync(body).thenAccept(result -> {
114118
115119## Search Customers
116120
117- Searches the customer profiles associated with a Square account.
118- Calling SearchCustomers without an explicit query parameter returns all
121+ Searches the customer profiles associated with a Square account using
122+ one or more supported query filters.
123+
124+ Calling ` SearchCustomers ` without any explicit query filter returns all
119125customer profiles ordered alphabetically based on ` given_name ` and
120- ` family_name ` .
126+ ` family_name ` .
127+
128+ Under normal operating conditions, newly created or updated customer profiles become available
129+ for the search operation in well under 30 seconds. Occasionally, propagation of the new or updated
130+ profiles can take closer to one minute or longer, espeically during network incidents and outages.
121131
122132``` java
123133CompletableFuture<SearchCustomersResponse > searchCustomersAsync(
@@ -147,6 +157,9 @@ TimeRange bodyQueryFilterCreatedAt = new TimeRange.Builder()
147157 .startAt(" 2018-01-01T00:00:00-00:00" )
148158 .endAt(" 2018-02-01T00:00:00-00:00" )
149159 .build();
160+ CustomerTextFilter bodyQueryFilterEmailAddress = new CustomerTextFilter .Builder ()
161+ .fuzzy(" example.com" )
162+ .build();
150163List<String > bodyQueryFilterGroupIdsAll = new LinkedList<> ();
151164bodyQueryFilterGroupIdsAll. add(" 545AXB44B4XXWMVQ4W8SBT3HHF" );
152165FilterValue bodyQueryFilterGroupIds = new FilterValue .Builder ()
@@ -155,6 +168,7 @@ FilterValue bodyQueryFilterGroupIds = new FilterValue.Builder()
155168CustomerFilter bodyQueryFilter = new CustomerFilter .Builder ()
156169 .creationSource(bodyQueryFilterCreationSource)
157170 .createdAt(bodyQueryFilterCreatedAt)
171+ .emailAddress(bodyQueryFilterEmailAddress)
158172 .groupIds(bodyQueryFilterGroupIds)
159173 .build();
160174CustomerSort bodyQuerySort = new CustomerSort .Builder ()
0 commit comments