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 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssung88 authored Mar 29, 2019
1 parent 48acf80 commit 8530ee9
Show file tree
Hide file tree
Showing 8 changed files with 22 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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for the specification and template files we used to generate this.
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 2.0
- Package version: 2.20190327.0
- Package version: 2.20190327.1
- Build package: io.swagger.codegen.languages.RubyClientCodegen

For more information, please visit [https://squareup.com/developers](https://squareup.com/developers)
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** | **Array<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** | [**Array<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** | [**Array<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** | **Array<String>** | A list of locations where the object is present, even if `present_at_all_locations` is `false`. | [optional]
**absent_at_location_ids** | **Array<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 lib/square_connect/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def initialize(config = Configuration.default)
@config = config

# Construct user agent string. Returns slightly different string for JRuby
@user_agent = "Square-Connect-Ruby/2.20190327.0"
@user_agent = "Square-Connect-Ruby/2.20190327.1"

@default_headers = {
'Content-Type' => "application/json",
Expand Down
2 changes: 1 addition & 1 deletion lib/square_connect/models/catalog_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class CatalogItem
# 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`.
attr_accessor :modifier_list_info

# __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).
attr_accessor :image_url

# A list of [CatalogObject](#type-catalogobject)s containing the [CatalogItemVariation](#type-catalogitemvariation)s for this item.
Expand Down
12 changes: 11 additions & 1 deletion lib/square_connect/models/catalog_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class CatalogObject
# A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
attr_accessor :absent_at_location_ids

# Identifies the `CatalogImage` attached to this `CatalogObject`.
attr_accessor :image_id

# Structured data for a [CatalogItem](#type-catalogitem), set for CatalogObjects of type `ITEM`.
attr_accessor :item_data

Expand Down Expand Up @@ -97,6 +100,7 @@ def self.attribute_map
:'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 @@ -120,6 +124,7 @@ def self.swagger_types
:'present_at_all_locations' => :'BOOLEAN',
:'present_at_location_ids' => :'Array<String>',
:'absent_at_location_ids' => :'Array<String>',
:'image_id' => :'String',
:'item_data' => :'CatalogItem',
:'category_data' => :'CatalogCategory',
:'item_variation_data' => :'CatalogItemVariation',
Expand Down Expand Up @@ -181,6 +186,10 @@ def initialize(attributes = {})
end
end

if attributes.has_key?(:'image_id')
self.image_id = attributes[:'image_id']
end

if attributes.has_key?(:'item_data')
self.item_data = attributes[:'item_data']
end
Expand Down Expand Up @@ -283,6 +292,7 @@ def ==(o)
present_at_all_locations == o.present_at_all_locations &&
present_at_location_ids == o.present_at_location_ids &&
absent_at_location_ids == o.absent_at_location_ids &&
image_id == o.image_id &&
item_data == o.item_data &&
category_data == o.category_data &&
item_variation_data == o.item_variation_data &&
Expand All @@ -302,7 +312,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
[type, id, updated_at, version, is_deleted, catalog_v1_ids, present_at_all_locations, present_at_location_ids, absent_at_location_ids, item_data, category_data, item_variation_data, tax_data, discount_data, modifier_list_data, modifier_data, image_data].hash
[type, id, updated_at, version, is_deleted, catalog_v1_ids, present_at_all_locations, present_at_location_ids, absent_at_location_ids, image_id, item_data, category_data, item_variation_data, tax_data, discount_data, modifier_list_data, modifier_data, image_data].hash
end

# Builds the object from hash
Expand Down
2 changes: 1 addition & 1 deletion lib/square_connect/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
=end

module SquareConnect
VERSION = "2.20190327.0"
VERSION = "2.20190327.1"
end

0 comments on commit 8530ee9

Please sign in to comment.