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

Commit

Permalink
Release 2.20190327.1 (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssung88 authored Mar 29, 2019
1 parent 517878c commit 9f993bb
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## Version 2.20190327.1 (2019-03-29)

## Bug Fix: Catalog API
* Add `image_id` to `CatalogObject`

## Version 2.20190327.0 (2019-03-27)

## New features: Catalog API
Expand Down
2 changes: 1 addition & 1 deletion docs/CatalogItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Name | Type | Description | Notes
**category_id** | **str** | The ID of the item's category, if any. | [optional]
**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]
**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]
**image_url** | **str** | __Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_data` in [`CatalogObject`](#type-catalogobject). | [optional]
**image_url** | **str** | __Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_id` in [`CatalogObject`](#type-catalogobject). | [optional]
**variations** | [**list[CatalogObject]**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s containing the [CatalogItemVariation](#type-catalogitemvariation)s for this item. | [optional]
**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]
**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]
Expand Down
1 change: 1 addition & 0 deletions docs/CatalogObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Name | Type | Description | Notes
**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]
**present_at_location_ids** | **list[str]** | A list of locations where the object is present, even if `present_at_all_locations` is `false`. | [optional]
**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]
**image_id** | **str** | Identifies the `CatalogImage` attached to this `CatalogObject`. | [optional]
**item_data** | [**CatalogItem**](CatalogItem.md) | Structured data for a [CatalogItem](#type-catalogitem), set for CatalogObjects of type `ITEM`. | [optional]
**category_data** | [**CatalogCategory**](CatalogCategory.md) | Structured data for a [CatalogCategory](#type-catalogcategory), set for CatalogObjects of type `CATEGORY`. | [optional]
**item_variation_data** | [**CatalogItemVariation**](CatalogItemVariation.md) | Structured data for a [CatalogItemVariation](#type-catalogitemvariation), set for CatalogObjects of type `ITEM_VARIATION`. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup, find_packages

NAME = "squareconnect"
VERSION = "2.20190327.0"
VERSION = "2.20190327.1"



Expand Down
2 changes: 1 addition & 1 deletion squareconnect/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Square-Connect-Python/2.20190327.0'
self.user_agent = 'Square-Connect-Python/2.20190327.1'

@property
def user_agent(self):
Expand Down
2 changes: 1 addition & 1 deletion squareconnect/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 2.0\n"\
"SDK Package Version: 2.20190327.0".\
"SDK Package Version: 2.20190327.1".\
format(env=sys.platform, pyversion=sys.version)
4 changes: 2 additions & 2 deletions squareconnect/models/catalog_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def modifier_list_info(self, modifier_list_info):
def image_url(self):
"""
Gets the image_url of this CatalogItem.
__Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_data` in [`CatalogObject`](#type-catalogobject).
__Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_id` in [`CatalogObject`](#type-catalogobject).
:return: The image_url of this CatalogItem.
:rtype: str
Expand All @@ -330,7 +330,7 @@ def image_url(self):
def image_url(self, image_url):
"""
Sets the image_url of this CatalogItem.
__Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_data` in [`CatalogObject`](#type-catalogobject).
__Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_id` in [`CatalogObject`](#type-catalogobject).
:param image_url: The image_url of this CatalogItem.
:type: str
Expand Down
28 changes: 27 additions & 1 deletion squareconnect/models/catalog_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CatalogObject(object):
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
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):
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):
"""
CatalogObject - a model defined in Swagger
Expand All @@ -46,6 +46,7 @@ def __init__(self, type=None, id=None, updated_at=None, version=None, is_deleted
'present_at_all_locations': 'bool',
'present_at_location_ids': 'list[str]',
'absent_at_location_ids': 'list[str]',
'image_id': 'str',
'item_data': 'CatalogItem',
'category_data': 'CatalogCategory',
'item_variation_data': 'CatalogItemVariation',
Expand All @@ -66,6 +67,7 @@ def __init__(self, type=None, id=None, updated_at=None, version=None, is_deleted
'present_at_all_locations': 'present_at_all_locations',
'present_at_location_ids': 'present_at_location_ids',
'absent_at_location_ids': 'absent_at_location_ids',
'image_id': 'image_id',
'item_data': 'item_data',
'category_data': 'category_data',
'item_variation_data': 'item_variation_data',
Expand All @@ -85,6 +87,7 @@ def __init__(self, type=None, id=None, updated_at=None, version=None, is_deleted
self._present_at_all_locations = present_at_all_locations
self._present_at_location_ids = present_at_location_ids
self._absent_at_location_ids = absent_at_location_ids
self._image_id = image_id
self._item_data = item_data
self._category_data = category_data
self._item_variation_data = item_variation_data
Expand Down Expand Up @@ -306,6 +309,29 @@ def absent_at_location_ids(self, absent_at_location_ids):

self._absent_at_location_ids = absent_at_location_ids

@property
def image_id(self):
"""
Gets the image_id of this CatalogObject.
Identifies the `CatalogImage` attached to this `CatalogObject`.
:return: The image_id of this CatalogObject.
:rtype: str
"""
return self._image_id

@image_id.setter
def image_id(self, image_id):
"""
Sets the image_id of this CatalogObject.
Identifies the `CatalogImage` attached to this `CatalogObject`.
:param image_id: The image_id of this CatalogObject.
:type: str
"""

self._image_id = image_id

@property
def item_data(self):
"""
Expand Down

0 comments on commit 9f993bb

Please sign in to comment.