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 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssung88 authored Mar 29, 2019
1 parent aa2e1c8 commit f9dab7f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 6 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 @@ -17,7 +17,7 @@ Name | Type | Description | Notes
**category_id** | **String** | The ID of the item's category, if any. | [optional]
**tax_ids** | **[String]** | 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** | [**[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** | **String** | __Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_data` in [`CatalogObject`](#type-catalogobject). | [optional]
**image_url** | **String** | __Deprecated__. The URL of an image representing this item. Deprecated in favor of `image_id` in [`CatalogObject`](#type-catalogobject). | [optional]
**variations** | [**[CatalogObject]**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s containing the [CatalogItemVariation](#type-catalogitemvariation)s for this item. | [optional]
**product_type** | **String** | 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** | **Boolean** | 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 @@ -16,6 +16,7 @@ Name | Type | Description | Notes
**present_at_all_locations** | **Boolean** | 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** | **[String]** | A list of locations where the object is present, even if `present_at_all_locations` is `false`. | [optional]
**absent_at_location_ids** | **[String]** | A list of locations where the object is not present, even if `present_at_all_locations` is `true`. | [optional]
**image_id** | **String** | 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "square-connect",
"version": "2.20190327.0",
"version": "2.20190327.1",
"description": "JavaScript client library for the Square Connect v2 API",
"keywords": [
"square",
Expand Down
4 changes: 2 additions & 2 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var querystring = require('querystring');

/**
* @module ApiClient
* @version 2.20190327.0
* @version 2.20190327.1
*/

/**
Expand Down Expand Up @@ -48,7 +48,7 @@ var exports = function() {
* @default {}
*/
this.defaultHeaders = {
'User-Agent': 'Square-Connect-Javascript/2.20190327.0'
'User-Agent': 'Square-Connect-Javascript/2.20190327.1'
};
/**
* The default HTTP timeout for all API calls.
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ var V1TransactionsApi = require('./api/V1TransactionsApi');
* </pre>
* </p>
* @module index
* @version 2.20190327.0
* @version 2.20190327.1
*/
module.exports = {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/CatalogItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ exports.prototype['tax_ids'] = undefined;
*/
exports.prototype['modifier_list_info'] = undefined;
/**
* __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).
* @member {String} image_url
*/
exports.prototype['image_url'] = undefined;
Expand Down
9 changes: 9 additions & 0 deletions src/model/CatalogObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ var exports = function(type, id) {




};

/**
Expand Down Expand Up @@ -97,6 +98,9 @@ exports.constructFromObject = function(data, obj) {
}
if (data.hasOwnProperty('absent_at_location_ids')) {
obj['absent_at_location_ids'] = ApiClient.convertToType(data['absent_at_location_ids'], ['String']);
}
if (data.hasOwnProperty('image_id')) {
obj['image_id'] = ApiClient.convertToType(data['image_id'], 'String');
}
if (data.hasOwnProperty('item_data')) {
obj['item_data'] = CatalogItem.constructFromObject(data['item_data']);
Expand Down Expand Up @@ -171,6 +175,11 @@ exports.prototype['present_at_location_ids'] = undefined;
* @member {Array.<String>} absent_at_location_ids
*/
exports.prototype['absent_at_location_ids'] = undefined;
/**
* Identifies the `CatalogImage` attached to this `CatalogObject`.
* @member {String} image_id
*/
exports.prototype['image_id'] = undefined;
/**
* Structured data for a [CatalogItem](#type-catalogitem), set for CatalogObjects of type `ITEM`.
* @member {module:model/CatalogItem} item_data
Expand Down

0 comments on commit f9dab7f

Please sign in to comment.