Skip to content

Commit 88999ad

Browse files
author
autobot
committed
Generated PR for Release: 21.0.0.20220720
1 parent 73362eb commit 88999ad

File tree

159 files changed

+520
-351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+520
-351
lines changed

Diff for: doc/api/bookings.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def list_team_member_booking_profiles(bookable_only: false,
184184

185185
| Parameter | Type | Tags | Description |
186186
| --- | --- | --- | --- |
187-
| `bookable_only` | `Boolean` | Query, Optional | Indicates whether to include only bookable team members in the returned result (`true`) or not (`false`).<br>**Default**: `false` |
187+
| `bookable_only` | `TrueClass\|FalseClass` | Query, Optional | Indicates whether to include only bookable team members in the returned result (`true`) or not (`false`).<br>**Default**: `false` |
188188
| `limit` | `Integer` | Query, Optional | The maximum number of results to return in a paged response. |
189189
| `cursor` | `String` | Query, Optional | The pagination cursor from the preceding response to return the next page of the results. Do not set this when retrieving the first page of the results. |
190190
| `location_id` | `String` | Query, Optional | Indicates whether to include only team members enabled at the given location in the returned result. |

Diff for: doc/api/cards.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def list_cards(cursor: nil,
3535
| --- | --- | --- | --- |
3636
| `cursor` | `String` | Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this to retrieve the next set of results for your original query.<br><br>See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. |
3737
| `customer_id` | `String` | Query, Optional | Limit results to cards associated with the customer supplied.<br>By default, all cards owned by the merchant are returned. |
38-
| `include_disabled` | `Boolean` | Query, Optional | Includes disabled cards.<br>By default, all enabled cards owned by the merchant are returned.<br>**Default**: `false` |
38+
| `include_disabled` | `TrueClass\|FalseClass` | Query, Optional | Includes disabled cards.<br>By default, all enabled cards owned by the merchant are returned.<br>**Default**: `false` |
3939
| `reference_id` | `String` | Query, Optional | Limit results to cards associated with the reference_id supplied. |
4040
| `sort_order` | [`String (Sort Order)`](../../doc/models/sort-order.md) | Query, Optional | Sorts the returned list by when the card was created with the specified order.<br>This field defaults to ASC. |
4141

Diff for: doc/api/catalog.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ body[:batches][0][:objects][0][:id] = '#Tea'
153153
body[:batches][0][:objects][0][:present_at_all_locations] = true
154154
body[:batches][0][:objects][0][:item_data] = {}
155155
body[:batches][0][:objects][0][:item_data][:name] = 'Tea'
156-
body[:batches][0][:objects][0][:item_data][:description] = 'Hot Leaf Juice'
157156
body[:batches][0][:objects][0][:item_data][:category_id] = '#Beverages'
158157
body[:batches][0][:objects][0][:item_data][:tax_ids] = ['#SalesTax']
159158
body[:batches][0][:objects][0][:item_data][:variations] = []
@@ -168,14 +167,14 @@ body[:batches][0][:objects][0][:item_data][:variations][0][:item_variation_data]
168167
body[:batches][0][:objects][0][:item_data][:variations][0][:item_variation_data][:name] = 'Mug'
169168
body[:batches][0][:objects][0][:item_data][:variations][0][:item_variation_data][:pricing_type] = 'FIXED_PRICING'
170169

170+
body[:batches][0][:objects][0][:item_data][:description_html] = '<p><strong>Hot</strong> Leaf Juice</p>'
171171

172172
body[:batches][0][:objects][1] = {}
173173
body[:batches][0][:objects][1][:type] = 'ITEM'
174174
body[:batches][0][:objects][1][:id] = '#Coffee'
175175
body[:batches][0][:objects][1][:present_at_all_locations] = true
176176
body[:batches][0][:objects][1][:item_data] = {}
177177
body[:batches][0][:objects][1][:item_data][:name] = 'Coffee'
178-
body[:batches][0][:objects][1][:item_data][:description] = 'Hot Bean Juice'
179178
body[:batches][0][:objects][1][:item_data][:category_id] = '#Beverages'
180179
body[:batches][0][:objects][1][:item_data][:tax_ids] = ['#SalesTax']
181180
body[:batches][0][:objects][1][:item_data][:variations] = []
@@ -199,6 +198,7 @@ body[:batches][0][:objects][1][:item_data][:variations][1][:item_variation_data]
199198
body[:batches][0][:objects][1][:item_data][:variations][1][:item_variation_data][:name] = 'Large'
200199
body[:batches][0][:objects][1][:item_data][:variations][1][:item_variation_data][:pricing_type] = 'FIXED_PRICING'
201200

201+
body[:batches][0][:objects][1][:item_data][:description_html] = '<p>Hot <em>Bean Juice</em></p>'
202202

203203
body[:batches][0][:objects][2] = {}
204204
body[:batches][0][:objects][2][:type] = 'CATEGORY'
@@ -249,7 +249,7 @@ def create_catalog_image(request: nil,
249249

250250
| Parameter | Type | Tags | Description |
251251
| --- | --- | --- | --- |
252-
| `request` | [`Create Catalog Image Request Hash`](../../doc/models/create-catalog-image-request.md) | Form, Optional | - |
252+
| `request` | [`Create Catalog Image Request Hash`](../../doc/models/create-catalog-image-request.md) | Form (JSON-Encoded), Optional | - |
253253
| `image_file` | `File \| UploadIO` | Form, Optional | - |
254254

255255
## Response Type
@@ -296,7 +296,7 @@ def update_catalog_image(image_id:,
296296
| Parameter | Type | Tags | Description |
297297
| --- | --- | --- | --- |
298298
| `image_id` | `String` | Template, Required | The ID of the `CatalogImage` object to update the encapsulated image file. |
299-
| `request` | [`Update Catalog Image Request Hash`](../../doc/models/update-catalog-image-request.md) | Form, Optional | - |
299+
| `request` | [`Update Catalog Image Request Hash`](../../doc/models/update-catalog-image-request.md) | Form (JSON-Encoded), Optional | - |
300300
| `image_file` | `File \| UploadIO` | Form, Optional | - |
301301

302302
## Response Type
@@ -369,7 +369,7 @@ def list_catalog(cursor: nil,
369369
| --- | --- | --- | --- |
370370
| `cursor` | `String` | Query, Optional | The pagination cursor returned in the previous response. Leave unset for an initial request.<br>The page size is currently set to be 100.<br>See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. |
371371
| `types` | `String` | Query, Optional | An optional case-insensitive, comma-separated list of object types to retrieve.<br><br>The valid values are defined in the [CatalogObjectType](../../doc/models/catalog-object-type.md) enum, for example,<br>`ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`,<br>`MODIFIER`, `MODIFIER_LIST`, `IMAGE`, etc.<br><br>If this is unspecified, the operation returns objects of all the top level types at the version<br>of the Square API used to make the request. Object types that are nested onto other object types<br>are not included in the defaults.<br><br>At the current API version the default object types are:<br>ITEM, CATEGORY, TAX, DISCOUNT, MODIFIER_LIST,<br>PRICING_RULE, PRODUCT_SET, TIME_PERIOD, MEASUREMENT_UNIT,<br>SUBSCRIPTION_PLAN, ITEM_OPTION, CUSTOM_ATTRIBUTE_DEFINITION, QUICK_AMOUNT_SETTINGS. |
372-
| `catalog_version` | `Long` | Query, Optional | The specific version of the catalog objects to be included in the response.<br>This allows you to retrieve historical<br>versions of objects. The specified version value is matched against<br>the [CatalogObject](../../doc/models/catalog-object.md)s' `version` attribute. If not included, results will<br>be from the current version of the catalog. |
372+
| `catalog_version` | `Integer` | Query, Optional | The specific version of the catalog objects to be included in the response.<br>This allows you to retrieve historical<br>versions of objects. The specified version value is matched against<br>the [CatalogObject](../../doc/models/catalog-object.md)s' `version` attribute. If not included, results will<br>be from the current version of the catalog. |
373373

374374
## Response Type
375375

@@ -416,7 +416,6 @@ body[:object][:type] = 'ITEM'
416416
body[:object][:id] = '#Cocoa'
417417
body[:object][:item_data] = {}
418418
body[:object][:item_data][:name] = 'Cocoa'
419-
body[:object][:item_data][:description] = 'Hot Chocolate'
420419
body[:object][:item_data][:abbreviation] = 'Ch'
421420
body[:object][:item_data][:variations] = []
422421

@@ -440,6 +439,7 @@ body[:object][:item_data][:variations][1][:item_variation_data][:price_money] =
440439
body[:object][:item_data][:variations][1][:item_variation_data][:price_money][:amount] = 400
441440
body[:object][:item_data][:variations][1][:item_variation_data][:price_money][:currency] = 'USD'
442441

442+
body[:object][:item_data][:description_html] = '<p><strong>Hot</strong> Chocolate</p>'
443443

444444
result = catalog_api.upsert_catalog_object(body: body)
445445

@@ -510,8 +510,8 @@ def retrieve_catalog_object(object_id:,
510510
| Parameter | Type | Tags | Description |
511511
| --- | --- | --- | --- |
512512
| `object_id` | `String` | Template, Required | The object ID of any type of catalog objects to be retrieved. |
513-
| `include_related_objects` | `Boolean` | Query, Optional | If `true`, the response will include additional objects that are related to the<br>requested objects. Related objects are defined as any objects referenced by ID by the results in the `objects` field<br>of the response. These objects are put in the `related_objects` field. Setting this to `true` is<br>helpful when the objects are needed for immediate display to a user.<br>This process only goes one level deep. Objects referenced by the related objects will not be included. For example,<br><br>if the `objects` field of the response contains a CatalogItem, its associated<br>CatalogCategory objects, CatalogTax objects, CatalogImage objects and<br>CatalogModifierLists will be returned in the `related_objects` field of the<br>response. If the `objects` field of the response contains a CatalogItemVariation,<br>its parent CatalogItem will be returned in the `related_objects` field of<br>the response.<br><br>Default value: `false`<br>**Default**: `false` |
514-
| `catalog_version` | `Long` | Query, Optional | Requests objects as of a specific version of the catalog. This allows you to retrieve historical<br>versions of objects. The value to retrieve a specific version of an object can be found<br>in the version field of [CatalogObject](../../doc/models/catalog-object.md)s. If not included, results will<br>be from the current version of the catalog. |
513+
| `include_related_objects` | `TrueClass\|FalseClass` | Query, Optional | If `true`, the response will include additional objects that are related to the<br>requested objects. Related objects are defined as any objects referenced by ID by the results in the `objects` field<br>of the response. These objects are put in the `related_objects` field. Setting this to `true` is<br>helpful when the objects are needed for immediate display to a user.<br>This process only goes one level deep. Objects referenced by the related objects will not be included. For example,<br><br>if the `objects` field of the response contains a CatalogItem, its associated<br>CatalogCategory objects, CatalogTax objects, CatalogImage objects and<br>CatalogModifierLists will be returned in the `related_objects` field of the<br>response. If the `objects` field of the response contains a CatalogItemVariation,<br>its parent CatalogItem will be returned in the `related_objects` field of<br>the response.<br><br>Default value: `false`<br>**Default**: `false` |
514+
| `catalog_version` | `Integer` | Query, Optional | Requests objects as of a specific version of the catalog. This allows you to retrieve historical<br>versions of objects. The value to retrieve a specific version of an object can be found<br>in the version field of [CatalogObject](../../doc/models/catalog-object.md)s. If not included, results will<br>be from the current version of the catalog. |
515515

516516
## Response Type
517517

Diff for: doc/api/customer-custom-attributes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def list_customer_custom_attributes(customer_id:,
301301
| `customer_id` | `String` | Template, Required | The ID of the target [customer profile](../../doc/models/customer.md). |
302302
| `limit` | `Integer` | Query, Optional | The maximum number of results to return in a single paged response. This limit is advisory.<br>The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100.<br>The default value is 20. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
303303
| `cursor` | `String` | Query, Optional | The cursor returned in the paged response from the previous call to this endpoint.<br>Provide this cursor to retrieve the next page of results for your original request. For more<br>information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
304-
| `with_definitions` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](../../doc/models/custom-attribute-definition.md) in the `definition` field of each<br>custom attribute. Set this parameter to `true` to get the name and description of each custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `false` |
304+
| `with_definitions` | `TrueClass\|FalseClass` | Query, Optional | Indicates whether to return the [custom attribute definition](../../doc/models/custom-attribute-definition.md) in the `definition` field of each<br>custom attribute. Set this parameter to `true` to get the name and description of each custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `false` |
305305

306306
## Response Type
307307

@@ -385,7 +385,7 @@ def retrieve_customer_custom_attribute(customer_id:,
385385
| --- | --- | --- | --- |
386386
| `customer_id` | `String` | Template, Required | The ID of the target [customer profile](../../doc/models/customer.md). |
387387
| `key` | `String` | Template, Required | The key of the custom attribute to retrieve. This key must match the `key` of a custom<br>attribute definition in the Square seller account. If the requesting application is not the<br>definition owner, you must use the qualified key. |
388-
| `with_definition` | `Boolean` | Query, Optional | Indicates whether to return the [custom attribute definition](../../doc/models/custom-attribute-definition.md) in the `definition` field of<br>the custom attribute. Set this parameter to `true` to get the name and description of the custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `false` |
388+
| `with_definition` | `TrueClass\|FalseClass` | Query, Optional | Indicates whether to return the [custom attribute definition](../../doc/models/custom-attribute-definition.md) in the `definition` field of<br>the custom attribute. Set this parameter to `true` to get the name and description of the custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `false` |
389389
| `version` | `Integer` | Query, Optional | The current version of the custom attribute, which is used for strongly consistent reads to<br>guarantee that you receive the most up-to-date data. When included in the request, Square<br>returns the specified version or a higher version if one exists. If the specified version is<br>higher than the current version, Square returns a `BAD_REQUEST` error. |
390390

391391
## Response Type

Diff for: doc/api/customers.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ body[:query][:filter][:creation_source] = {}
155155
body[:query][:filter][:creation_source][:values] = ['THIRD_PARTY']
156156
body[:query][:filter][:creation_source][:rule] = 'INCLUDE'
157157
body[:query][:filter][:created_at] = {}
158-
body[:query][:filter][:created_at][:start_at] = '2018-01-01T00:00:00-00:00'
159-
body[:query][:filter][:created_at][:end_at] = '2018-02-01T00:00:00-00:00'
158+
body[:query][:filter][:created_at][:start_at] = '2018-01-01T00:00:00+00:00'
159+
body[:query][:filter][:created_at][:end_at] = '2018-02-01T00:00:00+00:00'
160160
body[:query][:filter][:email_address] = {}
161161
body[:query][:filter][:email_address][:fuzzy] = 'example.com'
162162
body[:query][:filter][:group_ids] = {}
@@ -193,7 +193,7 @@ def delete_customer(customer_id:,
193193
| Parameter | Type | Tags | Description |
194194
| --- | --- | --- | --- |
195195
| `customer_id` | `String` | Template, Required | The ID of the customer to delete. |
196-
| `version` | `Long` | Query, Optional | The current version of the customer profile.<br><br>As a best practice, you should include this parameter to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control. For more information, see [Delete a customer profile](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#delete-customer-profile). |
196+
| `version` | `Integer` | Query, Optional | The current version of the customer profile.<br><br>As a best practice, you should include this parameter to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control. For more information, see [Delete a customer profile](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#delete-customer-profile). |
197197

198198
## Response Type
199199

Diff for: doc/api/disputes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def create_dispute_evidence_file(dispute_id:,
177177
| Parameter | Type | Tags | Description |
178178
| --- | --- | --- | --- |
179179
| `dispute_id` | `String` | Template, Required | The ID of the dispute you want to upload evidence for. |
180-
| `request` | [`Create Dispute Evidence File Request Hash`](../../doc/models/create-dispute-evidence-file-request.md) | Form, Optional | Defines the parameters for a `CreateDisputeEvidenceFile` request. |
180+
| `request` | [`Create Dispute Evidence File Request Hash`](../../doc/models/create-dispute-evidence-file-request.md) | Form (JSON-Encoded), Optional | Defines the parameters for a `CreateDisputeEvidenceFile` request. |
181181
| `image_file` | `File \| UploadIO` | Form, Optional | - |
182182

183183
## Response Type

Diff for: doc/api/inventory.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ body[:catalog_object_ids] = ['W62UWFY35CWMYGVWK6TWJDNI']
176176
body[:location_ids] = ['C6W5YS5QM06F5']
177177
body[:types] = ['PHYSICAL_COUNT']
178178
body[:states] = ['IN_STOCK']
179-
body[:updated_after] = '2016-11-01T00:00:00.000Z'
180-
body[:updated_before] = '2016-12-01T00:00:00.000Z'
179+
body[:updated_after] = '2016-11-01T00:00:00Z'
180+
body[:updated_before] = '2016-12-01T00:00:00Z'
181181

182182
result = inventory_api.deprecated_batch_retrieve_inventory_changes(body: body)
183183

@@ -216,7 +216,7 @@ def deprecated_batch_retrieve_inventory_counts(body:)
216216
body = {}
217217
body[:catalog_object_ids] = ['W62UWFY35CWMYGVWK6TWJDNI']
218218
body[:location_ids] = ['59TNP9SA8VGDA']
219-
body[:updated_after] = '2016-11-16T00:00:00.000Z'
219+
body[:updated_after] = '2016-11-16T00:00:00Z'
220220

221221
result = inventory_api.deprecated_batch_retrieve_inventory_counts(body: body)
222222

@@ -314,8 +314,8 @@ body[:catalog_object_ids] = ['W62UWFY35CWMYGVWK6TWJDNI']
314314
body[:location_ids] = ['C6W5YS5QM06F5']
315315
body[:types] = ['PHYSICAL_COUNT']
316316
body[:states] = ['IN_STOCK']
317-
body[:updated_after] = '2016-11-01T00:00:00.000Z'
318-
body[:updated_before] = '2016-12-01T00:00:00.000Z'
317+
body[:updated_after] = '2016-11-01T00:00:00Z'
318+
body[:updated_before] = '2016-12-01T00:00:00Z'
319319

320320
result = inventory_api.batch_retrieve_inventory_changes(body: body)
321321

@@ -361,7 +361,7 @@ def batch_retrieve_inventory_counts(body:)
361361
body = {}
362362
body[:catalog_object_ids] = ['W62UWFY35CWMYGVWK6TWJDNI']
363363
body[:location_ids] = ['59TNP9SA8VGDA']
364-
body[:updated_after] = '2016-11-16T00:00:00.000Z'
364+
body[:updated_after] = '2016-11-16T00:00:00Z'
365365

366366
result = inventory_api.batch_retrieve_inventory_counts(body: body)
367367

0 commit comments

Comments
 (0)