Skip to content

Commit

Permalink
Merge pull request #131 from square/release/38.0.0
Browse files Browse the repository at this point in the history
Generated PR for Release: 38.0.0
  • Loading branch information
Esawyer25 authored Aug 21, 2024
2 parents 729816a + 913a6e1 commit 47e6b57
Show file tree
Hide file tree
Showing 45 changed files with 596 additions and 178 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", "{90bb2cf4-19be-4e65-b4c9-6c820facdc83}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square", "Square/Square.csproj", "{6730d256-edd1-492a-bb9d-66797499d8e4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square.Tests", "Square.Tests/Square.Tests.csproj", "{0594486c-0de1-4568-83dd-2ddb85e6804f}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square.Tests", "Square.Tests/Square.Tests.csproj", "{83c01d2f-ede8-4e26-b797-aaf72b2e4d70}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{90bb2cf4-19be-4e65-b4c9-6c820facdc83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90bb2cf4-19be-4e65-b4c9-6c820facdc83}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90bb2cf4-19be-4e65-b4c9-6c820facdc83}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90bb2cf4-19be-4e65-b4c9-6c820facdc83}.Release|Any CPU.Build.0 = Release|Any CPU
{0594486c-0de1-4568-83dd-2ddb85e6804f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0594486c-0de1-4568-83dd-2ddb85e6804f}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0594486c-0de1-4568-83dd-2ddb85e6804f}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0594486c-0de1-4568-83dd-2ddb85e6804f}.Release|Any CPU.Build.0 = Release|Any CPU
{6730d256-edd1-492a-bb9d-66797499d8e4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6730d256-edd1-492a-bb9d-66797499d8e4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6730d256-edd1-492a-bb9d-66797499d8e4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6730d256-edd1-492a-bb9d-66797499d8e4}.Release|Any CPU.Build.0 = Release|Any CPU
{83c01d2f-ede8-4e26-b797-aaf72b2e4d70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{83c01d2f-ede8-4e26-b797-aaf72b2e4d70}.Debug|Any CPU.Build.0 = Debug|Any CPU
{83c01d2f-ede8-4e26-b797-aaf72b2e4d70}.Release|Any CPU.ActiveCfg = Release|Any CPU
{83c01d2f-ede8-4e26-b797-aaf72b2e4d70}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
4 changes: 2 additions & 2 deletions Square/Apis/BookingCustomAttributesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public Models.ListBookingCustomAttributesResponse ListBookingCustomAttributes(
.Template(_template => _template.Setup("booking_id", bookingId))
.Query(_query => _query.Setup("limit", limit))
.Query(_query => _query.Setup("cursor", cursor))
.Query(_query => _query.Setup("with_definitions", (withDefinitions != null) ? withDefinitions : false))))
.Query(_query => _query.Setup("with_definitions", withDefinitions ?? false))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
Expand Down Expand Up @@ -421,7 +421,7 @@ public Models.RetrieveBookingCustomAttributeResponse RetrieveBookingCustomAttrib
.Parameters(_parameters => _parameters
.Template(_template => _template.Setup("booking_id", bookingId))
.Template(_template => _template.Setup("key", key))
.Query(_query => _query.Setup("with_definition", (withDefinition != null) ? withDefinition : false))
.Query(_query => _query.Setup("with_definition", withDefinition ?? false))
.Query(_query => _query.Setup("version", version))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
Expand Down
2 changes: 1 addition & 1 deletion Square/Apis/BookingsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public Models.ListTeamMemberBookingProfilesResponse ListTeamMemberBookingProfile
.Setup(HttpMethod.Get, "/v2/bookings/team-member-booking-profiles")
.WithAuth("global")
.Parameters(_parameters => _parameters
.Query(_query => _query.Setup("bookable_only", (bookableOnly != null) ? bookableOnly : false))
.Query(_query => _query.Setup("bookable_only", bookableOnly ?? false))
.Query(_query => _query.Setup("limit", limit))
.Query(_query => _query.Setup("cursor", cursor))
.Query(_query => _query.Setup("location_id", locationId))))
Expand Down
2 changes: 1 addition & 1 deletion Square/Apis/CardsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Models.ListCardsResponse ListCards(
.Parameters(_parameters => _parameters
.Query(_query => _query.Setup("cursor", cursor))
.Query(_query => _query.Setup("customer_id", customerId))
.Query(_query => _query.Setup("include_disabled", (includeDisabled != null) ? includeDisabled : false))
.Query(_query => _query.Setup("include_disabled", includeDisabled ?? false))
.Query(_query => _query.Setup("reference_id", referenceId))
.Query(_query => _query.Setup("sort_order", sortOrder))))
.ResponseHandler(_responseHandler => _responseHandler
Expand Down
48 changes: 24 additions & 24 deletions Square/Apis/CatalogApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ internal CatalogApi(GlobalConfiguration globalConfiguration) : base(globalConfig
/// `BatchDeleteCatalogObjects` succeeds even if only a portion of the targeted.
/// IDs can be deleted. The response will only include IDs that were.
/// actually deleted.
/// To ensure consistency, only one delete request is processed at a time per seller account. .
/// While one (batch or non-batch) delete request is being processed, other (batched and non-batched) .
/// To ensure consistency, only one delete request is processed at a time per seller account.
/// While one (batch or non-batch) delete request is being processed, other (batched and non-batched).
/// delete requests are rejected with the `429` error code.
/// </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>
Expand All @@ -59,8 +59,8 @@ public Models.BatchDeleteCatalogObjectsResponse BatchDeleteCatalogObjects(
/// `BatchDeleteCatalogObjects` succeeds even if only a portion of the targeted.
/// IDs can be deleted. The response will only include IDs that were.
/// actually deleted.
/// To ensure consistency, only one delete request is processed at a time per seller account. .
/// While one (batch or non-batch) delete request is being processed, other (batched and non-batched) .
/// To ensure consistency, only one delete request is processed at a time per seller account.
/// While one (batch or non-batch) delete request is being processed, other (batched and non-batched).
/// delete requests are rejected with the `429` error code.
/// </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>
Expand Down Expand Up @@ -129,8 +129,8 @@ public Models.BatchRetrieveCatalogObjectsResponse BatchRetrieveCatalogObjects(
/// batches will be processed in order as long as the total object count for the.
/// request (items, variations, modifier lists, discounts, and taxes) is no more.
/// than 10,000.
/// To ensure consistency, only one update request is processed at a time per seller account. .
/// While one (batch or non-batch) update request is being processed, other (batched and non-batched) .
/// To ensure consistency, only one update request is processed at a time per seller account.
/// While one (batch or non-batch) update request is being processed, other (batched and non-batched).
/// update requests are rejected with the `429` error code.
/// </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>
Expand All @@ -149,8 +149,8 @@ public Models.BatchUpsertCatalogObjectsResponse BatchUpsertCatalogObjects(
/// batches will be processed in order as long as the total object count for the.
/// request (items, variations, modifier lists, discounts, and taxes) is no more.
/// than 10,000.
/// To ensure consistency, only one update request is processed at a time per seller account. .
/// While one (batch or non-batch) update request is being processed, other (batched and non-batched) .
/// To ensure consistency, only one update request is processed at a time per seller account.
/// While one (batch or non-batch) update request is being processed, other (batched and non-batched).
/// update requests are rejected with the `429` error code.
/// </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>
Expand Down Expand Up @@ -212,7 +212,7 @@ public Models.CreateCatalogImageResponse CreateCatalogImage(
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Uploads a new image file to replace the existing one in the specified [CatalogImage]($m/CatalogImage) object. .
/// Uploads a new image file to replace the existing one in the specified [CatalogImage]($m/CatalogImage) object.
/// This `UpdateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in.
/// JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
/// </summary>
Expand All @@ -227,7 +227,7 @@ public Models.UpdateCatalogImageResponse UpdateCatalogImage(
=> CoreHelper.RunTask(UpdateCatalogImageAsync(imageId, request, imageFile));

/// <summary>
/// Uploads a new image file to replace the existing one in the specified [CatalogImage]($m/CatalogImage) object. .
/// Uploads a new image file to replace the existing one in the specified [CatalogImage]($m/CatalogImage) object.
/// This `UpdateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in.
/// JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
/// </summary>
Expand Down Expand Up @@ -277,8 +277,8 @@ public Models.CatalogInfoResponse CatalogInfo()
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Returns a list of all [CatalogObject]($m/CatalogObject)s of the specified types in the catalog. .
/// The `types` parameter is specified as a comma-separated list of the [CatalogObjectType]($m/CatalogObjectType) values, .
/// Returns a list of all [CatalogObject]($m/CatalogObject)s of the specified types in the catalog.
/// The `types` parameter is specified as a comma-separated list of the [CatalogObjectType]($m/CatalogObjectType) values,.
/// for example, "`ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`, `IMAGE`".
/// __Important:__ ListCatalog does not return deleted catalog items. To retrieve.
/// deleted catalog items, use [SearchCatalogObjects]($e/Catalog/SearchCatalogObjects).
Expand All @@ -295,8 +295,8 @@ public Models.ListCatalogResponse ListCatalog(
=> CoreHelper.RunTask(ListCatalogAsync(cursor, types, catalogVersion));

/// <summary>
/// Returns a list of all [CatalogObject]($m/CatalogObject)s of the specified types in the catalog. .
/// The `types` parameter is specified as a comma-separated list of the [CatalogObjectType]($m/CatalogObjectType) values, .
/// Returns a list of all [CatalogObject]($m/CatalogObject)s of the specified types in the catalog.
/// The `types` parameter is specified as a comma-separated list of the [CatalogObjectType]($m/CatalogObjectType) values,.
/// for example, "`ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`, `IMAGE`".
/// __Important:__ ListCatalog does not return deleted catalog items. To retrieve.
/// deleted catalog items, use [SearchCatalogObjects]($e/Catalog/SearchCatalogObjects).
Expand Down Expand Up @@ -326,8 +326,8 @@ public Models.ListCatalogResponse ListCatalog(

/// <summary>
/// Creates a new or updates the specified [CatalogObject]($m/CatalogObject).
/// To ensure consistency, only one update request is processed at a time per seller account. .
/// While one (batch or non-batch) update request is being processed, other (batched and non-batched) .
/// To ensure consistency, only one update request is processed at a time per seller account.
/// While one (batch or non-batch) update request is being processed, other (batched and non-batched).
/// update requests are rejected with the `429` error code.
/// </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>
Expand All @@ -338,8 +338,8 @@ public Models.UpsertCatalogObjectResponse UpsertCatalogObject(

/// <summary>
/// Creates a new or updates the specified [CatalogObject]($m/CatalogObject).
/// To ensure consistency, only one update request is processed at a time per seller account. .
/// While one (batch or non-batch) update request is being processed, other (batched and non-batched) .
/// To ensure consistency, only one update request is processed at a time per seller account.
/// While one (batch or non-batch) update request is being processed, other (batched and non-batched).
/// update requests are rejected with the `429` error code.
/// </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>
Expand All @@ -366,8 +366,8 @@ public Models.UpsertCatalogObjectResponse UpsertCatalogObject(
/// are also deleted. For example, deleting a [CatalogItem]($m/CatalogItem).
/// will also delete all of its.
/// [CatalogItemVariation]($m/CatalogItemVariation) children.
/// To ensure consistency, only one delete request is processed at a time per seller account. .
/// While one (batch or non-batch) delete request is being processed, other (batched and non-batched) .
/// To ensure consistency, only one delete request is processed at a time per seller account.
/// While one (batch or non-batch) delete request is being processed, other (batched and non-batched).
/// delete requests are rejected with the `429` error code.
/// </summary>
/// <param name="objectId">Required parameter: The ID of the catalog object to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a catalog item will delete its catalog item variations)..</param>
Expand All @@ -383,8 +383,8 @@ public Models.DeleteCatalogObjectResponse DeleteCatalogObject(
/// are also deleted. For example, deleting a [CatalogItem]($m/CatalogItem).
/// will also delete all of its.
/// [CatalogItemVariation]($m/CatalogItemVariation) children.
/// To ensure consistency, only one delete request is processed at a time per seller account. .
/// While one (batch or non-batch) delete request is being processed, other (batched and non-batched) .
/// To ensure consistency, only one delete request is processed at a time per seller account.
/// While one (batch or non-batch) delete request is being processed, other (batched and non-batched).
/// delete requests are rejected with the `429` error code.
/// </summary>
/// <param name="objectId">Required parameter: The ID of the catalog object to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a catalog item will delete its catalog item variations)..</param>
Expand Down Expand Up @@ -451,9 +451,9 @@ public Models.RetrieveCatalogObjectResponse RetrieveCatalogObject(
.WithAuth("global")
.Parameters(_parameters => _parameters
.Template(_template => _template.Setup("object_id", objectId))
.Query(_query => _query.Setup("include_related_objects", (includeRelatedObjects != null) ? includeRelatedObjects : false))
.Query(_query => _query.Setup("include_related_objects", includeRelatedObjects ?? false))
.Query(_query => _query.Setup("catalog_version", catalogVersion))
.Query(_query => _query.Setup("include_category_path_to_root", (includeCategoryPathToRoot != null) ? includeCategoryPathToRoot : false))))
.Query(_query => _query.Setup("include_category_path_to_root", includeCategoryPathToRoot ?? false))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
Expand Down
4 changes: 2 additions & 2 deletions Square/Apis/CustomerCustomAttributesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public Models.ListCustomerCustomAttributesResponse ListCustomerCustomAttributes(
.Template(_template => _template.Setup("customer_id", customerId))
.Query(_query => _query.Setup("limit", limit))
.Query(_query => _query.Setup("cursor", cursor))
.Query(_query => _query.Setup("with_definitions", (withDefinitions != null) ? withDefinitions : false))))
.Query(_query => _query.Setup("with_definitions", withDefinitions ?? false))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
Expand Down Expand Up @@ -418,7 +418,7 @@ public Models.RetrieveCustomerCustomAttributeResponse RetrieveCustomerCustomAttr
.Parameters(_parameters => _parameters
.Template(_template => _template.Setup("customer_id", customerId))
.Template(_template => _template.Setup("key", key))
.Query(_query => _query.Setup("with_definition", (withDefinition != null) ? withDefinition : false))
.Query(_query => _query.Setup("with_definition", withDefinition ?? false))
.Query(_query => _query.Setup("version", version))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
Expand Down
2 changes: 1 addition & 1 deletion Square/Apis/CustomersApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public Models.ListCustomersResponse ListCustomers(
.Query(_query => _query.Setup("limit", limit))
.Query(_query => _query.Setup("sort_field", sortField))
.Query(_query => _query.Setup("sort_order", sortOrder))
.Query(_query => _query.Setup("count", (count != null) ? count : false))))
.Query(_query => _query.Setup("count", count ?? false))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
Expand Down
Loading

0 comments on commit 47e6b57

Please sign in to comment.