Skip to content

Commit 7c3e236

Browse files
author
autobot
committed
Generated PR for Release: 14.0.0.20210818
1 parent b779b23 commit 7c3e236

File tree

157 files changed

+1446
-672
lines changed

Some content is hidden

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

157 files changed

+1446
-672
lines changed

CHANGELOG.md

Lines changed: 20 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,33 @@
11
# Change Log
22

3-
## Version 13.0.0.20210721 (2021-07-21)
4-
## SDK updates
5-
* The [Square Java SDK](https://developer.squareup.com/docs/sdks/java) now lets you customize `HttpClient` by creating an `okhttpclient` instance and setting it in `HttpClientConfiguration` to override the default behavior.
3+
## Version 14.0.0.20210818 (2021-08-18)
4+
## API updates
65

7-
## API updates
8-
9-
* **Orders API:**
10-
* [OrderServiceCharge](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderServiceCharge) object. Added a new field, `type`. It identifies the service charge type.
11-
12-
* [OrderQuantityUnit](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderQuantityUnit),
13-
[OrderLineItem](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderLineItem),
14-
[OrderLineItemDiscount](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderLineItemDiscount),
15-
[OrderLineItemModifier](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderLineItemModifier),
16-
[OrderLineItemTax](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderLineItemTax),
17-
[OrderServiceCharge](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderServiceCharge),
18-
[OrderReturnLineItem](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderReturnLineItem),
19-
[OrderReturnLineItemModifier](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderReturnLineItemModifier),
20-
[OrderReturnServiceCharge](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderReturnServiceCharge),
21-
[OrderReturnTax](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderReturnTax), and
22-
[OrderReturnDiscount](https://developer.squareup.com/reference/square_2021-07-21/objects/OrderReturnDiscount) objects. Added a new field, `catalog_version`.
23-
* **Locations API:**
24-
* [Location](https://developer.squareup.com/reference/square_2021-07-21/objects/Location) object. Added a new field `tax_ids` of type `TaxIds`. In the current implementation, sellers in Ireland and France can configure tax IDs during the onboarding process. They can also provide the information later by updating the location information in the Seller Dashboard. These tax IDs appear in this field.
6+
* **Customers API:**
7+
* [Customer](https://developer.squareup.com/reference/square_2021-08-18/objects/Customer) object. The `version` field has moved to the [general availability](https://developer.squareup.com/docs/build-basics/api-lifecycle#general-availability) (GA) state. This field represents the current version of the customer profile and enables optimistic concurrency control. For more information, see [Customer profile versions and optimistic concurrency support.](https://developer.squareup.com/docs/customers-api/what-it-does#customer-profile-versions-and-optimistic-concurrency-support)
8+
* [ListCustomers](https://developer.squareup.com/reference/square_2021-08-18/customers-api/list-customers) endpoint. The new, optional `limit` query parameter can be used to specify the maximum number of results in a paginated response.
259

26-
* **Loyalty API:**
27-
* As of July 15, 2021, the country in which the seller’s Square account is activated determines whether Square uses pretax or post-tax purchase amounts to calculate accrued points. This change supports consumption tax models, such as value-added tax (VAT). Previously, point accrual was based on pretax purchase amounts only. This change does not affect the existing point balance of loyalty accounts. For more information, see [Availability of Square Loyalty.](https://developer.squareup.com/docs/loyalty-api/overview#loyalty-market-availability)
10+
* **Customer Groups API:**
11+
* [ListCustomerGroups](https://developer.squareup.com/reference/square_2021-08-18/customer-groups-api/list-customer-groups) endpoint. The new, optional `limit` query parameter can be used to specify the maximum number of results in a paginated response.
2812

29-
* **Payments API:**
30-
* [UpdatePayment](https://developer.squareup.com/reference/square_2021-07-21/payments-api/update-payment). The endpoint has moved to the [general availability](https://developer.squareup.com/docs/build-basics/api-lifecycle#general-availability) (GA) state. Also, you can now update gift card payments (similar to card, cash, and external payments).
13+
* **Customer Segments API:**
14+
* [ListCustomerSegments](https://developer.squareup.com/reference/square_2021-08-18/customer-segments-api/list-customer-segments) endpoint. The new, optional `limit` query parameter can be used to specify the maximum number of results in a paginated response.
3115

32-
* **Subscriptions API:**
33-
* The [Subscriptions API](https://developer.squareup.com/docs/subscriptions-api/overview) has moved to the [general availability](https://developer.squareup.com/docs/build-basics/api-lifecycle#general-availability) (GA) state.
34-
* [CatalogSubscriptionPlan](https://developer.squareup.com/reference/square_2021-07-21/objects/CatalogSubscriptionPlan) object. The `name` and `price` are now write-once fields. You specify these values at the time of creating a plan. After the plan is created, these fields cannot be updated. This makes a subscription plan immutable.
16+
* **Invoices API:**
17+
* Square Invoices Plus is a monthly subscription plan that allows access to premium invoice features. After Invoices Plus is launched in September 2021, a subscription will be required to create invoices with custom fields and installment payments. For more information, including how to handle new errors, see [Premium features available with Invoices Plus.](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription)
3518

36-
* **Inventory API:**
37-
* [RetrieveInventoryTransfer.](https://developer.squareup.com/reference/square_2021-07-21/inventory-api/Retrieve-Inventory-Transfer) This new endpoint is introduced to support the retrieval of inventory transfer.
38-
* [RetrieveInventoryChanges.](https://developer.squareup.com/reference/square_2021-07-21/inventory-api/Retrieve-Inventory-Changes) This endpoint is deprecated. Its support ends when it is retired in about 12 months.
39-
* The following endpoints have updated URLs to conform to the standard REST API convention. For more information about migrating deprecated URLs to updated URLs in your application, see [Inventory API: Migrate to Updated API Entities.](https://developer.squareup.com/docs/inventory-api/migrate-to-updated-api-entities)
40-
* [RetrieveInventoryAdjustment](https://developer.squareup.com/reference/square_2021-07-21/inventory-api/Retrieve-Inventory-Adjustment)
41-
* [BatchChangeInventory](https://developer.squareup.com/reference/square_2021-07-21/inventory-api/Batch-Change-Inventory)
42-
* [BatchRetrieveInventoryChanges](https://developer.squareup.com/reference/square_2021-07-21/inventory-api/Batch-Retrieve-Inventory-Changes)
43-
* [BatchRetrieveInventoryCounts](https://developer.squareup.com/reference/square_2021-07-21/inventory-api/Batch-Retrieve-Inventory-Counts)
44-
* [RetrieveInventoryPhysicalCount](https://developer.squareup.com/reference/square_2021-07-21/inventory-api/Retrieve-Inventory-Physical-Count)
19+
* **Loyalty API:**
20+
* [LoyaltyAccount](https://developer.squareup.com/reference/square_2021-08-18/objects/LoyaltyAccount) object. Added a new `expiring_point_deadlines` field that specifies when points in the account balance are scheduled to expire. This field contains a list of [LoyaltyAccountExpiringPointDeadline](https://developer.squareup.com/reference/square_2021-08-18/objects/LoyaltyAccountExpiringPointDeadline) objects. For more information, see [Expiring points.](https://developer.squareup.com/docs/loyalty-api/overview#expiring-points)
4521

4622
## Documentation updates
47-
* **Webhooks.** Revised the steps and descriptions for creating and using webhooks. For more information, see [Webhooks Overview.](https://developer.squareup.com/docs/webhooks/overview)
4823

24+
* [App Marketplace.](https://developer.squareup.com/docs/app-marketplace) Added the following topics:
25+
* [How to apply.](https://developer.squareup.com/docs/app-marketplace#how-to-apply) Documented the process to list an application on the Square App Marketplace.
26+
* [App Marketplace API Usage Requirements.](https://developer.squareup.com/docs/app-marketplace/requirements) Added a topic that describes a set of API usage requirements and recommendations for partner applications.
27+
28+
* [Automatic communications from Square about invoices.](https://developer.squareup.com/docs/invoices-api/overview#automatic-communication-from-square-to-customers) Documented the invoice-related communications sent from Square to customers and sellers.
29+
30+
* [Snippets best practices.](https://developer.squareup.com/docs/snippets-api/overview#best-practices) Documented best practices and additional requirements for snippets and applications that integrate with the Snippets API.
4931

5032

5133
## Version 12.0.0.20210616 (2021-06-16)

README.md

Lines changed: 4 additions & 14 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>13.0.0.20210721</version>
36+
<version>14.0.0.20210818</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:13.0.0.20210721"
45+
implementation "com.squareup:square:14.0.0.20210818"
4646
```
4747

4848
## API documentation
@@ -53,9 +53,6 @@ implementation "com.squareup:square:13.0.0.20210721"
5353
* [Disputes]
5454
* [Checkout]
5555
* [Apple Pay]
56-
* [Cards]
57-
58-
### Terminal
5956
* [Terminal]
6057

6158
### Orders
@@ -79,22 +76,19 @@ implementation "com.squareup:square:13.0.0.20210721"
7976
### Loyalty
8077
* [Loyalty]
8178

82-
### Gift Cards
83-
* [Gift Cards]
84-
* [Gift Card Activities]
85-
8679
### Bookings
8780
* [Bookings]
8881

8982
### Business
9083
* [Merchants]
9184
* [Locations]
9285
* [Devices]
93-
* [Cash Drawers]
9486

9587
### Team
9688
* [Team]
89+
* [Employees]
9790
* [Labor]
91+
* [Cash Drawers]
9892

9993
### Financials
10094
* [Bank Accounts]
@@ -108,7 +102,6 @@ implementation "com.squareup:square:13.0.0.20210721"
108102
* [OAuth]
109103

110104
### Deprecated APIs
111-
* [Employees]
112105
* [V1 Employees]
113106
* [V1 Transactions]
114107
* [V1 Items]
@@ -356,6 +349,3 @@ You can also use the Square API to create applications or services that work wit
356349
[Transactions]: doc/api/transactions.md
357350
[Sites]: doc/api/sites.md
358351
[Snippets]: doc/api/snippets.md
359-
[Cards]: doc/api/cards.md
360-
[Gift Cards]: doc/api/gift-cards.md
361-
[Gift Card Activities]: doc/api/gift-card-activities.md

doc/api/customer-groups.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ Retrieves the list of customer groups of a business.
2323

2424
```java
2525
CompletableFuture<ListCustomerGroupsResponse> listCustomerGroupsAsync(
26-
final String cursor)
26+
final String cursor,
27+
final Integer limit)
2728
```
2829

2930
## Parameters
3031

3132
| Parameter | Type | Tags | Description |
3233
| --- | --- | --- | --- |
3334
| `cursor` | `String` | Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this cursor to retrieve the next set of results for your original query.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
35+
| `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single page. This limit is advisory. The response might contain more or fewer results.<br>The limit is ignored if it is less than 1 or greater than 50. The default value is 50.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
3436

3537
## Response Type
3638

@@ -40,8 +42,9 @@ CompletableFuture<ListCustomerGroupsResponse> listCustomerGroupsAsync(
4042

4143
```java
4244
String cursor = "cursor6";
45+
Integer limit = 172;
4346

44-
customerGroupsApi.listCustomerGroupsAsync(cursor).thenAccept(result -> {
47+
customerGroupsApi.listCustomerGroupsAsync(cursor, limit).thenAccept(result -> {
4548
// TODO success callback handler
4649
}).exceptionally(exception -> {
4750
// TODO failure callback handler

doc/api/customer-segments.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ Retrieves the list of customer segments of a business.
2020

2121
```java
2222
CompletableFuture<ListCustomerSegmentsResponse> listCustomerSegmentsAsync(
23-
final String cursor)
23+
final String cursor,
24+
final Integer limit)
2425
```
2526

2627
## Parameters
2728

2829
| Parameter | Type | Tags | Description |
2930
| --- | --- | --- | --- |
3031
| `cursor` | `String` | Query, Optional | A pagination cursor returned by previous calls to `ListCustomerSegments`.<br>This cursor is used to retrieve the next set of query results.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
32+
| `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single page. This limit is advisory. The response might contain more or fewer results.<br>The limit is ignored if it is less than 1 or greater than 50. The default value is 50.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
3133

3234
## Response Type
3335

@@ -37,8 +39,9 @@ CompletableFuture<ListCustomerSegmentsResponse> listCustomerSegmentsAsync(
3739

3840
```java
3941
String cursor = "cursor6";
42+
Integer limit = 172;
4043

41-
customerSegmentsApi.listCustomerSegmentsAsync(cursor).thenAccept(result -> {
44+
customerSegmentsApi.listCustomerSegmentsAsync(cursor, limit).thenAccept(result -> {
4245
// TODO success callback handler
4346
}).exceptionally(exception -> {
4447
// TODO failure callback handler

doc/api/customers.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ profiles can take closer to one minute or longer, especially during network inci
3333
```java
3434
CompletableFuture<ListCustomersResponse> listCustomersAsync(
3535
final String cursor,
36+
final Integer limit,
3637
final String sortField,
3738
final String sortOrder)
3839
```
@@ -42,8 +43,9 @@ CompletableFuture<ListCustomersResponse> listCustomersAsync(
4243
| Parameter | Type | Tags | Description |
4344
| --- | --- | --- | --- |
4445
| `cursor` | `String` | Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this cursor to retrieve the next set of results for your original query.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
45-
| `sortField` | [`String`](/doc/models/customer-sort-field.md) | Query, Optional | Indicates how customers should be sorted.<br><br>Default: `DEFAULT`. |
46-
| `sortOrder` | [`String`](/doc/models/sort-order.md) | Query, Optional | Indicates whether customers should be sorted in ascending (`ASC`) or<br>descending (`DESC`) order.<br><br>Default: `ASC`. |
46+
| `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single page. This limit is advisory. The response might contain more or fewer results.<br>The limit is ignored if it is less than 1 or greater than 100. The default value is 100.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
47+
| `sortField` | [`String`](/doc/models/customer-sort-field.md) | Query, Optional | Indicates how customers should be sorted.<br><br>The default value is `DEFAULT`. |
48+
| `sortOrder` | [`String`](/doc/models/sort-order.md) | Query, Optional | Indicates whether customers should be sorted in ascending (`ASC`) or<br>descending (`DESC`) order.<br><br>The default value is `ASC`. |
4749

4850
## Response Type
4951

@@ -53,10 +55,11 @@ CompletableFuture<ListCustomersResponse> listCustomersAsync(
5355

5456
```java
5557
String cursor = "cursor6";
58+
Integer limit = 172;
5659
String sortField = "DEFAULT";
5760
String sortOrder = "DESC";
5861

59-
customersApi.listCustomersAsync(cursor, sortField, sortOrder).thenAccept(result -> {
62+
customersApi.listCustomersAsync(cursor, limit, sortField, sortOrder).thenAccept(result -> {
6063
// TODO success callback handler
6164
}).exceptionally(exception -> {
6265
// TODO failure callback handler

doc/api/gift-cards.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ giftCardsApi.listGiftCardsAsync(type, state, limit, cursor, customerId).thenAcce
6767

6868
# Create Gift Card
6969

70-
Creates a digital gift card. You must activate the gift card before
71-
it can be used. For more information, see
70+
Creates a digital gift card or registers a physical (plastic) gift card. You must activate the gift card before
71+
it can be used for payment. For more information, see
7272
[Selling gift cards](https://developer.squareup.com/docs/gift-cards/using-gift-cards-api#selling-square-gift-cards).
7373

7474
```java

0 commit comments

Comments
 (0)