Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated PR for Release: 35.0.0 #124

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions Square.Tests/ApiTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace Square
using APIMatic.Core.Types;
using NUnit.Framework;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Models;

Expand Down
2 changes: 1 addition & 1 deletion Square.Tests/LocationsApiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void SetUpDerived()

/// <summary>
/// Provides details about all of the seller's [locations](https://developer.squareup.com/docs/locations-api),
///including those with an inactive status..
///including those with an inactive status. Locations are listed alphabetically by `name`..
/// </summary>
/// <returns>A <see cref="Task"/> representing the asynchronous unit test.</returns>
[Test]
Expand Down
7 changes: 6 additions & 1 deletion Square.Tests/SanityTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using NUnit.Framework;
using Square.Apis;
using Square.Authentication;
using Square.Exceptions;
using Square.Models;
using System.IO;
Expand Down Expand Up @@ -105,7 +106,11 @@ public void TestV2APIException()
{
SquareClient badClient = new SquareClient.Builder()
.Environment(Environment.Sandbox)
.AccessToken("BAD_TOKEN")
.BearerAuthCredentials(
new BearerAuthModel.Builder(
"BAD_TOKEN"
)
.Build())
.Build();

var api = badClient.LocationsApi;
Expand Down
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", "{2f34cfc6-74b5-4071-8a47-71cd5d4160f9}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square", "Square/Square.csproj", "{25811638-c862-4541-80cc-d11218e1dc99}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square.Tests", "Square.Tests/Square.Tests.csproj", "{f4516c3c-2edf-467d-bcef-37b0aa7a34e5}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square.Tests", "Square.Tests/Square.Tests.csproj", "{2cdb1d52-711c-4821-90fe-c981c624bdcb}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2f34cfc6-74b5-4071-8a47-71cd5d4160f9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2f34cfc6-74b5-4071-8a47-71cd5d4160f9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2f34cfc6-74b5-4071-8a47-71cd5d4160f9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2f34cfc6-74b5-4071-8a47-71cd5d4160f9}.Release|Any CPU.Build.0 = Release|Any CPU
{f4516c3c-2edf-467d-bcef-37b0aa7a34e5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{f4516c3c-2edf-467d-bcef-37b0aa7a34e5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{f4516c3c-2edf-467d-bcef-37b0aa7a34e5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{f4516c3c-2edf-467d-bcef-37b0aa7a34e5}.Release|Any CPU.Build.0 = Release|Any CPU
{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
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
1 change: 0 additions & 1 deletion Square/Apis/ApplePayApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down
1 change: 0 additions & 1 deletion Square/Apis/BankAccountsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down
2 changes: 1 addition & 1 deletion Square/Apis/BaseApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal class BaseApi
private readonly GlobalConfiguration globalConfiguration;

/// <summary>
/// Initializes a new instance of the <see cref="BaseController"/> class.
/// Initializes a new instance of the <see cref="BaseApi"/> class.
/// </summary>
internal BaseApi(GlobalConfiguration config) => globalConfiguration = config;

Expand Down
1 change: 0 additions & 1 deletion Square/Apis/BookingCustomAttributesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down
1 change: 0 additions & 1 deletion Square/Apis/BookingsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down
1 change: 0 additions & 1 deletion Square/Apis/CardsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down
1 change: 0 additions & 1 deletion Square/Apis/CashDrawersApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down
1 change: 0 additions & 1 deletion Square/Apis/CatalogApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down
5 changes: 2 additions & 3 deletions Square/Apis/CheckoutApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down Expand Up @@ -189,7 +188,7 @@ public Models.UpdateMerchantSettingsResponse UpdateMerchantSettings(
/// <summary>
/// Lists all payment links.
/// </summary>
/// <param name="cursor">Optional parameter: A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for the original query. If a cursor is not provided, the endpoint returns the first page of the results. For more information, see [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)..</param>
/// <param name="cursor">Optional parameter: A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for the original query. If a cursor is not provided, the endpoint returns the first page of the results. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination)..</param>
/// <param name="limit">Optional parameter: A limit on the number of results to return per page. The limit is advisory and the implementation might return more or less results. If the supplied limit is negative, zero, or greater than the maximum limit of 1000, it is ignored. Default value: `100`.</param>
/// <returns>Returns the Models.ListPaymentLinksResponse response from the API call.</returns>
public Models.ListPaymentLinksResponse ListPaymentLinks(
Expand All @@ -200,7 +199,7 @@ public Models.ListPaymentLinksResponse ListPaymentLinks(
/// <summary>
/// Lists all payment links.
/// </summary>
/// <param name="cursor">Optional parameter: A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for the original query. If a cursor is not provided, the endpoint returns the first page of the results. For more information, see [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)..</param>
/// <param name="cursor">Optional parameter: A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for the original query. If a cursor is not provided, the endpoint returns the first page of the results. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination)..</param>
/// <param name="limit">Optional parameter: A limit on the number of results to return per page. The limit is advisory and the implementation might return more or less results. If the supplied limit is negative, zero, or greater than the maximum limit of 1000, it is ignored. Default value: `100`.</param>
/// <param name="cancellationToken"> cancellationToken. </param>
/// <returns>Returns the Models.ListPaymentLinksResponse response from the API call.</returns>
Expand Down
1 change: 0 additions & 1 deletion Square/Apis/CustomerCustomAttributesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down
1 change: 0 additions & 1 deletion Square/Apis/CustomerGroupsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down
1 change: 0 additions & 1 deletion Square/Apis/CustomerSegmentsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace Square.Apis
using APIMatic.Core.Utilities.Date.Xml;
using Newtonsoft.Json.Converters;
using Square;
using Square.Authentication;
using Square.Http.Client;
using Square.Utilities;
using System.Net.Http;
Expand Down
Loading
Loading