-
Notifications
You must be signed in to change notification settings - Fork 51
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 #103 from square/release/25.1.0.20230119
Generated PR for Release: 25.1.0.20230119
- Loading branch information
Showing
65 changed files
with
4,726 additions
and
10 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
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/apis/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 | ||
|
||
`BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `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}$` | getKey(): ?string | setKey(?string key): void | | ||
|
||
## 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/apis/location-custom-attributes.md#bulk-delete-location-custom-attributes) request. | ||
|
||
## Structure | ||
|
||
`BulkDeleteLocationCustomAttributesRequest` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `values` | [`array<string,BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest>`](../../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. | getValues(): array | setValues(array values): void | | ||
|
||
## 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/apis/location-custom-attributes.md#bulk-delete-location-custom-attributes) | ||
request. | ||
|
||
## Structure | ||
|
||
`BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `locationId` | `?string` | Optional | The ID of the location associated with the custom attribute. | getLocationId(): ?string | setLocationId(?string locationId): void | | ||
| `errors` | [`?(Error[])`](../../doc/models/error.md) | Optional | Errors that occurred while processing the individual LocationCustomAttributeDeleteRequest request | getErrors(): ?array | setErrors(?array errors): void | | ||
|
||
## 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/apis/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 | ||
|
||
`BulkDeleteLocationCustomAttributesResponse` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `values` | [`array<string,BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse>`](../../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. | getValues(): array | setValues(array values): void | | ||
| `errors` | [`?(Error[])`](../../doc/models/error.md) | Optional | Any errors that occurred during the request. | getErrors(): ?array | setErrors(?array errors): void | | ||
|
||
## 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/apis/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 | ||
|
||
`BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `locationId` | `string` | Required | The ID of the target [location](../../doc/models/location.md).<br>**Constraints**: *Minimum Length*: `1` | getLocationId(): string | setLocationId(string locationId): void | | ||
| `customAttribute` | [`CustomAttribute`](../../doc/models/custom-attribute.md) | Required | A custom attribute value. Each custom attribute value has a corresponding<br>`CustomAttributeDefinition` object. | getCustomAttribute(): CustomAttribute | setCustomAttribute(CustomAttribute customAttribute): void | | ||
| `idempotencyKey` | `?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` | getIdempotencyKey(): ?string | setIdempotencyKey(?string idempotencyKey): void | | ||
|
||
## 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/apis/location-custom-attributes.md#bulk-upsert-location-custom-attributes) request. | ||
|
||
## Structure | ||
|
||
`BulkUpsertLocationCustomAttributesRequest` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `values` | [`array<string,BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest>`](../../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. | getValues(): array | setValues(array values): void | | ||
|
||
## 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/apis/location-custom-attributes.md#bulk-upsert-location-custom-attributes) operation. | ||
|
||
## Structure | ||
|
||
`BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `locationId` | `?string` | Optional | The ID of the location associated with the custom attribute. | getLocationId(): ?string | setLocationId(?string locationId): void | | ||
| `customAttribute` | [`?CustomAttribute`](../../doc/models/custom-attribute.md) | Optional | A custom attribute value. Each custom attribute value has a corresponding<br>`CustomAttributeDefinition` object. | getCustomAttribute(): ?CustomAttribute | setCustomAttribute(?CustomAttribute customAttribute): void | | ||
| `errors` | [`?(Error[])`](../../doc/models/error.md) | Optional | Any errors that occurred while processing the individual request. | getErrors(): ?array | setErrors(?array errors): void | | ||
|
||
## 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/apis/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 | ||
|
||
`BulkUpsertLocationCustomAttributesResponse` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `values` | [`?array<string,BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse>`](../../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. | getValues(): ?array | setValues(?array values): void | | ||
| `errors` | [`?(Error[])`](../../doc/models/error.md) | Optional | Any errors that occurred during the request. | getErrors(): ?array | setErrors(?array errors): void | | ||
|
||
## 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/apis/location-custom-attributes.md#create-location-custom-attribute-definition) request. | ||
|
||
## Structure | ||
|
||
`CreateLocationCustomAttributeDefinitionRequest` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `customAttributeDefinition` | [`CustomAttributeDefinition`](../../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. | getCustomAttributeDefinition(): CustomAttributeDefinition | setCustomAttributeDefinition(CustomAttributeDefinition customAttributeDefinition): void | | ||
| `idempotencyKey` | `?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` | getIdempotencyKey(): ?string | setIdempotencyKey(?string idempotencyKey): void | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"custom_attribute_definition": { | ||
"description": "Bestselling item at location", | ||
"key": "bestseller", | ||
"name": "Bestseller", | ||
"schema": null, | ||
"visibility": "VISIBILITY_READ_WRITE_VALUES" | ||
} | ||
} | ||
``` | ||
|
Oops, something went wrong.