Skip to content

Commit 82a5417

Browse files
author
autobot
committed
Generated PR for Release: 35.1.0.20240320
1 parent c4a8749 commit 82a5417

13 files changed

+52
-76
lines changed

doc/api/bookings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The required input must include the following:
8080

8181
- `Booking.location_id`
8282
- `Booking.start_at`
83-
- `Booking.team_member_id`
83+
- `Booking.AppointmentSegment.team_member_id`
8484
- `Booking.AppointmentSegment.service_variation_id`
8585
- `Booking.AppointmentSegment.service_variation_version`
8686

doc/api/labor.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -316,20 +316,20 @@ elif result.is_error():
316316

317317
Creates a new `Shift`.
318318

319-
A `Shift` represents a complete workday for a single employee.
319+
A `Shift` represents a complete workday for a single team member.
320320
You must provide the following values in your request to this
321321
endpoint:
322322

323323
- `location_id`
324-
- `employee_id`
324+
- `team_member_id`
325325
- `start_at`
326326

327327
An attempt to create a new `Shift` can result in a `BAD_REQUEST` error when:
328328

329-
- The `status` of the new `Shift` is `OPEN` and the employee has another
329+
- The `status` of the new `Shift` is `OPEN` and the team member has another
330330
shift with an `OPEN` status.
331331
- The `start_at` date is in the future.
332-
- The `start_at` or `end_at` date overlaps another shift for the same employee.
332+
- The `start_at` or `end_at` date overlaps another shift for the same team member.
333333
- The `Break` instances are set in the request and a break `start_at`
334334
is before the `Shift.start_at`, a break `end_at` is after
335335
the `Shift.end_at`, or both.
@@ -399,19 +399,19 @@ elif result.is_error():
399399
Returns a paginated list of `Shift` records for a business.
400400
The list to be returned can be filtered by:
401401

402-
- Location IDs.
403-
- Employee IDs.
404-
- Shift status (`OPEN` and `CLOSED`).
405-
- Shift start.
406-
- Shift end.
407-
- Workday details.
402+
- Location IDs
403+
- Team member IDs
404+
- Shift status (`OPEN` or `CLOSED`)
405+
- Shift start
406+
- Shift end
407+
- Workday details
408408

409409
The list can be sorted by:
410410

411-
- `start_at`.
412-
- `end_at`.
413-
- `created_at`.
414-
- `updated_at`.
411+
- `START_AT`
412+
- `END_AT`
413+
- `CREATED_AT`
414+
- `UPDATED_AT`
415415

416416
```python
417417
def search_shifts(self,

doc/client.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
55

66
| Parameter | Type | Description |
77
| --- | --- | --- |
8-
| `square_version` | `str` | Square Connect API versions<br>*Default*: `'2024-02-22'` |
8+
| `square_version` | `str` | Square Connect API versions<br>*Default*: `'2024-03-20'` |
99
| `custom_url` | `str` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'` |
1010
| `environment` | `string` | The API environment. <br> **Default: `production`** |
1111
| `http_client_instance` | `HttpClient` | The Http Client passed from the sdk user for making requests |
@@ -24,7 +24,7 @@ The API client can be initialized as follows:
2424

2525
```python
2626
client = Client(
27-
square_version='2024-02-22',
27+
square_version='2024-03-20',
2828
bearer_auth_credentials=BearerAuthCredentials(
2929
access_token='AccessToken'
3030
)
@@ -51,7 +51,7 @@ from square.http.auth.o_auth_2 import BearerAuthCredentials
5151
from square.client import Client
5252

5353
client = Client(
54-
square_version='2024-02-22',
54+
square_version='2024-03-20',
5555
bearer_auth_credentials=BearerAuthCredentials(
5656
access_token='AccessToken'
5757
)

doc/models/catalog-item-modifier-list-info.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ and specifies supported behaviors of the application.
1414
| --- | --- | --- | --- |
1515
| `modifier_list_id` | `str` | Required | The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`.<br>**Constraints**: *Minimum Length*: `1` |
1616
| `modifier_overrides` | [`List Catalog Modifier Override`](../../doc/models/catalog-modifier-override.md) | Optional | A set of `CatalogModifierOverride` objects that override whether a given `CatalogModifier` is enabled by default. |
17-
| `min_selected_modifiers` | `int` | Optional | If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`. |
18-
| `max_selected_modifiers` | `int` | Optional | If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`. |
17+
| `min_selected_modifiers` | `int` | Optional | If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`.<br>The default value is `-1`.<br><br>When `CatalogModifierList.selection_type` is `MULTIPLE`, `CatalogModifierListInfo.min_selected_modifiers=-1`<br>and `CatalogModifierListInfo.max_selected_modifier=-1` means that from zero to the maximum number of modifiers of<br>the `CatalogModifierList` can be selected from the `CatalogModifierList`.<br><br>When the `CatalogModifierList.selection_type` is `SINGLE`, `CatalogModifierListInfo.min_selected_modifiers=-1`<br>and `CatalogModifierListInfo.max_selected_modifier=-1` means that exactly one modifier must be present in<br>and can be selected from the `CatalogModifierList` |
18+
| `max_selected_modifiers` | `int` | Optional | If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`.<br>The default value is `-1`.<br><br>When `CatalogModifierList.selection_type` is `MULTIPLE`, `CatalogModifierListInfo.min_selected_modifiers=-1`<br>and `CatalogModifierListInfo.max_selected_modifier=-1` means that from zero to the maximum number of modifiers of<br>the `CatalogModifierList` can be selected from the `CatalogModifierList`.<br><br>When the `CatalogModifierList.selection_type` is `SINGLE`, `CatalogModifierListInfo.min_selected_modifiers=-1`<br>and `CatalogModifierListInfo.max_selected_modifier=-1` means that exactly one modifier must be present in<br>and can be selected from the `CatalogModifierList` |
1919
| `enabled` | `bool` | Optional | If `true`, enable this `CatalogModifierList`. The default value is `true`. |
2020
| `ordinal` | `int` | Optional | The position of this `CatalogItemModifierListInfo` object within the `modifier_list_info` list applied<br>to a `CatalogItem` instance. |
2121

