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
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,41 @@
1
1
# Change Log
2
2
3
+
## Version 6.1.0.20200722 (2020-07-22)
4
+
## API releases
5
+
6
+
* Invoices API (beta):
7
+
* For an overview, see [Manage Invoices Using the Invoices API](https://developer.squareup.com/docs/invoices-api/overview).
8
+
* For technical reference, see [Invoices API](https://developer.squareup.com/reference/square_2020-07-22/invoices-api).
9
+
10
+
## Existing API updates
11
+
12
+
* Catalog API
13
+
* [SearchCatalogItems](https://developer.squareup.com/reference/square_2020-07-22/catalog-api/search-catalog-items). You can now call the new search endpoint to [search for catalog items or item variations](https://developer.squareup.com/docs/catalog-api/search-catalog-items), with simplified programming experiences, using one or more of the supported query filters, including the custom attribute value filter.
14
+
* Locations API
15
+
*[Locations API Overview](https://developer.squareup.com/docs/locations-api). Introduced the "main" location concept.
16
+
*[RetrieveLocation](https://developer.squareup.com/reference/square_2020-07-22/locations-api/retrieve-location). You can now specify "main" as the location ID to retrieve the main location information.
17
+
18
+
* Merchants API
19
+
*[RetrieveMerchant](https://developer.squareup.com/reference/square_2020-07-22/merchants-api/retrieve-merchant) and [ListMerchants](https://developer.squareup.com/reference/square_2020-07-22/merchants-api/retrieve-merchant). These endpoints now return a new field, `main_location_id`.
20
+
21
+
* Orders API
22
+
*[PricingOptions](https://developer.squareup.com/reference/square_2020-07-22/objects/Order#definition__property-pricing_options). You can now enable the `auto_apply_discounts` of the options to have rule-based discounts automatically applied to an [Order](https://developer.squareup.com/reference/square_2020-07-22/objects/Order) that is pre-configured with a [pricing rule](https://developer.squareup.com/reference/square_2020-07-22/objects/CatalogPricingRule).
* Replaced 500 error on max string length exceeded with a max length error message. Max length attribute added to string type fields.
26
+
27
+
* Terminal API (beta)
28
+
* [TerminalCheckout](https://developer.squareup.com/reference/square_2020-07-22/objects/TerminalCheckout) object. The `TerminalCheckoutCancelReason` field is renamed to `ActionCancelReason`.
29
+
30
+
## Documentation updates
31
+
32
+
* Catalog API
33
+
* [Search a catalog](https://developer.squareup.com/docs/catalog-api/search-catalog). New topics added to provide actionable guides to using the existing [SearchCatalogObjects](https://developer.squareup.com/reference/square_2020-07-22/catalog-api/search-catalog-objects) endpoint, in addition to the [SearchCatalogItems](https://developer.squareup.com/reference/square_2020-07-22/catalog-api/search-catalog-items) endpoints.
34
+
35
+
* Orders API
36
+
* [Create Orders](https://developer.squareup.com/docs/orders-api/create-orders). Updated existing content with the new pricing option for the automatic application of rule-based discounts.
Upload an image file to create a new [CatalogImage](#type-catalogimage)for an existing
274
-
[CatalogObject](#type-catalogobject). Images can be uploaded and linked in this request or created independently
275
-
(without an object assignment) and linked to a [CatalogObject](#type-catalogobject) at a later time.
274
+
Uploads an image file to be represented by an [CatalogImage](#type-catalogimage)object linked to an existing
275
+
[CatalogObject](#type-catalogobject) instance. A call to this endpoint can upload an image, link an image to
276
+
a catalog object, or do both.
276
277
277
-
CreateCatalogImage accepts HTTP multipart/form-data requests with a JSON part and an image file part in
278
-
JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
278
+
This `CreateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in
279
+
JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
279
280
280
281
Additional information and an example cURL request can be found in the [Create a Catalog Image recipe](https://developer.squareup.com/docs/more-apis/catalog/cookbook/create-catalog-images).
This (`SearchCatalogObjects`) endpoint differs from the [SearchCatalogItems](#endpoint-Catalog-SearchCatalogItems)
517
+
endpoint in the following aspects:
518
+
519
+
-`SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects.
520
+
-`SearchCatalogItems` supports the custom attribute query filters to return items or item variations that contain custom attribute values, where `SearchCatalogObjects` does not.
521
+
-`SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted items or item variations, whereas `SearchCatalogObjects` does.
522
+
- The both endpoints have different call conventions, including the query filter formats.
Searches for catalog items or item variations by matching supported search attribute values, including
568
+
custom attribute values, against one or more of the specified query expressions,
569
+
570
+
This (`SearchCatalogItems`) endpoint differs from the [SearchCatalogObjects](#endpoint-Catalog-SearchCatalogObjects)
571
+
endpoint in the following aspects:
572
+
573
+
-`SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects.
574
+
-`SearchCatalogItems` supports the custom attribute query filters to return items or item variations that contain custom attribute values, where `SearchCatalogObjects` does not.
575
+
-`SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted items or item variations, whereas `SearchCatalogObjects` does.
576
+
- The both endpoints use different call conventions, including the query filter formats.
|`body`|[`SearchCatalogItemsRequest`](/doc/models/search-catalog-items-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
|`catalogObjectId`|`String`| Template, Required | ID of the [CatalogObject](#type-catalogobject) to retrieve. |
312
312
|`locationIds`|`String`| Query, Optional | The [Location](#type-location) IDs to look up as a comma-separated<br>list. An empty list queries all locations. |
313
-
|`cursor`|`String`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this to retrieve the next set of results for the original query.<br><br>See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. |
313
+
|`cursor`|`String`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this to retrieve the next set of results for the original query.<br><br>See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information. |
0 commit comments