Skip to content

Commit bc9dad3

Browse files
author
Wolfgang Schuster
authored
Merge pull request #68 from square/release/13.1.0.20210818
Generated PR for Release: 13.1.0.20210818
2 parents 13847a1 + 69fe431 commit bc9dad3

93 files changed

Lines changed: 433 additions & 366 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: 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 Python SDK](https://developer.squareup.com/docs/sdks/python) now requires Python 3.7 or later, if Python 3 is used. With Python 2, the minimum version remains at 2.7.
3+
## Version 13.1.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: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ pip install -r test-requirements.txt
4646
* [Disputes]
4747
* [Checkout]
4848
* [Apple Pay]
49-
* [Cards]
50-
51-
### Terminal
5249
* [Terminal]
5350

5451
### Orders
@@ -72,22 +69,19 @@ pip install -r test-requirements.txt
7269
### Loyalty
7370
* [Loyalty]
7471

75-
### Gift Cards
76-
* [Gift Cards]
77-
* [Gift Card Activities]
78-
7972
### Bookings
8073
* [Bookings]
8174

8275
### Business
8376
* [Merchants]
8477
* [Locations]
8578
* [Devices]
86-
* [Cash Drawers]
8779

8880
### Team
8981
* [Team]
82+
* [Employees]
9083
* [Labor]
84+
* [Cash Drawers]
9185

9286
### Financials
9387
* [Bank Accounts]
@@ -101,7 +95,6 @@ pip install -r test-requirements.txt
10195
* [OAuth]
10296

10397
### Deprecated APIs
104-
* [Employees]
10598
* [V1 Employees]
10699
* [V1 Transactions]
107100
* [V1 Items]
@@ -416,6 +409,3 @@ You can also use the Square API to create applications or services that work wit
416409
[OAuth overview]: https://developer.squareup.com/docs/oauth-api/what-it-does
417410
[Sites]: doc/api/sites.md
418411
[Snippets]: doc/api/snippets.md
419-
[Cards]: doc/api/cards.md
420-
[Gift Cards]: doc/api/gift-cards.md
421-
[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
```python
2525
def list_customer_groups(self,
26-
cursor=None)
26+
cursor=None,
27+
limit=None)
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` | `int` | 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 @@ def list_customer_groups(self,
4042

4143
```python
4244
cursor = 'cursor6'
45+
limit = 172
4346

44-
result = customer_groups_api.list_customer_groups(cursor)
47+
result = customer_groups_api.list_customer_groups(cursor, limit)
4548

4649
if result.is_success():
4750
print(result.body)

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
```python
2222
def list_customer_segments(self,
23-
cursor=None)
23+
cursor=None,
24+
limit=None)
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` | `int` | 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 @@ def list_customer_segments(self,
3739

3840
```python
3941
cursor = 'cursor6'
42+
limit = 172
4043

41-
result = customer_segments_api.list_customer_segments(cursor)
44+
result = customer_segments_api.list_customer_segments(cursor, limit)
4245

4346
if result.is_success():
4447
print(result.body)

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
```python
3434
def list_customers(self,
3535
cursor=None,
36+
limit=None,
3637
sort_field=None,
3738
sort_order=None)
3839
```
@@ -42,8 +43,9 @@ def list_customers(self,
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-
| `sort_field` | [`str (Customer Sort Field)`](/doc/models/customer-sort-field.md) | Query, Optional | Indicates how customers should be sorted.<br><br>Default: `DEFAULT`. |
46-
| `sort_order` | [`str (Sort Order)`](/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` | `int` | 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+
| `sort_field` | [`str (Customer Sort Field)`](/doc/models/customer-sort-field.md) | Query, Optional | Indicates how customers should be sorted.<br><br>The default value is `DEFAULT`. |
48+
| `sort_order` | [`str (Sort Order)`](/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 @@ def list_customers(self,
5355

5456
```python
5557
cursor = 'cursor6'
58+
limit = 172
5659
sort_field = 'DEFAULT'
5760
sort_order = 'DESC'
5861

59-
result = customers_api.list_customers(cursor, sort_field, sort_order)
62+
result = customers_api.list_customers(cursor, limit, sort_field, sort_order)
6063

6164
if result.is_success():
6265
print(result.body)

doc/api/gift-cards.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ elif result.is_error():
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
```python

0 commit comments

Comments
 (0)