You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/client.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
5
5
6
6
| Parameter | Type | Description |
7
7
| --- | --- | --- |
8
-
|`square_version`|`String`| Square Connect API versions<br>*Default*: `'2022-12-14'`|
8
+
|`square_version`|`String`| Square Connect API versions<br>*Default*: `'2023-01-19'`|
9
9
|`access_token`|`String`| The OAuth 2.0 Access Token to use for API requests. |
10
10
|`custom_url`|`String`| Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'`|
11
11
|`environment`|`string`| The API environment. <br> **Default: `production`**|
@@ -24,7 +24,7 @@ The API client can be initialized as follows:
24
24
25
25
```ruby
26
26
client =Square::Client.new(
27
-
square_version:'2022-12-14',
27
+
square_version:'2023-01-19',
28
28
access_token:'AccessToken',
29
29
environment:'production',
30
30
custom_url:'https://connect.squareup.com',
@@ -97,6 +97,7 @@ The gateway for the SDK. This class acts as a factory for the Apis and also hold
Copy file name to clipboardExpand all lines: doc/models/break-type.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ instances on a `Shift`.
15
15
|`id`|`String`| Optional | The UUID for this object.<br>**Constraints**: *Maximum Length*: `255`|
16
16
|`location_id`|`String`| Required | The ID of the business location this type of break applies to.<br>**Constraints**: *Minimum Length*: `1`|
17
17
|`break_name`|`String`| Required | A human-readable name for this type of break. The name is displayed to<br>employees in Square products.<br>**Constraints**: *Minimum Length*: `1`|
18
-
|`expected_duration`|`String`| Required | Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of<br>this break. Precision less than minutes is truncated.<br>**Constraints**: *Minimum Length*: `1`|
18
+
|`expected_duration`|`String`| Required | Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of<br>this break. Precision less than minutes is truncated.<br><br>Example for break expected duration of 15 minutes: T15M<br>**Constraints**: *Minimum Length*: `1`|
19
19
|`is_paid`|`TrueClass\|FalseClass`| Required | Whether this break counts towards time worked for compensation<br>purposes. |
20
20
|`version`|`Integer`| Optional | Used for resolving concurrency issues. The request fails if the version<br>provided does not match the server version at the time of the request. If a value is not<br>provided, Square's servers execute a "blind" write; potentially<br>overwriting another writer's data. |
21
21
|`created_at`|`String`| Optional | A read-only timestamp in RFC 3339 format. |
Represents an individual delete request in a [BulkDeleteLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-delete-location-custom-attributes)
5
+
request. An individual request contains an optional ID of the associated custom attribute definition
6
+
and optional key of the associated custom attribute definition.
|`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}$`|
Represents a [BulkDeleteLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-delete-location-custom-attributes) request.
5
+
6
+
## Structure
7
+
8
+
`Bulk Delete Location Custom Attributes Request`
9
+
10
+
## Fields
11
+
12
+
| Name | Type | Tags | Description |
13
+
| --- | --- | --- | --- |
14
+
|`values`|[`Hash of Bulk Delete Location Custom Attributes Request Location Custom Attribute Delete Request Hash`](../../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. |
Represents an individual delete response in a [BulkDeleteLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-delete-location-custom-attributes)
|`location_id`|`String`| Optional | The ID of the location associated with the custom attribute. |
16
+
|`errors`|[`Array<Error Hash>`](../../doc/models/error.md)| Optional | Errors that occurred while processing the individual LocationCustomAttributeDeleteRequest request |
Represents a [BulkDeleteLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-delete-location-custom-attributes) response,
5
+
which contains a map of responses that each corresponds to an individual delete request.
6
+
7
+
## Structure
8
+
9
+
`Bulk Delete Location Custom Attributes Response`
10
+
11
+
## Fields
12
+
13
+
| Name | Type | Tags | Description |
14
+
| --- | --- | --- | --- |
15
+
|`values`|[`Hash of Bulk Delete Location Custom Attributes Response Location Custom Attribute Delete Response Hash`](../../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. |
16
+
|`errors`|[`Array<Error Hash>`](../../doc/models/error.md)| Optional | Any errors that occurred during the request. |
Represents an individual upsert request in a [BulkUpsertLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-upsert-location-custom-attributes)
5
+
request. An individual request contains a location ID, the custom attribute to create or update,
|`location_id`|`String`| Required | The ID of the target [location](../../doc/models/location.md).<br>**Constraints**: *Minimum Length*: `1`|
17
+
|`custom_attribute`|[`Custom Attribute Hash`](../../doc/models/custom-attribute.md)| Required | A custom attribute value. Each custom attribute value has a corresponding<br>`CustomAttributeDefinition` object. |
18
+
|`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`|
Represents a [BulkUpsertLocationCustomAttributes](../../doc/api/location-custom-attributes.md#bulk-upsert-location-custom-attributes) request.
5
+
6
+
## Structure
7
+
8
+
`Bulk Upsert Location Custom Attributes Request`
9
+
10
+
## Fields
11
+
12
+
| Name | Type | Tags | Description |
13
+
| --- | --- | --- | --- |
14
+
|`values`|[`Hash of Bulk Upsert Location Custom Attributes Request Location Custom Attribute Upsert Request Hash`](../../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. |
0 commit comments