Skip to content

Commit 39fef0d

Browse files
authored
Merge pull request #24 from square/release/6.3.0.20200826
release 6.3.0.20200826
2 parents 255183b + 23d3e56 commit 39fef0d

694 files changed

Lines changed: 10352 additions & 7581 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# Change Log
22

3+
## Version 6.3.0.20200826 (2020-08-26)
4+
## Existing API updates
5+
* Orders API
6+
* [Order](https://developer.squareup.com/reference/square_2020-08-26/objects/Order) object. The `total_tip_money` field is now GA.
7+
* [CreateOrder](https://developer.squareup.com/reference/square_2020-08-26/orders-api/create-order), [UpdateOrder](https://developer.squareup.com/reference/square_2020-08-26/orders-api/update-order), and [BatchRetrieveOrders](https://developer.squareup.com/reference/square_2020-08-26/orders-api/batch-retrieve-orders). These APIs now support merchant-scoped endpoints (for example, the `CreateOrder` endpoint `POST /v2/orders`). The location-scoped variants of these endpoints (for example, the `CreateOrder` endpoint `POST /v2/locations/{location_id}/orders`) continue to work, but these endpoints are now deprecated. You should use the merchant-scoped endpoints (you provide the location information in the request body).
8+
* Labor API
9+
* [Migrate from Employees to Team Members.](https://developer.squareup.com/docs/labor-api/migrate-to-teams) The Employees API is now deprecated in this release. Accordingly, update references to the `Shift.employee_id` field to the `Shift.team_member_id` field of the Labor API.
10+
* v2 Employees API (deprecated)
11+
* [Migrate from the Square Employees API.](https://developer.squareup.com/docs/team/migrate-from-v2-employees) The v2 Employees API is now deprecated. This topic provides information to migrate to the Team API.
12+
* v1 Employees API (deprecated)
13+
* [Migrate from the v1 Employees API.](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-employees) The v1 Employees API is now deprecated. This topic provides information to migrate to the Team API.
14+
15+
## Documentation updates
16+
* Point of Sale API
17+
* [Build on iOS.](https://developer.squareup.com/docs/pos-api/build-on-ios) Corrected the Swift example code in step 7.
18+
* Team API
19+
* [Team API Overview.](https://developer.squareup.com/docs/team/overview) Documented the limitation related to creating a team member in the Square Sandbox.
20+
21+
## All SDKs
22+
23+
SDK technical reference documentation:
24+
25+
* Nulls in SDK documentation example code are replaced with example values.
26+
27+
## .NET SDK
28+
29+
Bug fixes:
30+
31+
* The `APIException.Errors` property was not set on instantiation. Behavior is now corrected to instantiate the class with an empty `Errors` list.
32+
333
## Version 6.2.0.20200812 (2020-08-12)
434
## API releases
535
* Subscriptions API (beta):

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Install the client dynamically by adding a dependency to the POM for your projec
3333
<dependency>
3434
<groupId>com.squareup</groupId>
3535
<artifactId>square</artifactId>
36-
<version>6.2.0.20200812</version>
36+
<version>6.3.0.20200826</version>
3737
</dependency>
3838
```
3939

@@ -42,7 +42,7 @@ Install the client dynamically by adding a dependency to the POM for your projec
4242
Install the client by adding the following dependency to the build file for your project:
4343

4444
```
45-
implementation "com.squareup:square:6.2.0.20200812"
45+
implementation "com.squareup:square:6.3.0.20200826"
4646
```
4747

4848
## API documentation
@@ -100,7 +100,6 @@ implementation "com.squareup:square:6.2.0.20200812"
100100
* [V1 Transactions]
101101
* [V1 Items]
102102
* [Transactions]
103-
* [Reporting]
104103

105104
## Usage
106105

@@ -323,7 +322,6 @@ You can also use the Square API to create applications or services that work wit
323322
[Invoices]: doc/invoices.md
324323
[Apple Pay]: doc/apple-pay.md
325324
[Refunds]: doc/refunds.md
326-
[Reporting]: doc/reporting.md
327325
[Mobile Authorization]: doc/mobile-authorization.md
328326
[O Auth]: doc/o-auth.md
329327
[V1 Locations]: doc/v1-locations.md

doc/bank-accounts.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ CompletableFuture<ListBankAccountsResponse> listBankAccountsAsync(
4242
### Example Usage
4343

4444
```java
45-
bankAccountsApi.listBankAccountsAsync(null, null, null).thenAccept(result -> {
45+
String cursor = "cursor6";
46+
Integer limit = 172;
47+
String locationId = "location_id4";
48+
49+
bankAccountsApi.listBankAccountsAsync(cursor, limit, locationId).thenAccept(result -> {
4650
// TODO success callback handler
4751
}).exceptionally(exception -> {
4852
// TODO failure callback handler

doc/cash-drawers.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,13 @@ CompletableFuture<ListCashDrawerShiftsResponse> listCashDrawerShiftsAsync(
4848

4949
```java
5050
String locationId = "location_id4";
51+
String sortOrder = "DESC";
52+
String beginTime = "begin_time2";
53+
String endTime = "end_time2";
54+
Integer limit = 172;
55+
String cursor = "cursor6";
5156

52-
cashDrawersApi.listCashDrawerShiftsAsync(locationId, null, null, null, null, null).thenAccept(result -> {
57+
cashDrawersApi.listCashDrawerShiftsAsync(locationId, sortOrder, beginTime, endTime, limit, cursor).thenAccept(result -> {
5358
// TODO success callback handler
5459
}).exceptionally(exception -> {
5560
// TODO failure callback handler
@@ -123,8 +128,10 @@ CompletableFuture<ListCashDrawerShiftEventsResponse> listCashDrawerShiftEventsAs
123128
```java
124129
String locationId = "location_id4";
125130
String shiftId = "shift_id0";
131+
Integer limit = 172;
132+
String cursor = "cursor6";
126133

127-
cashDrawersApi.listCashDrawerShiftEventsAsync(locationId, shiftId, null, null).thenAccept(result -> {
134+
cashDrawersApi.listCashDrawerShiftEventsAsync(locationId, shiftId, limit, cursor).thenAccept(result -> {
128135
// TODO success callback handler
129136
}).exceptionally(exception -> {
130137
// TODO failure callback handler

0 commit comments

Comments
 (0)