This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
model_catalog_item.patch
21 lines (21 loc) · 2.12 KB
/
model_catalog_item.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- original/model_catalog_item.go 2021-07-14 19:37:42.000000000 -0700
+++ model_catalog_item.go 2022-10-05 08:28:15.000000000 -0700
@@ -12,9 +12,9 @@
// A [CatalogObject](entity:CatalogObject) instance of the `ITEM` type, also referred to as an item, in the catalog.
type CatalogItem struct {
// The item's name. This is a searchable attribute for use in applicable query filters, its value must not be empty, and the length is of Unicode code points.
- Name string `json:"name,omitempty"`
+ Name *string `json:"name,omitempty"`
// The item's description. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points. Deprecated at 2022-07-20, this field is planned to retire in 6 months. You should migrate to use `description_html` to set the description of the [CatalogItem](entity:CatalogItem) instance. The `description` and `description_html` field values are kept in sync. If you try to set the both fields, the `description_html` text value overwrites the `description` value. Updates in one field are also reflected in the other, except for when you use an early version before Square API 2022-07-20 and `description_html` is set to blank, setting the `description` value to null does not nullify `description_html`.
- Description string `json:"description,omitempty"`
+ Description *string `json:"description,omitempty"`
// The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used. This attribute is searchable, and its value length is of Unicode code points.
Abbreviation string `json:"abbreviation,omitempty"`
// The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code.
@@ -56,4 +56,6 @@
DescriptionHtml string `json:"description_html,omitempty"`
// A server-generated plaintext version of the `description_html` field, without formatting tags.
DescriptionPlaintext string `json:"description_plaintext,omitempty"`
+ // A list of IFM channel ids and Square Online site ids where the object can be published.
+ Channels []string `json:"channels,omitempty"`
}