Skip to content

Commit be889da

Browse files
authored
Merge pull request #129 from square/release/36.1.0.20240320
Generated PR for Release: 36.1.0.20240320
2 parents 916438f + 36b5f80 commit be889da

14 files changed

+53
-76
lines changed

doc/api/bookings.md

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

8080
- `Booking.location_id`
8181
- `Booking.start_at`
82-
- `Booking.team_member_id`
82+
- `Booking.AppointmentSegment.team_member_id`
8383
- `Booking.AppointmentSegment.service_variation_id`
8484
- `Booking.AppointmentSegment.service_variation_version`
8585

doc/api/labor.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -314,20 +314,20 @@ end
314314

315315
Creates a new `Shift`.
316316

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

321321
- `location_id`
322-
- `employee_id`
322+
- `team_member_id`
323323
- `start_at`
324324

325325
An attempt to create a new `Shift` can result in a `BAD_REQUEST` error when:
326326

327-
- The `status` of the new `Shift` is `OPEN` and the employee has another
327+
- The `status` of the new `Shift` is `OPEN` and the team member has another
328328
shift with an `OPEN` status.
329329
- The `start_at` date is in the future.
330-
- The `start_at` or `end_at` date overlaps another shift for the same employee.
330+
- The `start_at` or `end_at` date overlaps another shift for the same team member.
331331
- The `Break` instances are set in the request and a break `start_at`
332332
is before the `Shift.start_at`, a break `end_at` is after
333333
the `Shift.end_at`, or both.
@@ -397,19 +397,19 @@ end
397397
Returns a paginated list of `Shift` records for a business.
398398
The list to be returned can be filtered by:
399399

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

407407
The list can be sorted by:
408408

409-
- `start_at`.
410-
- `end_at`.
411-
- `created_at`.
412-
- `updated_at`.
409+
- `START_AT`
410+
- `END_AT`
411+
- `CREATED_AT`
412+
- `UPDATED_AT`
413413

414414
```ruby
415415
def search_shifts(body:)

doc/client.md

Lines changed: 2 additions & 2 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` | `String` | Square Connect API versions<br>*Default*: `'2024-02-22'` |
8+
| `square_version` | `String` | Square Connect API versions<br>*Default*: `'2024-03-20'` |
99
| `custom_url` | `String` | 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
| `connection` | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
@@ -25,7 +25,7 @@ The API client can be initialized as follows:
2525

2626
```ruby
2727
client = Square::Client.new(
28-
square_version: '2024-02-22',
28+
square_version: '2024-03-20',
2929
bearer_auth_credentials: BearerAuthCredentials.new(
3030
access_token: 'AccessToken'
3131
),

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` | `String` | Required | The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`.<br>**Constraints**: *Minimum Length*: `1` |
1616
| `modifier_overrides` | [`Array<Catalog Modifier Override Hash>`](../../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` | `Integer` | Optional | If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`. |
18-
| `max_selected_modifiers` | `Integer` | Optional | If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`. |
17+
| `min_selected_modifiers` | `Integer` | 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` | `Integer` | 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` | `TrueClass \| FalseClass` | Optional | If `true`, enable this `CatalogModifierList`. The default value is `true`. |
2020
| `ordinal` | `Integer` | 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` | `String` | Optional | The status of the `WALLET` payment. The status can be `AUTHORIZED`, `CAPTURED`, `VOIDED`, or<br>`FAILED`.<br>**Constraints**: *Maximum Length*: `50` |
15-
| `brand` | `String` | Optional | The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY` or `UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
15+
| `brand` | `String` | 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 Hash`](../../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. |

lib/square/api/base_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class BaseApi
55
attr_accessor :config, :http_call_back
66

77
def self.user_agent
8-
'Square-Ruby-SDK/36.0.0.20240222 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
8+
'Square-Ruby-SDK/36.1.0.20240320 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
99
end
1010

1111
def self.user_agent_parameters

lib/square/api/bookings_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def list_bookings(limit: nil,
5858
# The required input must include the following:
5959
# - `Booking.location_id`
6060
# - `Booking.start_at`
61-
# - `Booking.team_member_id`
61+
# - `Booking.AppointmentSegment.team_member_id`
6262
# - `Booking.AppointmentSegment.service_variation_id`
6363
# - `Booking.AppointmentSegment.service_variation_version`
6464
# To call this endpoint with buyer-level permissions, set

lib/square/api/labor_api.rb

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -183,19 +183,20 @@ def get_employee_wage(id:)
183183
end
184184

185185
# Creates a new `Shift`.
186-
# A `Shift` represents a complete workday for a single employee.
186+
# A `Shift` represents a complete workday for a single team member.
187187
# You must provide the following values in your request to this
188188
# endpoint:
189189
# - `location_id`
190-
# - `employee_id`
190+
# - `team_member_id`
191191
# - `start_at`
192192
# An attempt to create a new `Shift` can result in a `BAD_REQUEST` error
193193
# when:
194-
# - The `status` of the new `Shift` is `OPEN` and the employee has another
194+
# - The `status` of the new `Shift` is `OPEN` and the team member has
195+
# another
195196
# shift with an `OPEN` status.
196197
# - The `start_at` date is in the future.
197-
# - The `start_at` or `end_at` date overlaps another shift for the same
198-
# employee.
198+
# - The `start_at` or `end_at` date overlaps another shift for the same team
199+
# member.
199200
# - The `Break` instances are set in the request and a break `start_at`
200201
# is before the `Shift.start_at`, a break `end_at` is after
201202
# the `Shift.end_at`, or both.
@@ -222,17 +223,17 @@ def create_shift(body:)
222223

223224
# Returns a paginated list of `Shift` records for a business.
224225
# The list to be returned can be filtered by:
225-
# - Location IDs.
226-
# - Employee IDs.
227-
# - Shift status (`OPEN` and `CLOSED`).
228-
# - Shift start.
229-
# - Shift end.
230-
# - Workday details.
226+
# - Location IDs
227+
# - Team member IDs
228+
# - Shift status (`OPEN` or `CLOSED`)
229+
# - Shift start
230+
# - Shift end
231+
# - Workday details
231232
# The list can be sorted by:
232-
# - `start_at`.
233-
# - `end_at`.
234-
# - `created_at`.
235-
# - `updated_at`.
233+
# - `START_AT`
234+
# - `END_AT`
235+
# - `CREATED_AT`
236+
# - `UPDATED_AT`
236237
# @param [SearchShiftsRequest] body Required parameter: An object containing
237238
# the fields to POST for the request. See the corresponding object
238239
# definition for field details.
@@ -355,7 +356,7 @@ def list_team_member_wages(team_member_id: nil,
355356
.execute
356357
end
357358

358-
# Returns a single `TeamMemberWage` specified by `id `.
359+
# Returns a single `TeamMemberWage` specified by `id`.
359360
# @param [String] id Required parameter: The UUID for the `TeamMemberWage`
360361
# being retrieved.
361362
# @return [GetTeamMemberWageResponse Hash] response from the API call

0 commit comments

Comments
 (0)