From ac8b5fd77104c2ad7bbccd6cab7920416481c316 Mon Sep 17 00:00:00 2001 From: autobot Date: Wed, 20 Mar 2024 16:44:55 +0000 Subject: [PATCH] Generated PR for Release: 35.1.0 --- Square.sln | 20 ++++----- Square/Apis/BookingsApi.cs | 4 +- Square/Apis/IBookingsApi.cs | 4 +- Square/Apis/ILaborApi.cs | 44 +++++++++---------- Square/Apis/LaborApi.cs | 44 +++++++++---------- Square/Models/CatalogItemModifierListInfo.cs | 14 ++++++ Square/Models/DigitalWalletDetails.cs | 3 +- Square/Square.csproj | 6 +-- Square/SquareClient.cs | 6 +-- 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 +- 16 files changed, 110 insertions(+), 119 deletions(-) diff --git a/Square.sln b/Square.sln index 9397cc34..55a35e79 100644 --- a/Square.sln +++ b/Square.sln @@ -2,9 +2,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26430.14 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square", "Square/Square.csproj", "{25811638-c862-4541-80cc-d11218e1dc99}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square", "Square/Square.csproj", "{3e3d86c1-1cc2-431c-bb34-9d1a88554c6e}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square.Tests", "Square.Tests/Square.Tests.csproj", "{2cdb1d52-711c-4821-90fe-c981c624bdcb}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square.Tests", "Square.Tests/Square.Tests.csproj", "{175ec7f2-668d-432c-934b-583b0830ab20}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -12,14 +12,14 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {25811638-c862-4541-80cc-d11218e1dc99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {25811638-c862-4541-80cc-d11218e1dc99}.Debug|Any CPU.Build.0 = Debug|Any CPU - {25811638-c862-4541-80cc-d11218e1dc99}.Release|Any CPU.ActiveCfg = Release|Any CPU - {25811638-c862-4541-80cc-d11218e1dc99}.Release|Any CPU.Build.0 = Release|Any CPU - {2cdb1d52-711c-4821-90fe-c981c624bdcb}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2cdb1d52-711c-4821-90fe-c981c624bdcb}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2cdb1d52-711c-4821-90fe-c981c624bdcb}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2cdb1d52-711c-4821-90fe-c981c624bdcb}.Release|Any CPU.Build.0 = Release|Any CPU + {3e3d86c1-1cc2-431c-bb34-9d1a88554c6e}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3e3d86c1-1cc2-431c-bb34-9d1a88554c6e}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3e3d86c1-1cc2-431c-bb34-9d1a88554c6e}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3e3d86c1-1cc2-431c-bb34-9d1a88554c6e}.Release|Any CPU.Build.0 = Release|Any CPU + {175ec7f2-668d-432c-934b-583b0830ab20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {175ec7f2-668d-432c-934b-583b0830ab20}.Debug|Any CPU.Build.0 = Debug|Any CPU + {175ec7f2-668d-432c-934b-583b0830ab20}.Release|Any CPU.ActiveCfg = Release|Any CPU + {175ec7f2-668d-432c-934b-583b0830ab20}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Square/Apis/BookingsApi.cs b/Square/Apis/BookingsApi.cs index bf993ef8..ec59432a 100644 --- a/Square/Apis/BookingsApi.cs +++ b/Square/Apis/BookingsApi.cs @@ -96,7 +96,7 @@ public Models.ListBookingsResponse ListBookings( /// 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`. /// To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. @@ -115,7 +115,7 @@ public Models.CreateBookingResponse CreateBooking( /// 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`. /// To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. diff --git a/Square/Apis/IBookingsApi.cs b/Square/Apis/IBookingsApi.cs index 9512a9e8..b7a36846 100644 --- a/Square/Apis/IBookingsApi.cs +++ b/Square/Apis/IBookingsApi.cs @@ -70,7 +70,7 @@ Models.ListBookingsResponse ListBookings( /// 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`. /// To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. @@ -88,7 +88,7 @@ Models.CreateBookingResponse CreateBooking( /// 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`. /// To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. diff --git a/Square/Apis/ILaborApi.cs b/Square/Apis/ILaborApi.cs index dc079b7e..791001d0 100644 --- a/Square/Apis/ILaborApi.cs +++ b/Square/Apis/ILaborApi.cs @@ -193,17 +193,17 @@ Models.GetEmployeeWageResponse GetEmployeeWage( /// /// 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. @@ -215,17 +215,17 @@ Models.CreateShiftResponse CreateShift( /// /// 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. @@ -241,16 +241,16 @@ Models.CreateShiftResponse CreateShift( /// 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`). + /// - 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`. /// /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.. /// Returns the Models.SearchShiftsResponse response from the API call. @@ -261,16 +261,16 @@ Models.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`). + /// - 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`. /// /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.. /// cancellationToken. @@ -372,7 +372,7 @@ Models.ListTeamMemberWagesResponse ListTeamMemberWages( CancellationToken cancellationToken = default); /// - /// Returns a single `TeamMemberWage` specified by `id `. + /// Returns a single `TeamMemberWage` specified by `id`. /// /// Required parameter: The UUID for the `TeamMemberWage` being retrieved.. /// Returns the Models.GetTeamMemberWageResponse response from the API call. @@ -380,7 +380,7 @@ Models.GetTeamMemberWageResponse GetTeamMemberWage( string id); /// - /// Returns a single `TeamMemberWage` specified by `id `. + /// Returns a single `TeamMemberWage` specified by `id`. /// /// Required parameter: The UUID for the `TeamMemberWage` being retrieved.. /// cancellationToken. diff --git a/Square/Apis/LaborApi.cs b/Square/Apis/LaborApi.cs index f1daa7ff..fdf99e4d 100644 --- a/Square/Apis/LaborApi.cs +++ b/Square/Apis/LaborApi.cs @@ -280,17 +280,17 @@ public Models.GetEmployeeWageResponse GetEmployeeWage( /// /// 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. @@ -303,17 +303,17 @@ public Models.CreateShiftResponse CreateShift( /// /// 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. @@ -339,16 +339,16 @@ public Models.CreateShiftResponse CreateShift( /// 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`). + /// - 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`. /// /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.. /// Returns the Models.SearchShiftsResponse response from the API call. @@ -360,16 +360,16 @@ public Models.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`). + /// - 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`. /// /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details.. /// cancellationToken. @@ -525,7 +525,7 @@ public Models.ListTeamMemberWagesResponse ListTeamMemberWages( .ExecuteAsync(cancellationToken).ConfigureAwait(false); /// - /// Returns a single `TeamMemberWage` specified by `id `. + /// Returns a single `TeamMemberWage` specified by `id`. /// /// Required parameter: The UUID for the `TeamMemberWage` being retrieved.. /// Returns the Models.GetTeamMemberWageResponse response from the API call. @@ -534,7 +534,7 @@ public Models.GetTeamMemberWageResponse GetTeamMemberWage( => CoreHelper.RunTask(GetTeamMemberWageAsync(id)); /// - /// Returns a single `TeamMemberWage` specified by `id `. + /// Returns a single `TeamMemberWage` specified by `id`. /// /// Required parameter: The UUID for the `TeamMemberWage` being retrieved.. /// cancellationToken. diff --git a/Square/Models/CatalogItemModifierListInfo.cs b/Square/Models/CatalogItemModifierListInfo.cs index a703ba30..5a77fd82 100644 --- a/Square/Models/CatalogItemModifierListInfo.cs +++ b/Square/Models/CatalogItemModifierListInfo.cs @@ -108,12 +108,26 @@ internal CatalogItemModifierListInfo(Dictionary shouldSerialize, /// /// 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` /// [JsonProperty("min_selected_modifiers")] public int? MinSelectedModifiers { get; } /// /// 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` /// [JsonProperty("max_selected_modifiers")] public int? MaxSelectedModifiers { get; } diff --git a/Square/Models/DigitalWalletDetails.cs b/Square/Models/DigitalWalletDetails.cs index c7b86efe..6c23b680 100644 --- a/Square/Models/DigitalWalletDetails.cs +++ b/Square/Models/DigitalWalletDetails.cs @@ -69,7 +69,8 @@ internal DigitalWalletDetails(Dictionary shouldSerialize, public string Status { get; } /// - /// 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`. /// [JsonProperty("brand")] public string Brand { get; } diff --git a/Square/Square.csproj b/Square/Square.csproj index 0b95e422..4f63ed07 100644 --- a/Square/Square.csproj +++ b/Square/Square.csproj @@ -4,13 +4,13 @@ netstandard2.0 Square - 35.0.0.0 + 35.1.0.0 Square Developer Platform Square Developer Platform Square Copyright © 2019 - 35.0.0.0 - 35.0.0.0 + 35.1.0.0 + 35.1.0.0 .NET client library for the Square API 7.3 true diff --git a/Square/SquareClient.cs b/Square/SquareClient.cs index d18aa95f..8cd068d8 100644 --- a/Square/SquareClient.cs +++ b/Square/SquareClient.cs @@ -43,7 +43,7 @@ public sealed class SquareClient : ISquareClient }; private readonly GlobalConfiguration globalConfiguration; - private const string userAgent = "Square-DotNet-SDK/35.0.0 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}"; + private const string userAgent = "Square-DotNet-SDK/35.1.0 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}"; private readonly HttpCallBack httpCallBack; private readonly IDictionary> additionalHeaders; private readonly Lazy mobileAuthorization; @@ -420,7 +420,7 @@ private SquareClient( /// /// Gets the current version of the SDK. /// - public string SdkVersion => "35.0.0"; + public string SdkVersion => "35.1.0"; /// /// Gets the configuration of the Http Client associated with this client. @@ -578,7 +578,7 @@ private void SetupAdditionalHeaders(AdditionalHeaderParams additionalHeaderParam /// public class Builder { - private string squareVersion = "2024-02-22"; + private string squareVersion = "2024-03-20"; private string userAgentDetail = null; private Environment environment = Square.Environment.Production; private string customUrl = "https://connect.squareup.com"; diff --git a/doc/api/bookings.md b/doc/api/bookings.md index 1dcd5901..5d9f0740 100644 --- a/doc/api/bookings.md +++ b/doc/api/bookings.md @@ -82,7 +82,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 614d291f..f298d4f9 100644 --- a/doc/api/labor.md +++ b/doc/api/labor.md @@ -330,20 +330,20 @@ catch (ApiException e) 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. @@ -423,19 +423,19 @@ catch (ApiException e) 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` ```csharp SearchShiftsAsync( diff --git a/doc/client.md b/doc/client.md index 3e02450b..3eb1224d 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`** | | `Timeout` | `TimeSpan` | Http client timeout.
*Default*: `TimeSpan.FromSeconds(60)` | @@ -21,7 +21,7 @@ Square.SquareClient client = new Square.SquareClient.Builder() "AccessToken" ) .Build()) - .SquareVersion("2024-02-22") + .SquareVersion("2024-03-20") .Environment(Square.Environment.Production) .CustomUrl("https://connect.squareup.com") .Build(); @@ -49,7 +49,7 @@ namespace Testing "AccessToken" ) .Build()) - .SquareVersion("2024-02-22") + .SquareVersion("2024-03-20") .Build(); ILocationsApi locationsApi = client.LocationsApi; diff --git a/doc/models/catalog-item-modifier-list-info.md b/doc/models/catalog-item-modifier-list-info.md index fea629aa..e8723b80 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` | | `ModifierOverrides` | [`IList`](../../doc/models/catalog-modifier-override.md) | Optional | A set of `CatalogModifierOverride` objects that override whether a given `CatalogModifier` is enabled by default. | -| `MinSelectedModifiers` | `int?` | Optional | If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`. | -| `MaxSelectedModifiers` | `int?` | Optional | If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`. | +| `MinSelectedModifiers` | `int?` | 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` | +| `MaxSelectedModifiers` | `int?` | 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` | | `Enabled` | `bool?` | Optional | If `true`, enable this `CatalogModifierList`. The default value is `true`. | | `Ordinal` | `int?` | Optional | The position of this `CatalogItemModifierListInfo` object within the `modifier_list_info` list applied
to a `CatalogItem` instance. | diff --git a/doc/models/digital-wallet-details.md b/doc/models/digital-wallet-details.md index 8d854acf..3d4b7c15 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 | | --- | --- | --- | --- | | `Status` | `string` | Optional | The status of the `WALLET` payment. The status can be `AUTHORIZED`, `CAPTURED`, `VOIDED`, or
`FAILED`.
**Constraints**: *Maximum Length*: `50` | -| `Brand` | `string` | Optional | The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY` or `UNKNOWN`.
**Constraints**: *Maximum Length*: `50` | +| `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` | | `CashAppDetails` | [`CashAppDetails`](../../doc/models/cash-app-details.md) | Optional | Additional details about `WALLET` type payments with the `brand` of `CASH_APP`. | ## Example (as JSON) diff --git a/doc/models/list-location-booking-profiles-response.md b/doc/models/list-location-booking-profiles-response.md index e5497d50..ad89c7f1 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 4deb583e..6771990f 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. |