doc/models/digital-wallet-details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Additional details about `WALLET` type payments. Contains only non-confidential
1212
| Name | Type | Tags | Description |
1313
| --- | --- | --- | --- |
1414
| `status` | `str` | Optional | The status of the `WALLET` payment. The status can be `AUTHORIZED`, `CAPTURED`, `VOIDED`, or<br>`FAILED`.<br>**Constraints**: *Maximum Length*: `50` |
15-
| `brand` | `str` | Optional | The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY` or `UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
15+
| `brand` | `str` | Optional | The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY`, `ALIPAY`,<br>`RAKUTEN_PAY`, `AU_PAY`, `D_BARAI`, `MERPAY`, `WECHAT_PAY` or `UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
1616
| `cash_app_details` | [`Cash App Details`](../../doc/models/cash-app-details.md) | Optional | Additional details about `WALLET` type payments with the `brand` of `CASH_APP`. |
1717

1818
## Example (as JSON)

doc/models/list-location-booking-profiles-response.md

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,20 @@
1717

1818
```json
1919
{
20+
"errors": [],
2021
"location_booking_profiles": [
2122
{
22-
"location_id": "location_id0",
23-
"booking_site_url": "booking_site_url2",
24-
"online_booking_enabled": false
23+
"booking_site_url": "https://squareup.com/book/LY6WNBPVM6VGV/testbusiness",
24+
"location_id": "LY6WNBPVM6VGV",
25+
"online_booking_enabled": true
2526
},
2627
{
27-
"location_id": "location_id0",
28-
"booking_site_url": "booking_site_url2",
29-
"online_booking_enabled": false
30-
},
31-
{
32-
"location_id": "location_id0",
33-
"booking_site_url": "booking_site_url2",
34-
"online_booking_enabled": false
28+
"location_id": "PYTRNBPVMJUPV",
29+
"online_booking_enabled": false,
30+
"booking_site_url": "booking_site_url2"
3531
}
3632
],
37-
"cursor": "cursor8",
38-
"errors": [
39-
{
40-
"category": "MERCHANT_SUBSCRIPTION_ERROR",
41-
"code": "MAP_KEY_LENGTH_TOO_LONG",
42-
"detail": "detail6",
43-
"field": "field4"
44-
},
45-
{
46-
"category": "MERCHANT_SUBSCRIPTION_ERROR",
47-
"code": "MAP_KEY_LENGTH_TOO_LONG",
48-
"detail": "detail6",
49-
"field": "field4"
50-
},
51-
{
52-
"category": "MERCHANT_SUBSCRIPTION_ERROR",
53-
"code": "MAP_KEY_LENGTH_TOO_LONG",
54-
"detail": "detail6",
55-
"field": "field4"
56-
}
57-
]
33+
"cursor": "cursor8"
5834
}
5935
```
6036

doc/models/tender-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Indicates a tender's type.
1717
| `SQUARE_GIFT_CARD` | A Square gift card. |
1818
| `NO_SALE` | This tender represents the register being opened for a "no sale" event. |
1919
| `BANK_ACCOUNT` | A bank account payment. |
20-
| `WALLET` | A payment from a digital wallet, e.g. Cash App.<br><br>Note: Some "digital wallets", including Google Pay and Apple Pay, facilitate<br>card payments. Those payments have the `CARD` type. |
20+
| `WALLET` | A payment from a digital wallet, e.g. Cash App, Paypay, Rakuten Pay,<br>Au Pay, D Barai, Merpay, Wechat Pay, Alipay.<br><br>Note: Some "digital wallets", including Google Pay and Apple Pay, facilitate<br>card payments. Those payments have the `CARD` type. |
2121
| `BUY_NOW_PAY_LATER` | A Buy Now Pay Later payment. |
2222
| `SQUARE_ACCOUNT` | A Square House Account payment. |
2323
| `OTHER` | A form of tender that does not match any other value. |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = ["setuptools>=61.0"]
44
[project]
55
name = "squareup"
66
description = "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management."
7-
version = "35.0.0.20240222"
7+
version = "35.1.0.20240320"
88
readme = "README.md"
99
requires-python = ">=3.7"
1010
authors = [{name = "Square Developer Platform", email = "[email protected]"}]

square/api/base_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class BaseApi(object):
2222

2323
@staticmethod
2424
def user_agent():
25-
return 'Square-Python-SDK/35.0.0.20240222 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
25+
return 'Square-Python-SDK/35.1.0.20240320 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
2626

2727
@staticmethod
2828
def user_agent_parameters():

square/api/bookings_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def create_booking(self,
110110
The required input must include the following:
111111
- `Booking.location_id`
112112
- `Booking.start_at`
113-
- `Booking.team_member_id`
113+
- `Booking.AppointmentSegment.team_member_id`
114114
- `Booking.AppointmentSegment.service_variation_id`
115115
- `Booking.AppointmentSegment.service_variation_version`
116116
To call this endpoint with buyer-level permissions, set

0 commit comments

Comments
 (0)