Skip to content

Commit edaa1a6

Browse files
author
autobot
committed
Generated PR for Release: 38.1.0.20240320
1 parent 7b417a2 commit edaa1a6

16 files changed

+119
-113
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ jobs:
5656
uses: "pascalgn/[email protected]"
5757
env:
5858
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
59-
MERGE_LABELS: "automerge,automerge-branch,automerge-author"
59+
MERGE_LABELS: "automerge,automerge-branch,automerge-author"

doc/api/bookings.md

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

8282
- `Booking.location_id`
8383
- `Booking.start_at`
84-
- `Booking.team_member_id`
84+
- `Booking.AppointmentSegment.team_member_id`
8585
- `Booking.AppointmentSegment.service_variation_id`
8686
- `Booking.AppointmentSegment.service_variation_version`
8787

doc/api/labor.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -323,20 +323,20 @@ laborApi.getEmployeeWageAsync(id).thenAccept(result -> {
323323

324324
Creates a new `Shift`.
325325

326-
A `Shift` represents a complete workday for a single employee.
326+
A `Shift` represents a complete workday for a single team member.
327327
You must provide the following values in your request to this
328328
endpoint:
329329

330330
- `location_id`
331-
- `employee_id`
331+
- `team_member_id`
332332
- `start_at`
333333

334334
An attempt to create a new `Shift` can result in a `BAD_REQUEST` error when:
335335

336-
- The `status` of the new `Shift` is `OPEN` and the employee has another
336+
- The `status` of the new `Shift` is `OPEN` and the team member has another
337337
shift with an `OPEN` status.
338338
- The `start_at` date is in the future.
339-
- The `start_at` or `end_at` date overlaps another shift for the same employee.
339+
- The `start_at` or `end_at` date overlaps another shift for the same team member.
340340
- The `Break` instances are set in the request and a break `start_at`
341341
is before the `Shift.start_at`, a break `end_at` is after
342342
the `Shift.end_at`, or both.
@@ -410,19 +410,19 @@ laborApi.createShiftAsync(body).thenAccept(result -> {
410410
Returns a paginated list of `Shift` records for a business.
411411
The list to be returned can be filtered by:
412412

413-
- Location IDs.
414-
- Employee IDs.
415-
- Shift status (`OPEN` and `CLOSED`).
416-
- Shift start.
417-
- Shift end.
418-
- Workday details.
413+
- Location IDs
414+
- Team member IDs
415+
- Shift status (`OPEN` or `CLOSED`)
416+
- Shift start
417+
- Shift end
418+
- Workday details
419419

420420
The list can be sorted by:
421421

422-
- `start_at`.
423-
- `end_at`.
424-
- `created_at`.
425-
- `updated_at`.
422+
- `START_AT`
423+
- `END_AT`
424+
- `CREATED_AT`
425+
- `UPDATED_AT`
426426

427427
```java
428428
CompletableFuture<SearchShiftsResponse> searchShiftsAsync(

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-
| `squareVersion` | `String` | Square Connect API versions<br>*Default*: `"2024-02-22"` |
8+
| `squareVersion` | `String` | Square Connect API versions<br>*Default*: `"2024-03-20"` |
99
| `customUrl` | `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
| `httpClientConfig` | [`ReadonlyHttpClientConfiguration`](http-client-configuration.md) | Http Client Configuration instance. |
@@ -19,7 +19,7 @@ The API client can be initialized as follows:
1919
SquareClient client = new SquareClient.Builder()
2020
.httpClientConfig(configBuilder -> configBuilder
2121
.timeout(0))
22-
.squareVersion("2024-02-22")
22+
.squareVersion("2024-03-20")
2323
.bearerAuthCredentials(new BearerAuthModel.Builder(
2424
"AccessToken"
2525
)
@@ -44,7 +44,7 @@ public class Program {
4444
SquareClient client = new SquareClient.Builder()
4545
.httpClientConfig(configBuilder -> configBuilder
4646
.timeout(0))
47-
.squareVersion("2024-02-22")
47+
.squareVersion("2024-03-20")
4848
.bearerAuthCredentials(new BearerAuthModel.Builder(
4949
"AccessToken"
5050
)

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
| `ModifierListId` | `String` | Required | The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`.<br>**Constraints**: *Minimum Length*: `1` | String getModifierListId() |
1616
| `ModifierOverrides` | [`List<CatalogModifierOverride>`](../../doc/models/catalog-modifier-override.md) | Optional | A set of `CatalogModifierOverride` objects that override whether a given `CatalogModifier` is enabled by default. | List<CatalogModifierOverride> getModifierOverrides() |
17-
| `MinSelectedModifiers` | `Integer` | Optional | If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`. | Integer getMinSelectedModifiers() |
18-
| `MaxSelectedModifiers` | `Integer` | Optional | If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`. | Integer getMaxSelectedModifiers() |
17+
| `MinSelectedModifiers` | `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` | Integer getMinSelectedModifiers() |
18+
| `MaxSelectedModifiers` | `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` | Integer getMaxSelectedModifiers() |
1919
| `Enabled` | `Boolean` | Optional | If `true`, enable this `CatalogModifierList`. The default value is `true`. | Boolean getEnabled() |
2020
| `Ordinal` | `Integer` | Optional | The position of this `CatalogItemModifierListInfo` object within the `modifier_list_info` list applied<br>to a `CatalogItem` instance. | Integer getOrdinal() |
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 | Getter |
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` | String getStatus() |
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` | String getBrand() |
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` | String getBrand() |
1616
| `CashAppDetails` | [`CashAppDetails`](../../doc/models/cash-app-details.md) | Optional | Additional details about `WALLET` type payments with the `brand` of `CASH_APP`. | CashAppDetails getCashAppDetails() |
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. |

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.squareup</groupId>
55
<artifactId>square</artifactId>
6-
<version>38.0.0.20240222</version>
6+
<version>38.1.0.20240320</version>
77
<packaging>jar</packaging>
88
<name>Square</name>
99
<description>Java client library for the Square API</description>

src/main/java/com/squareup/square/SquareClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public final class SquareClient implements SquareClientInterface {
153153

154154
private static final CompatibilityFactory compatibilityFactory = new CompatibilityFactoryImpl();
155155

156-
private static String userAgent = "Square-Java-SDK/38.0.0.20240222 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}";
156+
private static String userAgent = "Square-Java-SDK/38.1.0.20240320 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}";
157157

158158
/**
159159
* Current API environment.
@@ -714,7 +714,7 @@ public String getAccessToken() {
714714
* @return sdkVersion
715715
*/
716716
public String getSdkVersion() {
717-
return "38.0.0.20240222";
717+
return "38.1.0.20240320";
718718
}
719719

720720
/**
@@ -829,7 +829,7 @@ public static class Builder {
829829

830830
private Environment environment = Environment.PRODUCTION;
831831
private String customUrl = "https://connect.squareup.com";
832-
private String squareVersion = "2024-02-22";
832+
private String squareVersion = "2024-03-20";
833833
private HttpClient httpClient;
834834
private Headers additionalHeaders = new Headers();
835835
private String userAgentDetail = null;

0 commit comments

Comments
 (0)