Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit 9f993bb

Browse files
authored
Release 2.20190327.1 (#92)
1 parent 517878c commit 9f993bb

8 files changed

Lines changed: 39 additions & 7 deletions

File tree

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## Version 2.20190327.1 (2019-03-29)
4+
5+
## Bug Fix: Catalog API
6+
* Add `image_id` to `CatalogObject`
7+
38
## Version 2.20190327.0 (2019-03-27)
49

510
## New features: Catalog API

docs/CatalogItem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
1818
**category_id** | **str** | The ID of the item's category, if any. | [optional]
1919
**tax_ids** | **list[str]** | A set of IDs indicating the [CatalogTax](#type-catalogtax)es that are enabled for this item. When updating an item, any taxes listed here will be added to the item. [CatalogTax](#type-catalogtax)es may also be added to or deleted from an item using `UpdateItemTaxes`. | [optional]
2020
**modifier_list_info** | [**list[CatalogItemModifierListInfo]**](CatalogItemModifierListInfo.md) | A set of [CatalogItemModifierListInfo](#type-catalogitemmodifierlistinfo) objects representing the modifier lists that apply to this item, along with the overrides and min and max limits that are specific to this item. [CatalogModifierList](#type-catalogmodifierlist)s may also be added to or deleted from an item using `UpdateItemModifierLists`. | [optional]
21-
**image_url** | **str** | __Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_data` in [`CatalogObject`](#type-catalogobject). | [optional]
21+
**image_url** | **str** | __Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_id` in [`CatalogObject`](#type-catalogobject). | [optional]
2222
**variations** | [**list[CatalogObject]**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s containing the [CatalogItemVariation](#type-catalogitemvariation)s for this item. | [optional]
2323
**product_type** | **str** | The product type of the item. May not be changed once an item has been created. Only items of product type `REGULAR` may be created by this API; items with other product types are read-only. See [CatalogItemProductType](#type-catalogitemproducttype) for possible values | [optional]
2424
**skip_modifier_screen** | **bool** | If `false`, the Square Point of Sale app will present the [CatalogItem](#type-catalogitem)'s details screen immediately, allowing the merchant to choose [CatalogModifier](#type-catalogmodifier)s before adding the item to the cart. This is the default behavior. If `true`, the Square Point of Sale app will immediately add the item to the cart with the pre-selected modifiers, and merchants can edit modifiers by drilling down onto the item's details. Third-party clients are encouraged to implement similar behaviors. | [optional]

docs/CatalogObject.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
1717
**present_at_all_locations** | **bool** | If `true`, this object is present at all locations (including future locations), except where specified in the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations), except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`. | [optional]
1818
**present_at_location_ids** | **list[str]** | A list of locations where the object is present, even if `present_at_all_locations` is `false`. | [optional]
1919
**absent_at_location_ids** | **list[str]** | A list of locations where the object is not present, even if `present_at_all_locations` is `true`. | [optional]
20+
**image_id** | **str** | Identifies the `CatalogImage` attached to this `CatalogObject`. | [optional]
2021
**item_data** | [**CatalogItem**](CatalogItem.md) | Structured data for a [CatalogItem](#type-catalogitem), set for CatalogObjects of type `ITEM`. | [optional]
2122
**category_data** | [**CatalogCategory**](CatalogCategory.md) | Structured data for a [CatalogCategory](#type-catalogcategory), set for CatalogObjects of type `CATEGORY`. | [optional]
2223
**item_variation_data** | [**CatalogItemVariation**](CatalogItemVariation.md) | Structured data for a [CatalogItemVariation](#type-catalogitemvariation), set for CatalogObjects of type `ITEM_VARIATION`. | [optional]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup, find_packages
55

66
NAME = "squareconnect"
7-
VERSION = "2.20190327.0"
7+
VERSION = "2.20190327.1"
88

99

1010

squareconnect/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
7575
self.default_headers[header_name] = header_value
7676
self.cookie = cookie
7777
# Set default User-Agent.
78-
self.user_agent = 'Square-Connect-Python/2.20190327.0'
78+
self.user_agent = 'Square-Connect-Python/2.20190327.1'
7979

8080
@property
8181
def user_agent(self):

squareconnect/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,5 @@ def to_debug_report(self):
229229
"OS: {env}\n"\
230230
"Python Version: {pyversion}\n"\
231231
"Version of the API: 2.0\n"\
232-
"SDK Package Version: 2.20190327.0".\
232+
"SDK Package Version: 2.20190327.1".\
233233
format(env=sys.platform, pyversion=sys.version)

squareconnect/models/catalog_item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def modifier_list_info(self, modifier_list_info):
319319
def image_url(self):
320320
"""
321321
Gets the image_url of this CatalogItem.
322-
__Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_data` in [`CatalogObject`](#type-catalogobject).
322+
__Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_id` in [`CatalogObject`](#type-catalogobject).
323323
324324
:return: The image_url of this CatalogItem.
325325
:rtype: str
@@ -330,7 +330,7 @@ def image_url(self):
330330
def image_url(self, image_url):
331331
"""
332332
Sets the image_url of this CatalogItem.
333-
__Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_data` in [`CatalogObject`](#type-catalogobject).
333+
__Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_id` in [`CatalogObject`](#type-catalogobject).
334334
335335
:param image_url: The image_url of this CatalogItem.
336336
:type: str

squareconnect/models/catalog_object.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CatalogObject(object):
2727
NOTE: This class is auto generated by the swagger code generator program.
2828
Do not edit the class manually.
2929
"""
30-
def __init__(self, type=None, id=None, updated_at=None, version=None, is_deleted=None, catalog_v1_ids=None, present_at_all_locations=None, present_at_location_ids=None, absent_at_location_ids=None, item_data=None, category_data=None, item_variation_data=None, tax_data=None, discount_data=None, modifier_list_data=None, modifier_data=None, image_data=None):
30+
def __init__(self, type=None, id=None, updated_at=None, version=None, is_deleted=None, catalog_v1_ids=None, present_at_all_locations=None, present_at_location_ids=None, absent_at_location_ids=None, image_id=None, item_data=None, category_data=None, item_variation_data=None, tax_data=None, discount_data=None, modifier_list_data=None, modifier_data=None, image_data=None):
3131
"""
3232
CatalogObject - a model defined in Swagger
3333
@@ -46,6 +46,7 @@ def __init__(self, type=None, id=None, updated_at=None, version=None, is_deleted
4646
'present_at_all_locations': 'bool',
4747
'present_at_location_ids': 'list[str]',
4848
'absent_at_location_ids': 'list[str]',
49+
'image_id': 'str',
4950
'item_data': 'CatalogItem',
5051
'category_data': 'CatalogCategory',
5152
'item_variation_data': 'CatalogItemVariation',
@@ -66,6 +67,7 @@ def __init__(self, type=None, id=None, updated_at=None, version=None, is_deleted
6667
'present_at_all_locations': 'present_at_all_locations',
6768
'present_at_location_ids': 'present_at_location_ids',
6869
'absent_at_location_ids': 'absent_at_location_ids',
70+
'image_id': 'image_id',
6971
'item_data': 'item_data',
7072
'category_data': 'category_data',
7173
'item_variation_data': 'item_variation_data',
@@ -85,6 +87,7 @@ def __init__(self, type=None, id=None, updated_at=None, version=None, is_deleted
8587
self._present_at_all_locations = present_at_all_locations
8688
self._present_at_location_ids = present_at_location_ids
8789
self._absent_at_location_ids = absent_at_location_ids
90+
self._image_id = image_id
8891
self._item_data = item_data
8992
self._category_data = category_data
9093
self._item_variation_data = item_variation_data
@@ -306,6 +309,29 @@ def absent_at_location_ids(self, absent_at_location_ids):
306309

307310
self._absent_at_location_ids = absent_at_location_ids
308311

312+
@property
313+
def image_id(self):
314+
"""
315+
Gets the image_id of this CatalogObject.
316+
Identifies the `CatalogImage` attached to this `CatalogObject`.
317+
318+
:return: The image_id of this CatalogObject.
319+
:rtype: str
320+
"""
321+
return self._image_id
322+
323+
@image_id.setter
324+
def image_id(self, image_id):
325+
"""
326+
Sets the image_id of this CatalogObject.
327+
Identifies the `CatalogImage` attached to this `CatalogObject`.
328+
329+
:param image_id: The image_id of this CatalogObject.
330+
:type: str
331+
"""
332+
333+
self._image_id = image_id
334+
309335
@property
310336
def item_data(self):
311337
"""

0 commit comments

Comments
 (0)