Skip to content

Commit

Permalink
Merge pull request #125 from square/release/35.1.0
Browse files Browse the repository at this point in the history
Generated PR for Release: 35.1.0
  • Loading branch information
dotspencer authored Mar 20, 2024
2 parents 2169b87 + ac8b5fd commit 1872d32
Show file tree
Hide file tree
Showing 16 changed files with 110 additions and 119 deletions.
20 changes: 10 additions & 10 deletions Square.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ 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
Debug|Any CPU = Debug|Any CPU
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
Expand Down
4 changes: 2 additions & 2 deletions Square/Apis/BookingsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions Square/Apis/IBookingsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
44 changes: 22 additions & 22 deletions Square/Apis/ILaborApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,17 @@ Models.GetEmployeeWageResponse GetEmployeeWage(

/// <summary>
/// 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.
Expand All @@ -215,17 +215,17 @@ Models.CreateShiftResponse CreateShift(

/// <summary>
/// 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.
Expand All @@ -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`.
/// </summary>
/// <param name="body">Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..</param>
/// <returns>Returns the Models.SearchShiftsResponse response from the API call.</returns>
Expand All @@ -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`.
/// </summary>
/// <param name="body">Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..</param>
/// <param name="cancellationToken"> cancellationToken. </param>
Expand Down Expand Up @@ -372,15 +372,15 @@ Models.ListTeamMemberWagesResponse ListTeamMemberWages(
CancellationToken cancellationToken = default);

/// <summary>
/// Returns a single `TeamMemberWage` specified by `id `.
/// Returns a single `TeamMemberWage` specified by `id`.
/// </summary>
/// <param name="id">Required parameter: The UUID for the `TeamMemberWage` being retrieved..</param>
/// <returns>Returns the Models.GetTeamMemberWageResponse response from the API call.</returns>
Models.GetTeamMemberWageResponse GetTeamMemberWage(
string id);

/// <summary>
/// Returns a single `TeamMemberWage` specified by `id `.
/// Returns a single `TeamMemberWage` specified by `id`.
/// </summary>
/// <param name="id">Required parameter: The UUID for the `TeamMemberWage` being retrieved..</param>
/// <param name="cancellationToken"> cancellationToken. </param>
Expand Down
44 changes: 22 additions & 22 deletions Square/Apis/LaborApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,17 +280,17 @@ public Models.GetEmployeeWageResponse GetEmployeeWage(

/// <summary>
/// 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.
Expand All @@ -303,17 +303,17 @@ public Models.CreateShiftResponse CreateShift(

/// <summary>
/// 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.
Expand All @@ -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`.
/// </summary>
/// <param name="body">Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..</param>
/// <returns>Returns the Models.SearchShiftsResponse response from the API call.</returns>
Expand All @@ -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`.
/// </summary>
/// <param name="body">Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..</param>
/// <param name="cancellationToken"> cancellationToken. </param>
Expand Down Expand Up @@ -525,7 +525,7 @@ public Models.ListTeamMemberWagesResponse ListTeamMemberWages(
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Returns a single `TeamMemberWage` specified by `id `.
/// Returns a single `TeamMemberWage` specified by `id`.
/// </summary>
/// <param name="id">Required parameter: The UUID for the `TeamMemberWage` being retrieved..</param>
/// <returns>Returns the Models.GetTeamMemberWageResponse response from the API call.</returns>
Expand All @@ -534,7 +534,7 @@ public Models.GetTeamMemberWageResponse GetTeamMemberWage(
=> CoreHelper.RunTask(GetTeamMemberWageAsync(id));

/// <summary>
/// Returns a single `TeamMemberWage` specified by `id `.
/// Returns a single `TeamMemberWage` specified by `id`.
/// </summary>
/// <param name="id">Required parameter: The UUID for the `TeamMemberWage` being retrieved..</param>
/// <param name="cancellationToken"> cancellationToken. </param>
Expand Down
14 changes: 14 additions & 0 deletions Square/Models/CatalogItemModifierListInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,26 @@ internal CatalogItemModifierListInfo(Dictionary<string, bool> shouldSerialize,

/// <summary>
/// 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`
/// </summary>
[JsonProperty("min_selected_modifiers")]
public int? MinSelectedModifiers { get; }

/// <summary>
/// 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`
/// </summary>
[JsonProperty("max_selected_modifiers")]
public int? MaxSelectedModifiers { get; }
Expand Down
3 changes: 2 additions & 1 deletion Square/Models/DigitalWalletDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ internal DigitalWalletDetails(Dictionary<string, bool> shouldSerialize,
public string Status { get; }

/// <summary>
/// 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`.
/// </summary>
[JsonProperty("brand")]
public string Brand { get; }
Expand Down
6 changes: 3 additions & 3 deletions Square/Square.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Square</AssemblyName>
<Version>35.0.0.0</Version>
<Version>35.1.0.0</Version>
<Authors>Square Developer Platform</Authors>
<Owners>Square Developer Platform</Owners>
<Product>Square</Product>
<Copyright>Copyright © 2019</Copyright>
<AssemblyVersion>35.0.0.0</AssemblyVersion>
<FileVersion>35.0.0.0</FileVersion>
<AssemblyVersion>35.1.0.0</AssemblyVersion>
<FileVersion>35.1.0.0</FileVersion>
<Description>.NET client library for the Square API</Description>
<LangVersion>7.3</LangVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
Expand Down
Loading

0 comments on commit 1872d32

Please sign in to comment.