From edaa1a6c1850d382549862a8a87322a2da33837f Mon Sep 17 00:00:00 2001 From: autobot Date: Wed, 20 Mar 2024 16:44:57 +0000 Subject: [PATCH] Generated PR for Release: 38.1.0.20240320 --- .github/workflows/maven.yml | 2 +- doc/api/bookings.md | 2 +- doc/api/labor.md | 28 ++++++------ doc/client.md | 6 +-- doc/models/catalog-item-modifier-list-info.md | 4 +- doc/models/digital-wallet-details.md | 2 +- ...list-location-booking-profiles-response.md | 40 ++++------------- doc/models/tender-type.md | 2 +- pom.xml | 2 +- .../com/squareup/square/SquareClient.java | 6 +-- .../com/squareup/square/api/BookingsApi.java | 4 +- .../square/api/DefaultBookingsApi.java | 4 +- .../squareup/square/api/DefaultLaborApi.java | 44 +++++++++---------- .../com/squareup/square/api/LaborApi.java | 44 +++++++++---------- .../models/CatalogItemModifierListInfo.java | 36 +++++++++++++-- .../square/models/DigitalWalletDetails.java | 6 ++- 16 files changed, 119 insertions(+), 113 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2a12d74d..06e26ff4 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -56,4 +56,4 @@ jobs: uses: "pascalgn/automerge-action@v0.14.2" env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - MERGE_LABELS: "automerge,automerge-branch,automerge-author" + MERGE_LABELS: "automerge,automerge-branch,automerge-author" \ No newline at end of file diff --git a/doc/api/bookings.md b/doc/api/bookings.md index c0be9084..08f017de 100644 --- a/doc/api/bookings.md +++ b/doc/api/bookings.md @@ -81,7 +81,7 @@ The required input must include the following: - `Booking.location_id` - `Booking.start_at` -- `Booking.team_member_id` +- `Booking.AppointmentSegment.team_member_id` - `Booking.AppointmentSegment.service_variation_id` - `Booking.AppointmentSegment.service_variation_version` diff --git a/doc/api/labor.md b/doc/api/labor.md index 5e055d48..cb81bf69 100644 --- a/doc/api/labor.md +++ b/doc/api/labor.md @@ -323,20 +323,20 @@ laborApi.getEmployeeWageAsync(id).thenAccept(result -> { Creates a new `Shift`. -A `Shift` represents a complete workday for a single employee. +A `Shift` represents a complete workday for a single team member. You must provide the following values in your request to this endpoint: - `location_id` -- `employee_id` +- `team_member_id` - `start_at` An attempt to create a new `Shift` can result in a `BAD_REQUEST` error when: -- The `status` of the new `Shift` is `OPEN` and the employee has another +- The `status` of the new `Shift` is `OPEN` and the team member has another shift with an `OPEN` status. - The `start_at` date is in the future. -- The `start_at` or `end_at` date overlaps another shift for the same employee. +- The `start_at` or `end_at` date overlaps another shift for the same team member. - The `Break` instances are set in the request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is after the `Shift.end_at`, or both. @@ -410,19 +410,19 @@ laborApi.createShiftAsync(body).thenAccept(result -> { Returns a paginated list of `Shift` records for a business. The list to be returned can be filtered by: -- Location IDs. -- Employee IDs. -- Shift status (`OPEN` and `CLOSED`). -- Shift start. -- Shift end. -- Workday details. +- Location IDs +- Team member IDs +- Shift status (`OPEN` or `CLOSED`) +- Shift start +- Shift end +- Workday details The list can be sorted by: -- `start_at`. -- `end_at`. -- `created_at`. -- `updated_at`. +- `START_AT` +- `END_AT` +- `CREATED_AT` +- `UPDATED_AT` ```java CompletableFuture searchShiftsAsync( diff --git a/doc/client.md b/doc/client.md index 5d8c51b1..da121389 100644 --- a/doc/client.md +++ b/doc/client.md @@ -5,7 +5,7 @@ The following parameters are configurable for the API Client: | Parameter | Type | Description | | --- | --- | --- | -| `squareVersion` | `String` | Square Connect API versions
*Default*: `"2024-02-22"` | +| `squareVersion` | `String` | Square Connect API versions
*Default*: `"2024-03-20"` | | `customUrl` | `String` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`
*Default*: `"https://connect.squareup.com"` | | `environment` | `string` | The API environment.
**Default: `production`** | | `httpClientConfig` | [`ReadonlyHttpClientConfiguration`](http-client-configuration.md) | Http Client Configuration instance. | @@ -19,7 +19,7 @@ The API client can be initialized as follows: SquareClient client = new SquareClient.Builder() .httpClientConfig(configBuilder -> configBuilder .timeout(0)) - .squareVersion("2024-02-22") + .squareVersion("2024-03-20") .bearerAuthCredentials(new BearerAuthModel.Builder( "AccessToken" ) @@ -44,7 +44,7 @@ public class Program { SquareClient client = new SquareClient.Builder() .httpClientConfig(configBuilder -> configBuilder .timeout(0)) - .squareVersion("2024-02-22") + .squareVersion("2024-03-20") .bearerAuthCredentials(new BearerAuthModel.Builder( "AccessToken" ) diff --git a/doc/models/catalog-item-modifier-list-info.md b/doc/models/catalog-item-modifier-list-info.md index a9bc7ce5..b90c6232 100644 --- a/doc/models/catalog-item-modifier-list-info.md +++ b/doc/models/catalog-item-modifier-list-info.md @@ -14,8 +14,8 @@ and specifies supported behaviors of the application. | --- | --- | --- | --- | --- | | `ModifierListId` | `String` | Required | The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`.
**Constraints**: *Minimum Length*: `1` | String getModifierListId() | | `ModifierOverrides` | [`List`](../../doc/models/catalog-modifier-override.md) | Optional | A set of `CatalogModifierOverride` objects that override whether a given `CatalogModifier` is enabled by default. | List getModifierOverrides() | -| `MinSelectedModifiers` | `Integer` | Optional | If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`. | Integer getMinSelectedModifiers() | -| `MaxSelectedModifiers` | `Integer` | Optional | If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`. | Integer getMaxSelectedModifiers() | +| `MinSelectedModifiers` | `Integer` | Optional | If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`.
The default value is `-1`.

When `CatalogModifierList.selection_type` is `MULTIPLE`, `CatalogModifierListInfo.min_selected_modifiers=-1`
and `CatalogModifierListInfo.max_selected_modifier=-1` means that from zero to the maximum number of modifiers of
the `CatalogModifierList` can be selected from the `CatalogModifierList`.

When the `CatalogModifierList.selection_type` is `SINGLE`, `CatalogModifierListInfo.min_selected_modifiers=-1`
and `CatalogModifierListInfo.max_selected_modifier=-1` means that exactly one modifier must be present in
and can be selected from the `CatalogModifierList` | Integer getMinSelectedModifiers() | +| `MaxSelectedModifiers` | `Integer` | Optional | If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`.
The default value is `-1`.

When `CatalogModifierList.selection_type` is `MULTIPLE`, `CatalogModifierListInfo.min_selected_modifiers=-1`
and `CatalogModifierListInfo.max_selected_modifier=-1` means that from zero to the maximum number of modifiers of
the `CatalogModifierList` can be selected from the `CatalogModifierList`.

When the `CatalogModifierList.selection_type` is `SINGLE`, `CatalogModifierListInfo.min_selected_modifiers=-1`
and `CatalogModifierListInfo.max_selected_modifier=-1` means that exactly one modifier must be present in
and can be selected from the `CatalogModifierList` | Integer getMaxSelectedModifiers() | | `Enabled` | `Boolean` | Optional | If `true`, enable this `CatalogModifierList`. The default value is `true`. | Boolean getEnabled() | | `Ordinal` | `Integer` | Optional | The position of this `CatalogItemModifierListInfo` object within the `modifier_list_info` list applied
to a `CatalogItem` instance. | Integer getOrdinal() | diff --git a/doc/models/digital-wallet-details.md b/doc/models/digital-wallet-details.md index 085b698c..a977b477 100644 --- a/doc/models/digital-wallet-details.md +++ b/doc/models/digital-wallet-details.md @@ -12,7 +12,7 @@ Additional details about `WALLET` type payments. Contains only non-confidential | Name | Type | Tags | Description | Getter | | --- | --- | --- | --- | --- | | `Status` | `String` | Optional | The status of the `WALLET` payment. The status can be `AUTHORIZED`, `CAPTURED`, `VOIDED`, or
`FAILED`.
**Constraints**: *Maximum Length*: `50` | String getStatus() | -| `Brand` | `String` | Optional | The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY` or `UNKNOWN`.
**Constraints**: *Maximum Length*: `50` | String getBrand() | +| `Brand` | `String` | Optional | The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY`, `ALIPAY`,
`RAKUTEN_PAY`, `AU_PAY`, `D_BARAI`, `MERPAY`, `WECHAT_PAY` or `UNKNOWN`.
**Constraints**: *Maximum Length*: `50` | String getBrand() | | `CashAppDetails` | [`CashAppDetails`](../../doc/models/cash-app-details.md) | Optional | Additional details about `WALLET` type payments with the `brand` of `CASH_APP`. | CashAppDetails getCashAppDetails() | ## Example (as JSON) diff --git a/doc/models/list-location-booking-profiles-response.md b/doc/models/list-location-booking-profiles-response.md index e68c4004..40efbce8 100644 --- a/doc/models/list-location-booking-profiles-response.md +++ b/doc/models/list-location-booking-profiles-response.md @@ -17,44 +17,20 @@ ```json { + "errors": [], "location_booking_profiles": [ { - "location_id": "location_id0", - "booking_site_url": "booking_site_url2", - "online_booking_enabled": false + "booking_site_url": "https://squareup.com/book/LY6WNBPVM6VGV/testbusiness", + "location_id": "LY6WNBPVM6VGV", + "online_booking_enabled": true }, { - "location_id": "location_id0", - "booking_site_url": "booking_site_url2", - "online_booking_enabled": false - }, - { - "location_id": "location_id0", - "booking_site_url": "booking_site_url2", - "online_booking_enabled": false + "location_id": "PYTRNBPVMJUPV", + "online_booking_enabled": false, + "booking_site_url": "booking_site_url2" } ], - "cursor": "cursor8", - "errors": [ - { - "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "MAP_KEY_LENGTH_TOO_LONG", - "detail": "detail6", - "field": "field4" - }, - { - "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "MAP_KEY_LENGTH_TOO_LONG", - "detail": "detail6", - "field": "field4" - }, - { - "category": "MERCHANT_SUBSCRIPTION_ERROR", - "code": "MAP_KEY_LENGTH_TOO_LONG", - "detail": "detail6", - "field": "field4" - } - ] + "cursor": "cursor8" } ``` diff --git a/doc/models/tender-type.md b/doc/models/tender-type.md index 8b910bc9..61fe6932 100644 --- a/doc/models/tender-type.md +++ b/doc/models/tender-type.md @@ -17,7 +17,7 @@ Indicates a tender's type. | `SQUARE_GIFT_CARD` | A Square gift card. | | `NO_SALE` | This tender represents the register being opened for a "no sale" event. | | `BANK_ACCOUNT` | A bank account payment. | -| `WALLET` | A payment from a digital wallet, e.g. Cash App.

Note: Some "digital wallets", including Google Pay and Apple Pay, facilitate
card payments. Those payments have the `CARD` type. | +| `WALLET` | A payment from a digital wallet, e.g. Cash App, Paypay, Rakuten Pay,
Au Pay, D Barai, Merpay, Wechat Pay, Alipay.

Note: Some "digital wallets", including Google Pay and Apple Pay, facilitate
card payments. Those payments have the `CARD` type. | | `BUY_NOW_PAY_LATER` | A Buy Now Pay Later payment. | | `SQUARE_ACCOUNT` | A Square House Account payment. | | `OTHER` | A form of tender that does not match any other value. | diff --git a/pom.xml b/pom.xml index bb37f9ff..d76fe745 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.squareup square - 38.0.0.20240222 + 38.1.0.20240320 jar Square Java client library for the Square API diff --git a/src/main/java/com/squareup/square/SquareClient.java b/src/main/java/com/squareup/square/SquareClient.java index 7d5a4ee7..f91f167e 100644 --- a/src/main/java/com/squareup/square/SquareClient.java +++ b/src/main/java/com/squareup/square/SquareClient.java @@ -153,7 +153,7 @@ public final class SquareClient implements SquareClientInterface { private static final CompatibilityFactory compatibilityFactory = new CompatibilityFactoryImpl(); - private static String userAgent = "Square-Java-SDK/38.0.0.20240222 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}"; + private static String userAgent = "Square-Java-SDK/38.1.0.20240320 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}"; /** * Current API environment. @@ -714,7 +714,7 @@ public String getAccessToken() { * @return sdkVersion */ public String getSdkVersion() { - return "38.0.0.20240222"; + return "38.1.0.20240320"; } /** @@ -829,7 +829,7 @@ public static class Builder { private Environment environment = Environment.PRODUCTION; private String customUrl = "https://connect.squareup.com"; - private String squareVersion = "2024-02-22"; + private String squareVersion = "2024-03-20"; private HttpClient httpClient; private Headers additionalHeaders = new Headers(); private String userAgentDetail = null; diff --git a/src/main/java/com/squareup/square/api/BookingsApi.java b/src/main/java/com/squareup/square/api/BookingsApi.java index dbf82e37..bbf0811f 100644 --- a/src/main/java/com/squareup/square/api/BookingsApi.java +++ b/src/main/java/com/squareup/square/api/BookingsApi.java @@ -93,7 +93,7 @@ CompletableFuture listBookingsAsync( /** * Creates a booking. The required input must include the following: - `Booking.location_id` - - * `Booking.start_at` - `Booking.team_member_id` - + * `Booking.start_at` - `Booking.AppointmentSegment.team_member_id` - * `Booking.AppointmentSegment.service_variation_id` - * `Booking.AppointmentSegment.service_variation_version` To call this endpoint with buyer-level * permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with @@ -111,7 +111,7 @@ CreateBookingResponse createBooking( /** * Creates a booking. The required input must include the following: - `Booking.location_id` - - * `Booking.start_at` - `Booking.team_member_id` - + * `Booking.start_at` - `Booking.AppointmentSegment.team_member_id` - * `Booking.AppointmentSegment.service_variation_id` - * `Booking.AppointmentSegment.service_variation_version` To call this endpoint with buyer-level * permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with diff --git a/src/main/java/com/squareup/square/api/DefaultBookingsApi.java b/src/main/java/com/squareup/square/api/DefaultBookingsApi.java index df6f3d58..8b9ea9a4 100644 --- a/src/main/java/com/squareup/square/api/DefaultBookingsApi.java +++ b/src/main/java/com/squareup/square/api/DefaultBookingsApi.java @@ -163,7 +163,7 @@ private ApiCall prepareListBookingsRequest( /** * Creates a booking. The required input must include the following: - `Booking.location_id` - - * `Booking.start_at` - `Booking.team_member_id` - + * `Booking.start_at` - `Booking.AppointmentSegment.team_member_id` - * `Booking.AppointmentSegment.service_variation_id` - * `Booking.AppointmentSegment.service_variation_version` To call this endpoint with buyer-level * permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with @@ -183,7 +183,7 @@ public CreateBookingResponse createBooking( /** * Creates a booking. The required input must include the following: - `Booking.location_id` - - * `Booking.start_at` - `Booking.team_member_id` - + * `Booking.start_at` - `Booking.AppointmentSegment.team_member_id` - * `Booking.AppointmentSegment.service_variation_id` - * `Booking.AppointmentSegment.service_variation_version` To call this endpoint with buyer-level * permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with diff --git a/src/main/java/com/squareup/square/api/DefaultLaborApi.java b/src/main/java/com/squareup/square/api/DefaultLaborApi.java index 08f3ef5c..db21e8e5 100644 --- a/src/main/java/com/squareup/square/api/DefaultLaborApi.java +++ b/src/main/java/com/squareup/square/api/DefaultLaborApi.java @@ -490,14 +490,14 @@ private ApiCall prepareGetEmployeeWageReq } /** - * Creates a new `Shift`. A `Shift` represents a complete workday for a single employee. You + * Creates a new `Shift`. A `Shift` represents a complete workday for a single team member. You * must provide the following values in your request to this endpoint: - `location_id` - - * `employee_id` - `start_at` An attempt to create a new `Shift` can result in a `BAD_REQUEST` - * error when: - The `status` of the new `Shift` is `OPEN` and the employee has another shift - * with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` or `end_at` - * date overlaps another shift for the same employee. - The `Break` instances are set in the - * request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is after the - * `Shift.end_at`, or both. + * `team_member_id` - `start_at` An attempt to create a new `Shift` can result in a + * `BAD_REQUEST` error when: - The `status` of the new `Shift` is `OPEN` and the team member has + * another shift with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` + * or `end_at` date overlaps another shift for the same team member. - The `Break` instances are + * set in the request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is + * after the `Shift.end_at`, or both. * @param body Required parameter: An object containing the fields to POST for the request. * See the corresponding object definition for field details. * @return Returns the CreateShiftResponse response from the API call @@ -510,14 +510,14 @@ public CreateShiftResponse createShift( } /** - * Creates a new `Shift`. A `Shift` represents a complete workday for a single employee. You + * Creates a new `Shift`. A `Shift` represents a complete workday for a single team member. You * must provide the following values in your request to this endpoint: - `location_id` - - * `employee_id` - `start_at` An attempt to create a new `Shift` can result in a `BAD_REQUEST` - * error when: - The `status` of the new `Shift` is `OPEN` and the employee has another shift - * with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` or `end_at` - * date overlaps another shift for the same employee. - The `Break` instances are set in the - * request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is after the - * `Shift.end_at`, or both. + * `team_member_id` - `start_at` An attempt to create a new `Shift` can result in a + * `BAD_REQUEST` error when: - The `status` of the new `Shift` is `OPEN` and the team member has + * another shift with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` + * or `end_at` date overlaps another shift for the same team member. - The `Break` instances are + * set in the request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is + * after the `Shift.end_at`, or both. * @param body Required parameter: An object containing the fields to POST for the request. * See the corresponding object definition for field details. * @return Returns the CreateShiftResponse response from the API call @@ -561,9 +561,9 @@ private ApiCall prepareCreateShiftRequest( /** * Returns a paginated list of `Shift` records for a business. The list to be returned can be - * filtered by: - Location IDs. - Employee IDs. - Shift status (`OPEN` and `CLOSED`). - Shift - * start. - Shift end. - Workday details. The list can be sorted by: - `start_at`. - `end_at`. - - * `created_at`. - `updated_at`. + * filtered by: - Location IDs - Team member IDs - Shift status (`OPEN` or `CLOSED`) - Shift + * start - Shift end - Workday details The list can be sorted by: - `START_AT` - `END_AT` - + * `CREATED_AT` - `UPDATED_AT`. * @param body Required parameter: An object containing the fields to POST for the request. * See the corresponding object definition for field details. * @return Returns the SearchShiftsResponse response from the API call @@ -577,9 +577,9 @@ public SearchShiftsResponse searchShifts( /** * Returns a paginated list of `Shift` records for a business. The list to be returned can be - * filtered by: - Location IDs. - Employee IDs. - Shift status (`OPEN` and `CLOSED`). - Shift - * start. - Shift end. - Workday details. The list can be sorted by: - `start_at`. - `end_at`. - - * `created_at`. - `updated_at`. + * filtered by: - Location IDs - Team member IDs - Shift status (`OPEN` or `CLOSED`) - Shift + * start - Shift end - Workday details The list can be sorted by: - `START_AT` - `END_AT` - + * `CREATED_AT` - `UPDATED_AT`. * @param body Required parameter: An object containing the fields to POST for the request. * See the corresponding object definition for field details. * @return Returns the SearchShiftsResponse response from the API call @@ -867,7 +867,7 @@ private ApiCall prepareListTeamMember } /** - * Returns a single `TeamMemberWage` specified by `id `. + * Returns a single `TeamMemberWage` specified by `id`. * @param id Required parameter: The UUID for the `TeamMemberWage` being retrieved. * @return Returns the GetTeamMemberWageResponse response from the API call * @throws ApiException Represents error response from the server. @@ -879,7 +879,7 @@ public GetTeamMemberWageResponse getTeamMemberWage( } /** - * Returns a single `TeamMemberWage` specified by `id `. + * Returns a single `TeamMemberWage` specified by `id`. * @param id Required parameter: The UUID for the `TeamMemberWage` being retrieved. * @return Returns the GetTeamMemberWageResponse response from the API call */ diff --git a/src/main/java/com/squareup/square/api/LaborApi.java b/src/main/java/com/squareup/square/api/LaborApi.java index d471164b..4879df74 100644 --- a/src/main/java/com/squareup/square/api/LaborApi.java +++ b/src/main/java/com/squareup/square/api/LaborApi.java @@ -215,14 +215,14 @@ CompletableFuture getEmployeeWageAsync( final String id); /** - * Creates a new `Shift`. A `Shift` represents a complete workday for a single employee. You + * Creates a new `Shift`. A `Shift` represents a complete workday for a single team member. You * must provide the following values in your request to this endpoint: - `location_id` - - * `employee_id` - `start_at` An attempt to create a new `Shift` can result in a `BAD_REQUEST` - * error when: - The `status` of the new `Shift` is `OPEN` and the employee has another shift - * with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` or `end_at` - * date overlaps another shift for the same employee. - The `Break` instances are set in the - * request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is after the - * `Shift.end_at`, or both. + * `team_member_id` - `start_at` An attempt to create a new `Shift` can result in a + * `BAD_REQUEST` error when: - The `status` of the new `Shift` is `OPEN` and the team member has + * another shift with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` + * or `end_at` date overlaps another shift for the same team member. - The `Break` instances are + * set in the request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is + * after the `Shift.end_at`, or both. * @param body Required parameter: An object containing the fields to POST for the request. * See the corresponding object definition for field details. * @return Returns the CreateShiftResponse response from the API call @@ -233,14 +233,14 @@ CreateShiftResponse createShift( final CreateShiftRequest body) throws ApiException, IOException; /** - * Creates a new `Shift`. A `Shift` represents a complete workday for a single employee. You + * Creates a new `Shift`. A `Shift` represents a complete workday for a single team member. You * must provide the following values in your request to this endpoint: - `location_id` - - * `employee_id` - `start_at` An attempt to create a new `Shift` can result in a `BAD_REQUEST` - * error when: - The `status` of the new `Shift` is `OPEN` and the employee has another shift - * with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` or `end_at` - * date overlaps another shift for the same employee. - The `Break` instances are set in the - * request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is after the - * `Shift.end_at`, or both. + * `team_member_id` - `start_at` An attempt to create a new `Shift` can result in a + * `BAD_REQUEST` error when: - The `status` of the new `Shift` is `OPEN` and the team member has + * another shift with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` + * or `end_at` date overlaps another shift for the same team member. - The `Break` instances are + * set in the request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is + * after the `Shift.end_at`, or both. * @param body Required parameter: An object containing the fields to POST for the request. * See the corresponding object definition for field details. * @return Returns the CreateShiftResponse response from the API call @@ -250,9 +250,9 @@ CompletableFuture createShiftAsync( /** * Returns a paginated list of `Shift` records for a business. The list to be returned can be - * filtered by: - Location IDs. - Employee IDs. - Shift status (`OPEN` and `CLOSED`). - Shift - * start. - Shift end. - Workday details. The list can be sorted by: - `start_at`. - `end_at`. - - * `created_at`. - `updated_at`. + * filtered by: - Location IDs - Team member IDs - Shift status (`OPEN` or `CLOSED`) - Shift + * start - Shift end - Workday details The list can be sorted by: - `START_AT` - `END_AT` - + * `CREATED_AT` - `UPDATED_AT`. * @param body Required parameter: An object containing the fields to POST for the request. * See the corresponding object definition for field details. * @return Returns the SearchShiftsResponse response from the API call @@ -264,9 +264,9 @@ SearchShiftsResponse searchShifts( /** * Returns a paginated list of `Shift` records for a business. The list to be returned can be - * filtered by: - Location IDs. - Employee IDs. - Shift status (`OPEN` and `CLOSED`). - Shift - * start. - Shift end. - Workday details. The list can be sorted by: - `start_at`. - `end_at`. - - * `created_at`. - `updated_at`. + * filtered by: - Location IDs - Team member IDs - Shift status (`OPEN` or `CLOSED`) - Shift + * start - Shift end - Workday details The list can be sorted by: - `START_AT` - `END_AT` - + * `CREATED_AT` - `UPDATED_AT`. * @param body Required parameter: An object containing the fields to POST for the request. * See the corresponding object definition for field details. * @return Returns the SearchShiftsResponse response from the API call @@ -373,7 +373,7 @@ CompletableFuture listTeamMemberWagesAsync( final String cursor); /** - * Returns a single `TeamMemberWage` specified by `id `. + * Returns a single `TeamMemberWage` specified by `id`. * @param id Required parameter: The UUID for the `TeamMemberWage` being retrieved. * @return Returns the GetTeamMemberWageResponse response from the API call * @throws ApiException Represents error response from the server. @@ -383,7 +383,7 @@ GetTeamMemberWageResponse getTeamMemberWage( final String id) throws ApiException, IOException; /** - * Returns a single `TeamMemberWage` specified by `id `. + * Returns a single `TeamMemberWage` specified by `id`. * @param id Required parameter: The UUID for the `TeamMemberWage` being retrieved. * @return Returns the GetTeamMemberWageResponse response from the API call */ diff --git a/src/main/java/com/squareup/square/models/CatalogItemModifierListInfo.java b/src/main/java/com/squareup/square/models/CatalogItemModifierListInfo.java index a94d13f8..2826b707 100644 --- a/src/main/java/com/squareup/square/models/CatalogItemModifierListInfo.java +++ b/src/main/java/com/squareup/square/models/CatalogItemModifierListInfo.java @@ -107,7 +107,14 @@ public List getModifierOverrides() { /** * Internal Getter for MinSelectedModifiers. * If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this - * `CatalogModifierList`. + * `CatalogModifierList`. The default value is `-1`. When `CatalogModifierList.selection_type` + * is `MULTIPLE`, `CatalogModifierListInfo.min_selected_modifiers=-1` and + * `CatalogModifierListInfo.max_selected_modifier=-1` means that from zero to the maximum number + * of modifiers of the `CatalogModifierList` can be selected from the `CatalogModifierList`. + * When the `CatalogModifierList.selection_type` is `SINGLE`, + * `CatalogModifierListInfo.min_selected_modifiers=-1` and + * `CatalogModifierListInfo.max_selected_modifier=-1` means that exactly one modifier must be + * present in and can be selected from the `CatalogModifierList` * @return Returns the Internal Integer */ @JsonGetter("min_selected_modifiers") @@ -120,7 +127,14 @@ protected OptionalNullable internalGetMinSelectedModifiers() { /** * Getter for MinSelectedModifiers. * If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this - * `CatalogModifierList`. + * `CatalogModifierList`. The default value is `-1`. When `CatalogModifierList.selection_type` + * is `MULTIPLE`, `CatalogModifierListInfo.min_selected_modifiers=-1` and + * `CatalogModifierListInfo.max_selected_modifier=-1` means that from zero to the maximum number + * of modifiers of the `CatalogModifierList` can be selected from the `CatalogModifierList`. + * When the `CatalogModifierList.selection_type` is `SINGLE`, + * `CatalogModifierListInfo.min_selected_modifiers=-1` and + * `CatalogModifierListInfo.max_selected_modifier=-1` means that exactly one modifier must be + * present in and can be selected from the `CatalogModifierList` * @return Returns the Integer */ @JsonIgnore @@ -131,7 +145,14 @@ public Integer getMinSelectedModifiers() { /** * Internal Getter for MaxSelectedModifiers. * If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this - * `CatalogModifierList`. + * `CatalogModifierList`. The default value is `-1`. When `CatalogModifierList.selection_type` + * is `MULTIPLE`, `CatalogModifierListInfo.min_selected_modifiers=-1` and + * `CatalogModifierListInfo.max_selected_modifier=-1` means that from zero to the maximum number + * of modifiers of the `CatalogModifierList` can be selected from the `CatalogModifierList`. + * When the `CatalogModifierList.selection_type` is `SINGLE`, + * `CatalogModifierListInfo.min_selected_modifiers=-1` and + * `CatalogModifierListInfo.max_selected_modifier=-1` means that exactly one modifier must be + * present in and can be selected from the `CatalogModifierList` * @return Returns the Internal Integer */ @JsonGetter("max_selected_modifiers") @@ -144,7 +165,14 @@ protected OptionalNullable internalGetMaxSelectedModifiers() { /** * Getter for MaxSelectedModifiers. * If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this - * `CatalogModifierList`. + * `CatalogModifierList`. The default value is `-1`. When `CatalogModifierList.selection_type` + * is `MULTIPLE`, `CatalogModifierListInfo.min_selected_modifiers=-1` and + * `CatalogModifierListInfo.max_selected_modifier=-1` means that from zero to the maximum number + * of modifiers of the `CatalogModifierList` can be selected from the `CatalogModifierList`. + * When the `CatalogModifierList.selection_type` is `SINGLE`, + * `CatalogModifierListInfo.min_selected_modifiers=-1` and + * `CatalogModifierListInfo.max_selected_modifier=-1` means that exactly one modifier must be + * present in and can be selected from the `CatalogModifierList` * @return Returns the Integer */ @JsonIgnore diff --git a/src/main/java/com/squareup/square/models/DigitalWalletDetails.java b/src/main/java/com/squareup/square/models/DigitalWalletDetails.java index b1e3dc46..e47b6432 100644 --- a/src/main/java/com/squareup/square/models/DigitalWalletDetails.java +++ b/src/main/java/com/squareup/square/models/DigitalWalletDetails.java @@ -74,7 +74,8 @@ public String getStatus() { /** * Internal Getter for Brand. - * The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY` or `UNKNOWN`. + * The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY`, `ALIPAY`, + * `RAKUTEN_PAY`, `AU_PAY`, `D_BARAI`, `MERPAY`, `WECHAT_PAY` or `UNKNOWN`. * @return Returns the Internal String */ @JsonGetter("brand") @@ -86,7 +87,8 @@ protected OptionalNullable internalGetBrand() { /** * Getter for Brand. - * The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY` or `UNKNOWN`. + * The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY`, `ALIPAY`, + * `RAKUTEN_PAY`, `AU_PAY`, `D_BARAI`, `MERPAY`, `WECHAT_PAY` or `UNKNOWN`. * @return Returns the String */ @JsonIgnore