Skip to content

Commit 0059002

Browse files
author
Xiao Hu
authored
Merge pull request #52 from square/release/13.0.0.20210721
Generated PR for Release: 13.0.0.20210721
2 parents 6a3f161 + b5c657c commit 0059002

File tree

91 files changed

+2780
-580
lines changed

Some content is hidden

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

91 files changed

+2780
-580
lines changed

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
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.
6+
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.
25+
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)
28+
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).
31+
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.
35+
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)
45+
46+
## 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)
48+
49+
50+
351
## Version 12.0.0.20210616 (2021-06-16)
452
## New API releases
553
* **Gift Cards API and Gift Card Activities API.** Gift card support is integrated in the [Square Seller Dashboard](https://squareup.com/dashboard/) and the [Square Point of Sale](https://squareup.com/us/en/point-of-sale) application. Sellers can sell, redeem, track, and reload Square gift cards. Now developers can use the [Gift Cards API](https://developer.squareup.com/reference/square_2021-06-16/gift-cards-api) and the [Gift Card Activities API](https://developer.squareup.com/reference/square_2021-06-16/gift-card-activities-api) to integrate Square gift cards into third-party applications. For more information, see [Gift Cards API Overview.](https://developer.squareup.com/docs/gift-cards/using-gift-cards-api)

README.md

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

4848
## API documentation

doc/api/checkout.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ MeasurementUnit bodyOrderOrderLineItems0QuantityUnitMeasurementUnit = new Measur
5050
OrderQuantityUnit bodyOrderOrderLineItems0QuantityUnit = new OrderQuantityUnit.Builder()
5151
.measurementUnit(bodyOrderOrderLineItems0QuantityUnitMeasurementUnit)
5252
.precision(191)
53+
.catalogVersion(131L)
5354
.build();
5455
List<OrderLineItemAppliedTax> bodyOrderOrderLineItems0AppliedTaxes = new LinkedList<>();
5556

@@ -103,6 +104,7 @@ MeasurementUnit bodyOrderOrderLineItems1QuantityUnitMeasurementUnit = new Measur
103104
OrderQuantityUnit bodyOrderOrderLineItems1QuantityUnit = new OrderQuantityUnit.Builder()
104105
.measurementUnit(bodyOrderOrderLineItems1QuantityUnitMeasurementUnit)
105106
.precision(192)
107+
.catalogVersion(130L)
106108
.build();
107109
Money bodyOrderOrderLineItems1BasePriceMoney = new Money.Builder()
108110
.amount(2500L)
@@ -128,6 +130,7 @@ MeasurementUnit bodyOrderOrderLineItems2QuantityUnitMeasurementUnit = new Measur
128130
OrderQuantityUnit bodyOrderOrderLineItems2QuantityUnit = new OrderQuantityUnit.Builder()
129131
.measurementUnit(bodyOrderOrderLineItems2QuantityUnitMeasurementUnit)
130132
.precision(193)
133+
.catalogVersion(129L)
131134
.build();
132135
Money bodyOrderOrderLineItems2BasePriceMoney = new Money.Builder()
133136
.amount(3500L)
@@ -149,6 +152,7 @@ List<OrderLineItemTax> bodyOrderOrderTaxes = new LinkedList<>();
149152
OrderLineItemTax bodyOrderOrderTaxes0 = new OrderLineItemTax.Builder()
150153
.uid("38ze1696-z1e3-5628-af6d-f1e04d947fg3")
151154
.catalogObjectId("catalog_object_id7")
155+
.catalogVersion(47L)
152156
.name("name9")
153157
.type("INCLUSIVE")
154158
.percentage("7.75")
@@ -165,9 +169,9 @@ Money bodyOrderOrderDiscounts0AmountMoney = new Money.Builder()
165169
OrderLineItemDiscount bodyOrderOrderDiscounts0 = new OrderLineItemDiscount.Builder()
166170
.uid("56ae1696-z1e3-9328-af6d-f1e04d947gd4")
167171
.catalogObjectId("catalog_object_id1")
172+
.catalogVersion(73L)
168173
.name("name7")
169174
.type("FIXED_AMOUNT")
170-
.percentage("percentage5")
171175
.amountMoney(bodyOrderOrderDiscounts0AmountMoney)
172176
.scope("LINE_ITEM")
173177
.build();

0 commit comments

Comments
 (0)