Skip to content

Commit 6adeda2

Browse files
Merge pull request #16 from square/release/5.3.0.20200528
release
2 parents 6012df3 + df03e9a commit 6adeda2

File tree

216 files changed

+35118
-15913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+35118
-15913
lines changed

CHANGELOG.md

Lines changed: 57 additions & 21 deletions
Large diffs are not rendered by default.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2019 Square, Inc.
1+
Copyright 2020 Square, Inc.
22
Licensed under the Apache License, Version 2.0 (the "License");
33
you may not use this file except in compliance with the License.
44
You may obtain a copy of the License at

doc/customers.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
2933
CompletableFuture<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
119125
customer 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
123133
CompletableFuture<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();
150163
List<String> bodyQueryFilterGroupIdsAll = new LinkedList<>();
151164
bodyQueryFilterGroupIdsAll.add("545AXB44B4XXWMVQ4W8SBT3HHF");
152165
FilterValue bodyQueryFilterGroupIds = new FilterValue.Builder()
@@ -155,6 +168,7 @@ FilterValue bodyQueryFilterGroupIds = new FilterValue.Builder()
155168
CustomerFilter bodyQueryFilter = new CustomerFilter.Builder()
156169
.creationSource(bodyQueryFilterCreationSource)
157170
.createdAt(bodyQueryFilterCreatedAt)
171+
.emailAddress(bodyQueryFilterEmailAddress)
158172
.groupIds(bodyQueryFilterGroupIds)
159173
.build();
160174
CustomerSort bodyQuerySort = new CustomerSort.Builder()

0 commit comments

Comments
 (0)