-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from square/release/25.1.0.20230119
Generated PR for Release: 25.1.0.20230119
- Loading branch information
Showing
38 changed files
with
2,003 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...-location-custom-attributes-request-location-custom-attribute-delete-request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
# Bulk Delete Location Custom Attributes Request Location Custom Attribute Delete Request | ||
|
||
Represents an individual delete request in a [BulkDeleteLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-delete-location-custom-attributes) | ||
request. An individual request contains an optional ID of the associated custom attribute definition | ||
and optional key of the associated custom attribute definition. | ||
|
||
## Structure | ||
|
||
`Bulk Delete Location Custom Attributes Request Location Custom Attribute Delete Request` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `key` | `string` | Optional | The key of the associated custom attribute definition.<br>Represented as a qualified key if the requesting app is not the definition owner.<br>**Constraints**: *Pattern*: `^([a-zA-Z0-9_-]+:)?[a-zA-Z0-9_-]{1,60}$` | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{} | ||
``` | ||
|
36 changes: 36 additions & 0 deletions
36
doc/models/bulk-delete-location-custom-attributes-request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
# Bulk Delete Location Custom Attributes Request | ||
|
||
Represents a [BulkDeleteLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-delete-location-custom-attributes) request. | ||
|
||
## Structure | ||
|
||
`Bulk Delete Location Custom Attributes Request` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `values` | [`Dict`](../../doc/models/bulk-delete-location-custom-attributes-request-location-custom-attribute-delete-request.md) | Required | The data used to update the `CustomAttribute` objects.<br>The keys must be unique and are used to map to the corresponding response. | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"values": { | ||
"id1": { | ||
"key": "bestseller", | ||
"location_id": "L0TBCBTB7P8RQ" | ||
}, | ||
"id2": { | ||
"key": "bestseller", | ||
"location_id": "L9XMD04V3STJX" | ||
}, | ||
"id3": { | ||
"key": "phone-number", | ||
"location_id": "L0TBCBTB7P8RQ" | ||
} | ||
} | ||
} | ||
``` | ||
|
26 changes: 26 additions & 0 deletions
26
...ocation-custom-attributes-response-location-custom-attribute-delete-response.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
# Bulk Delete Location Custom Attributes Response Location Custom Attribute Delete Response | ||
|
||
Represents an individual delete response in a [BulkDeleteLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-delete-location-custom-attributes) | ||
request. | ||
|
||
## Structure | ||
|
||
`Bulk Delete Location Custom Attributes Response Location Custom Attribute Delete Response` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `location_id` | `string` | Optional | The ID of the location associated with the custom attribute. | | ||
| `errors` | [`List of Error`](../../doc/models/error.md) | Optional | Errors that occurred while processing the individual LocationCustomAttributeDeleteRequest request | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"errors": [], | ||
"location_id": "L0TBCBTB7P8RQ" | ||
} | ||
``` | ||
|
38 changes: 38 additions & 0 deletions
38
doc/models/bulk-delete-location-custom-attributes-response.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
# Bulk Delete Location Custom Attributes Response | ||
|
||
Represents a [BulkDeleteLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-delete-location-custom-attributes) response, | ||
which contains a map of responses that each corresponds to an individual delete request. | ||
|
||
## Structure | ||
|
||
`Bulk Delete Location Custom Attributes Response` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `values` | [`Dict`](../../doc/models/bulk-delete-location-custom-attributes-response-location-custom-attribute-delete-response.md) | Required | A map of responses that correspond to individual delete requests. Each response has the<br>same key as the corresponding request. | | ||
| `errors` | [`List of Error`](../../doc/models/error.md) | Optional | Any errors that occurred during the request. | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"values": { | ||
"id1": { | ||
"errors": [], | ||
"location_id": "L0TBCBTB7P8RQ" | ||
}, | ||
"id2": { | ||
"errors": [], | ||
"location_id": "L9XMD04V3STJX" | ||
}, | ||
"id3": { | ||
"errors": [], | ||
"location_id": "L0TBCBTB7P8RQ" | ||
} | ||
} | ||
} | ||
``` | ||
|
35 changes: 35 additions & 0 deletions
35
...-location-custom-attributes-request-location-custom-attribute-upsert-request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
# Bulk Upsert Location Custom Attributes Request Location Custom Attribute Upsert Request | ||
|
||
Represents an individual upsert request in a [BulkUpsertLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-upsert-location-custom-attributes) | ||
request. An individual request contains a location ID, the custom attribute to create or update, | ||
and an optional idempotency key. | ||
|
||
## Structure | ||
|
||
`Bulk Upsert Location Custom Attributes Request Location Custom Attribute Upsert Request` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `location_id` | `string` | Required | The ID of the target [location](../../doc/models/location.md).<br>**Constraints**: *Minimum Length*: `1` | | ||
| `custom_attribute` | [`Custom Attribute`](../../doc/models/custom-attribute.md) | Required | A custom attribute value. Each custom attribute value has a corresponding<br>`CustomAttributeDefinition` object. | | ||
| `idempotency_key` | `string` | Optional | A unique identifier for this individual upsert request, used to ensure idempotency.<br>For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).<br>**Constraints**: *Maximum Length*: `45` | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"location_id": "location_id4", | ||
"custom_attribute": { | ||
"key": null, | ||
"value": null, | ||
"version": null, | ||
"visibility": null, | ||
"definition": null | ||
}, | ||
"idempotency_key": null | ||
} | ||
``` | ||
|
57 changes: 57 additions & 0 deletions
57
doc/models/bulk-upsert-location-custom-attributes-request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
# Bulk Upsert Location Custom Attributes Request | ||
|
||
Represents a [BulkUpsertLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-upsert-location-custom-attributes) request. | ||
|
||
## Structure | ||
|
||
`Bulk Upsert Location Custom Attributes Request` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `values` | [`Dict`](../../doc/models/bulk-upsert-location-custom-attributes-request-location-custom-attribute-upsert-request.md) | Required | A map containing 1 to 25 individual upsert requests. For each request, provide an<br>arbitrary ID that is unique for this `BulkUpsertLocationCustomAttributes` request and the<br>information needed to create or update a custom attribute. | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"values": { | ||
"key0": { | ||
"location_id": "location_id4", | ||
"custom_attribute": { | ||
"key": null, | ||
"value": null, | ||
"version": null, | ||
"visibility": null, | ||
"definition": null | ||
}, | ||
"idempotency_key": null | ||
}, | ||
"key1": { | ||
"location_id": "location_id5", | ||
"custom_attribute": { | ||
"key": null, | ||
"value": null, | ||
"version": null, | ||
"visibility": null, | ||
"definition": null | ||
}, | ||
"idempotency_key": null | ||
}, | ||
"key2": { | ||
"location_id": "location_id6", | ||
"custom_attribute": { | ||
"key": null, | ||
"value": null, | ||
"version": null, | ||
"visibility": null, | ||
"definition": null | ||
}, | ||
"idempotency_key": null | ||
} | ||
} | ||
} | ||
``` | ||
|
27 changes: 27 additions & 0 deletions
27
...ocation-custom-attributes-response-location-custom-attribute-upsert-response.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
# Bulk Upsert Location Custom Attributes Response Location Custom Attribute Upsert Response | ||
|
||
Represents a response for an individual upsert request in a [BulkUpsertLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-upsert-location-custom-attributes) operation. | ||
|
||
## Structure | ||
|
||
`Bulk Upsert Location Custom Attributes Response Location Custom Attribute Upsert Response` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `location_id` | `string` | Optional | The ID of the location associated with the custom attribute. | | ||
| `custom_attribute` | [`Custom Attribute`](../../doc/models/custom-attribute.md) | Optional | A custom attribute value. Each custom attribute value has a corresponding<br>`CustomAttributeDefinition` object. | | ||
| `errors` | [`List of Error`](../../doc/models/error.md) | Optional | Any errors that occurred while processing the individual request. | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"location_id": null, | ||
"custom_attribute": null, | ||
"errors": null | ||
} | ||
``` | ||
|
26 changes: 26 additions & 0 deletions
26
doc/models/bulk-upsert-location-custom-attributes-response.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
# Bulk Upsert Location Custom Attributes Response | ||
|
||
Represents a [BulkUpsertLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-upsert-location-custom-attributes) response, | ||
which contains a map of responses that each corresponds to an individual upsert request. | ||
|
||
## Structure | ||
|
||
`Bulk Upsert Location Custom Attributes Response` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `values` | [`Dict`](../../doc/models/bulk-upsert-location-custom-attributes-response-location-custom-attribute-upsert-response.md) | Optional | A map of responses that correspond to individual upsert requests. Each response has the<br>same ID as the corresponding request and contains either a `location_id` and `custom_attribute` or an `errors` field. | | ||
| `errors` | [`List of Error`](../../doc/models/error.md) | Optional | Any errors that occurred during the request. | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"values": null, | ||
"errors": null | ||
} | ||
``` | ||
|
30 changes: 30 additions & 0 deletions
30
doc/models/create-location-custom-attribute-definition-request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
# Create Location Custom Attribute Definition Request | ||
|
||
Represents a [CreateLocationCustomAttributeDefinition](../../doc/api/location-custom-attributes.md#create-location-custom-attribute-definition) request. | ||
|
||
## Structure | ||
|
||
`Create Location Custom Attribute Definition Request` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `custom_attribute_definition` | [`Custom Attribute Definition`](../../doc/models/custom-attribute-definition.md) | Required | Represents a definition for custom attribute values. A custom attribute definition<br>specifies the key, visibility, schema, and other properties for a custom attribute. | | ||
| `idempotency_key` | `string` | Optional | A unique identifier for this request, used to ensure idempotency. For more information,<br>see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).<br>**Constraints**: *Maximum Length*: `45` | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"custom_attribute_definition": { | ||
"description": "Bestselling item at location", | ||
"key": "bestseller", | ||
"name": "Bestseller", | ||
"schema": null, | ||
"visibility": "VISIBILITY_READ_WRITE_VALUES" | ||
} | ||
} | ||
``` | ||
|
34 changes: 34 additions & 0 deletions
34
doc/models/create-location-custom-attribute-definition-response.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
# Create Location Custom Attribute Definition Response | ||
|
||
Represents a [CreateLocationCustomAttributeDefinition](../../doc/api/location-custom-attributes.md#create-location-custom-attribute-definition) response. | ||
Either `custom_attribute_definition` or `errors` is present in the response. | ||
|
||
## Structure | ||
|
||
`Create Location Custom Attribute Definition Response` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `custom_attribute_definition` | [`Custom Attribute Definition`](../../doc/models/custom-attribute-definition.md) | Optional | Represents a definition for custom attribute values. A custom attribute definition<br>specifies the key, visibility, schema, and other properties for a custom attribute. | | ||
| `errors` | [`List of Error`](../../doc/models/error.md) | Optional | Any errors that occurred during the request. | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"custom_attribute_definition": { | ||
"created_at": "2022-12-02T19:06:36.559Z", | ||
"description": "Bestselling item at location", | ||
"key": "bestseller", | ||
"name": "Bestseller", | ||
"schema": null, | ||
"updated_at": "2022-12-02T19:06:36.559Z", | ||
"version": 1, | ||
"visibility": "VISIBILITY_READ_WRITE_VALUES" | ||
} | ||
} | ||
``` | ||
|
Oops, something went wrong.