Skip to content

Commit

Permalink
Merge pull request #122 from square/release/34.0.0
Browse files Browse the repository at this point in the history
Generated PR for Release: 34.0.0
  • Loading branch information
joanc-sq authored Jan 16, 2024
2 parents a7456b0 + bcdb7a2 commit 38f70d3
Show file tree
Hide file tree
Showing 124 changed files with 3,088 additions and 506 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ assignees: ''
---

## **ATTENTION**
This issue template is for **bugs** or **documentation** errors in this SDK Repo. Please direct all technical support questions, feature requests, API-related issues, and general discussions to our Square-supported developer channels. For public support, [join us in our BuildWithSquare Slack](https://squ.re/slack) or [post in our Developer Forums](https://developer.squareup.com/forums). For private support, [contact our Developer Success Engineers](https://squareup.com/help/us/en/contact?panel=BF53A9C8EF68) directly.
This issue template is for **bugs** or **documentation** errors in this SDK Repo. Please direct all technical support questions, feature requests, API-related issues, and general discussions to our Square-supported developer channels. For public support, [join us in our Square Developer Discord server](https://discord.com/invite/squaredev) or [post in our Developer Forums](https://developer.squareup.com/forums). For private support, [contact our Developer Success Engineers](https://squareup.com/help/us/en/contact?panel=BF53A9C8EF68) directly.

**Describe the bug**
A clear and concise description of what the bug is.
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ contact_links:
- name: Square Developer Forums
url: https://developer.squareup.com/forums
about: Public discussion threads for technical support, feature requests, api discussion, and all things related to square development.
- name: BuildWithSquare Slack Channel
url: https://squ.re/slack
- name: Square Developer Discord Server
url: https://discord.com/invite/squaredev
about: Community slack channel for real time support and conversations about building with square.
- name: Developer Support
url: https://squareup.com/help/us/en/contact?panel=BF53A9C8EF68
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2023 Square, Inc.
Copyright 2024 Square, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
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", "{44993ea5-e5ca-4997-8359-fe0443ec8ace}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square", "Square/Square.csproj", "{f8c5d51f-a462-4d57-a91b-bef39311ea52}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square.Tests", "Square.Tests/Square.Tests.csproj", "{a68098eb-05be-425e-9328-19452a6c339c}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square.Tests", "Square.Tests/Square.Tests.csproj", "{b57db512-42e6-4d02-a40c-0217334622bf}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{44993ea5-e5ca-4997-8359-fe0443ec8ace}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{44993ea5-e5ca-4997-8359-fe0443ec8ace}.Debug|Any CPU.Build.0 = Debug|Any CPU
{44993ea5-e5ca-4997-8359-fe0443ec8ace}.Release|Any CPU.ActiveCfg = Release|Any CPU
{44993ea5-e5ca-4997-8359-fe0443ec8ace}.Release|Any CPU.Build.0 = Release|Any CPU
{a68098eb-05be-425e-9328-19452a6c339c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{a68098eb-05be-425e-9328-19452a6c339c}.Debug|Any CPU.Build.0 = Debug|Any CPU
{a68098eb-05be-425e-9328-19452a6c339c}.Release|Any CPU.ActiveCfg = Release|Any CPU
{a68098eb-05be-425e-9328-19452a6c339c}.Release|Any CPU.Build.0 = Release|Any CPU
{f8c5d51f-a462-4d57-a91b-bef39311ea52}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{f8c5d51f-a462-4d57-a91b-bef39311ea52}.Debug|Any CPU.Build.0 = Debug|Any CPU
{f8c5d51f-a462-4d57-a91b-bef39311ea52}.Release|Any CPU.ActiveCfg = Release|Any CPU
{f8c5d51f-a462-4d57-a91b-bef39311ea52}.Release|Any CPU.Build.0 = Release|Any CPU
{b57db512-42e6-4d02-a40c-0217334622bf}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{b57db512-42e6-4d02-a40c-0217334622bf}.Debug|Any CPU.Build.0 = Debug|Any CPU
{b57db512-42e6-4d02-a40c-0217334622bf}.Release|Any CPU.ActiveCfg = Release|Any CPU
{b57db512-42e6-4d02-a40c-0217334622bf}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Square/Apis/ApplePayApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ public Models.RegisterDomainResponse RegisterDomain(
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
}
}
6 changes: 3 additions & 3 deletions Square/Apis/BankAccountsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Models.ListBankAccountsResponse ListBankAccounts(
.Query(_query => _query.Setup("location_id", locationId))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Returns details of a [BankAccount]($m/BankAccount) identified by V1 bank account ID.
Expand Down Expand Up @@ -94,7 +94,7 @@ public Models.GetBankAccountByV1IdResponse GetBankAccountByV1Id(
.Template(_template => _template.Setup("v1_bank_account_id", v1BankAccountId))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Returns details of a [BankAccount]($m/BankAccount).
Expand Down Expand Up @@ -124,6 +124,6 @@ public Models.GetBankAccountResponse GetBankAccount(
.Template(_template => _template.Setup("bank_account_id", bankAccountId))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
}
}
22 changes: 11 additions & 11 deletions Square/Apis/BookingCustomAttributesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public Models.ListBookingCustomAttributeDefinitionsResponse ListBookingCustomAtt
.Query(_query => _query.Setup("cursor", cursor))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Creates a bookings custom attribute definition.
Expand Down Expand Up @@ -102,7 +102,7 @@ public Models.CreateBookingCustomAttributeDefinitionResponse CreateBookingCustom
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Deletes a bookings custom attribute definition.
Expand Down Expand Up @@ -138,7 +138,7 @@ public Models.DeleteBookingCustomAttributeDefinitionResponse DeleteBookingCustom
.Template(_template => _template.Setup("key", key))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Retrieves a bookings custom attribute definition.
Expand Down Expand Up @@ -175,7 +175,7 @@ public Models.RetrieveBookingCustomAttributeDefinitionResponse RetrieveBookingCu
.Query(_query => _query.Setup("version", version))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Updates a bookings custom attribute definition.
Expand Down Expand Up @@ -217,7 +217,7 @@ public Models.UpdateBookingCustomAttributeDefinitionResponse UpdateBookingCustom
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Bulk deletes bookings custom attributes.
Expand Down Expand Up @@ -254,7 +254,7 @@ public Models.BulkDeleteBookingCustomAttributesResponse BulkDeleteBookingCustomA
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Bulk upserts bookings custom attributes.
Expand Down Expand Up @@ -291,7 +291,7 @@ public Models.BulkUpsertBookingCustomAttributesResponse BulkUpsertBookingCustomA
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Lists a booking's custom attributes.
Expand Down Expand Up @@ -338,7 +338,7 @@ public Models.ListBookingCustomAttributesResponse ListBookingCustomAttributes(
.Query(_query => _query.Setup("with_definitions", (withDefinitions != null) ? withDefinitions : false))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Deletes a bookings custom attribute.
Expand Down Expand Up @@ -379,7 +379,7 @@ public Models.DeleteBookingCustomAttributeResponse DeleteBookingCustomAttribute(
.Template(_template => _template.Setup("key", key))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Retrieves a bookings custom attribute.
Expand Down Expand Up @@ -426,7 +426,7 @@ public Models.RetrieveBookingCustomAttributeResponse RetrieveBookingCustomAttrib
.Query(_query => _query.Setup("version", version))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Upserts a bookings custom attribute.
Expand Down Expand Up @@ -473,6 +473,6 @@ public Models.UpsertBookingCustomAttributeResponse UpsertBookingCustomAttribute(
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
}
}
26 changes: 13 additions & 13 deletions Square/Apis/BookingsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Models.ListBookingsResponse ListBookings(
.Query(_query => _query.Setup("start_at_max", startAtMax))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Creates a booking.
Expand Down Expand Up @@ -139,7 +139,7 @@ public Models.CreateBookingResponse CreateBooking(
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Searches for availabilities for booking.
Expand Down Expand Up @@ -172,7 +172,7 @@ public Models.SearchAvailabilityResponse SearchAvailability(
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Bulk-Retrieves a list of bookings by booking IDs.
Expand Down Expand Up @@ -205,7 +205,7 @@ public Models.BulkRetrieveBookingsResponse BulkRetrieveBookings(
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Retrieves a seller's booking profile.
Expand All @@ -226,7 +226,7 @@ public Models.RetrieveBusinessBookingProfileResponse RetrieveBusinessBookingProf
.WithAuth("global"))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Lists location booking profiles of a seller.
Expand Down Expand Up @@ -259,7 +259,7 @@ public Models.ListLocationBookingProfilesResponse ListLocationBookingProfiles(
.Query(_query => _query.Setup("cursor", cursor))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Retrieves a seller's location booking profile.
Expand Down Expand Up @@ -287,7 +287,7 @@ public Models.RetrieveLocationBookingProfileResponse RetrieveLocationBookingProf
.Template(_template => _template.Setup("location_id", locationId))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Lists booking profiles for team members.
Expand Down Expand Up @@ -330,7 +330,7 @@ public Models.ListTeamMemberBookingProfilesResponse ListTeamMemberBookingProfile
.Query(_query => _query.Setup("location_id", locationId))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Retrieves one or more team members' booking profiles.
Expand Down Expand Up @@ -359,7 +359,7 @@ public Models.BulkRetrieveTeamMemberBookingProfilesResponse BulkRetrieveTeamMemb
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Retrieves a team member's booking profile.
Expand Down Expand Up @@ -387,7 +387,7 @@ public Models.RetrieveTeamMemberBookingProfileResponse RetrieveTeamMemberBooking
.Template(_template => _template.Setup("team_member_id", teamMemberId))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Retrieves a booking.
Expand Down Expand Up @@ -419,7 +419,7 @@ public Models.RetrieveBookingResponse RetrieveBooking(
.Template(_template => _template.Setup("booking_id", bookingId))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Updates a booking.
Expand Down Expand Up @@ -461,7 +461,7 @@ public Models.UpdateBookingResponse UpdateBooking(
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// Cancels an existing booking.
Expand Down Expand Up @@ -503,6 +503,6 @@ public Models.CancelBookingResponse CancelBooking(
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
}
}
Loading

0 comments on commit 38f70d3

Please sign in to comment.