You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,35 @@
1
1
# Change Log
2
2
3
+
## Version 17.0.0.20211215 (2021-12-15)
4
+
### API updates
5
+
6
+
***Invoices API:**
7
+
* The Invoices API now supports seller accounts in France. For more information, see [International availability and considerations.](https://developer.squareup.com/docs/invoices-api/overview#international-availability-invoices)
8
+
* France only: [`Invoice`](https://developer.squareup.com/reference/square_2021-12-15/objects/Invoice) object. Added a new `payment_conditions` field, which contains payment terms and conditions that are displayed on the invoice. This field is available only for sellers in France. For more information, see [Payment conditions.](https://developer.squareup.com/docs/invoices-api/overview#payment-conditions)
9
+
10
+
Square version 2021-12-15 or higher is required to set this field, but it is returned in `ListInvoices` and `RetrieveInvoice` requests for all Square versions.
11
+
12
+
***Cards API**
13
+
* Added the `CARD_DECLINED_VERIFICATION_REQUIRED` error code to the list of error codes returned by [CreateCard](https://developer.squareup.com/reference/square_2021-12-15/cards-api/CreateCard).
* Updated to support attaching multiple images to a [Catalogbject](https://developer.squareup.com/reference/square_2021-12-15/objects/CatalogObject) instance.
17
+
* Added `is_primary` option to let the caller choose to attach an image as the primary image on the object for display with the Square Point of Sale and other first-party Square applications. For more information, see [Upload and Attach Images.](https://developer.squareup.com/docs/catalog-api/upload-and-attach-images)
* Retired the `image_id` field, used to hold a single image object attached to an image-supporting object of the `ITEM`, `ITEM_VARIATION`, `CATEGORY`, or `MODIFIER_LIST` type, in Square API version 2021-12-15 and later, which supports attachment of multiple images. The `image_id` field is still supported in Square API version prior to 2021-12-15. For more information, see [Work with Images: Overview.](https://developer.squareup.com/docs/catalog-api/cookbook/create-catalog-image#overview)
20
+
*[CatalogItem](https://developer.squareup.com/reference/square_2021-12-15/objects/CatalogItem), [CatalogItemVariation](https://developer.squareup.com/reference/square_2021-12-15/objects/CatalogItemVariation), [CatalogCategory](https://developer.squareup.com/reference/square_2021-12-15/objects/CatalogCategory) or [CatalogModifierList](https://developer.squareup.com/reference/square_2021-12-15/objects/CatalogModifierList) object
21
+
* Added `image_ids` list to hold attached image objects. The first element of `image_ids` list refers to the primary image attached to the catalog object. For more information, see [Work with Images: Overview.](https://developer.squareup.com/docs/catalog-api/cookbook/create-catalog-image#overview)
* Added to support replacing the image file encapsulated by an existing [CatalogImage](https://developer.squareup.com/reference/square_2021-12-15/objects/CatalogImage) object. For more information, see [Replace image file on a CatalogImage object.](https://developer.squareup.com/docs/catalog-api/manage-images#replace-the-image-file-of-a-catalogimage-object)
* Added [minimum_order_subtotal_money](https://developer.squareup.com/reference/square_2021-12-15/objects/CatalogPricingRule#definition__property-minimum_order_subtotal_money) field to require that the minimum order subtotal be reached before the pricing rule may be applied.
27
+
28
+
### Documentation updates
29
+
* Added a new top-level node for Developer Tools. This node includes such features as Sandbox, API Logs, and Webhooks.
30
+
* Added [Webhook Event Logs (beta)](https://developer.squareup.com/docs/devtools/webhook-logs) documentation to the Developer Tools node.
Returns a list of all [CatalogObject](/doc/models/catalog-object.md)s of the specified types in the catalog.
474
+
475
+
The `types` parameter is specified as a comma-separated list of the [CatalogObjectType](/doc/models/catalog-object-type.md) values,
476
+
for example, "`ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`, `IMAGE`".
431
477
432
478
__Important:__ ListCatalog does not return deleted catalog items. To retrieve
433
479
deleted catalog items, use [SearchCatalogObjects](/doc/api/catalog.md#search-catalog-objects)
@@ -445,8 +491,8 @@ def list_catalog(self,
445
491
| Parameter | Type | Tags | Description |
446
492
| --- | --- | --- | --- |
447
493
|`cursor`|`string`| Query, Optional | The pagination cursor returned in the previous response. Leave unset for an initial request.<br>The page size is currently set to be 100.<br>See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. |
448
-
|`types`|`string`| Query, Optional | An optional case-insensitive, comma-separated list of object types to retrieve.<br><br>The valid values are defined in the [CatalogObjectType](/doc/models/catalog-object-type.md) enum, including<br>`ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`,<br>`MODIFIER`, `MODIFIER_LIST`, or `IMAGE`.<br><br>If this is unspecified, the operation returns objects of all the types at the versionof the Square API used to make the request. |
449
-
|`catalog_version`|`long\|int`| Query, Optional | The specific version of the catalog objects to be included in the response.<br>This allows you to retrieve historical<br>versions of objects. The specified version value is matched against<br>the [CatalogObject](/doc/models/catalog-object.md)s' `version` attribute. |
494
+
|`types`|`string`| Query, Optional | An optional case-insensitive, comma-separated list of object types to retrieve.<br><br>The valid values are defined in the [CatalogObjectType](/doc/models/catalog-object-type.md) enum, for example,<br>`ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`,<br>`MODIFIER`, `MODIFIER_LIST`, `IMAGE`, etc.<br><br>If this is unspecified, the operation returns objects of all the top level types at the version<br>of the Square API used to make the request. Object types that are nested onto other object types<br>are not included in the defaults.<br><br>At the current API version the default object types are:<br>ITEM, CATEGORY, TAX, DISCOUNT, MODIFIER_LIST, DINING_OPTION, TAX_EXEMPTION,<br>SERVICE_CHARGE, PRICING_RULE, PRODUCT_SET, TIME_PERIOD, MEASUREMENT_UNIT,<br>SUBSCRIPTION_PLAN, ITEM_OPTION, CUSTOM_ATTRIBUTE_DEFINITION, QUICK_AMOUNT_SETTINGS. |
495
+
|`catalog_version`|`long\|int`| Query, Optional | The specific version of the catalog objects to be included in the response.<br>This allows you to retrieve historical<br>versions of objects. The specified version value is matched against<br>the [CatalogObject](/doc/models/catalog-object.md)s' `version` attribute. If not included, results will<br>be from the current version of the catalog. |
|`object_id`|`string`| Template, Required | The object ID of any type of catalog objects to be retrieved. |
647
-
|`include_related_objects`|`bool`| Query, Optional | If `true`, the response will include additional objects that are related to the<br>requested object, as follows:<br><br>If the `object` field of the response contains a `CatalogItem`, its associated<br>`CatalogCategory`, `CatalogTax`, `CatalogImage` and `CatalogModifierList`objects will<br>be returned in the `related_objects` field of theresponse. If the `object` field of<br>the response contains a `CatalogItemVariation`, its parent `CatalogItem` will be returned<br>in the `related_objects` field ofthe response.<br><br>Default value: `false`<br>**Default**: `False`|
648
-
|`catalog_version`|`long\|int`| Query, Optional | Requests objects as of a specific version of the catalog. This allows you to retrieve historical<br>versions of objects. The value to retrieve a specific version of an object can be found<br>in the version field of [CatalogObject](/doc/models/catalog-object.md)s. |
693
+
|`include_related_objects`|`bool`| Query, Optional | If `true`, the response will include additional objects that are related to the<br>requested objects. Related objects are defined as any objects referenced by ID by the results in the `objects` field<br>of the response. These objects are put in the `related_objects` field. Setting this to `true` is<br>helpful when the objects are needed for immediate display to a user.<br>This process only goes one level deep. Objects referenced by the related objects will not be included. For example,<br><br>if the `objects` field of the response contains a CatalogItem, its associated<br>CatalogCategory objects, CatalogTax objects, CatalogImageobjects and<br>CatalogModifierLists will be returned in the `related_objects` field of the<br>response. If the `objects` field ofthe response contains a CatalogItemVariation,<br>its parent CatalogItem will be returnedin the `related_objects` field of<br>the response.<br><br>Default value: `false`<br>**Default**: `False`|
694
+
|`catalog_version`|`long\|int`| Query, Optional | Requests objects as of a specific version of the catalog. This allows you to retrieve historical<br>versions of objects. The value to retrieve a specific version of an object can be found<br>in the version field of [CatalogObject](/doc/models/catalog-object.md)s. If not included, results will<br>be from the current version of the catalog. |
Provides information of all locations of a business.
22
-
23
-
Many Square API endpoints require a `location_id` parameter.
24
-
The `id` field of the [`Location`](/doc/models/location.md) objects returned by this
25
-
endpoint correspond to that `location_id` parameter.
21
+
Provides details about all of the seller's locations,
22
+
including those with an inactive status.
26
23
27
24
```python
28
25
deflist_locations(self)
@@ -46,7 +43,13 @@ elif result.is_error():
46
43
47
44
# Create Location
48
45
49
-
Creates a location.
46
+
Creates a [location](https://developer.squareup.com/docs/locations-api).
47
+
Creating new locations allows for separate configuration of receipt layouts, item prices,
48
+
and sales reports. Developers can use locations to separate sales activity via applications
49
+
that integrate with Square from sales activity elsewhere in a seller's account.
50
+
Locations created programmatically with the Locations API will last forever and
51
+
are visible to the seller for their own management, so ensure that
52
+
each location has a sensible and unique name.
50
53
51
54
```python
52
55
defcreate_location(self,
@@ -94,9 +97,8 @@ elif result.is_error():
94
97
95
98
# Retrieve Location
96
99
97
-
Retrieves details of a location. You can specify "main"
98
-
as the location ID to retrieve details of the
99
-
main location.
100
+
Retrieves details of a single location. Specify "main"
101
+
as the location ID to retrieve details of the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location).
100
102
101
103
```python
102
104
defretrieve_location(self,
@@ -107,7 +109,7 @@ def retrieve_location(self,
107
109
108
110
| Parameter | Type | Tags | Description |
109
111
| --- | --- | --- | --- |
110
-
|`location_id`|`string`| Template, Required | The ID of the location to retrieve. If you specify the string "main",<br>then the endpoint returns the main location. |
112
+
|`location_id`|`string`| Template, Required | The ID of the location to retrieve. Specify the string<br>"main" to return the main location. |
Replace `APPLICATION_SECRET` with the application secret on the Credentials
40
-
page in the [developer dashboard](https://developer.squareup.com/apps).
40
+
page in the [Developer Dashboard](https://developer.squareup.com/apps).
41
41
42
42
:information_source:**Note** This endpoint does not require authentication.
43
43
@@ -52,7 +52,7 @@ def renew_token(self,
52
52
53
53
| Parameter | Type | Tags | Description |
54
54
| --- | --- | --- | --- |
55
-
|`client_id`|`string`| Template, Required | Your application ID, available from the OAuth page for your<br>application on the Developer Dashboard. |
55
+
|`client_id`|`string`| Template, Required | Your application ID, which is available in the OAuth page in the [Developer Dashboard](https://developer.squareup.com/apps). |
56
56
|`body`|[`Renew Token Request`](/doc/models/renew-token-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
0 commit comments