diff --git a/Square.Tests/ApiTestBase.cs b/Square.Tests/ApiTestBase.cs
index 68e745ef..8025dd7d 100644
--- a/Square.Tests/ApiTestBase.cs
+++ b/Square.Tests/ApiTestBase.cs
@@ -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;
diff --git a/Square.Tests/LocationsApiTest.cs b/Square.Tests/LocationsApiTest.cs
index ed60673f..4273872d 100644
--- a/Square.Tests/LocationsApiTest.cs
+++ b/Square.Tests/LocationsApiTest.cs
@@ -37,7 +37,7 @@ public void SetUpDerived()
///
/// 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`..
///
/// A representing the asynchronous unit test.
[Test]
diff --git a/Square.Tests/SanityTest.cs b/Square.Tests/SanityTest.cs
index 90c2408f..9c950e6a 100644
--- a/Square.Tests/SanityTest.cs
+++ b/Square.Tests/SanityTest.cs
@@ -1,5 +1,6 @@
using NUnit.Framework;
using Square.Apis;
+using Square.Authentication;
using Square.Exceptions;
using Square.Models;
using System.IO;
@@ -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;
diff --git a/Square.sln b/Square.sln
index 807c39a7..9397cc34 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", "{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
@@ -12,14 +12,14 @@ Global
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
diff --git a/Square/Apis/ApplePayApi.cs b/Square/Apis/ApplePayApi.cs
index 73adace8..fa6a9464 100644
--- a/Square/Apis/ApplePayApi.cs
+++ b/Square/Apis/ApplePayApi.cs
@@ -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;
diff --git a/Square/Apis/BankAccountsApi.cs b/Square/Apis/BankAccountsApi.cs
index 3fb2b822..3d22cbc4 100644
--- a/Square/Apis/BankAccountsApi.cs
+++ b/Square/Apis/BankAccountsApi.cs
@@ -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;
diff --git a/Square/Apis/BaseApi.cs b/Square/Apis/BaseApi.cs
index 8f104b0d..972bfa22 100644
--- a/Square/Apis/BaseApi.cs
+++ b/Square/Apis/BaseApi.cs
@@ -18,7 +18,7 @@ internal class BaseApi
private readonly GlobalConfiguration globalConfiguration;
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
internal BaseApi(GlobalConfiguration config) => globalConfiguration = config;
diff --git a/Square/Apis/BookingCustomAttributesApi.cs b/Square/Apis/BookingCustomAttributesApi.cs
index b9a86eba..9daeb5d0 100644
--- a/Square/Apis/BookingCustomAttributesApi.cs
+++ b/Square/Apis/BookingCustomAttributesApi.cs
@@ -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;
diff --git a/Square/Apis/BookingsApi.cs b/Square/Apis/BookingsApi.cs
index f5bc8106..bf993ef8 100644
--- a/Square/Apis/BookingsApi.cs
+++ b/Square/Apis/BookingsApi.cs
@@ -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;
diff --git a/Square/Apis/CardsApi.cs b/Square/Apis/CardsApi.cs
index 33b01f57..4fba5bb9 100644
--- a/Square/Apis/CardsApi.cs
+++ b/Square/Apis/CardsApi.cs
@@ -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;
diff --git a/Square/Apis/CashDrawersApi.cs b/Square/Apis/CashDrawersApi.cs
index d5767f60..8baedb8f 100644
--- a/Square/Apis/CashDrawersApi.cs
+++ b/Square/Apis/CashDrawersApi.cs
@@ -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;
diff --git a/Square/Apis/CatalogApi.cs b/Square/Apis/CatalogApi.cs
index 84065fd4..4503a81f 100644
--- a/Square/Apis/CatalogApi.cs
+++ b/Square/Apis/CatalogApi.cs
@@ -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;
diff --git a/Square/Apis/CheckoutApi.cs b/Square/Apis/CheckoutApi.cs
index f9dadbe5..b8ee632a 100644
--- a/Square/Apis/CheckoutApi.cs
+++ b/Square/Apis/CheckoutApi.cs
@@ -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;
@@ -189,7 +188,7 @@ public Models.UpdateMerchantSettingsResponse UpdateMerchantSettings(
///
/// Lists all payment links.
///
- /// 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)..
+ /// 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)..
/// 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`.
/// Returns the Models.ListPaymentLinksResponse response from the API call.
public Models.ListPaymentLinksResponse ListPaymentLinks(
@@ -200,7 +199,7 @@ public Models.ListPaymentLinksResponse ListPaymentLinks(
///
/// Lists all payment links.
///
- /// 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)..
+ /// 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)..
/// 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`.
/// cancellationToken.
/// Returns the Models.ListPaymentLinksResponse response from the API call.
diff --git a/Square/Apis/CustomerCustomAttributesApi.cs b/Square/Apis/CustomerCustomAttributesApi.cs
index b4a8e2b8..6ef7c535 100644
--- a/Square/Apis/CustomerCustomAttributesApi.cs
+++ b/Square/Apis/CustomerCustomAttributesApi.cs
@@ -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;
diff --git a/Square/Apis/CustomerGroupsApi.cs b/Square/Apis/CustomerGroupsApi.cs
index 42fb533d..2440de47 100644
--- a/Square/Apis/CustomerGroupsApi.cs
+++ b/Square/Apis/CustomerGroupsApi.cs
@@ -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;
diff --git a/Square/Apis/CustomerSegmentsApi.cs b/Square/Apis/CustomerSegmentsApi.cs
index 1abb1857..46c959bb 100644
--- a/Square/Apis/CustomerSegmentsApi.cs
+++ b/Square/Apis/CustomerSegmentsApi.cs
@@ -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;
diff --git a/Square/Apis/CustomersApi.cs b/Square/Apis/CustomersApi.cs
index e5fef855..b0166cd7 100644
--- a/Square/Apis/CustomersApi.cs
+++ b/Square/Apis/CustomersApi.cs
@@ -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;
@@ -127,6 +126,144 @@ public Models.CreateCustomerResponse CreateCustomer(
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
+ ///
+ /// Creates multiple [customer profiles]($m/Customer) for a business.
+ /// This endpoint takes a map of individual create requests and returns a map of responses.
+ /// You must provide at least one of the following values in each create request:.
+ /// - `given_name`.
+ /// - `family_name`.
+ /// - `company_name`.
+ /// - `email_address`.
+ /// - `phone_number`.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// Returns the Models.BulkCreateCustomersResponse response from the API call.
+ public Models.BulkCreateCustomersResponse BulkCreateCustomers(
+ Models.BulkCreateCustomersRequest body)
+ => CoreHelper.RunTask(BulkCreateCustomersAsync(body));
+
+ ///
+ /// Creates multiple [customer profiles]($m/Customer) for a business.
+ /// This endpoint takes a map of individual create requests and returns a map of responses.
+ /// You must provide at least one of the following values in each create request:.
+ /// - `given_name`.
+ /// - `family_name`.
+ /// - `company_name`.
+ /// - `email_address`.
+ /// - `phone_number`.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// cancellationToken.
+ /// Returns the Models.BulkCreateCustomersResponse response from the API call.
+ public async Task BulkCreateCustomersAsync(
+ Models.BulkCreateCustomersRequest body,
+ CancellationToken cancellationToken = default)
+ => await CreateApiCall()
+ .RequestBuilder(_requestBuilder => _requestBuilder
+ .Setup(HttpMethod.Post, "/v2/customers/bulk-create")
+ .WithAuth("global")
+ .Parameters(_parameters => _parameters
+ .Body(_bodyParameter => _bodyParameter.Setup(body))
+ .Header(_header => _header.Setup("Content-Type", "application/json"))))
+ .ResponseHandler(_responseHandler => _responseHandler
+ .ContextAdder((_result, _context) => _result.ContextSetter(_context)))
+ .ExecuteAsync(cancellationToken).ConfigureAwait(false);
+
+ ///
+ /// Deletes multiple customer profiles.
+ /// The endpoint takes a list of customer IDs and returns a map of responses.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// Returns the Models.BulkDeleteCustomersResponse response from the API call.
+ public Models.BulkDeleteCustomersResponse BulkDeleteCustomers(
+ Models.BulkDeleteCustomersRequest body)
+ => CoreHelper.RunTask(BulkDeleteCustomersAsync(body));
+
+ ///
+ /// Deletes multiple customer profiles.
+ /// The endpoint takes a list of customer IDs and returns a map of responses.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// cancellationToken.
+ /// Returns the Models.BulkDeleteCustomersResponse response from the API call.
+ public async Task BulkDeleteCustomersAsync(
+ Models.BulkDeleteCustomersRequest body,
+ CancellationToken cancellationToken = default)
+ => await CreateApiCall()
+ .RequestBuilder(_requestBuilder => _requestBuilder
+ .Setup(HttpMethod.Post, "/v2/customers/bulk-delete")
+ .WithAuth("global")
+ .Parameters(_parameters => _parameters
+ .Body(_bodyParameter => _bodyParameter.Setup(body))
+ .Header(_header => _header.Setup("Content-Type", "application/json"))))
+ .ResponseHandler(_responseHandler => _responseHandler
+ .ContextAdder((_result, _context) => _result.ContextSetter(_context)))
+ .ExecuteAsync(cancellationToken).ConfigureAwait(false);
+
+ ///
+ /// Retrieves multiple customer profiles.
+ /// This endpoint takes a list of customer IDs and returns a map of responses.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// Returns the Models.BulkRetrieveCustomersResponse response from the API call.
+ public Models.BulkRetrieveCustomersResponse BulkRetrieveCustomers(
+ Models.BulkRetrieveCustomersRequest body)
+ => CoreHelper.RunTask(BulkRetrieveCustomersAsync(body));
+
+ ///
+ /// Retrieves multiple customer profiles.
+ /// This endpoint takes a list of customer IDs and returns a map of responses.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// cancellationToken.
+ /// Returns the Models.BulkRetrieveCustomersResponse response from the API call.
+ public async Task BulkRetrieveCustomersAsync(
+ Models.BulkRetrieveCustomersRequest body,
+ CancellationToken cancellationToken = default)
+ => await CreateApiCall()
+ .RequestBuilder(_requestBuilder => _requestBuilder
+ .Setup(HttpMethod.Post, "/v2/customers/bulk-retrieve")
+ .WithAuth("global")
+ .Parameters(_parameters => _parameters
+ .Body(_bodyParameter => _bodyParameter.Setup(body))
+ .Header(_header => _header.Setup("Content-Type", "application/json"))))
+ .ResponseHandler(_responseHandler => _responseHandler
+ .ContextAdder((_result, _context) => _result.ContextSetter(_context)))
+ .ExecuteAsync(cancellationToken).ConfigureAwait(false);
+
+ ///
+ /// Updates multiple customer profiles.
+ /// This endpoint takes a map of individual update requests and returns a map of responses.
+ /// You cannot use this endpoint to change cards on file. To make changes, use the [Cards API]($e/Cards) or [Gift Cards API]($e/GiftCards).
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// Returns the Models.BulkUpdateCustomersResponse response from the API call.
+ public Models.BulkUpdateCustomersResponse BulkUpdateCustomers(
+ Models.BulkUpdateCustomersRequest body)
+ => CoreHelper.RunTask(BulkUpdateCustomersAsync(body));
+
+ ///
+ /// Updates multiple customer profiles.
+ /// This endpoint takes a map of individual update requests and returns a map of responses.
+ /// You cannot use this endpoint to change cards on file. To make changes, use the [Cards API]($e/Cards) or [Gift Cards API]($e/GiftCards).
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// cancellationToken.
+ /// Returns the Models.BulkUpdateCustomersResponse response from the API call.
+ public async Task BulkUpdateCustomersAsync(
+ Models.BulkUpdateCustomersRequest body,
+ CancellationToken cancellationToken = default)
+ => await CreateApiCall()
+ .RequestBuilder(_requestBuilder => _requestBuilder
+ .Setup(HttpMethod.Post, "/v2/customers/bulk-update")
+ .WithAuth("global")
+ .Parameters(_parameters => _parameters
+ .Body(_bodyParameter => _bodyParameter.Setup(body))
+ .Header(_header => _header.Setup("Content-Type", "application/json"))))
+ .ResponseHandler(_responseHandler => _responseHandler
+ .ContextAdder((_result, _context) => _result.ContextSetter(_context)))
+ .ExecuteAsync(cancellationToken).ConfigureAwait(false);
+
///
/// Searches the customer profiles associated with a Square account using one or more supported query filters.
/// Calling `SearchCustomers` without any explicit query filter returns all.
@@ -170,8 +307,6 @@ public Models.SearchCustomersResponse SearchCustomers(
///
/// Deletes a customer profile from a business. This operation also unlinks any associated cards on file.
- /// As a best practice, include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control.
- /// If included, the value must be set to the current version of the customer profile.
/// To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
///
/// Required parameter: The ID of the customer to delete..
@@ -184,8 +319,6 @@ public Models.DeleteCustomerResponse DeleteCustomer(
///
/// Deletes a customer profile from a business. This operation also unlinks any associated cards on file.
- /// As a best practice, include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control.
- /// If included, the value must be set to the current version of the customer profile.
/// To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
///
/// Required parameter: The ID of the customer to delete..
@@ -238,9 +371,6 @@ public Models.RetrieveCustomerResponse RetrieveCustomer(
///
/// Updates a customer profile. This endpoint supports sparse updates, so only new or changed fields are required in the request.
/// To add or update a field, specify the new value. To remove a field, specify `null`.
- /// (recommended) or specify an empty string (string fields only).
- /// As a best practice, include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control.
- /// If included, the value must be set to the current version of the customer profile.
/// To update a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
/// You cannot use this endpoint to change cards on file. To make changes, use the [Cards API]($e/Cards) or [Gift Cards API]($e/GiftCards).
///
@@ -255,9 +385,6 @@ public Models.UpdateCustomerResponse UpdateCustomer(
///
/// Updates a customer profile. This endpoint supports sparse updates, so only new or changed fields are required in the request.
/// To add or update a field, specify the new value. To remove a field, specify `null`.
- /// (recommended) or specify an empty string (string fields only).
- /// As a best practice, include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control.
- /// If included, the value must be set to the current version of the customer profile.
/// To update a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
/// You cannot use this endpoint to change cards on file. To make changes, use the [Cards API]($e/Cards) or [Gift Cards API]($e/GiftCards).
///
diff --git a/Square/Apis/DevicesApi.cs b/Square/Apis/DevicesApi.cs
index 266e30bf..8a40a0a8 100644
--- a/Square/Apis/DevicesApi.cs
+++ b/Square/Apis/DevicesApi.cs
@@ -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;
diff --git a/Square/Apis/DisputesApi.cs b/Square/Apis/DisputesApi.cs
index 4259e7ba..1709f082 100644
--- a/Square/Apis/DisputesApi.cs
+++ b/Square/Apis/DisputesApi.cs
@@ -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;
diff --git a/Square/Apis/EmployeesApi.cs b/Square/Apis/EmployeesApi.cs
index 6387442a..51693779 100644
--- a/Square/Apis/EmployeesApi.cs
+++ b/Square/Apis/EmployeesApi.cs
@@ -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;
diff --git a/Square/Apis/GiftCardActivitiesApi.cs b/Square/Apis/GiftCardActivitiesApi.cs
index c38ca722..d3d80f07 100644
--- a/Square/Apis/GiftCardActivitiesApi.cs
+++ b/Square/Apis/GiftCardActivitiesApi.cs
@@ -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;
diff --git a/Square/Apis/GiftCardsApi.cs b/Square/Apis/GiftCardsApi.cs
index 0a482c49..33d0704b 100644
--- a/Square/Apis/GiftCardsApi.cs
+++ b/Square/Apis/GiftCardsApi.cs
@@ -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;
diff --git a/Square/Apis/ICheckoutApi.cs b/Square/Apis/ICheckoutApi.cs
index 68047fff..eaab7000 100644
--- a/Square/Apis/ICheckoutApi.cs
+++ b/Square/Apis/ICheckoutApi.cs
@@ -125,7 +125,7 @@ Models.UpdateMerchantSettingsResponse UpdateMerchantSettings(
///
/// Lists all payment links.
///
- /// 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)..
+ /// 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)..
/// 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`.
/// Returns the Models.ListPaymentLinksResponse response from the API call.
Models.ListPaymentLinksResponse ListPaymentLinks(
@@ -135,7 +135,7 @@ Models.ListPaymentLinksResponse ListPaymentLinks(
///
/// Lists all payment links.
///
- /// 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)..
+ /// 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)..
/// 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`.
/// cancellationToken.
/// Returns the Models.ListPaymentLinksResponse response from the API call.
diff --git a/Square/Apis/ICustomersApi.cs b/Square/Apis/ICustomersApi.cs
index cdaea68f..9bbd88cc 100644
--- a/Square/Apis/ICustomersApi.cs
+++ b/Square/Apis/ICustomersApi.cs
@@ -91,6 +91,100 @@ Models.CreateCustomerResponse CreateCustomer(
Models.CreateCustomerRequest body,
CancellationToken cancellationToken = default);
+ ///
+ /// Creates multiple [customer profiles]($m/Customer) for a business.
+ /// This endpoint takes a map of individual create requests and returns a map of responses.
+ /// You must provide at least one of the following values in each create request:.
+ /// - `given_name`.
+ /// - `family_name`.
+ /// - `company_name`.
+ /// - `email_address`.
+ /// - `phone_number`.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// Returns the Models.BulkCreateCustomersResponse response from the API call.
+ Models.BulkCreateCustomersResponse BulkCreateCustomers(
+ Models.BulkCreateCustomersRequest body);
+
+ ///
+ /// Creates multiple [customer profiles]($m/Customer) for a business.
+ /// This endpoint takes a map of individual create requests and returns a map of responses.
+ /// You must provide at least one of the following values in each create request:.
+ /// - `given_name`.
+ /// - `family_name`.
+ /// - `company_name`.
+ /// - `email_address`.
+ /// - `phone_number`.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// cancellationToken.
+ /// Returns the Models.BulkCreateCustomersResponse response from the API call.
+ Task BulkCreateCustomersAsync(
+ Models.BulkCreateCustomersRequest body,
+ CancellationToken cancellationToken = default);
+
+ ///
+ /// Deletes multiple customer profiles.
+ /// The endpoint takes a list of customer IDs and returns a map of responses.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// Returns the Models.BulkDeleteCustomersResponse response from the API call.
+ Models.BulkDeleteCustomersResponse BulkDeleteCustomers(
+ Models.BulkDeleteCustomersRequest body);
+
+ ///
+ /// Deletes multiple customer profiles.
+ /// The endpoint takes a list of customer IDs and returns a map of responses.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// cancellationToken.
+ /// Returns the Models.BulkDeleteCustomersResponse response from the API call.
+ Task BulkDeleteCustomersAsync(
+ Models.BulkDeleteCustomersRequest body,
+ CancellationToken cancellationToken = default);
+
+ ///
+ /// Retrieves multiple customer profiles.
+ /// This endpoint takes a list of customer IDs and returns a map of responses.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// Returns the Models.BulkRetrieveCustomersResponse response from the API call.
+ Models.BulkRetrieveCustomersResponse BulkRetrieveCustomers(
+ Models.BulkRetrieveCustomersRequest body);
+
+ ///
+ /// Retrieves multiple customer profiles.
+ /// This endpoint takes a list of customer IDs and returns a map of responses.
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// cancellationToken.
+ /// Returns the Models.BulkRetrieveCustomersResponse response from the API call.
+ Task BulkRetrieveCustomersAsync(
+ Models.BulkRetrieveCustomersRequest body,
+ CancellationToken cancellationToken = default);
+
+ ///
+ /// Updates multiple customer profiles.
+ /// This endpoint takes a map of individual update requests and returns a map of responses.
+ /// You cannot use this endpoint to change cards on file. To make changes, use the [Cards API]($e/Cards) or [Gift Cards API]($e/GiftCards).
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// Returns the Models.BulkUpdateCustomersResponse response from the API call.
+ Models.BulkUpdateCustomersResponse BulkUpdateCustomers(
+ Models.BulkUpdateCustomersRequest body);
+
+ ///
+ /// Updates multiple customer profiles.
+ /// This endpoint takes a map of individual update requests and returns a map of responses.
+ /// You cannot use this endpoint to change cards on file. To make changes, use the [Cards API]($e/Cards) or [Gift Cards API]($e/GiftCards).
+ ///
+ /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
+ /// cancellationToken.
+ /// Returns the Models.BulkUpdateCustomersResponse response from the API call.
+ Task BulkUpdateCustomersAsync(
+ Models.BulkUpdateCustomersRequest body,
+ CancellationToken cancellationToken = default);
+
///
/// Searches the customer profiles associated with a Square account using one or more supported query filters.
/// Calling `SearchCustomers` without any explicit query filter returns all.
@@ -123,8 +217,6 @@ Models.SearchCustomersResponse SearchCustomers(
///
/// Deletes a customer profile from a business. This operation also unlinks any associated cards on file.
- /// As a best practice, include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control.
- /// If included, the value must be set to the current version of the customer profile.
/// To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
///
/// Required parameter: The ID of the customer to delete..
@@ -136,8 +228,6 @@ Models.DeleteCustomerResponse DeleteCustomer(
///
/// Deletes a customer profile from a business. This operation also unlinks any associated cards on file.
- /// As a best practice, include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control.
- /// If included, the value must be set to the current version of the customer profile.
/// To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
///
/// Required parameter: The ID of the customer to delete..
@@ -170,9 +260,6 @@ Models.RetrieveCustomerResponse RetrieveCustomer(
///
/// Updates a customer profile. This endpoint supports sparse updates, so only new or changed fields are required in the request.
/// To add or update a field, specify the new value. To remove a field, specify `null`.
- /// (recommended) or specify an empty string (string fields only).
- /// As a best practice, include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control.
- /// If included, the value must be set to the current version of the customer profile.
/// To update a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
/// You cannot use this endpoint to change cards on file. To make changes, use the [Cards API]($e/Cards) or [Gift Cards API]($e/GiftCards).
///
@@ -186,9 +273,6 @@ Models.UpdateCustomerResponse UpdateCustomer(
///
/// Updates a customer profile. This endpoint supports sparse updates, so only new or changed fields are required in the request.
/// To add or update a field, specify the new value. To remove a field, specify `null`.
- /// (recommended) or specify an empty string (string fields only).
- /// As a best practice, include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control.
- /// If included, the value must be set to the current version of the customer profile.
/// To update a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
/// You cannot use this endpoint to change cards on file. To make changes, use the [Cards API]($e/Cards) or [Gift Cards API]($e/GiftCards).
///
diff --git a/Square/Apis/IInvoicesApi.cs b/Square/Apis/IInvoicesApi.cs
index fbf330d8..60482ca8 100644
--- a/Square/Apis/IInvoicesApi.cs
+++ b/Square/Apis/IInvoicesApi.cs
@@ -265,8 +265,10 @@ Models.CancelInvoiceResponse CancelInvoice(
/// nothing. Square also makes the invoice available on a Square-hosted invoice page. .
/// The invoice `status` also changes from `DRAFT` to a status .
/// based on the invoice configuration. For example, the status changes to `UNPAID` if .
- /// Square emails the invoice or `PARTIALLY_PAID` if Square charge a card on file for a portion of the .
+ /// Square emails the invoice or `PARTIALLY_PAID` if Square charges a card on file for a portion of the .
/// invoice amount.
+ /// In addition to the required `ORDERS_WRITE` and `INVOICES_WRITE` permissions, `CUSTOMERS_READ`.
+ /// and `PAYMENTS_WRITE` are required when publishing invoices configured for card-on-file payments.
///
/// Required parameter: The ID of the invoice to publish..
/// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
@@ -283,8 +285,10 @@ Models.PublishInvoiceResponse PublishInvoice(
/// nothing. Square also makes the invoice available on a Square-hosted invoice page. .
/// The invoice `status` also changes from `DRAFT` to a status .
/// based on the invoice configuration. For example, the status changes to `UNPAID` if .
- /// Square emails the invoice or `PARTIALLY_PAID` if Square charge a card on file for a portion of the .
+ /// Square emails the invoice or `PARTIALLY_PAID` if Square charges a card on file for a portion of the .
/// invoice amount.
+ /// In addition to the required `ORDERS_WRITE` and `INVOICES_WRITE` permissions, `CUSTOMERS_READ`.
+ /// and `PAYMENTS_WRITE` are required when publishing invoices configured for card-on-file payments.
///
/// Required parameter: The ID of the invoice to publish..
/// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
diff --git a/Square/Apis/ILocationsApi.cs b/Square/Apis/ILocationsApi.cs
index 9c98b957..0dec71a4 100644
--- a/Square/Apis/ILocationsApi.cs
+++ b/Square/Apis/ILocationsApi.cs
@@ -21,14 +21,14 @@ public interface ILocationsApi
{
///
/// 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`.
///
/// Returns the Models.ListLocationsResponse response from the API call.
Models.ListLocationsResponse ListLocations();
///
/// 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`.
///
/// cancellationToken.
/// Returns the Models.ListLocationsResponse response from the API call.
diff --git a/Square/Apis/IV1TransactionsApi.cs b/Square/Apis/IV1TransactionsApi.cs
index 86368a7d..58525dba 100644
--- a/Square/Apis/IV1TransactionsApi.cs
+++ b/Square/Apis/IV1TransactionsApi.cs
@@ -26,7 +26,7 @@ public interface IV1TransactionsApi
/// Optional parameter: The order in which payments are listed in the response..
/// Optional parameter: The maximum number of payments to return in a single response. This value cannot exceed 200..
/// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// Returns the List response from the API call.
+ /// response from the API call.]]>
[Obsolete]
List V1ListOrders(
string locationId,
@@ -42,7 +42,7 @@ public interface IV1TransactionsApi
/// Optional parameter: The maximum number of payments to return in a single response. This value cannot exceed 200..
/// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
/// cancellationToken.
- /// Returns the List response from the API call.
+ /// response from the API call.]]>
[Obsolete]
Task> V1ListOrdersAsync(
string locationId,
@@ -102,275 +102,5 @@ Models.V1Order V1UpdateOrder(
string orderId,
Models.V1UpdateOrderRequest body,
CancellationToken cancellationToken = default);
-
- ///
- /// Provides summary information for all payments taken for a given.
- /// Square account during a date range. Date ranges cannot exceed 1 year in.
- /// length. See Date ranges for details of inclusive and exclusive dates.
- /// *Note**: Details for payments processed with Square Point of Sale while.
- /// in offline mode may not be transmitted to Square for up to 72 hours.
- /// Offline payments have a `created_at` value that reflects the time the.
- /// payment was originally processed, not the time it was subsequently.
- /// transmitted to Square. Consequently, the ListPayments endpoint might.
- /// list an offline payment chronologically between online payments that.
- /// were seen in a previous request.
- ///
- /// Required parameter: The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business's locations..
- /// Optional parameter: The order in which payments are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The maximum number of payments to return in a single response. This value cannot exceed 200..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// Optional parameter: Indicates whether or not to include partial payments in the response. Partial payments will have the tenders collected so far, but the itemizations will be empty until the payment is completed..
- /// Returns the List response from the API call.
- [Obsolete]
- List V1ListPayments(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null,
- bool? includePartial = false);
-
- ///
- /// Provides summary information for all payments taken for a given.
- /// Square account during a date range. Date ranges cannot exceed 1 year in.
- /// length. See Date ranges for details of inclusive and exclusive dates.
- /// *Note**: Details for payments processed with Square Point of Sale while.
- /// in offline mode may not be transmitted to Square for up to 72 hours.
- /// Offline payments have a `created_at` value that reflects the time the.
- /// payment was originally processed, not the time it was subsequently.
- /// transmitted to Square. Consequently, the ListPayments endpoint might.
- /// list an offline payment chronologically between online payments that.
- /// were seen in a previous request.
- ///
- /// Required parameter: The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business's locations..
- /// Optional parameter: The order in which payments are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The maximum number of payments to return in a single response. This value cannot exceed 200..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// Optional parameter: Indicates whether or not to include partial payments in the response. Partial payments will have the tenders collected so far, but the itemizations will be empty until the payment is completed..
- /// cancellationToken.
- /// Returns the List response from the API call.
- [Obsolete]
- Task> V1ListPaymentsAsync(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null,
- bool? includePartial = false,
- CancellationToken cancellationToken = default);
-
- ///
- /// Provides comprehensive information for a single payment.
- ///
- /// Required parameter: The ID of the payment's associated location..
- /// Required parameter: The Square-issued payment ID. payment_id comes from Payment objects returned by the List Payments endpoint, Settlement objects returned by the List Settlements endpoint, or Refund objects returned by the List Refunds endpoint..
- /// Returns the Models.V1Payment response from the API call.
- [Obsolete]
- Models.V1Payment V1RetrievePayment(
- string locationId,
- string paymentId);
-
- ///
- /// Provides comprehensive information for a single payment.
- ///
- /// Required parameter: The ID of the payment's associated location..
- /// Required parameter: The Square-issued payment ID. payment_id comes from Payment objects returned by the List Payments endpoint, Settlement objects returned by the List Settlements endpoint, or Refund objects returned by the List Refunds endpoint..
- /// cancellationToken.
- /// Returns the Models.V1Payment response from the API call.
- [Obsolete]
- Task V1RetrievePaymentAsync(
- string locationId,
- string paymentId,
- CancellationToken cancellationToken = default);
-
- ///
- /// Provides the details for all refunds initiated by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length.
- ///
- /// Required parameter: The ID of the location to list refunds for..
- /// Optional parameter: The order in which payments are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The approximate number of refunds to return in a single response. Default: 100. Max: 200. Response may contain more results than the prescribed limit when refunds are made simultaneously to multiple tenders in a payment or when refunds are generated in an exchange to account for the value of returned goods..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// Returns the List response from the API call.
- [Obsolete]
- List V1ListRefunds(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null);
-
- ///
- /// Provides the details for all refunds initiated by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length.
- ///
- /// Required parameter: The ID of the location to list refunds for..
- /// Optional parameter: The order in which payments are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The approximate number of refunds to return in a single response. Default: 100. Max: 200. Response may contain more results than the prescribed limit when refunds are made simultaneously to multiple tenders in a payment or when refunds are generated in an exchange to account for the value of returned goods..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// cancellationToken.
- /// Returns the List response from the API call.
- [Obsolete]
- Task> V1ListRefundsAsync(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null,
- CancellationToken cancellationToken = default);
-
- ///
- /// Issues a refund for a previously processed payment. You must issue.
- /// a refund within 60 days of the associated payment.
- /// You cannot issue a partial refund for a split tender payment. You must.
- /// instead issue a full or partial refund for a particular tender, by.
- /// providing the applicable tender id to the V1CreateRefund endpoint.
- /// Issuing a full refund for a split tender payment refunds all tenders.
- /// associated with the payment.
- /// Issuing a refund for a card payment is not reversible. For development.
- /// purposes, you can create fake cash payments in Square Point of Sale and.
- /// refund them.
- ///
- /// Required parameter: The ID of the original payment's associated location..
- /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
- /// Returns the Models.V1Refund response from the API call.
- [Obsolete]
- Models.V1Refund V1CreateRefund(
- string locationId,
- Models.V1CreateRefundRequest body);
-
- ///
- /// Issues a refund for a previously processed payment. You must issue.
- /// a refund within 60 days of the associated payment.
- /// You cannot issue a partial refund for a split tender payment. You must.
- /// instead issue a full or partial refund for a particular tender, by.
- /// providing the applicable tender id to the V1CreateRefund endpoint.
- /// Issuing a full refund for a split tender payment refunds all tenders.
- /// associated with the payment.
- /// Issuing a refund for a card payment is not reversible. For development.
- /// purposes, you can create fake cash payments in Square Point of Sale and.
- /// refund them.
- ///
- /// Required parameter: The ID of the original payment's associated location..
- /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
- /// cancellationToken.
- /// Returns the Models.V1Refund response from the API call.
- [Obsolete]
- Task V1CreateRefundAsync(
- string locationId,
- Models.V1CreateRefundRequest body,
- CancellationToken cancellationToken = default);
-
- ///
- /// Provides summary information for all deposits and withdrawals.
- /// initiated by Square to a linked bank account during a date range. Date.
- /// ranges cannot exceed one year in length.
- /// *Note**: the ListSettlements endpoint does not provide entry.
- /// information.
- ///
- /// Required parameter: The ID of the location to list settlements for. If you specify me, this endpoint returns settlements aggregated from all of the business's locations..
- /// Optional parameter: The order in which settlements are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The maximum number of settlements to return in a single response. This value cannot exceed 200..
- /// Optional parameter: Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED)..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// Returns the List response from the API call.
- [Obsolete]
- List V1ListSettlements(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string status = null,
- string batchToken = null);
-
- ///
- /// Provides summary information for all deposits and withdrawals.
- /// initiated by Square to a linked bank account during a date range. Date.
- /// ranges cannot exceed one year in length.
- /// *Note**: the ListSettlements endpoint does not provide entry.
- /// information.
- ///
- /// Required parameter: The ID of the location to list settlements for. If you specify me, this endpoint returns settlements aggregated from all of the business's locations..
- /// Optional parameter: The order in which settlements are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The maximum number of settlements to return in a single response. This value cannot exceed 200..
- /// Optional parameter: Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED)..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// cancellationToken.
- /// Returns the List response from the API call.
- [Obsolete]
- Task> V1ListSettlementsAsync(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string status = null,
- string batchToken = null,
- CancellationToken cancellationToken = default);
-
- ///
- /// Provides comprehensive information for a single settlement.
- /// The returned `Settlement` objects include an `entries` field that lists.
- /// the transactions that contribute to the settlement total. Most.
- /// settlement entries correspond to a payment payout, but settlement.
- /// entries are also generated for less common events, like refunds, manual.
- /// adjustments, or chargeback holds.
- /// Square initiates its regular deposits as indicated in the.
- /// [Deposit Options with Square](https://squareup.com/help/us/en/article/3807).
- /// help article. Details for a regular deposit are usually not available.
- /// from Connect API endpoints before 10 p.m. PST the same day.
- /// Square does not know when an initiated settlement **completes**, only.
- /// whether it has failed. A completed settlement is typically reflected in.
- /// a bank account within 3 business days, but in exceptional cases it may.
- /// take longer.
- ///
- /// Required parameter: The ID of the settlements's associated location..
- /// Required parameter: The settlement's Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint..
- /// Returns the Models.V1Settlement response from the API call.
- [Obsolete]
- Models.V1Settlement V1RetrieveSettlement(
- string locationId,
- string settlementId);
-
- ///
- /// Provides comprehensive information for a single settlement.
- /// The returned `Settlement` objects include an `entries` field that lists.
- /// the transactions that contribute to the settlement total. Most.
- /// settlement entries correspond to a payment payout, but settlement.
- /// entries are also generated for less common events, like refunds, manual.
- /// adjustments, or chargeback holds.
- /// Square initiates its regular deposits as indicated in the.
- /// [Deposit Options with Square](https://squareup.com/help/us/en/article/3807).
- /// help article. Details for a regular deposit are usually not available.
- /// from Connect API endpoints before 10 p.m. PST the same day.
- /// Square does not know when an initiated settlement **completes**, only.
- /// whether it has failed. A completed settlement is typically reflected in.
- /// a bank account within 3 business days, but in exceptional cases it may.
- /// take longer.
- ///
- /// Required parameter: The ID of the settlements's associated location..
- /// Required parameter: The settlement's Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint..
- /// cancellationToken.
- /// Returns the Models.V1Settlement response from the API call.
- [Obsolete]
- Task V1RetrieveSettlementAsync(
- string locationId,
- string settlementId,
- CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/Square/Apis/InventoryApi.cs b/Square/Apis/InventoryApi.cs
index 2d8b4dff..298f74ed 100644
--- a/Square/Apis/InventoryApi.cs
+++ b/Square/Apis/InventoryApi.cs
@@ -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;
diff --git a/Square/Apis/InvoicesApi.cs b/Square/Apis/InvoicesApi.cs
index 788aec75..4412160b 100644
--- a/Square/Apis/InvoicesApi.cs
+++ b/Square/Apis/InvoicesApi.cs
@@ -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;
@@ -378,8 +377,10 @@ public Models.CancelInvoiceResponse CancelInvoice(
/// nothing. Square also makes the invoice available on a Square-hosted invoice page. .
/// The invoice `status` also changes from `DRAFT` to a status .
/// based on the invoice configuration. For example, the status changes to `UNPAID` if .
- /// Square emails the invoice or `PARTIALLY_PAID` if Square charge a card on file for a portion of the .
+ /// Square emails the invoice or `PARTIALLY_PAID` if Square charges a card on file for a portion of the .
/// invoice amount.
+ /// In addition to the required `ORDERS_WRITE` and `INVOICES_WRITE` permissions, `CUSTOMERS_READ`.
+ /// and `PAYMENTS_WRITE` are required when publishing invoices configured for card-on-file payments.
///
/// Required parameter: The ID of the invoice to publish..
/// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
@@ -397,8 +398,10 @@ public Models.PublishInvoiceResponse PublishInvoice(
/// nothing. Square also makes the invoice available on a Square-hosted invoice page. .
/// The invoice `status` also changes from `DRAFT` to a status .
/// based on the invoice configuration. For example, the status changes to `UNPAID` if .
- /// Square emails the invoice or `PARTIALLY_PAID` if Square charge a card on file for a portion of the .
+ /// Square emails the invoice or `PARTIALLY_PAID` if Square charges a card on file for a portion of the .
/// invoice amount.
+ /// In addition to the required `ORDERS_WRITE` and `INVOICES_WRITE` permissions, `CUSTOMERS_READ`.
+ /// and `PAYMENTS_WRITE` are required when publishing invoices configured for card-on-file payments.
///
/// Required parameter: The ID of the invoice to publish..
/// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
diff --git a/Square/Apis/LaborApi.cs b/Square/Apis/LaborApi.cs
index 8df10441..f1daa7ff 100644
--- a/Square/Apis/LaborApi.cs
+++ b/Square/Apis/LaborApi.cs
@@ -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;
diff --git a/Square/Apis/LocationCustomAttributesApi.cs b/Square/Apis/LocationCustomAttributesApi.cs
index 13780784..e3a283e7 100644
--- a/Square/Apis/LocationCustomAttributesApi.cs
+++ b/Square/Apis/LocationCustomAttributesApi.cs
@@ -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;
diff --git a/Square/Apis/LocationsApi.cs b/Square/Apis/LocationsApi.cs
index a4c60cd8..f047da63 100644
--- a/Square/Apis/LocationsApi.cs
+++ b/Square/Apis/LocationsApi.cs
@@ -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;
@@ -32,7 +31,7 @@ internal LocationsApi(GlobalConfiguration globalConfiguration) : base(globalConf
///
/// 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`.
///
/// Returns the Models.ListLocationsResponse response from the API call.
public Models.ListLocationsResponse ListLocations()
@@ -40,7 +39,7 @@ public Models.ListLocationsResponse ListLocations()
///
/// 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`.
///
/// cancellationToken.
/// Returns the Models.ListLocationsResponse response from the API call.
diff --git a/Square/Apis/LoyaltyApi.cs b/Square/Apis/LoyaltyApi.cs
index e68e046f..7f518419 100644
--- a/Square/Apis/LoyaltyApi.cs
+++ b/Square/Apis/LoyaltyApi.cs
@@ -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;
diff --git a/Square/Apis/MerchantCustomAttributesApi.cs b/Square/Apis/MerchantCustomAttributesApi.cs
index a9a60699..22d60eaf 100644
--- a/Square/Apis/MerchantCustomAttributesApi.cs
+++ b/Square/Apis/MerchantCustomAttributesApi.cs
@@ -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;
diff --git a/Square/Apis/MerchantsApi.cs b/Square/Apis/MerchantsApi.cs
index 595ef1bd..01f8489f 100644
--- a/Square/Apis/MerchantsApi.cs
+++ b/Square/Apis/MerchantsApi.cs
@@ -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;
diff --git a/Square/Apis/MobileAuthorizationApi.cs b/Square/Apis/MobileAuthorizationApi.cs
index 753a905f..c87a6ece 100644
--- a/Square/Apis/MobileAuthorizationApi.cs
+++ b/Square/Apis/MobileAuthorizationApi.cs
@@ -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;
diff --git a/Square/Apis/OAuthApi.cs b/Square/Apis/OAuthApi.cs
index 6cce0c21..3c31dfb6 100644
--- a/Square/Apis/OAuthApi.cs
+++ b/Square/Apis/OAuthApi.cs
@@ -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;
diff --git a/Square/Apis/OrderCustomAttributesApi.cs b/Square/Apis/OrderCustomAttributesApi.cs
index 62b4a315..bec2d676 100644
--- a/Square/Apis/OrderCustomAttributesApi.cs
+++ b/Square/Apis/OrderCustomAttributesApi.cs
@@ -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;
diff --git a/Square/Apis/OrdersApi.cs b/Square/Apis/OrdersApi.cs
index 82ddff1a..aaba91c8 100644
--- a/Square/Apis/OrdersApi.cs
+++ b/Square/Apis/OrdersApi.cs
@@ -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;
diff --git a/Square/Apis/PaymentsApi.cs b/Square/Apis/PaymentsApi.cs
index c5d2f5a8..3301be23 100644
--- a/Square/Apis/PaymentsApi.cs
+++ b/Square/Apis/PaymentsApi.cs
@@ -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;
diff --git a/Square/Apis/PayoutsApi.cs b/Square/Apis/PayoutsApi.cs
index 357af7a4..93252b83 100644
--- a/Square/Apis/PayoutsApi.cs
+++ b/Square/Apis/PayoutsApi.cs
@@ -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;
diff --git a/Square/Apis/RefundsApi.cs b/Square/Apis/RefundsApi.cs
index 528986af..10ad38c9 100644
--- a/Square/Apis/RefundsApi.cs
+++ b/Square/Apis/RefundsApi.cs
@@ -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;
diff --git a/Square/Apis/SitesApi.cs b/Square/Apis/SitesApi.cs
index ad3bcca2..3038328a 100644
--- a/Square/Apis/SitesApi.cs
+++ b/Square/Apis/SitesApi.cs
@@ -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;
diff --git a/Square/Apis/SnippetsApi.cs b/Square/Apis/SnippetsApi.cs
index 58731ec5..2d05600e 100644
--- a/Square/Apis/SnippetsApi.cs
+++ b/Square/Apis/SnippetsApi.cs
@@ -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;
diff --git a/Square/Apis/SubscriptionsApi.cs b/Square/Apis/SubscriptionsApi.cs
index e2c32544..4585928b 100644
--- a/Square/Apis/SubscriptionsApi.cs
+++ b/Square/Apis/SubscriptionsApi.cs
@@ -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;
diff --git a/Square/Apis/TeamApi.cs b/Square/Apis/TeamApi.cs
index d9985517..afd85c22 100644
--- a/Square/Apis/TeamApi.cs
+++ b/Square/Apis/TeamApi.cs
@@ -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;
diff --git a/Square/Apis/TerminalApi.cs b/Square/Apis/TerminalApi.cs
index b5acc92d..f94f42aa 100644
--- a/Square/Apis/TerminalApi.cs
+++ b/Square/Apis/TerminalApi.cs
@@ -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;
diff --git a/Square/Apis/TransactionsApi.cs b/Square/Apis/TransactionsApi.cs
index 3332c395..7885e988 100644
--- a/Square/Apis/TransactionsApi.cs
+++ b/Square/Apis/TransactionsApi.cs
@@ -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;
diff --git a/Square/Apis/V1TransactionsApi.cs b/Square/Apis/V1TransactionsApi.cs
index 1a6f5a9c..ac79e0cd 100644
--- a/Square/Apis/V1TransactionsApi.cs
+++ b/Square/Apis/V1TransactionsApi.cs
@@ -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;
@@ -154,368 +153,5 @@ public Models.V1Order V1UpdateOrder(
.ResponseHandler(_responseHandler => _responseHandler
.ContextAdder((_result, _context) => _result.ContextSetter(_context)))
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
-
- ///
- /// Provides summary information for all payments taken for a given.
- /// Square account during a date range. Date ranges cannot exceed 1 year in.
- /// length. See Date ranges for details of inclusive and exclusive dates.
- /// *Note**: Details for payments processed with Square Point of Sale while.
- /// in offline mode may not be transmitted to Square for up to 72 hours.
- /// Offline payments have a `created_at` value that reflects the time the.
- /// payment was originally processed, not the time it was subsequently.
- /// transmitted to Square. Consequently, the ListPayments endpoint might.
- /// list an offline payment chronologically between online payments that.
- /// were seen in a previous request.
- ///
- /// Required parameter: The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business's locations..
- /// Optional parameter: The order in which payments are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The maximum number of payments to return in a single response. This value cannot exceed 200..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// Optional parameter: Indicates whether or not to include partial payments in the response. Partial payments will have the tenders collected so far, but the itemizations will be empty until the payment is completed..
- /// Returns the List of Models.V1Payment response from the API call.
- [Obsolete]
- public List V1ListPayments(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null,
- bool? includePartial = false)
- => CoreHelper.RunTask(V1ListPaymentsAsync(locationId, order, beginTime, endTime, limit, batchToken, includePartial));
-
- ///
- /// Provides summary information for all payments taken for a given.
- /// Square account during a date range. Date ranges cannot exceed 1 year in.
- /// length. See Date ranges for details of inclusive and exclusive dates.
- /// *Note**: Details for payments processed with Square Point of Sale while.
- /// in offline mode may not be transmitted to Square for up to 72 hours.
- /// Offline payments have a `created_at` value that reflects the time the.
- /// payment was originally processed, not the time it was subsequently.
- /// transmitted to Square. Consequently, the ListPayments endpoint might.
- /// list an offline payment chronologically between online payments that.
- /// were seen in a previous request.
- ///
- /// Required parameter: The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business's locations..
- /// Optional parameter: The order in which payments are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The maximum number of payments to return in a single response. This value cannot exceed 200..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// Optional parameter: Indicates whether or not to include partial payments in the response. Partial payments will have the tenders collected so far, but the itemizations will be empty until the payment is completed..
- /// cancellationToken.
- /// Returns the List of Models.V1Payment response from the API call.
- [Obsolete]
- public async Task> V1ListPaymentsAsync(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null,
- bool? includePartial = false,
- CancellationToken cancellationToken = default)
- => await CreateApiCall>()
- .RequestBuilder(_requestBuilder => _requestBuilder
- .Setup(HttpMethod.Get, "/v1/{location_id}/payments")
- .WithAuth("global")
- .Parameters(_parameters => _parameters
- .Template(_template => _template.Setup("location_id", locationId))
- .Query(_query => _query.Setup("order", order))
- .Query(_query => _query.Setup("begin_time", beginTime))
- .Query(_query => _query.Setup("end_time", endTime))
- .Query(_query => _query.Setup("limit", limit))
- .Query(_query => _query.Setup("batch_token", batchToken))
- .Query(_query => _query.Setup("include_partial", (includePartial != null) ? includePartial : false))))
- .ResponseHandler(_responseHandler => _responseHandler
- .ContextAdder((_result, _context) =>
- {
- _result.ForEach(model => model.ContextSetter(_context));
- return _result;
- }))
- .ExecuteAsync(cancellationToken).ConfigureAwait(false);
-
- ///
- /// Provides comprehensive information for a single payment.
- ///
- /// Required parameter: The ID of the payment's associated location..
- /// Required parameter: The Square-issued payment ID. payment_id comes from Payment objects returned by the List Payments endpoint, Settlement objects returned by the List Settlements endpoint, or Refund objects returned by the List Refunds endpoint..
- /// Returns the Models.V1Payment response from the API call.
- [Obsolete]
- public Models.V1Payment V1RetrievePayment(
- string locationId,
- string paymentId)
- => CoreHelper.RunTask(V1RetrievePaymentAsync(locationId, paymentId));
-
- ///
- /// Provides comprehensive information for a single payment.
- ///
- /// Required parameter: The ID of the payment's associated location..
- /// Required parameter: The Square-issued payment ID. payment_id comes from Payment objects returned by the List Payments endpoint, Settlement objects returned by the List Settlements endpoint, or Refund objects returned by the List Refunds endpoint..
- /// cancellationToken.
- /// Returns the Models.V1Payment response from the API call.
- [Obsolete]
- public async Task V1RetrievePaymentAsync(
- string locationId,
- string paymentId,
- CancellationToken cancellationToken = default)
- => await CreateApiCall()
- .RequestBuilder(_requestBuilder => _requestBuilder
- .Setup(HttpMethod.Get, "/v1/{location_id}/payments/{payment_id}")
- .WithAuth("global")
- .Parameters(_parameters => _parameters
- .Template(_template => _template.Setup("location_id", locationId))
- .Template(_template => _template.Setup("payment_id", paymentId))))
- .ResponseHandler(_responseHandler => _responseHandler
- .ContextAdder((_result, _context) => _result.ContextSetter(_context)))
- .ExecuteAsync(cancellationToken).ConfigureAwait(false);
-
- ///
- /// Provides the details for all refunds initiated by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length.
- ///
- /// Required parameter: The ID of the location to list refunds for..
- /// Optional parameter: The order in which payments are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The approximate number of refunds to return in a single response. Default: 100. Max: 200. Response may contain more results than the prescribed limit when refunds are made simultaneously to multiple tenders in a payment or when refunds are generated in an exchange to account for the value of returned goods..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// Returns the List of Models.V1Refund response from the API call.
- [Obsolete]
- public List V1ListRefunds(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null)
- => CoreHelper.RunTask(V1ListRefundsAsync(locationId, order, beginTime, endTime, limit, batchToken));
-
- ///
- /// Provides the details for all refunds initiated by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length.
- ///
- /// Required parameter: The ID of the location to list refunds for..
- /// Optional parameter: The order in which payments are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The approximate number of refunds to return in a single response. Default: 100. Max: 200. Response may contain more results than the prescribed limit when refunds are made simultaneously to multiple tenders in a payment or when refunds are generated in an exchange to account for the value of returned goods..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// cancellationToken.
- /// Returns the List of Models.V1Refund response from the API call.
- [Obsolete]
- public async Task> V1ListRefundsAsync(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null,
- CancellationToken cancellationToken = default)
- => await CreateApiCall>()
- .RequestBuilder(_requestBuilder => _requestBuilder
- .Setup(HttpMethod.Get, "/v1/{location_id}/refunds")
- .WithAuth("global")
- .Parameters(_parameters => _parameters
- .Template(_template => _template.Setup("location_id", locationId))
- .Query(_query => _query.Setup("order", order))
- .Query(_query => _query.Setup("begin_time", beginTime))
- .Query(_query => _query.Setup("end_time", endTime))
- .Query(_query => _query.Setup("limit", limit))
- .Query(_query => _query.Setup("batch_token", batchToken))))
- .ResponseHandler(_responseHandler => _responseHandler
- .ContextAdder((_result, _context) =>
- {
- _result.ForEach(model => model.ContextSetter(_context));
- return _result;
- }))
- .ExecuteAsync(cancellationToken).ConfigureAwait(false);
-
- ///
- /// Issues a refund for a previously processed payment. You must issue.
- /// a refund within 60 days of the associated payment.
- /// You cannot issue a partial refund for a split tender payment. You must.
- /// instead issue a full or partial refund for a particular tender, by.
- /// providing the applicable tender id to the V1CreateRefund endpoint.
- /// Issuing a full refund for a split tender payment refunds all tenders.
- /// associated with the payment.
- /// Issuing a refund for a card payment is not reversible. For development.
- /// purposes, you can create fake cash payments in Square Point of Sale and.
- /// refund them.
- ///
- /// Required parameter: The ID of the original payment's associated location..
- /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
- /// Returns the Models.V1Refund response from the API call.
- [Obsolete]
- public Models.V1Refund V1CreateRefund(
- string locationId,
- Models.V1CreateRefundRequest body)
- => CoreHelper.RunTask(V1CreateRefundAsync(locationId, body));
-
- ///
- /// Issues a refund for a previously processed payment. You must issue.
- /// a refund within 60 days of the associated payment.
- /// You cannot issue a partial refund for a split tender payment. You must.
- /// instead issue a full or partial refund for a particular tender, by.
- /// providing the applicable tender id to the V1CreateRefund endpoint.
- /// Issuing a full refund for a split tender payment refunds all tenders.
- /// associated with the payment.
- /// Issuing a refund for a card payment is not reversible. For development.
- /// purposes, you can create fake cash payments in Square Point of Sale and.
- /// refund them.
- ///
- /// Required parameter: The ID of the original payment's associated location..
- /// Required parameter: An object containing the fields to POST for the request. See the corresponding object definition for field details..
- /// cancellationToken.
- /// Returns the Models.V1Refund response from the API call.
- [Obsolete]
- public async Task V1CreateRefundAsync(
- string locationId,
- Models.V1CreateRefundRequest body,
- CancellationToken cancellationToken = default)
- => await CreateApiCall()
- .RequestBuilder(_requestBuilder => _requestBuilder
- .Setup(HttpMethod.Post, "/v1/{location_id}/refunds")
- .WithAuth("global")
- .Parameters(_parameters => _parameters
- .Body(_bodyParameter => _bodyParameter.Setup(body))
- .Template(_template => _template.Setup("location_id", locationId))
- .Header(_header => _header.Setup("Content-Type", "application/json"))))
- .ResponseHandler(_responseHandler => _responseHandler
- .ContextAdder((_result, _context) => _result.ContextSetter(_context)))
- .ExecuteAsync(cancellationToken).ConfigureAwait(false);
-
- ///
- /// Provides summary information for all deposits and withdrawals.
- /// initiated by Square to a linked bank account during a date range. Date.
- /// ranges cannot exceed one year in length.
- /// *Note**: the ListSettlements endpoint does not provide entry.
- /// information.
- ///
- /// Required parameter: The ID of the location to list settlements for. If you specify me, this endpoint returns settlements aggregated from all of the business's locations..
- /// Optional parameter: The order in which settlements are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The maximum number of settlements to return in a single response. This value cannot exceed 200..
- /// Optional parameter: Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED)..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// Returns the List of Models.V1Settlement response from the API call.
- [Obsolete]
- public List V1ListSettlements(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string status = null,
- string batchToken = null)
- => CoreHelper.RunTask(V1ListSettlementsAsync(locationId, order, beginTime, endTime, limit, status, batchToken));
-
- ///
- /// Provides summary information for all deposits and withdrawals.
- /// initiated by Square to a linked bank account during a date range. Date.
- /// ranges cannot exceed one year in length.
- /// *Note**: the ListSettlements endpoint does not provide entry.
- /// information.
- ///
- /// Required parameter: The ID of the location to list settlements for. If you specify me, this endpoint returns settlements aggregated from all of the business's locations..
- /// Optional parameter: The order in which settlements are listed in the response..
- /// Optional parameter: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year..
- /// Optional parameter: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time..
- /// Optional parameter: The maximum number of settlements to return in a single response. This value cannot exceed 200..
- /// Optional parameter: Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED)..
- /// Optional parameter: A pagination cursor to retrieve the next set of results for your original query to the endpoint..
- /// cancellationToken.
- /// Returns the List of Models.V1Settlement response from the API call.
- [Obsolete]
- public async Task> V1ListSettlementsAsync(
- string locationId,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string status = null,
- string batchToken = null,
- CancellationToken cancellationToken = default)
- => await CreateApiCall>()
- .RequestBuilder(_requestBuilder => _requestBuilder
- .Setup(HttpMethod.Get, "/v1/{location_id}/settlements")
- .WithAuth("global")
- .Parameters(_parameters => _parameters
- .Template(_template => _template.Setup("location_id", locationId))
- .Query(_query => _query.Setup("order", order))
- .Query(_query => _query.Setup("begin_time", beginTime))
- .Query(_query => _query.Setup("end_time", endTime))
- .Query(_query => _query.Setup("limit", limit))
- .Query(_query => _query.Setup("status", status))
- .Query(_query => _query.Setup("batch_token", batchToken))))
- .ResponseHandler(_responseHandler => _responseHandler
- .ContextAdder((_result, _context) =>
- {
- _result.ForEach(model => model.ContextSetter(_context));
- return _result;
- }))
- .ExecuteAsync(cancellationToken).ConfigureAwait(false);
-
- ///
- /// Provides comprehensive information for a single settlement.
- /// The returned `Settlement` objects include an `entries` field that lists.
- /// the transactions that contribute to the settlement total. Most.
- /// settlement entries correspond to a payment payout, but settlement.
- /// entries are also generated for less common events, like refunds, manual.
- /// adjustments, or chargeback holds.
- /// Square initiates its regular deposits as indicated in the.
- /// [Deposit Options with Square](https://squareup.com/help/us/en/article/3807).
- /// help article. Details for a regular deposit are usually not available.
- /// from Connect API endpoints before 10 p.m. PST the same day.
- /// Square does not know when an initiated settlement **completes**, only.
- /// whether it has failed. A completed settlement is typically reflected in.
- /// a bank account within 3 business days, but in exceptional cases it may.
- /// take longer.
- ///
- /// Required parameter: The ID of the settlements's associated location..
- /// Required parameter: The settlement's Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint..
- /// Returns the Models.V1Settlement response from the API call.
- [Obsolete]
- public Models.V1Settlement V1RetrieveSettlement(
- string locationId,
- string settlementId)
- => CoreHelper.RunTask(V1RetrieveSettlementAsync(locationId, settlementId));
-
- ///
- /// Provides comprehensive information for a single settlement.
- /// The returned `Settlement` objects include an `entries` field that lists.
- /// the transactions that contribute to the settlement total. Most.
- /// settlement entries correspond to a payment payout, but settlement.
- /// entries are also generated for less common events, like refunds, manual.
- /// adjustments, or chargeback holds.
- /// Square initiates its regular deposits as indicated in the.
- /// [Deposit Options with Square](https://squareup.com/help/us/en/article/3807).
- /// help article. Details for a regular deposit are usually not available.
- /// from Connect API endpoints before 10 p.m. PST the same day.
- /// Square does not know when an initiated settlement **completes**, only.
- /// whether it has failed. A completed settlement is typically reflected in.
- /// a bank account within 3 business days, but in exceptional cases it may.
- /// take longer.
- ///
- /// Required parameter: The ID of the settlements's associated location..
- /// Required parameter: The settlement's Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint..
- /// cancellationToken.
- /// Returns the Models.V1Settlement response from the API call.
- [Obsolete]
- public async Task V1RetrieveSettlementAsync(
- string locationId,
- string settlementId,
- CancellationToken cancellationToken = default)
- => await CreateApiCall()
- .RequestBuilder(_requestBuilder => _requestBuilder
- .Setup(HttpMethod.Get, "/v1/{location_id}/settlements/{settlement_id}")
- .WithAuth("global")
- .Parameters(_parameters => _parameters
- .Template(_template => _template.Setup("location_id", locationId))
- .Template(_template => _template.Setup("settlement_id", settlementId))))
- .ResponseHandler(_responseHandler => _responseHandler
- .ContextAdder((_result, _context) => _result.ContextSetter(_context)))
- .ExecuteAsync(cancellationToken).ConfigureAwait(false);
}
}
\ No newline at end of file
diff --git a/Square/Apis/VendorsApi.cs b/Square/Apis/VendorsApi.cs
index 1a9c06ff..74690bd6 100644
--- a/Square/Apis/VendorsApi.cs
+++ b/Square/Apis/VendorsApi.cs
@@ -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;
diff --git a/Square/Apis/WebhookSubscriptionsApi.cs b/Square/Apis/WebhookSubscriptionsApi.cs
index 9abcabc9..27a0293d 100644
--- a/Square/Apis/WebhookSubscriptionsApi.cs
+++ b/Square/Apis/WebhookSubscriptionsApi.cs
@@ -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;
diff --git a/Square/Authentication/BearerAuthManager.cs b/Square/Authentication/BearerAuthManager.cs
index bc117566..a5488d72 100644
--- a/Square/Authentication/BearerAuthManager.cs
+++ b/Square/Authentication/BearerAuthManager.cs
@@ -15,11 +15,13 @@ internal class BearerAuthManager : AuthManager, IBearerAuthCredentials
/// Initializes a new instance of the class.
///
/// accessToken.
- public BearerAuthManager(string accessToken)
+ public BearerAuthManager(BearerAuthModel bearerAuthModel)
{
- this.AccessToken = accessToken;
+ this.AccessToken = bearerAuthModel?.AccessToken;
Parameters(paramBuilder => paramBuilder
- .Header(header => header.Setup("Authorization", "Bearer " + this.AccessToken)));
+ .Header(header => header.Setup("Authorization",
+ this.AccessToken == null ? null : $"Bearer {this.AccessToken}"
+ ).Required()));
}
///
@@ -38,4 +40,59 @@ public bool Equals(string accessToken)
}
}
+
+ public sealed class BearerAuthModel
+ {
+ internal BearerAuthModel()
+ {
+ }
+
+ internal string AccessToken { get; set; }
+
+ ///
+ /// Creates an object of the BearerAuthModel using the values provided for the builder.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ return new Builder(AccessToken);
+ }
+
+ ///
+ /// Builder class for BearerAuthModel.
+ ///
+ public class Builder
+ {
+ private string accessToken;
+
+ public Builder(string accessToken)
+ {
+ this.accessToken = accessToken ?? throw new ArgumentNullException(nameof(accessToken));
+ }
+
+ ///
+ /// Sets AccessToken.
+ ///
+ /// AccessToken.
+ /// Builder.
+ public Builder AccessToken(string accessToken)
+ {
+ this.accessToken = accessToken ?? throw new ArgumentNullException(nameof(accessToken));
+ return this;
+ }
+
+
+ ///
+ /// Creates an object of the BearerAuthModel using the values provided for the builder.
+ ///
+ /// BearerAuthModel.
+ public BearerAuthModel Build()
+ {
+ return new BearerAuthModel()
+ {
+ AccessToken = this.accessToken
+ };
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/Square/Authentication/IBearerAuthCredentials.cs b/Square/Authentication/IBearerAuthCredentials.cs
index 6db34788..ec8038d1 100644
--- a/Square/Authentication/IBearerAuthCredentials.cs
+++ b/Square/Authentication/IBearerAuthCredentials.cs
@@ -2,6 +2,9 @@ namespace Square.Authentication
{
using System;
+ ///
+ /// Authentication configuration interface for BearerAuth.
+ ///
public interface IBearerAuthCredentials
{
///
diff --git a/Square/Http/Request/HttpRequest.cs b/Square/Http/Request/HttpRequest.cs
index 08d3add8..fe04c84d 100644
--- a/Square/Http/Request/HttpRequest.cs
+++ b/Square/Http/Request/HttpRequest.cs
@@ -81,6 +81,7 @@ public HttpRequest(
/// Http verb to use for the http request.
/// The query url for the http request.
/// Headers to send with the request.
+ /// The string to use as raw body of the http request.
/// Form parameters collection for the request.
/// Basic auth username.
/// Basic auth password.
diff --git a/Square/Http/Response/HttpResponse.cs b/Square/Http/Response/HttpResponse.cs
index cd878ecc..ab5eb592 100644
--- a/Square/Http/Response/HttpResponse.cs
+++ b/Square/Http/Response/HttpResponse.cs
@@ -15,6 +15,7 @@ public class HttpResponse : CoreResponse
/// statusCode.
/// headers.
/// rawBody.
+ /// body.
public HttpResponse(int statusCode, Dictionary headers, Stream rawBody, string body = null)
: base(statusCode, headers, rawBody, body) { }
}
diff --git a/Square/Models/AccumulateLoyaltyPointsRequest.cs b/Square/Models/AccumulateLoyaltyPointsRequest.cs
index d80ae79e..bb921bfd 100644
--- a/Square/Models/AccumulateLoyaltyPointsRequest.cs
+++ b/Square/Models/AccumulateLoyaltyPointsRequest.cs
@@ -121,6 +121,12 @@ public class Builder
private string idempotencyKey;
private string locationId;
+ ///
+ /// Initialize Builder for AccumulateLoyaltyPointsRequest.
+ ///
+ /// accumulatePoints.
+ /// idempotencyKey.
+ /// locationId.
public Builder(
Models.LoyaltyEventAccumulatePoints accumulatePoints,
string idempotencyKey,
diff --git a/Square/Models/AdditionalRecipient.cs b/Square/Models/AdditionalRecipient.cs
index 9de359f3..32453598 100644
--- a/Square/Models/AdditionalRecipient.cs
+++ b/Square/Models/AdditionalRecipient.cs
@@ -191,6 +191,11 @@ public class Builder
private string description;
private string receivableId;
+ ///
+ /// Initialize Builder for AdditionalRecipient.
+ ///
+ /// locationId.
+ /// amountMoney.
public Builder(
string locationId,
Models.Money amountMoney)
diff --git a/Square/Models/AdjustLoyaltyPointsRequest.cs b/Square/Models/AdjustLoyaltyPointsRequest.cs
index 6083ea45..dd2faecf 100644
--- a/Square/Models/AdjustLoyaltyPointsRequest.cs
+++ b/Square/Models/AdjustLoyaltyPointsRequest.cs
@@ -158,6 +158,11 @@ public class Builder
private Models.LoyaltyEventAdjustPoints adjustPoints;
private bool? allowNegativeBalance;
+ ///
+ /// Initialize Builder for AdjustLoyaltyPointsRequest.
+ ///
+ /// idempotencyKey.
+ /// adjustPoints.
public Builder(
string idempotencyKey,
Models.LoyaltyEventAdjustPoints adjustPoints)
diff --git a/Square/Models/AppointmentSegment.cs b/Square/Models/AppointmentSegment.cs
index 564b0a70..3aedd753 100644
--- a/Square/Models/AppointmentSegment.cs
+++ b/Square/Models/AppointmentSegment.cs
@@ -247,6 +247,10 @@ public class Builder
private bool? anyTeamMember;
private IList resourceIds;
+ ///
+ /// Initialize Builder for AppointmentSegment.
+ ///
+ /// teamMemberId.
public Builder(
string teamMemberId)
{
diff --git a/Square/Models/BankAccount.cs b/Square/Models/BankAccount.cs
index 62a04b6c..c9cea42e 100644
--- a/Square/Models/BankAccount.cs
+++ b/Square/Models/BankAccount.cs
@@ -460,6 +460,19 @@ public class Builder
private int? version;
private string bankName;
+ ///
+ /// Initialize Builder for BankAccount.
+ ///
+ /// id.
+ /// accountNumberSuffix.
+ /// country.
+ /// currency.
+ /// accountType.
+ /// holderName.
+ /// primaryBankIdentificationNumber.
+ /// status.
+ /// creditable.
+ /// debitable.
public Builder(
string id,
string accountNumberSuffix,
diff --git a/Square/Models/BatchChangeInventoryRequest.cs b/Square/Models/BatchChangeInventoryRequest.cs
index 79fe4de6..dd722b0f 100644
--- a/Square/Models/BatchChangeInventoryRequest.cs
+++ b/Square/Models/BatchChangeInventoryRequest.cs
@@ -178,6 +178,10 @@ public class Builder
private IList changes;
private bool? ignoreUnchangedCounts;
+ ///
+ /// Initialize Builder for BatchChangeInventoryRequest.
+ ///
+ /// idempotencyKey.
public Builder(
string idempotencyKey)
{
diff --git a/Square/Models/BatchRetrieveCatalogObjectsRequest.cs b/Square/Models/BatchRetrieveCatalogObjectsRequest.cs
index 2634ce11..20621304 100644
--- a/Square/Models/BatchRetrieveCatalogObjectsRequest.cs
+++ b/Square/Models/BatchRetrieveCatalogObjectsRequest.cs
@@ -250,6 +250,10 @@ public class Builder
private bool? includeDeletedObjects;
private bool? includeCategoryPathToRoot;
+ ///
+ /// Initialize Builder for BatchRetrieveCatalogObjectsRequest.
+ ///
+ /// objectIds.
public Builder(
IList objectIds)
{
diff --git a/Square/Models/BatchRetrieveOrdersRequest.cs b/Square/Models/BatchRetrieveOrdersRequest.cs
index 3e09ff1d..64cf0786 100644
--- a/Square/Models/BatchRetrieveOrdersRequest.cs
+++ b/Square/Models/BatchRetrieveOrdersRequest.cs
@@ -141,6 +141,10 @@ public class Builder
private IList orderIds;
private string locationId;
+ ///
+ /// Initialize Builder for BatchRetrieveOrdersRequest.
+ ///
+ /// orderIds.
public Builder(
IList orderIds)
{
diff --git a/Square/Models/BatchUpsertCatalogObjectsRequest.cs b/Square/Models/BatchUpsertCatalogObjectsRequest.cs
index dcb5a223..5f5087cf 100644
--- a/Square/Models/BatchUpsertCatalogObjectsRequest.cs
+++ b/Square/Models/BatchUpsertCatalogObjectsRequest.cs
@@ -129,6 +129,11 @@ public class Builder
private string idempotencyKey;
private IList batches;
+ ///
+ /// Initialize Builder for BatchUpsertCatalogObjectsRequest.
+ ///
+ /// idempotencyKey.
+ /// batches.
public Builder(
string idempotencyKey,
IList batches)
diff --git a/Square/Models/BookingCustomAttributeDeleteRequest.cs b/Square/Models/BookingCustomAttributeDeleteRequest.cs
index 7151b746..23dbe00a 100644
--- a/Square/Models/BookingCustomAttributeDeleteRequest.cs
+++ b/Square/Models/BookingCustomAttributeDeleteRequest.cs
@@ -109,6 +109,11 @@ public class Builder
private string bookingId;
private string key;
+ ///
+ /// Initialize Builder for BookingCustomAttributeDeleteRequest.
+ ///
+ /// bookingId.
+ /// key.
public Builder(
string bookingId,
string key)
diff --git a/Square/Models/BookingCustomAttributeUpsertRequest.cs b/Square/Models/BookingCustomAttributeUpsertRequest.cs
index 09f7a575..fa0378ba 100644
--- a/Square/Models/BookingCustomAttributeUpsertRequest.cs
+++ b/Square/Models/BookingCustomAttributeUpsertRequest.cs
@@ -157,6 +157,11 @@ public class Builder
private Models.CustomAttribute customAttribute;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for BookingCustomAttributeUpsertRequest.
+ ///
+ /// bookingId.
+ /// customAttribute.
public Builder(
string bookingId,
Models.CustomAttribute customAttribute)
diff --git a/Square/Models/Break.cs b/Square/Models/Break.cs
index 0f7da899..4c657a8c 100644
--- a/Square/Models/Break.cs
+++ b/Square/Models/Break.cs
@@ -219,6 +219,14 @@ public class Builder
private string id;
private string endAt;
+ ///
+ /// Initialize Builder for Break.
+ ///
+ /// startAt.
+ /// breakTypeId.
+ /// name.
+ /// expectedDuration.
+ /// isPaid.
public Builder(
string startAt,
string breakTypeId,
diff --git a/Square/Models/BreakType.cs b/Square/Models/BreakType.cs
index df630805..a05baec3 100644
--- a/Square/Models/BreakType.cs
+++ b/Square/Models/BreakType.cs
@@ -194,6 +194,13 @@ public class Builder
private string createdAt;
private string updatedAt;
+ ///
+ /// Initialize Builder for BreakType.
+ ///
+ /// locationId.
+ /// breakName.
+ /// expectedDuration.
+ /// isPaid.
public Builder(
string locationId,
string breakName,
diff --git a/Square/Models/BulkCreateCustomerData.cs b/Square/Models/BulkCreateCustomerData.cs
new file mode 100644
index 00000000..43964e27
--- /dev/null
+++ b/Square/Models/BulkCreateCustomerData.cs
@@ -0,0 +1,640 @@
+namespace Square.Models
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.IO;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using APIMatic.Core.Utilities.Converters;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using Square;
+ using Square.Utilities;
+
+ ///
+ /// BulkCreateCustomerData.
+ ///
+ public class BulkCreateCustomerData
+ {
+ private readonly Dictionary shouldSerialize;
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// given_name.
+ /// family_name.
+ /// company_name.
+ /// nickname.
+ /// email_address.
+ /// address.
+ /// phone_number.
+ /// reference_id.
+ /// note.
+ /// birthday.
+ /// tax_ids.
+ public BulkCreateCustomerData(
+ string givenName = null,
+ string familyName = null,
+ string companyName = null,
+ string nickname = null,
+ string emailAddress = null,
+ Models.Address address = null,
+ string phoneNumber = null,
+ string referenceId = null,
+ string note = null,
+ string birthday = null,
+ Models.CustomerTaxIds taxIds = null)
+ {
+ shouldSerialize = new Dictionary
+ {
+ { "given_name", false },
+ { "family_name", false },
+ { "company_name", false },
+ { "nickname", false },
+ { "email_address", false },
+ { "phone_number", false },
+ { "reference_id", false },
+ { "note", false },
+ { "birthday", false }
+ };
+
+ if (givenName != null)
+ {
+ shouldSerialize["given_name"] = true;
+ this.GivenName = givenName;
+ }
+
+ if (familyName != null)
+ {
+ shouldSerialize["family_name"] = true;
+ this.FamilyName = familyName;
+ }
+
+ if (companyName != null)
+ {
+ shouldSerialize["company_name"] = true;
+ this.CompanyName = companyName;
+ }
+
+ if (nickname != null)
+ {
+ shouldSerialize["nickname"] = true;
+ this.Nickname = nickname;
+ }
+
+ if (emailAddress != null)
+ {
+ shouldSerialize["email_address"] = true;
+ this.EmailAddress = emailAddress;
+ }
+
+ this.Address = address;
+ if (phoneNumber != null)
+ {
+ shouldSerialize["phone_number"] = true;
+ this.PhoneNumber = phoneNumber;
+ }
+
+ if (referenceId != null)
+ {
+ shouldSerialize["reference_id"] = true;
+ this.ReferenceId = referenceId;
+ }
+
+ if (note != null)
+ {
+ shouldSerialize["note"] = true;
+ this.Note = note;
+ }
+
+ if (birthday != null)
+ {
+ shouldSerialize["birthday"] = true;
+ this.Birthday = birthday;
+ }
+
+ this.TaxIds = taxIds;
+ }
+ internal BulkCreateCustomerData(Dictionary shouldSerialize,
+ string givenName = null,
+ string familyName = null,
+ string companyName = null,
+ string nickname = null,
+ string emailAddress = null,
+ Models.Address address = null,
+ string phoneNumber = null,
+ string referenceId = null,
+ string note = null,
+ string birthday = null,
+ Models.CustomerTaxIds taxIds = null)
+ {
+ this.shouldSerialize = shouldSerialize;
+ GivenName = givenName;
+ FamilyName = familyName;
+ CompanyName = companyName;
+ Nickname = nickname;
+ EmailAddress = emailAddress;
+ Address = address;
+ PhoneNumber = phoneNumber;
+ ReferenceId = referenceId;
+ Note = note;
+ Birthday = birthday;
+ TaxIds = taxIds;
+ }
+
+ ///
+ /// The given name (that is, the first name) associated with the customer profile.
+ ///
+ [JsonProperty("given_name")]
+ public string GivenName { get; }
+
+ ///
+ /// The family name (that is, the last name) associated with the customer profile.
+ ///
+ [JsonProperty("family_name")]
+ public string FamilyName { get; }
+
+ ///
+ /// A business name associated with the customer profile.
+ ///
+ [JsonProperty("company_name")]
+ public string CompanyName { get; }
+
+ ///
+ /// A nickname for the customer profile.
+ ///
+ [JsonProperty("nickname")]
+ public string Nickname { get; }
+
+ ///
+ /// The email address associated with the customer profile.
+ ///
+ [JsonProperty("email_address")]
+ public string EmailAddress { get; }
+
+ ///
+ /// Represents a postal address in a country.
+ /// For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
+ ///
+ [JsonProperty("address", NullValueHandling = NullValueHandling.Ignore)]
+ public Models.Address Address { get; }
+
+ ///
+ /// The phone number associated with the customer profile. The phone number must be valid
+ /// and can contain 9–16 digits, with an optional `+` prefix and country code. For more information,
+ /// see [Customer phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#phone-number).
+ ///
+ [JsonProperty("phone_number")]
+ public string PhoneNumber { get; }
+
+ ///
+ /// An optional second ID used to associate the customer profile with an
+ /// entity in another system.
+ ///
+ [JsonProperty("reference_id")]
+ public string ReferenceId { get; }
+
+ ///
+ /// A custom note associated with the customer profile.
+ ///
+ [JsonProperty("note")]
+ public string Note { get; }
+
+ ///
+ /// The birthday associated with the customer profile, in `YYYY-MM-DD` or `MM-DD` format.
+ /// For example, specify `1998-09-21` for September 21, 1998, or `09-21` for September 21.
+ /// Birthdays are returned in `YYYY-MM-DD` format, where `YYYY` is the specified birth year or
+ /// `0000` if a birth year is not specified.
+ ///
+ [JsonProperty("birthday")]
+ public string Birthday { get; }
+
+ ///
+ /// Represents the tax ID associated with a [customer profile]($m/Customer). The corresponding `tax_ids` field is available only for customers of sellers in EU countries or the United Kingdom.
+ /// For more information, see [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids).
+ ///
+ [JsonProperty("tax_ids", NullValueHandling = NullValueHandling.Ignore)]
+ public Models.CustomerTaxIds TaxIds { get; }
+
+ ///
+ public override string ToString()
+ {
+ var toStringOutput = new List();
+
+ this.ToString(toStringOutput);
+
+ return $"BulkCreateCustomerData : ({string.Join(", ", toStringOutput)})";
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeGivenName()
+ {
+ return this.shouldSerialize["given_name"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeFamilyName()
+ {
+ return this.shouldSerialize["family_name"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeCompanyName()
+ {
+ return this.shouldSerialize["company_name"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeNickname()
+ {
+ return this.shouldSerialize["nickname"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeEmailAddress()
+ {
+ return this.shouldSerialize["email_address"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializePhoneNumber()
+ {
+ return this.shouldSerialize["phone_number"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeReferenceId()
+ {
+ return this.shouldSerialize["reference_id"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeNote()
+ {
+ return this.shouldSerialize["note"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeBirthday()
+ {
+ return this.shouldSerialize["birthday"];
+ }
+
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+
+ if (obj == this)
+ {
+ return true;
+ }
+ return obj is BulkCreateCustomerData other && ((this.GivenName == null && other.GivenName == null) || (this.GivenName?.Equals(other.GivenName) == true)) &&
+ ((this.FamilyName == null && other.FamilyName == null) || (this.FamilyName?.Equals(other.FamilyName) == true)) &&
+ ((this.CompanyName == null && other.CompanyName == null) || (this.CompanyName?.Equals(other.CompanyName) == true)) &&
+ ((this.Nickname == null && other.Nickname == null) || (this.Nickname?.Equals(other.Nickname) == true)) &&
+ ((this.EmailAddress == null && other.EmailAddress == null) || (this.EmailAddress?.Equals(other.EmailAddress) == true)) &&
+ ((this.Address == null && other.Address == null) || (this.Address?.Equals(other.Address) == true)) &&
+ ((this.PhoneNumber == null && other.PhoneNumber == null) || (this.PhoneNumber?.Equals(other.PhoneNumber) == true)) &&
+ ((this.ReferenceId == null && other.ReferenceId == null) || (this.ReferenceId?.Equals(other.ReferenceId) == true)) &&
+ ((this.Note == null && other.Note == null) || (this.Note?.Equals(other.Note) == true)) &&
+ ((this.Birthday == null && other.Birthday == null) || (this.Birthday?.Equals(other.Birthday) == true)) &&
+ ((this.TaxIds == null && other.TaxIds == null) || (this.TaxIds?.Equals(other.TaxIds) == true));
+ }
+
+ ///
+ public override int GetHashCode()
+ {
+ int hashCode = -785217377;
+ hashCode = HashCode.Combine(this.GivenName, this.FamilyName, this.CompanyName, this.Nickname, this.EmailAddress, this.Address, this.PhoneNumber);
+
+ hashCode = HashCode.Combine(hashCode, this.ReferenceId, this.Note, this.Birthday, this.TaxIds);
+
+ return hashCode;
+ }
+ ///
+ /// ToString overload.
+ ///
+ /// List of strings.
+ protected void ToString(List toStringOutput)
+ {
+ toStringOutput.Add($"this.GivenName = {(this.GivenName == null ? "null" : this.GivenName)}");
+ toStringOutput.Add($"this.FamilyName = {(this.FamilyName == null ? "null" : this.FamilyName)}");
+ toStringOutput.Add($"this.CompanyName = {(this.CompanyName == null ? "null" : this.CompanyName)}");
+ toStringOutput.Add($"this.Nickname = {(this.Nickname == null ? "null" : this.Nickname)}");
+ toStringOutput.Add($"this.EmailAddress = {(this.EmailAddress == null ? "null" : this.EmailAddress)}");
+ toStringOutput.Add($"this.Address = {(this.Address == null ? "null" : this.Address.ToString())}");
+ toStringOutput.Add($"this.PhoneNumber = {(this.PhoneNumber == null ? "null" : this.PhoneNumber)}");
+ toStringOutput.Add($"this.ReferenceId = {(this.ReferenceId == null ? "null" : this.ReferenceId)}");
+ toStringOutput.Add($"this.Note = {(this.Note == null ? "null" : this.Note)}");
+ toStringOutput.Add($"this.Birthday = {(this.Birthday == null ? "null" : this.Birthday)}");
+ toStringOutput.Add($"this.TaxIds = {(this.TaxIds == null ? "null" : this.TaxIds.ToString())}");
+ }
+
+ ///
+ /// Converts to builder object.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ var builder = new Builder()
+ .GivenName(this.GivenName)
+ .FamilyName(this.FamilyName)
+ .CompanyName(this.CompanyName)
+ .Nickname(this.Nickname)
+ .EmailAddress(this.EmailAddress)
+ .Address(this.Address)
+ .PhoneNumber(this.PhoneNumber)
+ .ReferenceId(this.ReferenceId)
+ .Note(this.Note)
+ .Birthday(this.Birthday)
+ .TaxIds(this.TaxIds);
+ return builder;
+ }
+
+ ///
+ /// Builder class.
+ ///
+ public class Builder
+ {
+ private Dictionary shouldSerialize = new Dictionary
+ {
+ { "given_name", false },
+ { "family_name", false },
+ { "company_name", false },
+ { "nickname", false },
+ { "email_address", false },
+ { "phone_number", false },
+ { "reference_id", false },
+ { "note", false },
+ { "birthday", false },
+ };
+
+ private string givenName;
+ private string familyName;
+ private string companyName;
+ private string nickname;
+ private string emailAddress;
+ private Models.Address address;
+ private string phoneNumber;
+ private string referenceId;
+ private string note;
+ private string birthday;
+ private Models.CustomerTaxIds taxIds;
+
+ ///
+ /// GivenName.
+ ///
+ /// givenName.
+ /// Builder.
+ public Builder GivenName(string givenName)
+ {
+ shouldSerialize["given_name"] = true;
+ this.givenName = givenName;
+ return this;
+ }
+
+ ///
+ /// FamilyName.
+ ///
+ /// familyName.
+ /// Builder.
+ public Builder FamilyName(string familyName)
+ {
+ shouldSerialize["family_name"] = true;
+ this.familyName = familyName;
+ return this;
+ }
+
+ ///
+ /// CompanyName.
+ ///
+ /// companyName.
+ /// Builder.
+ public Builder CompanyName(string companyName)
+ {
+ shouldSerialize["company_name"] = true;
+ this.companyName = companyName;
+ return this;
+ }
+
+ ///
+ /// Nickname.
+ ///
+ /// nickname.
+ /// Builder.
+ public Builder Nickname(string nickname)
+ {
+ shouldSerialize["nickname"] = true;
+ this.nickname = nickname;
+ return this;
+ }
+
+ ///
+ /// EmailAddress.
+ ///
+ /// emailAddress.
+ /// Builder.
+ public Builder EmailAddress(string emailAddress)
+ {
+ shouldSerialize["email_address"] = true;
+ this.emailAddress = emailAddress;
+ return this;
+ }
+
+ ///
+ /// Address.
+ ///
+ /// address.
+ /// Builder.
+ public Builder Address(Models.Address address)
+ {
+ this.address = address;
+ return this;
+ }
+
+ ///
+ /// PhoneNumber.
+ ///
+ /// phoneNumber.
+ /// Builder.
+ public Builder PhoneNumber(string phoneNumber)
+ {
+ shouldSerialize["phone_number"] = true;
+ this.phoneNumber = phoneNumber;
+ return this;
+ }
+
+ ///
+ /// ReferenceId.
+ ///
+ /// referenceId.
+ /// Builder.
+ public Builder ReferenceId(string referenceId)
+ {
+ shouldSerialize["reference_id"] = true;
+ this.referenceId = referenceId;
+ return this;
+ }
+
+ ///
+ /// Note.
+ ///
+ /// note.
+ /// Builder.
+ public Builder Note(string note)
+ {
+ shouldSerialize["note"] = true;
+ this.note = note;
+ return this;
+ }
+
+ ///
+ /// Birthday.
+ ///
+ /// birthday.
+ /// Builder.
+ public Builder Birthday(string birthday)
+ {
+ shouldSerialize["birthday"] = true;
+ this.birthday = birthday;
+ return this;
+ }
+
+ ///
+ /// TaxIds.
+ ///
+ /// taxIds.
+ /// Builder.
+ public Builder TaxIds(Models.CustomerTaxIds taxIds)
+ {
+ this.taxIds = taxIds;
+ return this;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetGivenName()
+ {
+ this.shouldSerialize["given_name"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetFamilyName()
+ {
+ this.shouldSerialize["family_name"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetCompanyName()
+ {
+ this.shouldSerialize["company_name"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetNickname()
+ {
+ this.shouldSerialize["nickname"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetEmailAddress()
+ {
+ this.shouldSerialize["email_address"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetPhoneNumber()
+ {
+ this.shouldSerialize["phone_number"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetReferenceId()
+ {
+ this.shouldSerialize["reference_id"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetNote()
+ {
+ this.shouldSerialize["note"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetBirthday()
+ {
+ this.shouldSerialize["birthday"] = false;
+ }
+
+
+ ///
+ /// Builds class object.
+ ///
+ /// BulkCreateCustomerData.
+ public BulkCreateCustomerData Build()
+ {
+ return new BulkCreateCustomerData(shouldSerialize,
+ this.givenName,
+ this.familyName,
+ this.companyName,
+ this.nickname,
+ this.emailAddress,
+ this.address,
+ this.phoneNumber,
+ this.referenceId,
+ this.note,
+ this.birthday,
+ this.taxIds);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Square/Models/BulkCreateCustomersRequest.cs b/Square/Models/BulkCreateCustomersRequest.cs
new file mode 100644
index 00000000..3f19acc1
--- /dev/null
+++ b/Square/Models/BulkCreateCustomersRequest.cs
@@ -0,0 +1,133 @@
+namespace Square.Models
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.IO;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using APIMatic.Core.Utilities.Converters;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using Square;
+ using Square.Utilities;
+
+ ///
+ /// BulkCreateCustomersRequest.
+ ///
+ public class BulkCreateCustomersRequest
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// customers.
+ public BulkCreateCustomersRequest(
+ IDictionary customers)
+ {
+ this.Customers = customers;
+ }
+
+ ///
+ /// A map of 1 to 100 individual create requests, represented by `idempotency key: { customer data }`
+ /// key-value pairs.
+ /// Each key is an [idempotency key](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)
+ /// that uniquely identifies the create request. Each value contains the customer data used to create the
+ /// customer profile.
+ ///
+ [JsonProperty("customers")]
+ public IDictionary Customers { get; }
+
+ ///
+ public override string ToString()
+ {
+ var toStringOutput = new List();
+
+ this.ToString(toStringOutput);
+
+ return $"BulkCreateCustomersRequest : ({string.Join(", ", toStringOutput)})";
+ }
+
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+
+ if (obj == this)
+ {
+ return true;
+ }
+ return obj is BulkCreateCustomersRequest other && ((this.Customers == null && other.Customers == null) || (this.Customers?.Equals(other.Customers) == true));
+ }
+
+ ///
+ public override int GetHashCode()
+ {
+ int hashCode = 573294327;
+ hashCode = HashCode.Combine(this.Customers);
+
+ return hashCode;
+ }
+ ///
+ /// ToString overload.
+ ///
+ /// List of strings.
+ protected void ToString(List toStringOutput)
+ {
+ toStringOutput.Add($"Customers = {(this.Customers == null ? "null" : this.Customers.ToString())}");
+ }
+
+ ///
+ /// Converts to builder object.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ var builder = new Builder(
+ this.Customers);
+ return builder;
+ }
+
+ ///
+ /// Builder class.
+ ///
+ public class Builder
+ {
+ private IDictionary customers;
+
+ ///
+ /// Initialize Builder for BulkCreateCustomersRequest.
+ ///
+ /// customers.
+ public Builder(
+ IDictionary customers)
+ {
+ this.customers = customers;
+ }
+
+ ///
+ /// Customers.
+ ///
+ /// customers.
+ /// Builder.
+ public Builder Customers(IDictionary customers)
+ {
+ this.customers = customers;
+ return this;
+ }
+
+ ///
+ /// Builds class object.
+ ///
+ /// BulkCreateCustomersRequest.
+ public BulkCreateCustomersRequest Build()
+ {
+ return new BulkCreateCustomersRequest(
+ this.customers);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Square/Models/BulkCreateCustomersResponse.cs b/Square/Models/BulkCreateCustomersResponse.cs
new file mode 100644
index 00000000..0a436b29
--- /dev/null
+++ b/Square/Models/BulkCreateCustomersResponse.cs
@@ -0,0 +1,168 @@
+namespace Square.Models
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.IO;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using APIMatic.Core.Utilities.Converters;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using Square;
+ using Square.Http.Client;
+ using Square.Utilities;
+
+ ///
+ /// BulkCreateCustomersResponse.
+ ///
+ public class BulkCreateCustomersResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// responses.
+ /// errors.
+ public BulkCreateCustomersResponse(
+ IDictionary responses = null,
+ IList errors = null)
+ {
+ this.Responses = responses;
+ this.Errors = errors;
+ }
+
+ ///
+ /// Gets http context.
+ ///
+ [JsonIgnore]
+ public HttpContext Context { get; internal set; }
+
+ ///
+ /// A map of responses that correspond to individual create requests, represented by
+ /// key-value pairs.
+ /// Each key is the idempotency key that was provided for a create request and each value
+ /// is the corresponding response.
+ /// If the request succeeds, the value is the new customer profile.
+ /// If the request fails, the value contains any errors that occurred during the request.
+ ///
+ [JsonProperty("responses", NullValueHandling = NullValueHandling.Ignore)]
+ public IDictionary Responses { get; }
+
+ ///
+ /// Any top-level errors that prevented the bulk operation from running.
+ ///
+ [JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
+ public IList Errors { get; }
+
+ ///
+ public override string ToString()
+ {
+ var toStringOutput = new List();
+
+ this.ToString(toStringOutput);
+
+ return $"BulkCreateCustomersResponse : ({string.Join(", ", toStringOutput)})";
+ }
+
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+
+ if (obj == this)
+ {
+ return true;
+ }
+ return obj is BulkCreateCustomersResponse other && ((this.Context == null && other.Context == null) || (this.Context?.Equals(other.Context) == true)) &&
+ ((this.Responses == null && other.Responses == null) || (this.Responses?.Equals(other.Responses) == true)) &&
+ ((this.Errors == null && other.Errors == null) || (this.Errors?.Equals(other.Errors) == true));
+ }
+
+ ///
+ public override int GetHashCode()
+ {
+ int hashCode = -658812287;
+
+ if (this.Context != null)
+ {
+ hashCode += this.Context.GetHashCode();
+ }
+ hashCode = HashCode.Combine(this.Responses, this.Errors);
+
+ return hashCode;
+ }
+ internal BulkCreateCustomersResponse ContextSetter(HttpContext context)
+ {
+ this.Context = context;
+ return this;
+ }
+
+ ///
+ /// ToString overload.
+ ///
+ /// List of strings.
+ protected void ToString(List toStringOutput)
+ {
+ toStringOutput.Add($"Responses = {(this.Responses == null ? "null" : this.Responses.ToString())}");
+ toStringOutput.Add($"this.Errors = {(this.Errors == null ? "null" : $"[{string.Join(", ", this.Errors)} ]")}");
+ }
+
+ ///
+ /// Converts to builder object.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ var builder = new Builder()
+ .Responses(this.Responses)
+ .Errors(this.Errors);
+ return builder;
+ }
+
+ ///
+ /// Builder class.
+ ///
+ public class Builder
+ {
+ private IDictionary responses;
+ private IList errors;
+
+ ///
+ /// Responses.
+ ///
+ /// responses.
+ /// Builder.
+ public Builder Responses(IDictionary responses)
+ {
+ this.responses = responses;
+ return this;
+ }
+
+ ///
+ /// Errors.
+ ///
+ /// errors.
+ /// Builder.
+ public Builder Errors(IList errors)
+ {
+ this.errors = errors;
+ return this;
+ }
+
+ ///
+ /// Builds class object.
+ ///
+ /// BulkCreateCustomersResponse.
+ public BulkCreateCustomersResponse Build()
+ {
+ return new BulkCreateCustomersResponse(
+ this.responses,
+ this.errors);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Square/Models/BulkCreateTeamMembersRequest.cs b/Square/Models/BulkCreateTeamMembersRequest.cs
index ced6c23e..6fd35812 100644
--- a/Square/Models/BulkCreateTeamMembersRequest.cs
+++ b/Square/Models/BulkCreateTeamMembersRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IDictionary teamMembers;
+ ///
+ /// Initialize Builder for BulkCreateTeamMembersRequest.
+ ///
+ /// teamMembers.
public Builder(
IDictionary teamMembers)
{
diff --git a/Square/Models/BulkCreateVendorsRequest.cs b/Square/Models/BulkCreateVendorsRequest.cs
index ce815b2f..97e37a82 100644
--- a/Square/Models/BulkCreateVendorsRequest.cs
+++ b/Square/Models/BulkCreateVendorsRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IDictionary vendors;
+ ///
+ /// Initialize Builder for BulkCreateVendorsRequest.
+ ///
+ /// vendors.
public Builder(
IDictionary vendors)
{
diff --git a/Square/Models/BulkDeleteBookingCustomAttributesRequest.cs b/Square/Models/BulkDeleteBookingCustomAttributesRequest.cs
index 4dde375c..3f08448e 100644
--- a/Square/Models/BulkDeleteBookingCustomAttributesRequest.cs
+++ b/Square/Models/BulkDeleteBookingCustomAttributesRequest.cs
@@ -96,6 +96,10 @@ public class Builder
{
private IDictionary values;
+ ///
+ /// Initialize Builder for BulkDeleteBookingCustomAttributesRequest.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkDeleteCustomersRequest.cs b/Square/Models/BulkDeleteCustomersRequest.cs
new file mode 100644
index 00000000..73a6fc0f
--- /dev/null
+++ b/Square/Models/BulkDeleteCustomersRequest.cs
@@ -0,0 +1,129 @@
+namespace Square.Models
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.IO;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using APIMatic.Core.Utilities.Converters;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using Square;
+ using Square.Utilities;
+
+ ///
+ /// BulkDeleteCustomersRequest.
+ ///
+ public class BulkDeleteCustomersRequest
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// customer_ids.
+ public BulkDeleteCustomersRequest(
+ IList customerIds)
+ {
+ this.CustomerIds = customerIds;
+ }
+
+ ///
+ /// The IDs of the [customer profiles](entity:Customer) to delete.
+ ///
+ [JsonProperty("customer_ids")]
+ public IList CustomerIds { get; }
+
+ ///
+ public override string ToString()
+ {
+ var toStringOutput = new List();
+
+ this.ToString(toStringOutput);
+
+ return $"BulkDeleteCustomersRequest : ({string.Join(", ", toStringOutput)})";
+ }
+
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+
+ if (obj == this)
+ {
+ return true;
+ }
+ return obj is BulkDeleteCustomersRequest other && ((this.CustomerIds == null && other.CustomerIds == null) || (this.CustomerIds?.Equals(other.CustomerIds) == true));
+ }
+
+ ///
+ public override int GetHashCode()
+ {
+ int hashCode = 1157396994;
+ hashCode = HashCode.Combine(this.CustomerIds);
+
+ return hashCode;
+ }
+ ///
+ /// ToString overload.
+ ///
+ /// List of strings.
+ protected void ToString(List toStringOutput)
+ {
+ toStringOutput.Add($"this.CustomerIds = {(this.CustomerIds == null ? "null" : $"[{string.Join(", ", this.CustomerIds)} ]")}");
+ }
+
+ ///
+ /// Converts to builder object.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ var builder = new Builder(
+ this.CustomerIds);
+ return builder;
+ }
+
+ ///
+ /// Builder class.
+ ///
+ public class Builder
+ {
+ private IList customerIds;
+
+ ///
+ /// Initialize Builder for BulkDeleteCustomersRequest.
+ ///
+ /// customerIds.
+ public Builder(
+ IList customerIds)
+ {
+ this.customerIds = customerIds;
+ }
+
+ ///
+ /// CustomerIds.
+ ///
+ /// customerIds.
+ /// Builder.
+ public Builder CustomerIds(IList customerIds)
+ {
+ this.customerIds = customerIds;
+ return this;
+ }
+
+ ///
+ /// Builds class object.
+ ///
+ /// BulkDeleteCustomersRequest.
+ public BulkDeleteCustomersRequest Build()
+ {
+ return new BulkDeleteCustomersRequest(
+ this.customerIds);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Square/Models/BulkDeleteCustomersResponse.cs b/Square/Models/BulkDeleteCustomersResponse.cs
new file mode 100644
index 00000000..88ba184e
--- /dev/null
+++ b/Square/Models/BulkDeleteCustomersResponse.cs
@@ -0,0 +1,168 @@
+namespace Square.Models
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.IO;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using APIMatic.Core.Utilities.Converters;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using Square;
+ using Square.Http.Client;
+ using Square.Utilities;
+
+ ///
+ /// BulkDeleteCustomersResponse.
+ ///
+ public class BulkDeleteCustomersResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// responses.
+ /// errors.
+ public BulkDeleteCustomersResponse(
+ IDictionary responses = null,
+ IList errors = null)
+ {
+ this.Responses = responses;
+ this.Errors = errors;
+ }
+
+ ///
+ /// Gets http context.
+ ///
+ [JsonIgnore]
+ public HttpContext Context { get; internal set; }
+
+ ///
+ /// A map of responses that correspond to individual delete requests, represented by
+ /// key-value pairs.
+ /// Each key is the customer ID that was specified for a delete request and each value
+ /// is the corresponding response.
+ /// If the request succeeds, the value is an empty object (`{ }`).
+ /// If the request fails, the value contains any errors that occurred during the request.
+ ///
+ [JsonProperty("responses", NullValueHandling = NullValueHandling.Ignore)]
+ public IDictionary Responses { get; }
+
+ ///
+ /// Any top-level errors that prevented the bulk operation from running.
+ ///
+ [JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
+ public IList Errors { get; }
+
+ ///
+ public override string ToString()
+ {
+ var toStringOutput = new List();
+
+ this.ToString(toStringOutput);
+
+ return $"BulkDeleteCustomersResponse : ({string.Join(", ", toStringOutput)})";
+ }
+
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+
+ if (obj == this)
+ {
+ return true;
+ }
+ return obj is BulkDeleteCustomersResponse other && ((this.Context == null && other.Context == null) || (this.Context?.Equals(other.Context) == true)) &&
+ ((this.Responses == null && other.Responses == null) || (this.Responses?.Equals(other.Responses) == true)) &&
+ ((this.Errors == null && other.Errors == null) || (this.Errors?.Equals(other.Errors) == true));
+ }
+
+ ///
+ public override int GetHashCode()
+ {
+ int hashCode = -549851509;
+
+ if (this.Context != null)
+ {
+ hashCode += this.Context.GetHashCode();
+ }
+ hashCode = HashCode.Combine(this.Responses, this.Errors);
+
+ return hashCode;
+ }
+ internal BulkDeleteCustomersResponse ContextSetter(HttpContext context)
+ {
+ this.Context = context;
+ return this;
+ }
+
+ ///
+ /// ToString overload.
+ ///
+ /// List of strings.
+ protected void ToString(List toStringOutput)
+ {
+ toStringOutput.Add($"Responses = {(this.Responses == null ? "null" : this.Responses.ToString())}");
+ toStringOutput.Add($"this.Errors = {(this.Errors == null ? "null" : $"[{string.Join(", ", this.Errors)} ]")}");
+ }
+
+ ///
+ /// Converts to builder object.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ var builder = new Builder()
+ .Responses(this.Responses)
+ .Errors(this.Errors);
+ return builder;
+ }
+
+ ///
+ /// Builder class.
+ ///
+ public class Builder
+ {
+ private IDictionary responses;
+ private IList errors;
+
+ ///
+ /// Responses.
+ ///
+ /// responses.
+ /// Builder.
+ public Builder Responses(IDictionary responses)
+ {
+ this.responses = responses;
+ return this;
+ }
+
+ ///
+ /// Errors.
+ ///
+ /// errors.
+ /// Builder.
+ public Builder Errors(IList errors)
+ {
+ this.errors = errors;
+ return this;
+ }
+
+ ///
+ /// Builds class object.
+ ///
+ /// BulkDeleteCustomersResponse.
+ public BulkDeleteCustomersResponse Build()
+ {
+ return new BulkDeleteCustomersResponse(
+ this.responses,
+ this.errors);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Square/Models/BulkDeleteLocationCustomAttributesRequest.cs b/Square/Models/BulkDeleteLocationCustomAttributesRequest.cs
index 0e1af835..20594917 100644
--- a/Square/Models/BulkDeleteLocationCustomAttributesRequest.cs
+++ b/Square/Models/BulkDeleteLocationCustomAttributesRequest.cs
@@ -95,6 +95,10 @@ public class Builder
{
private IDictionary values;
+ ///
+ /// Initialize Builder for BulkDeleteLocationCustomAttributesRequest.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkDeleteLocationCustomAttributesResponse.cs b/Square/Models/BulkDeleteLocationCustomAttributesResponse.cs
index a47b67a1..fe591c89 100644
--- a/Square/Models/BulkDeleteLocationCustomAttributesResponse.cs
+++ b/Square/Models/BulkDeleteLocationCustomAttributesResponse.cs
@@ -127,6 +127,10 @@ public class Builder
private IDictionary values;
private IList errors;
+ ///
+ /// Initialize Builder for BulkDeleteLocationCustomAttributesResponse.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkDeleteMerchantCustomAttributesRequest.cs b/Square/Models/BulkDeleteMerchantCustomAttributesRequest.cs
index 0da0be9a..74b81f44 100644
--- a/Square/Models/BulkDeleteMerchantCustomAttributesRequest.cs
+++ b/Square/Models/BulkDeleteMerchantCustomAttributesRequest.cs
@@ -95,6 +95,10 @@ public class Builder
{
private IDictionary values;
+ ///
+ /// Initialize Builder for BulkDeleteMerchantCustomAttributesRequest.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkDeleteMerchantCustomAttributesResponse.cs b/Square/Models/BulkDeleteMerchantCustomAttributesResponse.cs
index 0a9447bf..6965a7e9 100644
--- a/Square/Models/BulkDeleteMerchantCustomAttributesResponse.cs
+++ b/Square/Models/BulkDeleteMerchantCustomAttributesResponse.cs
@@ -127,6 +127,10 @@ public class Builder
private IDictionary values;
private IList errors;
+ ///
+ /// Initialize Builder for BulkDeleteMerchantCustomAttributesResponse.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkDeleteOrderCustomAttributesRequest.cs b/Square/Models/BulkDeleteOrderCustomAttributesRequest.cs
index 218ca56b..f1e0bd42 100644
--- a/Square/Models/BulkDeleteOrderCustomAttributesRequest.cs
+++ b/Square/Models/BulkDeleteOrderCustomAttributesRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IDictionary values;
+ ///
+ /// Initialize Builder for BulkDeleteOrderCustomAttributesRequest.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs b/Square/Models/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs
index c72275fe..8ab41a24 100644
--- a/Square/Models/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs
+++ b/Square/Models/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.cs
@@ -108,6 +108,10 @@ public class Builder
private string orderId;
private string key;
+ ///
+ /// Initialize Builder for BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.
+ ///
+ /// orderId.
public Builder(
string orderId)
{
diff --git a/Square/Models/BulkDeleteOrderCustomAttributesResponse.cs b/Square/Models/BulkDeleteOrderCustomAttributesResponse.cs
index 4315e1c3..400083cb 100644
--- a/Square/Models/BulkDeleteOrderCustomAttributesResponse.cs
+++ b/Square/Models/BulkDeleteOrderCustomAttributesResponse.cs
@@ -127,6 +127,10 @@ public class Builder
private IDictionary values;
private IList errors;
+ ///
+ /// Initialize Builder for BulkDeleteOrderCustomAttributesResponse.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkRetrieveBookingsRequest.cs b/Square/Models/BulkRetrieveBookingsRequest.cs
index f96162e9..d12e8970 100644
--- a/Square/Models/BulkRetrieveBookingsRequest.cs
+++ b/Square/Models/BulkRetrieveBookingsRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IList bookingIds;
+ ///
+ /// Initialize Builder for BulkRetrieveBookingsRequest.
+ ///
+ /// bookingIds.
public Builder(
IList bookingIds)
{
diff --git a/Square/Models/BulkRetrieveCustomersRequest.cs b/Square/Models/BulkRetrieveCustomersRequest.cs
new file mode 100644
index 00000000..cda4c128
--- /dev/null
+++ b/Square/Models/BulkRetrieveCustomersRequest.cs
@@ -0,0 +1,129 @@
+namespace Square.Models
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.IO;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using APIMatic.Core.Utilities.Converters;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using Square;
+ using Square.Utilities;
+
+ ///
+ /// BulkRetrieveCustomersRequest.
+ ///
+ public class BulkRetrieveCustomersRequest
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// customer_ids.
+ public BulkRetrieveCustomersRequest(
+ IList customerIds)
+ {
+ this.CustomerIds = customerIds;
+ }
+
+ ///
+ /// The IDs of the [customer profiles](entity:Customer) to retrieve.
+ ///
+ [JsonProperty("customer_ids")]
+ public IList CustomerIds { get; }
+
+ ///
+ public override string ToString()
+ {
+ var toStringOutput = new List();
+
+ this.ToString(toStringOutput);
+
+ return $"BulkRetrieveCustomersRequest : ({string.Join(", ", toStringOutput)})";
+ }
+
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+
+ if (obj == this)
+ {
+ return true;
+ }
+ return obj is BulkRetrieveCustomersRequest other && ((this.CustomerIds == null && other.CustomerIds == null) || (this.CustomerIds?.Equals(other.CustomerIds) == true));
+ }
+
+ ///
+ public override int GetHashCode()
+ {
+ int hashCode = -1237075055;
+ hashCode = HashCode.Combine(this.CustomerIds);
+
+ return hashCode;
+ }
+ ///
+ /// ToString overload.
+ ///
+ /// List of strings.
+ protected void ToString(List toStringOutput)
+ {
+ toStringOutput.Add($"this.CustomerIds = {(this.CustomerIds == null ? "null" : $"[{string.Join(", ", this.CustomerIds)} ]")}");
+ }
+
+ ///
+ /// Converts to builder object.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ var builder = new Builder(
+ this.CustomerIds);
+ return builder;
+ }
+
+ ///
+ /// Builder class.
+ ///
+ public class Builder
+ {
+ private IList customerIds;
+
+ ///
+ /// Initialize Builder for BulkRetrieveCustomersRequest.
+ ///
+ /// customerIds.
+ public Builder(
+ IList customerIds)
+ {
+ this.customerIds = customerIds;
+ }
+
+ ///
+ /// CustomerIds.
+ ///
+ /// customerIds.
+ /// Builder.
+ public Builder CustomerIds(IList customerIds)
+ {
+ this.customerIds = customerIds;
+ return this;
+ }
+
+ ///
+ /// Builds class object.
+ ///
+ /// BulkRetrieveCustomersRequest.
+ public BulkRetrieveCustomersRequest Build()
+ {
+ return new BulkRetrieveCustomersRequest(
+ this.customerIds);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Square/Models/BulkRetrieveCustomersResponse.cs b/Square/Models/BulkRetrieveCustomersResponse.cs
new file mode 100644
index 00000000..baeef95c
--- /dev/null
+++ b/Square/Models/BulkRetrieveCustomersResponse.cs
@@ -0,0 +1,168 @@
+namespace Square.Models
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.IO;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using APIMatic.Core.Utilities.Converters;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using Square;
+ using Square.Http.Client;
+ using Square.Utilities;
+
+ ///
+ /// BulkRetrieveCustomersResponse.
+ ///
+ public class BulkRetrieveCustomersResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// responses.
+ /// errors.
+ public BulkRetrieveCustomersResponse(
+ IDictionary responses = null,
+ IList errors = null)
+ {
+ this.Responses = responses;
+ this.Errors = errors;
+ }
+
+ ///
+ /// Gets http context.
+ ///
+ [JsonIgnore]
+ public HttpContext Context { get; internal set; }
+
+ ///
+ /// A map of responses that correspond to individual retrieve requests, represented by
+ /// key-value pairs.
+ /// Each key is the customer ID that was specified for a retrieve request and each value
+ /// is the corresponding response.
+ /// If the request succeeds, the value is the requested customer profile.
+ /// If the request fails, the value contains any errors that occurred during the request.
+ ///
+ [JsonProperty("responses", NullValueHandling = NullValueHandling.Ignore)]
+ public IDictionary Responses { get; }
+
+ ///
+ /// Any top-level errors that prevented the bulk operation from running.
+ ///
+ [JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
+ public IList Errors { get; }
+
+ ///
+ public override string ToString()
+ {
+ var toStringOutput = new List();
+
+ this.ToString(toStringOutput);
+
+ return $"BulkRetrieveCustomersResponse : ({string.Join(", ", toStringOutput)})";
+ }
+
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+
+ if (obj == this)
+ {
+ return true;
+ }
+ return obj is BulkRetrieveCustomersResponse other && ((this.Context == null && other.Context == null) || (this.Context?.Equals(other.Context) == true)) &&
+ ((this.Responses == null && other.Responses == null) || (this.Responses?.Equals(other.Responses) == true)) &&
+ ((this.Errors == null && other.Errors == null) || (this.Errors?.Equals(other.Errors) == true));
+ }
+
+ ///
+ public override int GetHashCode()
+ {
+ int hashCode = -624365229;
+
+ if (this.Context != null)
+ {
+ hashCode += this.Context.GetHashCode();
+ }
+ hashCode = HashCode.Combine(this.Responses, this.Errors);
+
+ return hashCode;
+ }
+ internal BulkRetrieveCustomersResponse ContextSetter(HttpContext context)
+ {
+ this.Context = context;
+ return this;
+ }
+
+ ///
+ /// ToString overload.
+ ///
+ /// List of strings.
+ protected void ToString(List toStringOutput)
+ {
+ toStringOutput.Add($"Responses = {(this.Responses == null ? "null" : this.Responses.ToString())}");
+ toStringOutput.Add($"this.Errors = {(this.Errors == null ? "null" : $"[{string.Join(", ", this.Errors)} ]")}");
+ }
+
+ ///
+ /// Converts to builder object.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ var builder = new Builder()
+ .Responses(this.Responses)
+ .Errors(this.Errors);
+ return builder;
+ }
+
+ ///
+ /// Builder class.
+ ///
+ public class Builder
+ {
+ private IDictionary responses;
+ private IList errors;
+
+ ///
+ /// Responses.
+ ///
+ /// responses.
+ /// Builder.
+ public Builder Responses(IDictionary responses)
+ {
+ this.responses = responses;
+ return this;
+ }
+
+ ///
+ /// Errors.
+ ///
+ /// errors.
+ /// Builder.
+ public Builder Errors(IList errors)
+ {
+ this.errors = errors;
+ return this;
+ }
+
+ ///
+ /// Builds class object.
+ ///
+ /// BulkRetrieveCustomersResponse.
+ public BulkRetrieveCustomersResponse Build()
+ {
+ return new BulkRetrieveCustomersResponse(
+ this.responses,
+ this.errors);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Square/Models/BulkRetrieveTeamMemberBookingProfilesRequest.cs b/Square/Models/BulkRetrieveTeamMemberBookingProfilesRequest.cs
index db7877c1..06bada71 100644
--- a/Square/Models/BulkRetrieveTeamMemberBookingProfilesRequest.cs
+++ b/Square/Models/BulkRetrieveTeamMemberBookingProfilesRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IList teamMemberIds;
+ ///
+ /// Initialize Builder for BulkRetrieveTeamMemberBookingProfilesRequest.
+ ///
+ /// teamMemberIds.
public Builder(
IList teamMemberIds)
{
diff --git a/Square/Models/BulkSwapPlanRequest.cs b/Square/Models/BulkSwapPlanRequest.cs
index bfcd38cc..b67ebec9 100644
--- a/Square/Models/BulkSwapPlanRequest.cs
+++ b/Square/Models/BulkSwapPlanRequest.cs
@@ -123,6 +123,12 @@ public class Builder
private string oldPlanVariationId;
private string locationId;
+ ///
+ /// Initialize Builder for BulkSwapPlanRequest.
+ ///
+ /// newPlanVariationId.
+ /// oldPlanVariationId.
+ /// locationId.
public Builder(
string newPlanVariationId,
string oldPlanVariationId,
diff --git a/Square/Models/BulkUpdateCustomerData.cs b/Square/Models/BulkUpdateCustomerData.cs
new file mode 100644
index 00000000..ba17eb5f
--- /dev/null
+++ b/Square/Models/BulkUpdateCustomerData.cs
@@ -0,0 +1,670 @@
+namespace Square.Models
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.IO;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using APIMatic.Core.Utilities.Converters;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using Square;
+ using Square.Utilities;
+
+ ///
+ /// BulkUpdateCustomerData.
+ ///
+ public class BulkUpdateCustomerData
+ {
+ private readonly Dictionary shouldSerialize;
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// given_name.
+ /// family_name.
+ /// company_name.
+ /// nickname.
+ /// email_address.
+ /// address.
+ /// phone_number.
+ /// reference_id.
+ /// note.
+ /// birthday.
+ /// tax_ids.
+ /// version.
+ public BulkUpdateCustomerData(
+ string givenName = null,
+ string familyName = null,
+ string companyName = null,
+ string nickname = null,
+ string emailAddress = null,
+ Models.Address address = null,
+ string phoneNumber = null,
+ string referenceId = null,
+ string note = null,
+ string birthday = null,
+ Models.CustomerTaxIds taxIds = null,
+ long? version = null)
+ {
+ shouldSerialize = new Dictionary
+ {
+ { "given_name", false },
+ { "family_name", false },
+ { "company_name", false },
+ { "nickname", false },
+ { "email_address", false },
+ { "phone_number", false },
+ { "reference_id", false },
+ { "note", false },
+ { "birthday", false }
+ };
+
+ if (givenName != null)
+ {
+ shouldSerialize["given_name"] = true;
+ this.GivenName = givenName;
+ }
+
+ if (familyName != null)
+ {
+ shouldSerialize["family_name"] = true;
+ this.FamilyName = familyName;
+ }
+
+ if (companyName != null)
+ {
+ shouldSerialize["company_name"] = true;
+ this.CompanyName = companyName;
+ }
+
+ if (nickname != null)
+ {
+ shouldSerialize["nickname"] = true;
+ this.Nickname = nickname;
+ }
+
+ if (emailAddress != null)
+ {
+ shouldSerialize["email_address"] = true;
+ this.EmailAddress = emailAddress;
+ }
+
+ this.Address = address;
+ if (phoneNumber != null)
+ {
+ shouldSerialize["phone_number"] = true;
+ this.PhoneNumber = phoneNumber;
+ }
+
+ if (referenceId != null)
+ {
+ shouldSerialize["reference_id"] = true;
+ this.ReferenceId = referenceId;
+ }
+
+ if (note != null)
+ {
+ shouldSerialize["note"] = true;
+ this.Note = note;
+ }
+
+ if (birthday != null)
+ {
+ shouldSerialize["birthday"] = true;
+ this.Birthday = birthday;
+ }
+
+ this.TaxIds = taxIds;
+ this.Version = version;
+ }
+ internal BulkUpdateCustomerData(Dictionary shouldSerialize,
+ string givenName = null,
+ string familyName = null,
+ string companyName = null,
+ string nickname = null,
+ string emailAddress = null,
+ Models.Address address = null,
+ string phoneNumber = null,
+ string referenceId = null,
+ string note = null,
+ string birthday = null,
+ Models.CustomerTaxIds taxIds = null,
+ long? version = null)
+ {
+ this.shouldSerialize = shouldSerialize;
+ GivenName = givenName;
+ FamilyName = familyName;
+ CompanyName = companyName;
+ Nickname = nickname;
+ EmailAddress = emailAddress;
+ Address = address;
+ PhoneNumber = phoneNumber;
+ ReferenceId = referenceId;
+ Note = note;
+ Birthday = birthday;
+ TaxIds = taxIds;
+ Version = version;
+ }
+
+ ///
+ /// The given name (that is, the first name) associated with the customer profile.
+ ///
+ [JsonProperty("given_name")]
+ public string GivenName { get; }
+
+ ///
+ /// The family name (that is, the last name) associated with the customer profile.
+ ///
+ [JsonProperty("family_name")]
+ public string FamilyName { get; }
+
+ ///
+ /// A business name associated with the customer profile.
+ ///
+ [JsonProperty("company_name")]
+ public string CompanyName { get; }
+
+ ///
+ /// A nickname for the customer profile.
+ ///
+ [JsonProperty("nickname")]
+ public string Nickname { get; }
+
+ ///
+ /// The email address associated with the customer profile.
+ ///
+ [JsonProperty("email_address")]
+ public string EmailAddress { get; }
+
+ ///
+ /// Represents a postal address in a country.
+ /// For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
+ ///
+ [JsonProperty("address", NullValueHandling = NullValueHandling.Ignore)]
+ public Models.Address Address { get; }
+
+ ///
+ /// The phone number associated with the customer profile. The phone number must be valid
+ /// and can contain 9–16 digits, with an optional `+` prefix and country code. For more information,
+ /// see [Customer phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#phone-number).
+ ///
+ [JsonProperty("phone_number")]
+ public string PhoneNumber { get; }
+
+ ///
+ /// An optional second ID used to associate the customer profile with an
+ /// entity in another system.
+ ///
+ [JsonProperty("reference_id")]
+ public string ReferenceId { get; }
+
+ ///
+ /// An custom note associates with the customer profile.
+ ///
+ [JsonProperty("note")]
+ public string Note { get; }
+
+ ///
+ /// The birthday associated with the customer profile, in `YYYY-MM-DD` or `MM-DD` format.
+ /// For example, specify `1998-09-21` for September 21, 1998, or `09-21` for September 21.
+ /// Birthdays are returned in `YYYY-MM-DD` format, where `YYYY` is the specified birth year or
+ /// `0000` if a birth year is not specified.
+ ///
+ [JsonProperty("birthday")]
+ public string Birthday { get; }
+
+ ///
+ /// Represents the tax ID associated with a [customer profile]($m/Customer). The corresponding `tax_ids` field is available only for customers of sellers in EU countries or the United Kingdom.
+ /// For more information, see [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids).
+ ///
+ [JsonProperty("tax_ids", NullValueHandling = NullValueHandling.Ignore)]
+ public Models.CustomerTaxIds TaxIds { get; }
+
+ ///
+ /// The current version of the customer profile.
+ /// As a best practice, you should include this field to enable
+ /// [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
+ /// control.
+ ///
+ [JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)]
+ public long? Version { get; }
+
+ ///
+ public override string ToString()
+ {
+ var toStringOutput = new List();
+
+ this.ToString(toStringOutput);
+
+ return $"BulkUpdateCustomerData : ({string.Join(", ", toStringOutput)})";
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeGivenName()
+ {
+ return this.shouldSerialize["given_name"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeFamilyName()
+ {
+ return this.shouldSerialize["family_name"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeCompanyName()
+ {
+ return this.shouldSerialize["company_name"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeNickname()
+ {
+ return this.shouldSerialize["nickname"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeEmailAddress()
+ {
+ return this.shouldSerialize["email_address"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializePhoneNumber()
+ {
+ return this.shouldSerialize["phone_number"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeReferenceId()
+ {
+ return this.shouldSerialize["reference_id"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeNote()
+ {
+ return this.shouldSerialize["note"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeBirthday()
+ {
+ return this.shouldSerialize["birthday"];
+ }
+
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+
+ if (obj == this)
+ {
+ return true;
+ }
+ return obj is BulkUpdateCustomerData other && ((this.GivenName == null && other.GivenName == null) || (this.GivenName?.Equals(other.GivenName) == true)) &&
+ ((this.FamilyName == null && other.FamilyName == null) || (this.FamilyName?.Equals(other.FamilyName) == true)) &&
+ ((this.CompanyName == null && other.CompanyName == null) || (this.CompanyName?.Equals(other.CompanyName) == true)) &&
+ ((this.Nickname == null && other.Nickname == null) || (this.Nickname?.Equals(other.Nickname) == true)) &&
+ ((this.EmailAddress == null && other.EmailAddress == null) || (this.EmailAddress?.Equals(other.EmailAddress) == true)) &&
+ ((this.Address == null && other.Address == null) || (this.Address?.Equals(other.Address) == true)) &&
+ ((this.PhoneNumber == null && other.PhoneNumber == null) || (this.PhoneNumber?.Equals(other.PhoneNumber) == true)) &&
+ ((this.ReferenceId == null && other.ReferenceId == null) || (this.ReferenceId?.Equals(other.ReferenceId) == true)) &&
+ ((this.Note == null && other.Note == null) || (this.Note?.Equals(other.Note) == true)) &&
+ ((this.Birthday == null && other.Birthday == null) || (this.Birthday?.Equals(other.Birthday) == true)) &&
+ ((this.TaxIds == null && other.TaxIds == null) || (this.TaxIds?.Equals(other.TaxIds) == true)) &&
+ ((this.Version == null && other.Version == null) || (this.Version?.Equals(other.Version) == true));
+ }
+
+ ///
+ public override int GetHashCode()
+ {
+ int hashCode = -430816437;
+ hashCode = HashCode.Combine(this.GivenName, this.FamilyName, this.CompanyName, this.Nickname, this.EmailAddress, this.Address, this.PhoneNumber);
+
+ hashCode = HashCode.Combine(hashCode, this.ReferenceId, this.Note, this.Birthday, this.TaxIds, this.Version);
+
+ return hashCode;
+ }
+ ///
+ /// ToString overload.
+ ///
+ /// List of strings.
+ protected void ToString(List toStringOutput)
+ {
+ toStringOutput.Add($"this.GivenName = {(this.GivenName == null ? "null" : this.GivenName)}");
+ toStringOutput.Add($"this.FamilyName = {(this.FamilyName == null ? "null" : this.FamilyName)}");
+ toStringOutput.Add($"this.CompanyName = {(this.CompanyName == null ? "null" : this.CompanyName)}");
+ toStringOutput.Add($"this.Nickname = {(this.Nickname == null ? "null" : this.Nickname)}");
+ toStringOutput.Add($"this.EmailAddress = {(this.EmailAddress == null ? "null" : this.EmailAddress)}");
+ toStringOutput.Add($"this.Address = {(this.Address == null ? "null" : this.Address.ToString())}");
+ toStringOutput.Add($"this.PhoneNumber = {(this.PhoneNumber == null ? "null" : this.PhoneNumber)}");
+ toStringOutput.Add($"this.ReferenceId = {(this.ReferenceId == null ? "null" : this.ReferenceId)}");
+ toStringOutput.Add($"this.Note = {(this.Note == null ? "null" : this.Note)}");
+ toStringOutput.Add($"this.Birthday = {(this.Birthday == null ? "null" : this.Birthday)}");
+ toStringOutput.Add($"this.TaxIds = {(this.TaxIds == null ? "null" : this.TaxIds.ToString())}");
+ toStringOutput.Add($"this.Version = {(this.Version == null ? "null" : this.Version.ToString())}");
+ }
+
+ ///
+ /// Converts to builder object.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ var builder = new Builder()
+ .GivenName(this.GivenName)
+ .FamilyName(this.FamilyName)
+ .CompanyName(this.CompanyName)
+ .Nickname(this.Nickname)
+ .EmailAddress(this.EmailAddress)
+ .Address(this.Address)
+ .PhoneNumber(this.PhoneNumber)
+ .ReferenceId(this.ReferenceId)
+ .Note(this.Note)
+ .Birthday(this.Birthday)
+ .TaxIds(this.TaxIds)
+ .Version(this.Version);
+ return builder;
+ }
+
+ ///
+ /// Builder class.
+ ///
+ public class Builder
+ {
+ private Dictionary shouldSerialize = new Dictionary
+ {
+ { "given_name", false },
+ { "family_name", false },
+ { "company_name", false },
+ { "nickname", false },
+ { "email_address", false },
+ { "phone_number", false },
+ { "reference_id", false },
+ { "note", false },
+ { "birthday", false },
+ };
+
+ private string givenName;
+ private string familyName;
+ private string companyName;
+ private string nickname;
+ private string emailAddress;
+ private Models.Address address;
+ private string phoneNumber;
+ private string referenceId;
+ private string note;
+ private string birthday;
+ private Models.CustomerTaxIds taxIds;
+ private long? version;
+
+ ///
+ /// GivenName.
+ ///
+ /// givenName.
+ /// Builder.
+ public Builder GivenName(string givenName)
+ {
+ shouldSerialize["given_name"] = true;
+ this.givenName = givenName;
+ return this;
+ }
+
+ ///
+ /// FamilyName.
+ ///
+ /// familyName.
+ /// Builder.
+ public Builder FamilyName(string familyName)
+ {
+ shouldSerialize["family_name"] = true;
+ this.familyName = familyName;
+ return this;
+ }
+
+ ///
+ /// CompanyName.
+ ///
+ /// companyName.
+ /// Builder.
+ public Builder CompanyName(string companyName)
+ {
+ shouldSerialize["company_name"] = true;
+ this.companyName = companyName;
+ return this;
+ }
+
+ ///
+ /// Nickname.
+ ///
+ /// nickname.
+ /// Builder.
+ public Builder Nickname(string nickname)
+ {
+ shouldSerialize["nickname"] = true;
+ this.nickname = nickname;
+ return this;
+ }
+
+ ///
+ /// EmailAddress.
+ ///
+ /// emailAddress.
+ /// Builder.
+ public Builder EmailAddress(string emailAddress)
+ {
+ shouldSerialize["email_address"] = true;
+ this.emailAddress = emailAddress;
+ return this;
+ }
+
+ ///
+ /// Address.
+ ///
+ /// address.
+ /// Builder.
+ public Builder Address(Models.Address address)
+ {
+ this.address = address;
+ return this;
+ }
+
+ ///
+ /// PhoneNumber.
+ ///
+ /// phoneNumber.
+ /// Builder.
+ public Builder PhoneNumber(string phoneNumber)
+ {
+ shouldSerialize["phone_number"] = true;
+ this.phoneNumber = phoneNumber;
+ return this;
+ }
+
+ ///
+ /// ReferenceId.
+ ///
+ /// referenceId.
+ /// Builder.
+ public Builder ReferenceId(string referenceId)
+ {
+ shouldSerialize["reference_id"] = true;
+ this.referenceId = referenceId;
+ return this;
+ }
+
+ ///
+ /// Note.
+ ///
+ /// note.
+ /// Builder.
+ public Builder Note(string note)
+ {
+ shouldSerialize["note"] = true;
+ this.note = note;
+ return this;
+ }
+
+ ///
+ /// Birthday.
+ ///
+ /// birthday.
+ /// Builder.
+ public Builder Birthday(string birthday)
+ {
+ shouldSerialize["birthday"] = true;
+ this.birthday = birthday;
+ return this;
+ }
+
+ ///
+ /// TaxIds.
+ ///
+ /// taxIds.
+ /// Builder.
+ public Builder TaxIds(Models.CustomerTaxIds taxIds)
+ {
+ this.taxIds = taxIds;
+ return this;
+ }
+
+ ///
+ /// Version.
+ ///
+ /// version.
+ /// Builder.
+ public Builder Version(long? version)
+ {
+ this.version = version;
+ return this;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetGivenName()
+ {
+ this.shouldSerialize["given_name"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetFamilyName()
+ {
+ this.shouldSerialize["family_name"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetCompanyName()
+ {
+ this.shouldSerialize["company_name"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetNickname()
+ {
+ this.shouldSerialize["nickname"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetEmailAddress()
+ {
+ this.shouldSerialize["email_address"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetPhoneNumber()
+ {
+ this.shouldSerialize["phone_number"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetReferenceId()
+ {
+ this.shouldSerialize["reference_id"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetNote()
+ {
+ this.shouldSerialize["note"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetBirthday()
+ {
+ this.shouldSerialize["birthday"] = false;
+ }
+
+
+ ///
+ /// Builds class object.
+ ///
+ /// BulkUpdateCustomerData.
+ public BulkUpdateCustomerData Build()
+ {
+ return new BulkUpdateCustomerData(shouldSerialize,
+ this.givenName,
+ this.familyName,
+ this.companyName,
+ this.nickname,
+ this.emailAddress,
+ this.address,
+ this.phoneNumber,
+ this.referenceId,
+ this.note,
+ this.birthday,
+ this.taxIds,
+ this.version);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Square/Models/BulkUpdateCustomersRequest.cs b/Square/Models/BulkUpdateCustomersRequest.cs
new file mode 100644
index 00000000..97f91ea6
--- /dev/null
+++ b/Square/Models/BulkUpdateCustomersRequest.cs
@@ -0,0 +1,134 @@
+namespace Square.Models
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.IO;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using APIMatic.Core.Utilities.Converters;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using Square;
+ using Square.Utilities;
+
+ ///
+ /// BulkUpdateCustomersRequest.
+ ///
+ public class BulkUpdateCustomersRequest
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// customers.
+ public BulkUpdateCustomersRequest(
+ IDictionary customers)
+ {
+ this.Customers = customers;
+ }
+
+ ///
+ /// A map of 1 to 100 individual update requests, represented by `customer ID: { customer data }`
+ /// key-value pairs.
+ /// Each key is the ID of the [customer profile](entity:Customer) to update. To update a customer profile
+ /// that was created by merging existing profiles, provide the ID of the newly created profile.
+ /// Each value contains the updated customer data. Only new or changed fields are required. To add or
+ /// update a field, specify the new value. To remove a field, specify `null`.
+ ///
+ [JsonProperty("customers")]
+ public IDictionary Customers { get; }
+
+ ///
+ public override string ToString()
+ {
+ var toStringOutput = new List();
+
+ this.ToString(toStringOutput);
+
+ return $"BulkUpdateCustomersRequest : ({string.Join(", ", toStringOutput)})";
+ }
+
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+
+ if (obj == this)
+ {
+ return true;
+ }
+ return obj is BulkUpdateCustomersRequest other && ((this.Customers == null && other.Customers == null) || (this.Customers?.Equals(other.Customers) == true));
+ }
+
+ ///
+ public override int GetHashCode()
+ {
+ int hashCode = 101362901;
+ hashCode = HashCode.Combine(this.Customers);
+
+ return hashCode;
+ }
+ ///
+ /// ToString overload.
+ ///
+ /// List of strings.
+ protected void ToString(List toStringOutput)
+ {
+ toStringOutput.Add($"Customers = {(this.Customers == null ? "null" : this.Customers.ToString())}");
+ }
+
+ ///
+ /// Converts to builder object.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ var builder = new Builder(
+ this.Customers);
+ return builder;
+ }
+
+ ///
+ /// Builder class.
+ ///
+ public class Builder
+ {
+ private IDictionary customers;
+
+ ///
+ /// Initialize Builder for BulkUpdateCustomersRequest.
+ ///
+ /// customers.
+ public Builder(
+ IDictionary customers)
+ {
+ this.customers = customers;
+ }
+
+ ///
+ /// Customers.
+ ///
+ /// customers.
+ /// Builder.
+ public Builder Customers(IDictionary customers)
+ {
+ this.customers = customers;
+ return this;
+ }
+
+ ///
+ /// Builds class object.
+ ///
+ /// BulkUpdateCustomersRequest.
+ public BulkUpdateCustomersRequest Build()
+ {
+ return new BulkUpdateCustomersRequest(
+ this.customers);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Square/Models/BulkUpdateCustomersResponse.cs b/Square/Models/BulkUpdateCustomersResponse.cs
new file mode 100644
index 00000000..02161e3c
--- /dev/null
+++ b/Square/Models/BulkUpdateCustomersResponse.cs
@@ -0,0 +1,168 @@
+namespace Square.Models
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.IO;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using APIMatic.Core.Utilities.Converters;
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using Square;
+ using Square.Http.Client;
+ using Square.Utilities;
+
+ ///
+ /// BulkUpdateCustomersResponse.
+ ///
+ public class BulkUpdateCustomersResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// responses.
+ /// errors.
+ public BulkUpdateCustomersResponse(
+ IDictionary responses = null,
+ IList errors = null)
+ {
+ this.Responses = responses;
+ this.Errors = errors;
+ }
+
+ ///
+ /// Gets http context.
+ ///
+ [JsonIgnore]
+ public HttpContext Context { get; internal set; }
+
+ ///
+ /// A map of responses that correspond to individual update requests, represented by
+ /// key-value pairs.
+ /// Each key is the customer ID that was specified for an update request and each value
+ /// is the corresponding response.
+ /// If the request succeeds, the value is the updated customer profile.
+ /// If the request fails, the value contains any errors that occurred during the request.
+ ///
+ [JsonProperty("responses", NullValueHandling = NullValueHandling.Ignore)]
+ public IDictionary Responses { get; }
+
+ ///
+ /// Any top-level errors that prevented the bulk operation from running.
+ ///
+ [JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
+ public IList Errors { get; }
+
+ ///
+ public override string ToString()
+ {
+ var toStringOutput = new List();
+
+ this.ToString(toStringOutput);
+
+ return $"BulkUpdateCustomersResponse : ({string.Join(", ", toStringOutput)})";
+ }
+
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+
+ if (obj == this)
+ {
+ return true;
+ }
+ return obj is BulkUpdateCustomersResponse other && ((this.Context == null && other.Context == null) || (this.Context?.Equals(other.Context) == true)) &&
+ ((this.Responses == null && other.Responses == null) || (this.Responses?.Equals(other.Responses) == true)) &&
+ ((this.Errors == null && other.Errors == null) || (this.Errors?.Equals(other.Errors) == true));
+ }
+
+ ///
+ public override int GetHashCode()
+ {
+ int hashCode = -1782802515;
+
+ if (this.Context != null)
+ {
+ hashCode += this.Context.GetHashCode();
+ }
+ hashCode = HashCode.Combine(this.Responses, this.Errors);
+
+ return hashCode;
+ }
+ internal BulkUpdateCustomersResponse ContextSetter(HttpContext context)
+ {
+ this.Context = context;
+ return this;
+ }
+
+ ///
+ /// ToString overload.
+ ///
+ /// List of strings.
+ protected void ToString(List toStringOutput)
+ {
+ toStringOutput.Add($"Responses = {(this.Responses == null ? "null" : this.Responses.ToString())}");
+ toStringOutput.Add($"this.Errors = {(this.Errors == null ? "null" : $"[{string.Join(", ", this.Errors)} ]")}");
+ }
+
+ ///
+ /// Converts to builder object.
+ ///
+ /// Builder.
+ public Builder ToBuilder()
+ {
+ var builder = new Builder()
+ .Responses(this.Responses)
+ .Errors(this.Errors);
+ return builder;
+ }
+
+ ///
+ /// Builder class.
+ ///
+ public class Builder
+ {
+ private IDictionary responses;
+ private IList errors;
+
+ ///
+ /// Responses.
+ ///
+ /// responses.
+ /// Builder.
+ public Builder Responses(IDictionary responses)
+ {
+ this.responses = responses;
+ return this;
+ }
+
+ ///
+ /// Errors.
+ ///
+ /// errors.
+ /// Builder.
+ public Builder Errors(IList errors)
+ {
+ this.errors = errors;
+ return this;
+ }
+
+ ///
+ /// Builds class object.
+ ///
+ /// BulkUpdateCustomersResponse.
+ public BulkUpdateCustomersResponse Build()
+ {
+ return new BulkUpdateCustomersResponse(
+ this.responses,
+ this.errors);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Square/Models/BulkUpdateTeamMembersRequest.cs b/Square/Models/BulkUpdateTeamMembersRequest.cs
index 18df71af..744a9616 100644
--- a/Square/Models/BulkUpdateTeamMembersRequest.cs
+++ b/Square/Models/BulkUpdateTeamMembersRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IDictionary teamMembers;
+ ///
+ /// Initialize Builder for BulkUpdateTeamMembersRequest.
+ ///
+ /// teamMembers.
public Builder(
IDictionary teamMembers)
{
diff --git a/Square/Models/BulkUpdateVendorsRequest.cs b/Square/Models/BulkUpdateVendorsRequest.cs
index 9ad137eb..4d36b9f1 100644
--- a/Square/Models/BulkUpdateVendorsRequest.cs
+++ b/Square/Models/BulkUpdateVendorsRequest.cs
@@ -95,6 +95,10 @@ public class Builder
{
private IDictionary vendors;
+ ///
+ /// Initialize Builder for BulkUpdateVendorsRequest.
+ ///
+ /// vendors.
public Builder(
IDictionary vendors)
{
diff --git a/Square/Models/BulkUpsertBookingCustomAttributesRequest.cs b/Square/Models/BulkUpsertBookingCustomAttributesRequest.cs
index aca5245c..527b15da 100644
--- a/Square/Models/BulkUpsertBookingCustomAttributesRequest.cs
+++ b/Square/Models/BulkUpsertBookingCustomAttributesRequest.cs
@@ -96,6 +96,10 @@ public class Builder
{
private IDictionary values;
+ ///
+ /// Initialize Builder for BulkUpsertBookingCustomAttributesRequest.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkUpsertCustomerCustomAttributesRequest.cs b/Square/Models/BulkUpsertCustomerCustomAttributesRequest.cs
index 77206222..1192a0c2 100644
--- a/Square/Models/BulkUpsertCustomerCustomAttributesRequest.cs
+++ b/Square/Models/BulkUpsertCustomerCustomAttributesRequest.cs
@@ -96,6 +96,10 @@ public class Builder
{
private IDictionary values;
+ ///
+ /// Initialize Builder for BulkUpsertCustomerCustomAttributesRequest.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs b/Square/Models/BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs
index f278c0d4..87633464 100644
--- a/Square/Models/BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs
+++ b/Square/Models/BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.cs
@@ -157,6 +157,11 @@ public class Builder
private Models.CustomAttribute customAttribute;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.
+ ///
+ /// customerId.
+ /// customAttribute.
public Builder(
string customerId,
Models.CustomAttribute customAttribute)
diff --git a/Square/Models/BulkUpsertLocationCustomAttributesRequest.cs b/Square/Models/BulkUpsertLocationCustomAttributesRequest.cs
index 4675df04..90560146 100644
--- a/Square/Models/BulkUpsertLocationCustomAttributesRequest.cs
+++ b/Square/Models/BulkUpsertLocationCustomAttributesRequest.cs
@@ -96,6 +96,10 @@ public class Builder
{
private IDictionary values;
+ ///
+ /// Initialize Builder for BulkUpsertLocationCustomAttributesRequest.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs b/Square/Models/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs
index 252e6051..82fbfbdf 100644
--- a/Square/Models/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs
+++ b/Square/Models/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.cs
@@ -157,6 +157,11 @@ public class Builder
private Models.CustomAttribute customAttribute;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.
+ ///
+ /// locationId.
+ /// customAttribute.
public Builder(
string locationId,
Models.CustomAttribute customAttribute)
diff --git a/Square/Models/BulkUpsertMerchantCustomAttributesRequest.cs b/Square/Models/BulkUpsertMerchantCustomAttributesRequest.cs
index f5ee2cce..922415bd 100644
--- a/Square/Models/BulkUpsertMerchantCustomAttributesRequest.cs
+++ b/Square/Models/BulkUpsertMerchantCustomAttributesRequest.cs
@@ -96,6 +96,10 @@ public class Builder
{
private IDictionary values;
+ ///
+ /// Initialize Builder for BulkUpsertMerchantCustomAttributesRequest.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs b/Square/Models/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs
index 4058193a..6d0c3e26 100644
--- a/Square/Models/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs
+++ b/Square/Models/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.cs
@@ -157,6 +157,11 @@ public class Builder
private Models.CustomAttribute customAttribute;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.
+ ///
+ /// merchantId.
+ /// customAttribute.
public Builder(
string merchantId,
Models.CustomAttribute customAttribute)
diff --git a/Square/Models/BulkUpsertOrderCustomAttributesRequest.cs b/Square/Models/BulkUpsertOrderCustomAttributesRequest.cs
index 07dc219a..f54cbc92 100644
--- a/Square/Models/BulkUpsertOrderCustomAttributesRequest.cs
+++ b/Square/Models/BulkUpsertOrderCustomAttributesRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IDictionary values;
+ ///
+ /// Initialize Builder for BulkUpsertOrderCustomAttributesRequest.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs b/Square/Models/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs
index e1c8b955..077fe1ac 100644
--- a/Square/Models/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs
+++ b/Square/Models/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.cs
@@ -157,6 +157,11 @@ public class Builder
private string orderId;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.
+ ///
+ /// customAttribute.
+ /// orderId.
public Builder(
Models.CustomAttribute customAttribute,
string orderId)
diff --git a/Square/Models/BulkUpsertOrderCustomAttributesResponse.cs b/Square/Models/BulkUpsertOrderCustomAttributesResponse.cs
index 199e409a..911dac5e 100644
--- a/Square/Models/BulkUpsertOrderCustomAttributesResponse.cs
+++ b/Square/Models/BulkUpsertOrderCustomAttributesResponse.cs
@@ -126,6 +126,10 @@ public class Builder
private IDictionary values;
private IList errors;
+ ///
+ /// Initialize Builder for BulkUpsertOrderCustomAttributesResponse.
+ ///
+ /// values.
public Builder(
IDictionary values)
{
diff --git a/Square/Models/CalculateOrderRequest.cs b/Square/Models/CalculateOrderRequest.cs
index a00dbaaf..2a8652b6 100644
--- a/Square/Models/CalculateOrderRequest.cs
+++ b/Square/Models/CalculateOrderRequest.cs
@@ -148,6 +148,10 @@ public class Builder
private Models.Order order;
private IList proposedRewards;
+ ///
+ /// Initialize Builder for CalculateOrderRequest.
+ ///
+ /// order.
public Builder(
Models.Order order)
{
diff --git a/Square/Models/CancelInvoiceRequest.cs b/Square/Models/CancelInvoiceRequest.cs
index 4c4d9a0d..b90d7a8c 100644
--- a/Square/Models/CancelInvoiceRequest.cs
+++ b/Square/Models/CancelInvoiceRequest.cs
@@ -96,6 +96,10 @@ public class Builder
{
private int version;
+ ///
+ /// Initialize Builder for CancelInvoiceRequest.
+ ///
+ /// version.
public Builder(
int version)
{
diff --git a/Square/Models/CancelPaymentByIdempotencyKeyRequest.cs b/Square/Models/CancelPaymentByIdempotencyKeyRequest.cs
index 9005e1bd..b8d30ec2 100644
--- a/Square/Models/CancelPaymentByIdempotencyKeyRequest.cs
+++ b/Square/Models/CancelPaymentByIdempotencyKeyRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CancelPaymentByIdempotencyKeyRequest.
+ ///
+ /// idempotencyKey.
public Builder(
string idempotencyKey)
{
diff --git a/Square/Models/CashPaymentDetails.cs b/Square/Models/CashPaymentDetails.cs
index 5b4b3404..0c7b01eb 100644
--- a/Square/Models/CashPaymentDetails.cs
+++ b/Square/Models/CashPaymentDetails.cs
@@ -117,6 +117,10 @@ public class Builder
private Models.Money buyerSuppliedMoney;
private Models.Money changeBackMoney;
+ ///
+ /// Initialize Builder for CashPaymentDetails.
+ ///
+ /// buyerSuppliedMoney.
public Builder(
Models.Money buyerSuppliedMoney)
{
diff --git a/Square/Models/CatalogCustomAttributeDefinition.cs b/Square/Models/CatalogCustomAttributeDefinition.cs
index ddbb6177..53c23853 100644
--- a/Square/Models/CatalogCustomAttributeDefinition.cs
+++ b/Square/Models/CatalogCustomAttributeDefinition.cs
@@ -322,6 +322,12 @@ public class Builder
private int? customAttributeUsageCount;
private string key;
+ ///
+ /// Initialize Builder for CatalogCustomAttributeDefinition.
+ ///
+ /// type.
+ /// name.
+ /// allowedObjectTypes.
public Builder(
string type,
string name,
diff --git a/Square/Models/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs b/Square/Models/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs
index c5e16f07..9244ae51 100644
--- a/Square/Models/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs
+++ b/Square/Models/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.cs
@@ -140,6 +140,10 @@ public class Builder
private string name;
private string uid;
+ ///
+ /// Initialize Builder for CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.
+ ///
+ /// name.
public Builder(
string name)
{
diff --git a/Square/Models/CatalogItemModifierListInfo.cs b/Square/Models/CatalogItemModifierListInfo.cs
index 37feef3b..a703ba30 100644
--- a/Square/Models/CatalogItemModifierListInfo.cs
+++ b/Square/Models/CatalogItemModifierListInfo.cs
@@ -27,19 +27,22 @@ public class CatalogItemModifierListInfo
/// min_selected_modifiers.
/// max_selected_modifiers.
/// enabled.
+ /// ordinal.
public CatalogItemModifierListInfo(
string modifierListId,
IList modifierOverrides = null,
int? minSelectedModifiers = null,
int? maxSelectedModifiers = null,
- bool? enabled = null)
+ bool? enabled = null,
+ int? ordinal = null)
{
shouldSerialize = new Dictionary
{
{ "modifier_overrides", false },
{ "min_selected_modifiers", false },
{ "max_selected_modifiers", false },
- { "enabled", false }
+ { "enabled", false },
+ { "ordinal", false }
};
this.ModifierListId = modifierListId;
@@ -67,13 +70,20 @@ public CatalogItemModifierListInfo(
this.Enabled = enabled;
}
+ if (ordinal != null)
+ {
+ shouldSerialize["ordinal"] = true;
+ this.Ordinal = ordinal;
+ }
+
}
internal CatalogItemModifierListInfo(Dictionary shouldSerialize,
string modifierListId,
IList modifierOverrides = null,
int? minSelectedModifiers = null,
int? maxSelectedModifiers = null,
- bool? enabled = null)
+ bool? enabled = null,
+ int? ordinal = null)
{
this.shouldSerialize = shouldSerialize;
ModifierListId = modifierListId;
@@ -81,6 +91,7 @@ internal CatalogItemModifierListInfo(Dictionary shouldSerialize,
MinSelectedModifiers = minSelectedModifiers;
MaxSelectedModifiers = maxSelectedModifiers;
Enabled = enabled;
+ Ordinal = ordinal;
}
///
@@ -113,6 +124,13 @@ internal CatalogItemModifierListInfo(Dictionary shouldSerialize,
[JsonProperty("enabled")]
public bool? Enabled { get; }
+ ///
+ /// The position of this `CatalogItemModifierListInfo` object within the `modifier_list_info` list applied
+ /// to a `CatalogItem` instance.
+ ///
+ [JsonProperty("ordinal")]
+ public int? Ordinal { get; }
+
///
public override string ToString()
{
@@ -159,6 +177,15 @@ public bool ShouldSerializeEnabled()
return this.shouldSerialize["enabled"];
}
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeOrdinal()
+ {
+ return this.shouldSerialize["ordinal"];
+ }
+
///
public override bool Equals(object obj)
{
@@ -175,14 +202,15 @@ public override bool Equals(object obj)
((this.ModifierOverrides == null && other.ModifierOverrides == null) || (this.ModifierOverrides?.Equals(other.ModifierOverrides) == true)) &&
((this.MinSelectedModifiers == null && other.MinSelectedModifiers == null) || (this.MinSelectedModifiers?.Equals(other.MinSelectedModifiers) == true)) &&
((this.MaxSelectedModifiers == null && other.MaxSelectedModifiers == null) || (this.MaxSelectedModifiers?.Equals(other.MaxSelectedModifiers) == true)) &&
- ((this.Enabled == null && other.Enabled == null) || (this.Enabled?.Equals(other.Enabled) == true));
+ ((this.Enabled == null && other.Enabled == null) || (this.Enabled?.Equals(other.Enabled) == true)) &&
+ ((this.Ordinal == null && other.Ordinal == null) || (this.Ordinal?.Equals(other.Ordinal) == true));
}
///
public override int GetHashCode()
{
- int hashCode = 1904387422;
- hashCode = HashCode.Combine(this.ModifierListId, this.ModifierOverrides, this.MinSelectedModifiers, this.MaxSelectedModifiers, this.Enabled);
+ int hashCode = -351709295;
+ hashCode = HashCode.Combine(this.ModifierListId, this.ModifierOverrides, this.MinSelectedModifiers, this.MaxSelectedModifiers, this.Enabled, this.Ordinal);
return hashCode;
}
@@ -197,6 +225,7 @@ protected void ToString(List toStringOutput)
toStringOutput.Add($"this.MinSelectedModifiers = {(this.MinSelectedModifiers == null ? "null" : this.MinSelectedModifiers.ToString())}");
toStringOutput.Add($"this.MaxSelectedModifiers = {(this.MaxSelectedModifiers == null ? "null" : this.MaxSelectedModifiers.ToString())}");
toStringOutput.Add($"this.Enabled = {(this.Enabled == null ? "null" : this.Enabled.ToString())}");
+ toStringOutput.Add($"this.Ordinal = {(this.Ordinal == null ? "null" : this.Ordinal.ToString())}");
}
///
@@ -210,7 +239,8 @@ public Builder ToBuilder()
.ModifierOverrides(this.ModifierOverrides)
.MinSelectedModifiers(this.MinSelectedModifiers)
.MaxSelectedModifiers(this.MaxSelectedModifiers)
- .Enabled(this.Enabled);
+ .Enabled(this.Enabled)
+ .Ordinal(this.Ordinal);
return builder;
}
@@ -225,6 +255,7 @@ public class Builder
{ "min_selected_modifiers", false },
{ "max_selected_modifiers", false },
{ "enabled", false },
+ { "ordinal", false },
};
private string modifierListId;
@@ -232,7 +263,12 @@ public class Builder
private int? minSelectedModifiers;
private int? maxSelectedModifiers;
private bool? enabled;
+ private int? ordinal;
+ ///
+ /// Initialize Builder for CatalogItemModifierListInfo.
+ ///
+ /// modifierListId.
public Builder(
string modifierListId)
{
@@ -298,6 +334,18 @@ public Builder Enabled(bool? enabled)
return this;
}
+ ///
+ /// Ordinal.
+ ///
+ /// ordinal.
+ /// Builder.
+ public Builder Ordinal(int? ordinal)
+ {
+ shouldSerialize["ordinal"] = true;
+ this.ordinal = ordinal;
+ return this;
+ }
+
///
/// Marks the field to not be serailized.
///
@@ -330,6 +378,14 @@ public void UnsetEnabled()
this.shouldSerialize["enabled"] = false;
}
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetOrdinal()
+ {
+ this.shouldSerialize["ordinal"] = false;
+ }
+
///
/// Builds class object.
@@ -342,7 +398,8 @@ public CatalogItemModifierListInfo Build()
this.modifierOverrides,
this.minSelectedModifiers,
this.maxSelectedModifiers,
- this.enabled);
+ this.enabled,
+ this.ordinal);
}
}
}
diff --git a/Square/Models/CatalogModifierList.cs b/Square/Models/CatalogModifierList.cs
index bd61a5ad..786a89f3 100644
--- a/Square/Models/CatalogModifierList.cs
+++ b/Square/Models/CatalogModifierList.cs
@@ -27,19 +27,30 @@ public class CatalogModifierList
/// selection_type.
/// modifiers.
/// image_ids.
+ /// modifier_type.
+ /// max_length.
+ /// text_required.
+ /// internal_name.
public CatalogModifierList(
string name = null,
int? ordinal = null,
string selectionType = null,
IList modifiers = null,
- IList imageIds = null)
+ IList imageIds = null,
+ string modifierType = null,
+ int? maxLength = null,
+ bool? textRequired = null,
+ string internalName = null)
{
shouldSerialize = new Dictionary
{
{ "name", false },
{ "ordinal", false },
{ "modifiers", false },
- { "image_ids", false }
+ { "image_ids", false },
+ { "max_length", false },
+ { "text_required", false },
+ { "internal_name", false }
};
if (name != null)
@@ -67,13 +78,36 @@ public CatalogModifierList(
this.ImageIds = imageIds;
}
+ this.ModifierType = modifierType;
+ if (maxLength != null)
+ {
+ shouldSerialize["max_length"] = true;
+ this.MaxLength = maxLength;
+ }
+
+ if (textRequired != null)
+ {
+ shouldSerialize["text_required"] = true;
+ this.TextRequired = textRequired;
+ }
+
+ if (internalName != null)
+ {
+ shouldSerialize["internal_name"] = true;
+ this.InternalName = internalName;
+ }
+
}
internal CatalogModifierList(Dictionary shouldSerialize,
string name = null,
int? ordinal = null,
string selectionType = null,
IList modifiers = null,
- IList imageIds = null)
+ IList imageIds = null,
+ string modifierType = null,
+ int? maxLength = null,
+ bool? textRequired = null,
+ string internalName = null)
{
this.shouldSerialize = shouldSerialize;
Name = name;
@@ -81,16 +115,21 @@ internal CatalogModifierList(Dictionary shouldSerialize,
SelectionType = selectionType;
Modifiers = modifiers;
ImageIds = imageIds;
+ ModifierType = modifierType;
+ MaxLength = maxLength;
+ TextRequired = textRequired;
+ InternalName = internalName;
}
///
- /// The name for the `CatalogModifierList` instance. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.
+ /// The name of the `CatalogModifierList` instance. This is a searchable attribute for use in applicable query filters, and its value length is of
+ /// Unicode code points.
///
[JsonProperty("name")]
public string Name { get; }
///
- /// Determines where this modifier list appears in a list of `CatalogModifierList` values.
+ /// The position of this `CatalogModifierList` within a list of `CatalogModifierList` instances.
///
[JsonProperty("ordinal")]
public int? Ordinal { get; }
@@ -102,21 +141,58 @@ internal CatalogModifierList(Dictionary shouldSerialize,
public string SelectionType { get; }
///
- /// The options included in the `CatalogModifierList`.
- /// You must include at least one `CatalogModifier`.
- /// Each CatalogObject must have type `MODIFIER` and contain
- /// `CatalogModifier` data.
+ /// A non-empty list of `CatalogModifier` objects to be included in the `CatalogModifierList`,
+ /// for non text-based modifiers when the `modifier_type` attribute is `LIST`. Each element of this list
+ /// is a `CatalogObject` instance of the `MODIFIER` type, containing the following attributes:
+ /// ```
+ /// {
+ /// "id": "{{catalog_modifier_id}}",
+ /// "type": "MODIFIER",
+ /// "modifier_data": {{a CatalogModifier instance>}}
+ /// }
+ /// ```
///
[JsonProperty("modifiers")]
public IList Modifiers { get; }
///
/// The IDs of images associated with this `CatalogModifierList` instance.
- /// Currently these images are not displayed by Square, but are free to be displayed in 3rd party applications.
+ /// Currently these images are not displayed on Square products, but may be displayed in 3rd-party applications.
///
[JsonProperty("image_ids")]
public IList ImageIds { get; }
+ ///
+ /// Defines the type of `CatalogModifierList`.
+ ///
+ [JsonProperty("modifier_type", NullValueHandling = NullValueHandling.Ignore)]
+ public string ModifierType { get; }
+
+ ///
+ /// The maximum length, in Unicode points, of the text string of the text-based modifier as represented by
+ /// this `CatalogModifierList` object with the `modifier_type` set to `TEXT`.
+ ///
+ [JsonProperty("max_length")]
+ public int? MaxLength { get; }
+
+ ///
+ /// Whether the text string must be a non-empty string (`true`) or not (`false`) for a text-based modifier
+ /// as represented by this `CatalogModifierList` object with the `modifier_type` set to `TEXT`.
+ ///
+ [JsonProperty("text_required")]
+ public bool? TextRequired { get; }
+
+ ///
+ /// A note for internal use by the business.
+ /// For example, for a text-based modifier applied to a T-shirt item, if the buyer-supplied text of "Hello, Kitty!"
+ /// is to be printed on the T-shirt, this `internal_name` attribute can be "Use italic face" as
+ /// an instruction for the business to follow.
+ /// For non text-based modifiers, this `internal_name` attribute can be
+ /// used to include SKUs, internal codes, or supplemental descriptions for internal use.
+ ///
+ [JsonProperty("internal_name")]
+ public string InternalName { get; }
+
///
public override string ToString()
{
@@ -163,6 +239,33 @@ public bool ShouldSerializeImageIds()
return this.shouldSerialize["image_ids"];
}
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeMaxLength()
+ {
+ return this.shouldSerialize["max_length"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeTextRequired()
+ {
+ return this.shouldSerialize["text_required"];
+ }
+
+ ///
+ /// Checks if the field should be serialized or not.
+ ///
+ /// A boolean weather the field should be serialized or not.
+ public bool ShouldSerializeInternalName()
+ {
+ return this.shouldSerialize["internal_name"];
+ }
+
///
public override bool Equals(object obj)
{
@@ -179,14 +282,20 @@ public override bool Equals(object obj)
((this.Ordinal == null && other.Ordinal == null) || (this.Ordinal?.Equals(other.Ordinal) == true)) &&
((this.SelectionType == null && other.SelectionType == null) || (this.SelectionType?.Equals(other.SelectionType) == true)) &&
((this.Modifiers == null && other.Modifiers == null) || (this.Modifiers?.Equals(other.Modifiers) == true)) &&
- ((this.ImageIds == null && other.ImageIds == null) || (this.ImageIds?.Equals(other.ImageIds) == true));
+ ((this.ImageIds == null && other.ImageIds == null) || (this.ImageIds?.Equals(other.ImageIds) == true)) &&
+ ((this.ModifierType == null && other.ModifierType == null) || (this.ModifierType?.Equals(other.ModifierType) == true)) &&
+ ((this.MaxLength == null && other.MaxLength == null) || (this.MaxLength?.Equals(other.MaxLength) == true)) &&
+ ((this.TextRequired == null && other.TextRequired == null) || (this.TextRequired?.Equals(other.TextRequired) == true)) &&
+ ((this.InternalName == null && other.InternalName == null) || (this.InternalName?.Equals(other.InternalName) == true));
}
///
public override int GetHashCode()
{
- int hashCode = -1226843592;
- hashCode = HashCode.Combine(this.Name, this.Ordinal, this.SelectionType, this.Modifiers, this.ImageIds);
+ int hashCode = 35199234;
+ hashCode = HashCode.Combine(this.Name, this.Ordinal, this.SelectionType, this.Modifiers, this.ImageIds, this.ModifierType, this.MaxLength);
+
+ hashCode = HashCode.Combine(hashCode, this.TextRequired, this.InternalName);
return hashCode;
}
@@ -201,6 +310,10 @@ protected void ToString(List toStringOutput)
toStringOutput.Add($"this.SelectionType = {(this.SelectionType == null ? "null" : this.SelectionType.ToString())}");
toStringOutput.Add($"this.Modifiers = {(this.Modifiers == null ? "null" : $"[{string.Join(", ", this.Modifiers)} ]")}");
toStringOutput.Add($"this.ImageIds = {(this.ImageIds == null ? "null" : $"[{string.Join(", ", this.ImageIds)} ]")}");
+ toStringOutput.Add($"this.ModifierType = {(this.ModifierType == null ? "null" : this.ModifierType.ToString())}");
+ toStringOutput.Add($"this.MaxLength = {(this.MaxLength == null ? "null" : this.MaxLength.ToString())}");
+ toStringOutput.Add($"this.TextRequired = {(this.TextRequired == null ? "null" : this.TextRequired.ToString())}");
+ toStringOutput.Add($"this.InternalName = {(this.InternalName == null ? "null" : this.InternalName)}");
}
///
@@ -214,7 +327,11 @@ public Builder ToBuilder()
.Ordinal(this.Ordinal)
.SelectionType(this.SelectionType)
.Modifiers(this.Modifiers)
- .ImageIds(this.ImageIds);
+ .ImageIds(this.ImageIds)
+ .ModifierType(this.ModifierType)
+ .MaxLength(this.MaxLength)
+ .TextRequired(this.TextRequired)
+ .InternalName(this.InternalName);
return builder;
}
@@ -229,6 +346,9 @@ public class Builder
{ "ordinal", false },
{ "modifiers", false },
{ "image_ids", false },
+ { "max_length", false },
+ { "text_required", false },
+ { "internal_name", false },
};
private string name;
@@ -236,6 +356,10 @@ public class Builder
private string selectionType;
private IList modifiers;
private IList imageIds;
+ private string modifierType;
+ private int? maxLength;
+ private bool? textRequired;
+ private string internalName;
///
/// Name.
@@ -296,6 +420,53 @@ public Builder ImageIds(IList imageIds)
return this;
}
+ ///
+ /// ModifierType.
+ ///
+ /// modifierType.
+ /// Builder.
+ public Builder ModifierType(string modifierType)
+ {
+ this.modifierType = modifierType;
+ return this;
+ }
+
+ ///
+ /// MaxLength.
+ ///
+ /// maxLength.
+ /// Builder.
+ public Builder MaxLength(int? maxLength)
+ {
+ shouldSerialize["max_length"] = true;
+ this.maxLength = maxLength;
+ return this;
+ }
+
+ ///
+ /// TextRequired.
+ ///
+ /// textRequired.
+ /// Builder.
+ public Builder TextRequired(bool? textRequired)
+ {
+ shouldSerialize["text_required"] = true;
+ this.textRequired = textRequired;
+ return this;
+ }
+
+ ///
+ /// InternalName.
+ ///
+ /// internalName.
+ /// Builder.
+ public Builder InternalName(string internalName)
+ {
+ shouldSerialize["internal_name"] = true;
+ this.internalName = internalName;
+ return this;
+ }
+
///
/// Marks the field to not be serailized.
///
@@ -328,6 +499,30 @@ public void UnsetImageIds()
this.shouldSerialize["image_ids"] = false;
}
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetMaxLength()
+ {
+ this.shouldSerialize["max_length"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetTextRequired()
+ {
+ this.shouldSerialize["text_required"] = false;
+ }
+
+ ///
+ /// Marks the field to not be serailized.
+ ///
+ public void UnsetInternalName()
+ {
+ this.shouldSerialize["internal_name"] = false;
+ }
+
///
/// Builds class object.
@@ -340,7 +535,11 @@ public CatalogModifierList Build()
this.ordinal,
this.selectionType,
this.modifiers,
- this.imageIds);
+ this.imageIds,
+ this.modifierType,
+ this.maxLength,
+ this.textRequired,
+ this.internalName);
}
}
}
diff --git a/Square/Models/CatalogModifierOverride.cs b/Square/Models/CatalogModifierOverride.cs
index f6c992f0..579d6b56 100644
--- a/Square/Models/CatalogModifierOverride.cs
+++ b/Square/Models/CatalogModifierOverride.cs
@@ -140,6 +140,10 @@ public class Builder
private string modifierId;
private bool? onByDefault;
+ ///
+ /// Initialize Builder for CatalogModifierOverride.
+ ///
+ /// modifierId.
public Builder(
string modifierId)
{
diff --git a/Square/Models/CatalogObject.cs b/Square/Models/CatalogObject.cs
index abdfc75c..b047e5da 100644
--- a/Square/Models/CatalogObject.cs
+++ b/Square/Models/CatalogObject.cs
@@ -342,11 +342,16 @@ internal CatalogObject(Dictionary shouldSerialize,
public Models.CatalogDiscount DiscountData { get; }
///
- /// A list of modifiers applicable to items at the time of sale.
+ /// For a text-based modifier, this encapsulates the modifier's text when its `modifier_type` is `TEXT`.
+ /// For example, to sell T-shirts with custom prints, a text-based modifier can be used to capture the buyer-supplied
+ /// text string to be selected for the T-shirt at the time of sale.
+ /// For non text-based modifiers, this encapsulates a non-empty list of modifiers applicable to items
+ /// at the time of sale. Each element of the modifier list is a `CatalogObject` instance of the `MODIFIER` type.
/// For example, a "Condiments" modifier list applicable to a "Hot Dog" item
/// may contain "Ketchup", "Mustard", and "Relish" modifiers.
- /// Use the `selection_type` field to specify whether or not multiple selections from
- /// the modifier list are allowed.
+ /// A non text-based modifier can be applied to the modified item once or multiple times, if the `selection_type` field
+ /// is set to `SINGLE` or `MULTIPLE`, respectively. On the other hand, a text-based modifier can be applied to the item
+ /// only once and the `selection_type` field is always set to `SINGLE`.
///
[JsonProperty("modifier_list_data", NullValueHandling = NullValueHandling.Ignore)]
public Models.CatalogModifierList ModifierListData { get; }
@@ -692,6 +697,11 @@ public class Builder
private Models.CatalogSubscriptionPlanVariation subscriptionPlanVariationData;
private Models.CatalogAvailabilityPeriod availabilityPeriodData;
+ ///
+ /// Initialize Builder for CatalogObject.
+ ///
+ /// type.
+ /// id.
public Builder(
string type,
string id)
diff --git a/Square/Models/CatalogObjectBatch.cs b/Square/Models/CatalogObjectBatch.cs
index 1b4faecb..07d230d0 100644
--- a/Square/Models/CatalogObjectBatch.cs
+++ b/Square/Models/CatalogObjectBatch.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IList objects;
+ ///
+ /// Initialize Builder for CatalogObjectBatch.
+ ///
+ /// objects.
public Builder(
IList objects)
{
diff --git a/Square/Models/CatalogQueryExact.cs b/Square/Models/CatalogQueryExact.cs
index c79cbaff..b7e17441 100644
--- a/Square/Models/CatalogQueryExact.cs
+++ b/Square/Models/CatalogQueryExact.cs
@@ -108,6 +108,11 @@ public class Builder
private string attributeName;
private string attributeValue;
+ ///
+ /// Initialize Builder for CatalogQueryExact.
+ ///
+ /// attributeName.
+ /// attributeValue.
public Builder(
string attributeName,
string attributeValue)
diff --git a/Square/Models/CatalogQueryItemsForModifierList.cs b/Square/Models/CatalogQueryItemsForModifierList.cs
index 8ce66b3e..18444256 100644
--- a/Square/Models/CatalogQueryItemsForModifierList.cs
+++ b/Square/Models/CatalogQueryItemsForModifierList.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IList modifierListIds;
+ ///
+ /// Initialize Builder for CatalogQueryItemsForModifierList.
+ ///
+ /// modifierListIds.
public Builder(
IList modifierListIds)
{
diff --git a/Square/Models/CatalogQueryItemsForTax.cs b/Square/Models/CatalogQueryItemsForTax.cs
index f6fcfd3a..01e32490 100644
--- a/Square/Models/CatalogQueryItemsForTax.cs
+++ b/Square/Models/CatalogQueryItemsForTax.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IList taxIds;
+ ///
+ /// Initialize Builder for CatalogQueryItemsForTax.
+ ///
+ /// taxIds.
public Builder(
IList taxIds)
{
diff --git a/Square/Models/CatalogQueryPrefix.cs b/Square/Models/CatalogQueryPrefix.cs
index 2e382134..9347f3e2 100644
--- a/Square/Models/CatalogQueryPrefix.cs
+++ b/Square/Models/CatalogQueryPrefix.cs
@@ -107,6 +107,11 @@ public class Builder
private string attributeName;
private string attributePrefix;
+ ///
+ /// Initialize Builder for CatalogQueryPrefix.
+ ///
+ /// attributeName.
+ /// attributePrefix.
public Builder(
string attributeName,
string attributePrefix)
diff --git a/Square/Models/CatalogQueryRange.cs b/Square/Models/CatalogQueryRange.cs
index eb5937e7..fefb4ef3 100644
--- a/Square/Models/CatalogQueryRange.cs
+++ b/Square/Models/CatalogQueryRange.cs
@@ -171,6 +171,10 @@ public class Builder
private long? attributeMinValue;
private long? attributeMaxValue;
+ ///
+ /// Initialize Builder for CatalogQueryRange.
+ ///
+ /// attributeName.
public Builder(
string attributeName)
{
diff --git a/Square/Models/CatalogQuerySet.cs b/Square/Models/CatalogQuerySet.cs
index 8a834725..e81bc9de 100644
--- a/Square/Models/CatalogQuerySet.cs
+++ b/Square/Models/CatalogQuerySet.cs
@@ -108,6 +108,11 @@ public class Builder
private string attributeName;
private IList attributeValues;
+ ///
+ /// Initialize Builder for CatalogQuerySet.
+ ///
+ /// attributeName.
+ /// attributeValues.
public Builder(
string attributeName,
IList attributeValues)
diff --git a/Square/Models/CatalogQuerySortedAttribute.cs b/Square/Models/CatalogQuerySortedAttribute.cs
index f6e9073f..484a55b2 100644
--- a/Square/Models/CatalogQuerySortedAttribute.cs
+++ b/Square/Models/CatalogQuerySortedAttribute.cs
@@ -157,6 +157,10 @@ public class Builder
private string initialAttributeValue;
private string sortOrder;
+ ///
+ /// Initialize Builder for CatalogQuerySortedAttribute.
+ ///
+ /// attributeName.
public Builder(
string attributeName)
{
diff --git a/Square/Models/CatalogQueryText.cs b/Square/Models/CatalogQueryText.cs
index a5f53ea8..f7349af3 100644
--- a/Square/Models/CatalogQueryText.cs
+++ b/Square/Models/CatalogQueryText.cs
@@ -94,6 +94,10 @@ public class Builder
{
private IList keywords;
+ ///
+ /// Initialize Builder for CatalogQueryText.
+ ///
+ /// keywords.
public Builder(
IList keywords)
{
diff --git a/Square/Models/CatalogQuickAmount.cs b/Square/Models/CatalogQuickAmount.cs
index 8012c316..bc067727 100644
--- a/Square/Models/CatalogQuickAmount.cs
+++ b/Square/Models/CatalogQuickAmount.cs
@@ -192,6 +192,11 @@ public class Builder
private long? score;
private long? ordinal;
+ ///
+ /// Initialize Builder for CatalogQuickAmount.
+ ///
+ /// type.
+ /// amount.
public Builder(
string type,
Models.Money amount)
diff --git a/Square/Models/CatalogQuickAmountsSettings.cs b/Square/Models/CatalogQuickAmountsSettings.cs
index faa68ca4..e35fcb76 100644
--- a/Square/Models/CatalogQuickAmountsSettings.cs
+++ b/Square/Models/CatalogQuickAmountsSettings.cs
@@ -172,6 +172,10 @@ public class Builder
private bool? eligibleForAutoAmounts;
private IList amounts;
+ ///
+ /// Initialize Builder for CatalogQuickAmountsSettings.
+ ///
+ /// option.
public Builder(
string option)
{
diff --git a/Square/Models/CatalogStockConversion.cs b/Square/Models/CatalogStockConversion.cs
index 86dc2dcb..f90b39e9 100644
--- a/Square/Models/CatalogStockConversion.cs
+++ b/Square/Models/CatalogStockConversion.cs
@@ -131,6 +131,12 @@ public class Builder
private string stockableQuantity;
private string nonstockableQuantity;
+ ///
+ /// Initialize Builder for CatalogStockConversion.
+ ///
+ /// stockableItemVariationId.
+ /// stockableQuantity.
+ /// nonstockableQuantity.
public Builder(
string stockableItemVariationId,
string stockableQuantity,
diff --git a/Square/Models/CatalogSubscriptionPlan.cs b/Square/Models/CatalogSubscriptionPlan.cs
index 17ff2ce6..b17c1847 100644
--- a/Square/Models/CatalogSubscriptionPlan.cs
+++ b/Square/Models/CatalogSubscriptionPlan.cs
@@ -265,6 +265,10 @@ public class Builder
private IList eligibleCategoryIds;
private bool? allItems;
+ ///
+ /// Initialize Builder for CatalogSubscriptionPlan.
+ ///
+ /// name.
public Builder(
string name)
{
diff --git a/Square/Models/CatalogSubscriptionPlanVariation.cs b/Square/Models/CatalogSubscriptionPlanVariation.cs
index 9bb737ea..e665ab11 100644
--- a/Square/Models/CatalogSubscriptionPlanVariation.cs
+++ b/Square/Models/CatalogSubscriptionPlanVariation.cs
@@ -250,6 +250,11 @@ public class Builder
private bool? canProrate;
private string successorPlanVariationId;
+ ///
+ /// Initialize Builder for CatalogSubscriptionPlanVariation.
+ ///
+ /// name.
+ /// phases.
public Builder(
string name,
IList phases)
diff --git a/Square/Models/ChargeRequest.cs b/Square/Models/ChargeRequest.cs
index ab020a1f..6724ff9d 100644
--- a/Square/Models/ChargeRequest.cs
+++ b/Square/Models/ChargeRequest.cs
@@ -508,6 +508,11 @@ public class Builder
private IList additionalRecipients;
private string verificationToken;
+ ///
+ /// Initialize Builder for ChargeRequest.
+ ///
+ /// idempotencyKey.
+ /// amountMoney.
public Builder(
string idempotencyKey,
Models.Money amountMoney)
diff --git a/Square/Models/ChargeRequestAdditionalRecipient.cs b/Square/Models/ChargeRequestAdditionalRecipient.cs
index 2d6904aa..698e050d 100644
--- a/Square/Models/ChargeRequestAdditionalRecipient.cs
+++ b/Square/Models/ChargeRequestAdditionalRecipient.cs
@@ -125,6 +125,12 @@ public class Builder
private string description;
private Models.Money amountMoney;
+ ///
+ /// Initialize Builder for ChargeRequestAdditionalRecipient.
+ ///
+ /// locationId.
+ /// description.
+ /// amountMoney.
public Builder(
string locationId,
string description,
diff --git a/Square/Models/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs b/Square/Models/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs
index cc82e333..afc40e72 100644
--- a/Square/Models/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs
+++ b/Square/Models/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.cs
@@ -117,6 +117,11 @@ public class Builder
private Models.Money min;
private Models.Money max;
+ ///
+ /// Initialize Builder for CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.
+ ///
+ /// min.
+ /// max.
public Builder(
Models.Money min,
Models.Money max)
diff --git a/Square/Models/CloneOrderRequest.cs b/Square/Models/CloneOrderRequest.cs
index dac6771e..50e12d9c 100644
--- a/Square/Models/CloneOrderRequest.cs
+++ b/Square/Models/CloneOrderRequest.cs
@@ -162,6 +162,10 @@ public class Builder
private int? version;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CloneOrderRequest.
+ ///
+ /// orderId.
public Builder(
string orderId)
{
diff --git a/Square/Models/Component.cs b/Square/Models/Component.cs
index 0b2c91ab..21bf96f2 100644
--- a/Square/Models/Component.cs
+++ b/Square/Models/Component.cs
@@ -159,6 +159,10 @@ public class Builder
private Models.DeviceComponentDetailsWiFiDetails wifiDetails;
private Models.DeviceComponentDetailsEthernetDetails ethernetDetails;
+ ///
+ /// Initialize Builder for Component.
+ ///
+ /// type.
public Builder(
string type)
{
diff --git a/Square/Models/ConfirmationOptions.cs b/Square/Models/ConfirmationOptions.cs
index 516eec3a..b6debf28 100644
--- a/Square/Models/ConfirmationOptions.cs
+++ b/Square/Models/ConfirmationOptions.cs
@@ -185,6 +185,12 @@ public class Builder
private string disagreeButtonText;
private Models.ConfirmationDecision decision;
+ ///
+ /// Initialize Builder for ConfirmationOptions.
+ ///
+ /// title.
+ /// body.
+ /// agreeButtonText.
public Builder(
string title,
string body,
diff --git a/Square/Models/CreateBookingCustomAttributeDefinitionRequest.cs b/Square/Models/CreateBookingCustomAttributeDefinitionRequest.cs
index 6fdf4175..95c33cfc 100644
--- a/Square/Models/CreateBookingCustomAttributeDefinitionRequest.cs
+++ b/Square/Models/CreateBookingCustomAttributeDefinitionRequest.cs
@@ -109,6 +109,10 @@ public class Builder
private Models.CustomAttributeDefinition customAttributeDefinition;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateBookingCustomAttributeDefinitionRequest.
+ ///
+ /// customAttributeDefinition.
public Builder(
Models.CustomAttributeDefinition customAttributeDefinition)
{
diff --git a/Square/Models/CreateBookingRequest.cs b/Square/Models/CreateBookingRequest.cs
index b8c75271..7f7efffd 100644
--- a/Square/Models/CreateBookingRequest.cs
+++ b/Square/Models/CreateBookingRequest.cs
@@ -108,6 +108,10 @@ public class Builder
private Models.Booking booking;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateBookingRequest.
+ ///
+ /// booking.
public Builder(
Models.Booking booking)
{
diff --git a/Square/Models/CreateBreakTypeRequest.cs b/Square/Models/CreateBreakTypeRequest.cs
index d1185d21..6491afb7 100644
--- a/Square/Models/CreateBreakTypeRequest.cs
+++ b/Square/Models/CreateBreakTypeRequest.cs
@@ -108,6 +108,10 @@ public class Builder
private Models.BreakType breakType;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateBreakTypeRequest.
+ ///
+ /// breakType.
public Builder(
Models.BreakType breakType)
{
diff --git a/Square/Models/CreateCardRequest.cs b/Square/Models/CreateCardRequest.cs
index 979c607d..727456bb 100644
--- a/Square/Models/CreateCardRequest.cs
+++ b/Square/Models/CreateCardRequest.cs
@@ -140,6 +140,12 @@ public class Builder
private Models.Card card;
private string verificationToken;
+ ///
+ /// Initialize Builder for CreateCardRequest.
+ ///
+ /// idempotencyKey.
+ /// sourceId.
+ /// card.
public Builder(
string idempotencyKey,
string sourceId,
diff --git a/Square/Models/CreateCatalogImageRequest.cs b/Square/Models/CreateCatalogImageRequest.cs
index 8daa35db..cdaa8513 100644
--- a/Square/Models/CreateCatalogImageRequest.cs
+++ b/Square/Models/CreateCatalogImageRequest.cs
@@ -54,12 +54,14 @@ public CreateCatalogImageRequest(
public string ObjectId { get; }
///
+ /// `, the `CatalogObject` instance must have the ``-specific data set on the `_data` attribute. The resulting `CatalogObject` instance is also a `Catalog` instance.
/// For a more detailed discussion of the Catalog data model, please see the
/// [Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog) guide.
+ /// ]]>
///
[JsonProperty("image")]
public Models.CatalogObject Image { get; }
@@ -145,6 +147,11 @@ public class Builder
private string objectId;
private bool? isPrimary;
+ ///
+ /// Initialize Builder for CreateCatalogImageRequest.
+ ///
+ /// idempotencyKey.
+ /// image.
public Builder(
string idempotencyKey,
Models.CatalogObject image)
diff --git a/Square/Models/CreateCatalogImageResponse.cs b/Square/Models/CreateCatalogImageResponse.cs
index 1440a456..ac999509 100644
--- a/Square/Models/CreateCatalogImageResponse.cs
+++ b/Square/Models/CreateCatalogImageResponse.cs
@@ -45,12 +45,14 @@ public CreateCatalogImageResponse(
public IList Errors { get; }
///
+ /// `, the `CatalogObject` instance must have the ``-specific data set on the `_data` attribute. The resulting `CatalogObject` instance is also a `Catalog` instance.
/// For a more detailed discussion of the Catalog data model, please see the
/// [Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog) guide.
+ /// ]]>
///
[JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
public Models.CatalogObject Image { get; }
diff --git a/Square/Models/CreateCheckoutRequest.cs b/Square/Models/CreateCheckoutRequest.cs
index 87e21867..27f9e866 100644
--- a/Square/Models/CreateCheckoutRequest.cs
+++ b/Square/Models/CreateCheckoutRequest.cs
@@ -232,6 +232,11 @@ public class Builder
private IList additionalRecipients;
private string note;
+ ///
+ /// Initialize Builder for CreateCheckoutRequest.
+ ///
+ /// idempotencyKey.
+ /// order.
public Builder(
string idempotencyKey,
Models.CreateOrderRequest order)
diff --git a/Square/Models/CreateCustomerCardRequest.cs b/Square/Models/CreateCustomerCardRequest.cs
index f14707e2..0ebde9ca 100644
--- a/Square/Models/CreateCustomerCardRequest.cs
+++ b/Square/Models/CreateCustomerCardRequest.cs
@@ -141,6 +141,10 @@ public class Builder
private string cardholderName;
private string verificationToken;
+ ///
+ /// Initialize Builder for CreateCustomerCardRequest.
+ ///
+ /// cardNonce.
public Builder(
string cardNonce)
{
diff --git a/Square/Models/CreateCustomerCustomAttributeDefinitionRequest.cs b/Square/Models/CreateCustomerCustomAttributeDefinitionRequest.cs
index 3eccd513..e0ed5f76 100644
--- a/Square/Models/CreateCustomerCustomAttributeDefinitionRequest.cs
+++ b/Square/Models/CreateCustomerCustomAttributeDefinitionRequest.cs
@@ -109,6 +109,10 @@ public class Builder
private Models.CustomAttributeDefinition customAttributeDefinition;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateCustomerCustomAttributeDefinitionRequest.
+ ///
+ /// customAttributeDefinition.
public Builder(
Models.CustomAttributeDefinition customAttributeDefinition)
{
diff --git a/Square/Models/CreateCustomerGroupRequest.cs b/Square/Models/CreateCustomerGroupRequest.cs
index 439cdad6..6a537334 100644
--- a/Square/Models/CreateCustomerGroupRequest.cs
+++ b/Square/Models/CreateCustomerGroupRequest.cs
@@ -109,6 +109,10 @@ public class Builder
private Models.CustomerGroup mGroup;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateCustomerGroupRequest.
+ ///
+ /// mGroup.
public Builder(
Models.CustomerGroup mGroup)
{
diff --git a/Square/Models/CreateDeviceCodeRequest.cs b/Square/Models/CreateDeviceCodeRequest.cs
index 6914f66a..a88525aa 100644
--- a/Square/Models/CreateDeviceCodeRequest.cs
+++ b/Square/Models/CreateDeviceCodeRequest.cs
@@ -109,6 +109,11 @@ public class Builder
private string idempotencyKey;
private Models.DeviceCode deviceCode;
+ ///
+ /// Initialize Builder for CreateDeviceCodeRequest.
+ ///
+ /// idempotencyKey.
+ /// deviceCode.
public Builder(
string idempotencyKey,
Models.DeviceCode deviceCode)
diff --git a/Square/Models/CreateDisputeEvidenceFileRequest.cs b/Square/Models/CreateDisputeEvidenceFileRequest.cs
index 31b4fd1f..36e48d2f 100644
--- a/Square/Models/CreateDisputeEvidenceFileRequest.cs
+++ b/Square/Models/CreateDisputeEvidenceFileRequest.cs
@@ -121,6 +121,10 @@ public class Builder
private string evidenceType;
private string contentType;
+ ///
+ /// Initialize Builder for CreateDisputeEvidenceFileRequest.
+ ///
+ /// idempotencyKey.
public Builder(
string idempotencyKey)
{
diff --git a/Square/Models/CreateDisputeEvidenceTextRequest.cs b/Square/Models/CreateDisputeEvidenceTextRequest.cs
index 8625fa77..a020ebe5 100644
--- a/Square/Models/CreateDisputeEvidenceTextRequest.cs
+++ b/Square/Models/CreateDisputeEvidenceTextRequest.cs
@@ -120,6 +120,11 @@ public class Builder
private string evidenceText;
private string evidenceType;
+ ///
+ /// Initialize Builder for CreateDisputeEvidenceTextRequest.
+ ///
+ /// idempotencyKey.
+ /// evidenceText.
public Builder(
string idempotencyKey,
string evidenceText)
diff --git a/Square/Models/CreateGiftCardActivityRequest.cs b/Square/Models/CreateGiftCardActivityRequest.cs
index 18778001..461ac42c 100644
--- a/Square/Models/CreateGiftCardActivityRequest.cs
+++ b/Square/Models/CreateGiftCardActivityRequest.cs
@@ -109,6 +109,11 @@ public class Builder
private string idempotencyKey;
private Models.GiftCardActivity giftCardActivity;
+ ///
+ /// Initialize Builder for CreateGiftCardActivityRequest.
+ ///
+ /// idempotencyKey.
+ /// giftCardActivity.
public Builder(
string idempotencyKey,
Models.GiftCardActivity giftCardActivity)
diff --git a/Square/Models/CreateGiftCardRequest.cs b/Square/Models/CreateGiftCardRequest.cs
index 1a58811c..1957691d 100644
--- a/Square/Models/CreateGiftCardRequest.cs
+++ b/Square/Models/CreateGiftCardRequest.cs
@@ -122,6 +122,12 @@ public class Builder
private string locationId;
private Models.GiftCard giftCard;
+ ///
+ /// Initialize Builder for CreateGiftCardRequest.
+ ///
+ /// idempotencyKey.
+ /// locationId.
+ /// giftCard.
public Builder(
string idempotencyKey,
string locationId,
diff --git a/Square/Models/CreateInvoiceRequest.cs b/Square/Models/CreateInvoiceRequest.cs
index c302f42d..5ef8de78 100644
--- a/Square/Models/CreateInvoiceRequest.cs
+++ b/Square/Models/CreateInvoiceRequest.cs
@@ -111,6 +111,10 @@ public class Builder
private Models.Invoice invoice;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateInvoiceRequest.
+ ///
+ /// invoice.
public Builder(
Models.Invoice invoice)
{
diff --git a/Square/Models/CreateLocationCustomAttributeDefinitionRequest.cs b/Square/Models/CreateLocationCustomAttributeDefinitionRequest.cs
index bccb302b..ceffa8bc 100644
--- a/Square/Models/CreateLocationCustomAttributeDefinitionRequest.cs
+++ b/Square/Models/CreateLocationCustomAttributeDefinitionRequest.cs
@@ -109,6 +109,10 @@ public class Builder
private Models.CustomAttributeDefinition customAttributeDefinition;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateLocationCustomAttributeDefinitionRequest.
+ ///
+ /// customAttributeDefinition.
public Builder(
Models.CustomAttributeDefinition customAttributeDefinition)
{
diff --git a/Square/Models/CreateLoyaltyAccountRequest.cs b/Square/Models/CreateLoyaltyAccountRequest.cs
index 4951aa12..c69daff0 100644
--- a/Square/Models/CreateLoyaltyAccountRequest.cs
+++ b/Square/Models/CreateLoyaltyAccountRequest.cs
@@ -109,6 +109,11 @@ public class Builder
private Models.LoyaltyAccount loyaltyAccount;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateLoyaltyAccountRequest.
+ ///
+ /// loyaltyAccount.
+ /// idempotencyKey.
public Builder(
Models.LoyaltyAccount loyaltyAccount,
string idempotencyKey)
diff --git a/Square/Models/CreateLoyaltyPromotionRequest.cs b/Square/Models/CreateLoyaltyPromotionRequest.cs
index 08b5cb43..a94b61e8 100644
--- a/Square/Models/CreateLoyaltyPromotionRequest.cs
+++ b/Square/Models/CreateLoyaltyPromotionRequest.cs
@@ -110,6 +110,11 @@ public class Builder
private Models.LoyaltyPromotion loyaltyPromotion;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateLoyaltyPromotionRequest.
+ ///
+ /// loyaltyPromotion.
+ /// idempotencyKey.
public Builder(
Models.LoyaltyPromotion loyaltyPromotion,
string idempotencyKey)
diff --git a/Square/Models/CreateLoyaltyRewardRequest.cs b/Square/Models/CreateLoyaltyRewardRequest.cs
index 88061829..d8ed7d14 100644
--- a/Square/Models/CreateLoyaltyRewardRequest.cs
+++ b/Square/Models/CreateLoyaltyRewardRequest.cs
@@ -109,6 +109,11 @@ public class Builder
private Models.LoyaltyReward reward;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateLoyaltyRewardRequest.
+ ///
+ /// reward.
+ /// idempotencyKey.
public Builder(
Models.LoyaltyReward reward,
string idempotencyKey)
diff --git a/Square/Models/CreateMerchantCustomAttributeDefinitionRequest.cs b/Square/Models/CreateMerchantCustomAttributeDefinitionRequest.cs
index a2f94b0c..d3acd68e 100644
--- a/Square/Models/CreateMerchantCustomAttributeDefinitionRequest.cs
+++ b/Square/Models/CreateMerchantCustomAttributeDefinitionRequest.cs
@@ -109,6 +109,10 @@ public class Builder
private Models.CustomAttributeDefinition customAttributeDefinition;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateMerchantCustomAttributeDefinitionRequest.
+ ///
+ /// customAttributeDefinition.
public Builder(
Models.CustomAttributeDefinition customAttributeDefinition)
{
diff --git a/Square/Models/CreateOrderCustomAttributeDefinitionRequest.cs b/Square/Models/CreateOrderCustomAttributeDefinitionRequest.cs
index 1ef6f282..5f1f60c1 100644
--- a/Square/Models/CreateOrderCustomAttributeDefinitionRequest.cs
+++ b/Square/Models/CreateOrderCustomAttributeDefinitionRequest.cs
@@ -109,6 +109,10 @@ public class Builder
private Models.CustomAttributeDefinition customAttributeDefinition;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateOrderCustomAttributeDefinitionRequest.
+ ///
+ /// customAttributeDefinition.
public Builder(
Models.CustomAttributeDefinition customAttributeDefinition)
{
diff --git a/Square/Models/CreatePaymentRequest.cs b/Square/Models/CreatePaymentRequest.cs
index 23e133cc..17b2b327 100644
--- a/Square/Models/CreatePaymentRequest.cs
+++ b/Square/Models/CreatePaymentRequest.cs
@@ -452,6 +452,11 @@ public class Builder
private Models.ExternalPaymentDetails externalDetails;
private Models.CustomerDetails customerDetails;
+ ///
+ /// Initialize Builder for CreatePaymentRequest.
+ ///
+ /// sourceId.
+ /// idempotencyKey.
public Builder(
string sourceId,
string idempotencyKey)
diff --git a/Square/Models/CreateRefundRequest.cs b/Square/Models/CreateRefundRequest.cs
index fa93c355..64aed348 100644
--- a/Square/Models/CreateRefundRequest.cs
+++ b/Square/Models/CreateRefundRequest.cs
@@ -147,6 +147,12 @@ public class Builder
private Models.Money amountMoney;
private string reason;
+ ///
+ /// Initialize Builder for CreateRefundRequest.
+ ///
+ /// idempotencyKey.
+ /// tenderId.
+ /// amountMoney.
public Builder(
string idempotencyKey,
string tenderId,
diff --git a/Square/Models/CreateShiftRequest.cs b/Square/Models/CreateShiftRequest.cs
index 14adfca8..edf62e9e 100644
--- a/Square/Models/CreateShiftRequest.cs
+++ b/Square/Models/CreateShiftRequest.cs
@@ -109,6 +109,10 @@ public class Builder
private Models.Shift shift;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateShiftRequest.
+ ///
+ /// shift.
public Builder(
Models.Shift shift)
{
diff --git a/Square/Models/CreateSubscriptionRequest.cs b/Square/Models/CreateSubscriptionRequest.cs
index 09b04128..06e18155 100644
--- a/Square/Models/CreateSubscriptionRequest.cs
+++ b/Square/Models/CreateSubscriptionRequest.cs
@@ -274,6 +274,11 @@ public class Builder
private int? monthlyBillingAnchorDate;
private IList phases;
+ ///
+ /// Initialize Builder for CreateSubscriptionRequest.
+ ///
+ /// locationId.
+ /// customerId.
public Builder(
string locationId,
string customerId)
diff --git a/Square/Models/CreateTerminalActionRequest.cs b/Square/Models/CreateTerminalActionRequest.cs
index 691b99ff..381b183f 100644
--- a/Square/Models/CreateTerminalActionRequest.cs
+++ b/Square/Models/CreateTerminalActionRequest.cs
@@ -110,6 +110,11 @@ public class Builder
private string idempotencyKey;
private Models.TerminalAction action;
+ ///
+ /// Initialize Builder for CreateTerminalActionRequest.
+ ///
+ /// idempotencyKey.
+ /// action.
public Builder(
string idempotencyKey,
Models.TerminalAction action)
diff --git a/Square/Models/CreateTerminalCheckoutRequest.cs b/Square/Models/CreateTerminalCheckoutRequest.cs
index 8c6f62ae..587ab5d6 100644
--- a/Square/Models/CreateTerminalCheckoutRequest.cs
+++ b/Square/Models/CreateTerminalCheckoutRequest.cs
@@ -109,6 +109,11 @@ public class Builder
private string idempotencyKey;
private Models.TerminalCheckout checkout;
+ ///
+ /// Initialize Builder for CreateTerminalCheckoutRequest.
+ ///
+ /// idempotencyKey.
+ /// checkout.
public Builder(
string idempotencyKey,
Models.TerminalCheckout checkout)
diff --git a/Square/Models/CreateTerminalRefundRequest.cs b/Square/Models/CreateTerminalRefundRequest.cs
index 1e107b62..9a712e55 100644
--- a/Square/Models/CreateTerminalRefundRequest.cs
+++ b/Square/Models/CreateTerminalRefundRequest.cs
@@ -109,6 +109,10 @@ public class Builder
private string idempotencyKey;
private Models.TerminalRefund refund;
+ ///
+ /// Initialize Builder for CreateTerminalRefundRequest.
+ ///
+ /// idempotencyKey.
public Builder(
string idempotencyKey)
{
diff --git a/Square/Models/CreateVendorRequest.cs b/Square/Models/CreateVendorRequest.cs
index 8ed50328..163bc713 100644
--- a/Square/Models/CreateVendorRequest.cs
+++ b/Square/Models/CreateVendorRequest.cs
@@ -110,6 +110,10 @@ public class Builder
private string idempotencyKey;
private Models.Vendor vendor;
+ ///
+ /// Initialize Builder for CreateVendorRequest.
+ ///
+ /// idempotencyKey.
public Builder(
string idempotencyKey)
{
diff --git a/Square/Models/CreateWebhookSubscriptionRequest.cs b/Square/Models/CreateWebhookSubscriptionRequest.cs
index 5aa18e9b..373fa6e7 100644
--- a/Square/Models/CreateWebhookSubscriptionRequest.cs
+++ b/Square/Models/CreateWebhookSubscriptionRequest.cs
@@ -108,6 +108,10 @@ public class Builder
private Models.WebhookSubscription subscription;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for CreateWebhookSubscriptionRequest.
+ ///
+ /// subscription.
public Builder(
Models.WebhookSubscription subscription)
{
diff --git a/Square/Models/CustomField.cs b/Square/Models/CustomField.cs
index 2690e8ba..5f535615 100644
--- a/Square/Models/CustomField.cs
+++ b/Square/Models/CustomField.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string title;
+ ///
+ /// Initialize Builder for CustomField.
+ ///
+ /// title.
public Builder(
string title)
{
diff --git a/Square/Models/CustomerCustomAttributeFilter.cs b/Square/Models/CustomerCustomAttributeFilter.cs
index 8a4f9ff1..1a3db225 100644
--- a/Square/Models/CustomerCustomAttributeFilter.cs
+++ b/Square/Models/CustomerCustomAttributeFilter.cs
@@ -126,6 +126,10 @@ public class Builder
private Models.CustomerCustomAttributeFilterValue filter;
private Models.TimeRange updatedAt;
+ ///
+ /// Initialize Builder for CustomerCustomAttributeFilter.
+ ///
+ /// key.
public Builder(
string key)
{
diff --git a/Square/Models/CustomerGroup.cs b/Square/Models/CustomerGroup.cs
index 9b6eb336..e11aa81c 100644
--- a/Square/Models/CustomerGroup.cs
+++ b/Square/Models/CustomerGroup.cs
@@ -133,6 +133,10 @@ public class Builder
private string createdAt;
private string updatedAt;
+ ///
+ /// Initialize Builder for CustomerGroup.
+ ///
+ /// name.
public Builder(
string name)
{
diff --git a/Square/Models/CustomerSegment.cs b/Square/Models/CustomerSegment.cs
index 80573fa1..aca2594e 100644
--- a/Square/Models/CustomerSegment.cs
+++ b/Square/Models/CustomerSegment.cs
@@ -133,6 +133,10 @@ public class Builder
private string createdAt;
private string updatedAt;
+ ///
+ /// Initialize Builder for CustomerSegment.
+ ///
+ /// name.
public Builder(
string name)
{
diff --git a/Square/Models/DataCollectionOptions.cs b/Square/Models/DataCollectionOptions.cs
index 43d6b87d..31c17921 100644
--- a/Square/Models/DataCollectionOptions.cs
+++ b/Square/Models/DataCollectionOptions.cs
@@ -134,6 +134,12 @@ public class Builder
private string inputType;
private Models.CollectedData collectedData;
+ ///
+ /// Initialize Builder for DataCollectionOptions.
+ ///
+ /// title.
+ /// body.
+ /// inputType.
public Builder(
string title,
string body,
diff --git a/Square/Models/DeprecatedCreateDisputeEvidenceFileRequest.cs b/Square/Models/DeprecatedCreateDisputeEvidenceFileRequest.cs
index a9893d87..88256c1c 100644
--- a/Square/Models/DeprecatedCreateDisputeEvidenceFileRequest.cs
+++ b/Square/Models/DeprecatedCreateDisputeEvidenceFileRequest.cs
@@ -156,6 +156,10 @@ public class Builder
private string evidenceType;
private string contentType;
+ ///
+ /// Initialize Builder for DeprecatedCreateDisputeEvidenceFileRequest.
+ ///
+ /// idempotencyKey.
public Builder(
string idempotencyKey)
{
diff --git a/Square/Models/DeprecatedCreateDisputeEvidenceTextRequest.cs b/Square/Models/DeprecatedCreateDisputeEvidenceTextRequest.cs
index fa2056b5..25d77690 100644
--- a/Square/Models/DeprecatedCreateDisputeEvidenceTextRequest.cs
+++ b/Square/Models/DeprecatedCreateDisputeEvidenceTextRequest.cs
@@ -120,6 +120,11 @@ public class Builder
private string evidenceText;
private string evidenceType;
+ ///
+ /// Initialize Builder for DeprecatedCreateDisputeEvidenceTextRequest.
+ ///
+ /// idempotencyKey.
+ /// evidenceText.
public Builder(
string idempotencyKey,
string evidenceText)
diff --git a/Square/Models/Device.cs b/Square/Models/Device.cs
index bf303994..2fb7a558 100644
--- a/Square/Models/Device.cs
+++ b/Square/Models/Device.cs
@@ -171,6 +171,10 @@ public class Builder
private IList components;
private Models.DeviceStatus status;
+ ///
+ /// Initialize Builder for Device.
+ ///
+ /// attributes.
public Builder(
Models.DeviceAttributes attributes)
{
diff --git a/Square/Models/DeviceAttributes.cs b/Square/Models/DeviceAttributes.cs
index 4eb869e5..57c69024 100644
--- a/Square/Models/DeviceAttributes.cs
+++ b/Square/Models/DeviceAttributes.cs
@@ -282,6 +282,11 @@ public class Builder
private string version;
private string merchantToken;
+ ///
+ /// Initialize Builder for DeviceAttributes.
+ ///
+ /// type.
+ /// manufacturer.
public Builder(
string type,
string manufacturer)
diff --git a/Square/Models/DeviceCheckoutOptions.cs b/Square/Models/DeviceCheckoutOptions.cs
index ecb993dc..ed52a957 100644
--- a/Square/Models/DeviceCheckoutOptions.cs
+++ b/Square/Models/DeviceCheckoutOptions.cs
@@ -220,6 +220,10 @@ public class Builder
private Models.TipSettings tipSettings;
private bool? showItemizedCart;
+ ///
+ /// Initialize Builder for DeviceCheckoutOptions.
+ ///
+ /// deviceId.
public Builder(
string deviceId)
{
diff --git a/Square/Models/DeviceCode.cs b/Square/Models/DeviceCode.cs
index 291bc9a8..8bdf0583 100644
--- a/Square/Models/DeviceCode.cs
+++ b/Square/Models/DeviceCode.cs
@@ -293,6 +293,10 @@ public class Builder
private string statusChangedAt;
private string pairedAt;
+ ///
+ /// Initialize Builder for DeviceCode.
+ ///
+ /// productType.
public Builder(
string productType)
{
diff --git a/Square/Models/Error.cs b/Square/Models/Error.cs
index 4dd43ed4..1d05f7a6 100644
--- a/Square/Models/Error.cs
+++ b/Square/Models/Error.cs
@@ -136,6 +136,11 @@ public class Builder
private string detail;
private string field;
+ ///
+ /// Initialize Builder for Error.
+ ///
+ /// category.
+ /// code.
public Builder(
string category,
string code)
diff --git a/Square/Models/ExternalPaymentDetails.cs b/Square/Models/ExternalPaymentDetails.cs
index bcabde42..7d7ae5c0 100644
--- a/Square/Models/ExternalPaymentDetails.cs
+++ b/Square/Models/ExternalPaymentDetails.cs
@@ -188,6 +188,11 @@ public class Builder
private string sourceId;
private Models.Money sourceFeeMoney;
+ ///
+ /// Initialize Builder for ExternalPaymentDetails.
+ ///
+ /// type.
+ /// source.
public Builder(
string type,
string source)
diff --git a/Square/Models/FulfillmentFulfillmentEntry.cs b/Square/Models/FulfillmentFulfillmentEntry.cs
index fc4e1928..10e80dc0 100644
--- a/Square/Models/FulfillmentFulfillmentEntry.cs
+++ b/Square/Models/FulfillmentFulfillmentEntry.cs
@@ -201,6 +201,11 @@ public class Builder
private string uid;
private IDictionary metadata;
+ ///
+ /// Initialize Builder for FulfillmentFulfillmentEntry.
+ ///
+ /// lineItemUid.
+ /// quantity.
public Builder(
string lineItemUid,
string quantity)
diff --git a/Square/Models/GiftCard.cs b/Square/Models/GiftCard.cs
index d7c3ca42..7980b5d1 100644
--- a/Square/Models/GiftCard.cs
+++ b/Square/Models/GiftCard.cs
@@ -243,6 +243,10 @@ public class Builder
private string createdAt;
private IList customerIds;
+ ///
+ /// Initialize Builder for GiftCard.
+ ///
+ /// type.
public Builder(
string type)
{
diff --git a/Square/Models/GiftCardActivity.cs b/Square/Models/GiftCardActivity.cs
index d3386ee5..8b3f43f9 100644
--- a/Square/Models/GiftCardActivity.cs
+++ b/Square/Models/GiftCardActivity.cs
@@ -471,6 +471,11 @@ public class Builder
private Models.GiftCardActivityTransferBalanceTo transferBalanceToActivityDetails;
private Models.GiftCardActivityTransferBalanceFrom transferBalanceFromActivityDetails;
+ ///
+ /// Initialize Builder for GiftCardActivity.
+ ///
+ /// type.
+ /// locationId.
public Builder(
string type,
string locationId)
diff --git a/Square/Models/GiftCardActivityAdjustDecrement.cs b/Square/Models/GiftCardActivityAdjustDecrement.cs
index 48055dcb..fa335667 100644
--- a/Square/Models/GiftCardActivityAdjustDecrement.cs
+++ b/Square/Models/GiftCardActivityAdjustDecrement.cs
@@ -112,6 +112,11 @@ public class Builder
private Models.Money amountMoney;
private string reason;
+ ///
+ /// Initialize Builder for GiftCardActivityAdjustDecrement.
+ ///
+ /// amountMoney.
+ /// reason.
public Builder(
Models.Money amountMoney,
string reason)
diff --git a/Square/Models/GiftCardActivityAdjustIncrement.cs b/Square/Models/GiftCardActivityAdjustIncrement.cs
index 026b1902..f36b5783 100644
--- a/Square/Models/GiftCardActivityAdjustIncrement.cs
+++ b/Square/Models/GiftCardActivityAdjustIncrement.cs
@@ -112,6 +112,11 @@ public class Builder
private Models.Money amountMoney;
private string reason;
+ ///
+ /// Initialize Builder for GiftCardActivityAdjustIncrement.
+ ///
+ /// amountMoney.
+ /// reason.
public Builder(
Models.Money amountMoney,
string reason)
diff --git a/Square/Models/GiftCardActivityBlock.cs b/Square/Models/GiftCardActivityBlock.cs
index ba2c914a..9771caff 100644
--- a/Square/Models/GiftCardActivityBlock.cs
+++ b/Square/Models/GiftCardActivityBlock.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string reason;
+ ///
+ /// Initialize Builder for GiftCardActivityBlock.
+ ///
+ /// reason.
public Builder(
string reason)
{
diff --git a/Square/Models/GiftCardActivityClearBalance.cs b/Square/Models/GiftCardActivityClearBalance.cs
index 11e5d8c2..099410d2 100644
--- a/Square/Models/GiftCardActivityClearBalance.cs
+++ b/Square/Models/GiftCardActivityClearBalance.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string reason;
+ ///
+ /// Initialize Builder for GiftCardActivityClearBalance.
+ ///
+ /// reason.
public Builder(
string reason)
{
diff --git a/Square/Models/GiftCardActivityDeactivate.cs b/Square/Models/GiftCardActivityDeactivate.cs
index 159e988d..0fe0aeec 100644
--- a/Square/Models/GiftCardActivityDeactivate.cs
+++ b/Square/Models/GiftCardActivityDeactivate.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string reason;
+ ///
+ /// Initialize Builder for GiftCardActivityDeactivate.
+ ///
+ /// reason.
public Builder(
string reason)
{
diff --git a/Square/Models/GiftCardActivityImport.cs b/Square/Models/GiftCardActivityImport.cs
index 333a8ab6..3843daba 100644
--- a/Square/Models/GiftCardActivityImport.cs
+++ b/Square/Models/GiftCardActivityImport.cs
@@ -99,6 +99,10 @@ public class Builder
{
private Models.Money amountMoney;
+ ///
+ /// Initialize Builder for GiftCardActivityImport.
+ ///
+ /// amountMoney.
public Builder(
Models.Money amountMoney)
{
diff --git a/Square/Models/GiftCardActivityImportReversal.cs b/Square/Models/GiftCardActivityImportReversal.cs
index e4963e4f..d49ac187 100644
--- a/Square/Models/GiftCardActivityImportReversal.cs
+++ b/Square/Models/GiftCardActivityImportReversal.cs
@@ -99,6 +99,10 @@ public class Builder
{
private Models.Money amountMoney;
+ ///
+ /// Initialize Builder for GiftCardActivityImportReversal.
+ ///
+ /// amountMoney.
public Builder(
Models.Money amountMoney)
{
diff --git a/Square/Models/GiftCardActivityRedeem.cs b/Square/Models/GiftCardActivityRedeem.cs
index d5ff1b26..1b80d299 100644
--- a/Square/Models/GiftCardActivityRedeem.cs
+++ b/Square/Models/GiftCardActivityRedeem.cs
@@ -180,6 +180,10 @@ public class Builder
private string referenceId;
private string status;
+ ///
+ /// Initialize Builder for GiftCardActivityRedeem.
+ ///
+ /// amountMoney.
public Builder(
Models.Money amountMoney)
{
diff --git a/Square/Models/GiftCardActivityTransferBalanceFrom.cs b/Square/Models/GiftCardActivityTransferBalanceFrom.cs
index f0d11bcc..3080655e 100644
--- a/Square/Models/GiftCardActivityTransferBalanceFrom.cs
+++ b/Square/Models/GiftCardActivityTransferBalanceFrom.cs
@@ -112,6 +112,11 @@ public class Builder
private string transferToGiftCardId;
private Models.Money amountMoney;
+ ///
+ /// Initialize Builder for GiftCardActivityTransferBalanceFrom.
+ ///
+ /// transferToGiftCardId.
+ /// amountMoney.
public Builder(
string transferToGiftCardId,
Models.Money amountMoney)
diff --git a/Square/Models/GiftCardActivityTransferBalanceTo.cs b/Square/Models/GiftCardActivityTransferBalanceTo.cs
index 3498fba6..b5adfeff 100644
--- a/Square/Models/GiftCardActivityTransferBalanceTo.cs
+++ b/Square/Models/GiftCardActivityTransferBalanceTo.cs
@@ -112,6 +112,11 @@ public class Builder
private string transferFromGiftCardId;
private Models.Money amountMoney;
+ ///
+ /// Initialize Builder for GiftCardActivityTransferBalanceTo.
+ ///
+ /// transferFromGiftCardId.
+ /// amountMoney.
public Builder(
string transferFromGiftCardId,
Models.Money amountMoney)
diff --git a/Square/Models/GiftCardActivityUnblock.cs b/Square/Models/GiftCardActivityUnblock.cs
index 2d9aabd9..1f4f69b1 100644
--- a/Square/Models/GiftCardActivityUnblock.cs
+++ b/Square/Models/GiftCardActivityUnblock.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string reason;
+ ///
+ /// Initialize Builder for GiftCardActivityUnblock.
+ ///
+ /// reason.
public Builder(
string reason)
{
diff --git a/Square/Models/GiftCardActivityUnlinkedActivityRefund.cs b/Square/Models/GiftCardActivityUnlinkedActivityRefund.cs
index f63c9cbb..3d51678f 100644
--- a/Square/Models/GiftCardActivityUnlinkedActivityRefund.cs
+++ b/Square/Models/GiftCardActivityUnlinkedActivityRefund.cs
@@ -160,6 +160,10 @@ public class Builder
private string referenceId;
private string paymentId;
+ ///
+ /// Initialize Builder for GiftCardActivityUnlinkedActivityRefund.
+ ///
+ /// amountMoney.
public Builder(
Models.Money amountMoney)
{
diff --git a/Square/Models/InvoiceFilter.cs b/Square/Models/InvoiceFilter.cs
index 57ef15bd..a9c6ba3a 100644
--- a/Square/Models/InvoiceFilter.cs
+++ b/Square/Models/InvoiceFilter.cs
@@ -143,6 +143,10 @@ public class Builder
private IList locationIds;
private IList customerIds;
+ ///
+ /// Initialize Builder for InvoiceFilter.
+ ///
+ /// locationIds.
public Builder(
IList locationIds)
{
diff --git a/Square/Models/InvoiceQuery.cs b/Square/Models/InvoiceQuery.cs
index e4d40662..f70da8bb 100644
--- a/Square/Models/InvoiceQuery.cs
+++ b/Square/Models/InvoiceQuery.cs
@@ -107,6 +107,10 @@ public class Builder
private Models.InvoiceFilter filter;
private Models.InvoiceSort sort;
+ ///
+ /// Initialize Builder for InvoiceQuery.
+ ///
+ /// filter.
public Builder(
Models.InvoiceFilter filter)
{
diff --git a/Square/Models/InvoiceSort.cs b/Square/Models/InvoiceSort.cs
index 40355274..31f17ac3 100644
--- a/Square/Models/InvoiceSort.cs
+++ b/Square/Models/InvoiceSort.cs
@@ -107,6 +107,10 @@ public class Builder
private string field;
private string order;
+ ///
+ /// Initialize Builder for InvoiceSort.
+ ///
+ /// field.
public Builder(
string field)
{
diff --git a/Square/Models/JobAssignment.cs b/Square/Models/JobAssignment.cs
index 2abc6ee7..d95edc42 100644
--- a/Square/Models/JobAssignment.cs
+++ b/Square/Models/JobAssignment.cs
@@ -195,6 +195,11 @@ public class Builder
private Models.Money annualRate;
private int? weeklyHours;
+ ///
+ /// Initialize Builder for JobAssignment.
+ ///
+ /// jobTitle.
+ /// payType.
public Builder(
string jobTitle,
string payType)
diff --git a/Square/Models/LinkCustomerToGiftCardRequest.cs b/Square/Models/LinkCustomerToGiftCardRequest.cs
index df67b259..9ce8ce95 100644
--- a/Square/Models/LinkCustomerToGiftCardRequest.cs
+++ b/Square/Models/LinkCustomerToGiftCardRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string customerId;
+ ///
+ /// Initialize Builder for LinkCustomerToGiftCardRequest.
+ ///
+ /// customerId.
public Builder(
string customerId)
{
diff --git a/Square/Models/ListCashDrawerShiftEventsRequest.cs b/Square/Models/ListCashDrawerShiftEventsRequest.cs
index cc370077..e02aa8ea 100644
--- a/Square/Models/ListCashDrawerShiftEventsRequest.cs
+++ b/Square/Models/ListCashDrawerShiftEventsRequest.cs
@@ -172,6 +172,10 @@ public class Builder
private int? limit;
private string cursor;
+ ///
+ /// Initialize Builder for ListCashDrawerShiftEventsRequest.
+ ///
+ /// locationId.
public Builder(
string locationId)
{
diff --git a/Square/Models/ListCashDrawerShiftsRequest.cs b/Square/Models/ListCashDrawerShiftsRequest.cs
index ca17a432..b589bde5 100644
--- a/Square/Models/ListCashDrawerShiftsRequest.cs
+++ b/Square/Models/ListCashDrawerShiftsRequest.cs
@@ -249,6 +249,10 @@ public class Builder
private int? limit;
private string cursor;
+ ///
+ /// Initialize Builder for ListCashDrawerShiftsRequest.
+ ///
+ /// locationId.
public Builder(
string locationId)
{
diff --git a/Square/Models/ListInvoicesRequest.cs b/Square/Models/ListInvoicesRequest.cs
index ff29f44c..8e98e4ac 100644
--- a/Square/Models/ListInvoicesRequest.cs
+++ b/Square/Models/ListInvoicesRequest.cs
@@ -174,6 +174,10 @@ public class Builder
private string cursor;
private int? limit;
+ ///
+ /// Initialize Builder for ListInvoicesRequest.
+ ///
+ /// locationId.
public Builder(
string locationId)
{
diff --git a/Square/Models/ListOrderCustomAttributeDefinitionsResponse.cs b/Square/Models/ListOrderCustomAttributeDefinitionsResponse.cs
index 7cc4c806..93c283df 100644
--- a/Square/Models/ListOrderCustomAttributeDefinitionsResponse.cs
+++ b/Square/Models/ListOrderCustomAttributeDefinitionsResponse.cs
@@ -141,6 +141,10 @@ public class Builder
private string cursor;
private IList errors;
+ ///
+ /// Initialize Builder for ListOrderCustomAttributeDefinitionsResponse.
+ ///
+ /// customAttributeDefinitions.
public Builder(
IList customAttributeDefinitions)
{
diff --git a/Square/Models/ListPaymentLinksRequest.cs b/Square/Models/ListPaymentLinksRequest.cs
index 28830fd9..407efb2b 100644
--- a/Square/Models/ListPaymentLinksRequest.cs
+++ b/Square/Models/ListPaymentLinksRequest.cs
@@ -60,7 +60,7 @@ internal ListPaymentLinksRequest(Dictionary shouldSerialize,
/// 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).
+ /// For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
///
[JsonProperty("cursor")]
public string Cursor { get; }
diff --git a/Square/Models/ListPaymentLinksResponse.cs b/Square/Models/ListPaymentLinksResponse.cs
index b3cc3164..e81c2a14 100644
--- a/Square/Models/ListPaymentLinksResponse.cs
+++ b/Square/Models/ListPaymentLinksResponse.cs
@@ -56,7 +56,7 @@ public ListPaymentLinksResponse(
///
/// When a response is truncated, it includes a cursor that you can use in a subsequent request
/// to retrieve the next set of gift cards. If a cursor is not present, this is the final response.
- /// For more information, see [Pagination](https://developer.squareup.com/docs/basics/api101/pagination).
+ /// For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
///
[JsonProperty("cursor", NullValueHandling = NullValueHandling.Ignore)]
public string Cursor { get; }
diff --git a/Square/Models/LoyaltyAccount.cs b/Square/Models/LoyaltyAccount.cs
index c3a0f772..a781aec7 100644
--- a/Square/Models/LoyaltyAccount.cs
+++ b/Square/Models/LoyaltyAccount.cs
@@ -302,6 +302,10 @@ public class Builder
private Models.LoyaltyAccountMapping mapping;
private IList expiringPointDeadlines;
+ ///
+ /// Initialize Builder for LoyaltyAccount.
+ ///
+ /// programId.
public Builder(
string programId)
{
diff --git a/Square/Models/LoyaltyAccountExpiringPointDeadline.cs b/Square/Models/LoyaltyAccountExpiringPointDeadline.cs
index 26e4129e..b7de6280 100644
--- a/Square/Models/LoyaltyAccountExpiringPointDeadline.cs
+++ b/Square/Models/LoyaltyAccountExpiringPointDeadline.cs
@@ -107,6 +107,11 @@ public class Builder
private int points;
private string expiresAt;
+ ///
+ /// Initialize Builder for LoyaltyAccountExpiringPointDeadline.
+ ///
+ /// points.
+ /// expiresAt.
public Builder(
int points,
string expiresAt)
diff --git a/Square/Models/LoyaltyEvent.cs b/Square/Models/LoyaltyEvent.cs
index d47d48a1..2e33bd5b 100644
--- a/Square/Models/LoyaltyEvent.cs
+++ b/Square/Models/LoyaltyEvent.cs
@@ -265,6 +265,14 @@ public class Builder
private Models.LoyaltyEventOther otherEvent;
private Models.LoyaltyEventAccumulatePromotionPoints accumulatePromotionPoints;
+ ///
+ /// Initialize Builder for LoyaltyEvent.
+ ///
+ /// id.
+ /// type.
+ /// createdAt.
+ /// loyaltyAccountId.
+ /// source.
public Builder(
string id,
string type,
diff --git a/Square/Models/LoyaltyEventAccumulatePromotionPoints.cs b/Square/Models/LoyaltyEventAccumulatePromotionPoints.cs
index 3a608d0c..939e3753 100644
--- a/Square/Models/LoyaltyEventAccumulatePromotionPoints.cs
+++ b/Square/Models/LoyaltyEventAccumulatePromotionPoints.cs
@@ -134,6 +134,11 @@ public class Builder
private string loyaltyProgramId;
private string loyaltyPromotionId;
+ ///
+ /// Initialize Builder for LoyaltyEventAccumulatePromotionPoints.
+ ///
+ /// points.
+ /// orderId.
public Builder(
int points,
string orderId)
diff --git a/Square/Models/LoyaltyEventAdjustPoints.cs b/Square/Models/LoyaltyEventAdjustPoints.cs
index 1520a7d8..86d53b4c 100644
--- a/Square/Models/LoyaltyEventAdjustPoints.cs
+++ b/Square/Models/LoyaltyEventAdjustPoints.cs
@@ -155,6 +155,10 @@ public class Builder
private string loyaltyProgramId;
private string reason;
+ ///
+ /// Initialize Builder for LoyaltyEventAdjustPoints.
+ ///
+ /// points.
public Builder(
int points)
{
diff --git a/Square/Models/LoyaltyEventCreateReward.cs b/Square/Models/LoyaltyEventCreateReward.cs
index 696c7e17..05ccb22c 100644
--- a/Square/Models/LoyaltyEventCreateReward.cs
+++ b/Square/Models/LoyaltyEventCreateReward.cs
@@ -121,6 +121,11 @@ public class Builder
private int points;
private string rewardId;
+ ///
+ /// Initialize Builder for LoyaltyEventCreateReward.
+ ///
+ /// loyaltyProgramId.
+ /// points.
public Builder(
string loyaltyProgramId,
int points)
diff --git a/Square/Models/LoyaltyEventDateTimeFilter.cs b/Square/Models/LoyaltyEventDateTimeFilter.cs
index b4982f75..2a9d1b43 100644
--- a/Square/Models/LoyaltyEventDateTimeFilter.cs
+++ b/Square/Models/LoyaltyEventDateTimeFilter.cs
@@ -98,6 +98,10 @@ public class Builder
{
private Models.TimeRange createdAt;
+ ///
+ /// Initialize Builder for LoyaltyEventDateTimeFilter.
+ ///
+ /// createdAt.
public Builder(
Models.TimeRange createdAt)
{
diff --git a/Square/Models/LoyaltyEventDeleteReward.cs b/Square/Models/LoyaltyEventDeleteReward.cs
index bbdbe358..c3802c40 100644
--- a/Square/Models/LoyaltyEventDeleteReward.cs
+++ b/Square/Models/LoyaltyEventDeleteReward.cs
@@ -121,6 +121,11 @@ public class Builder
private int points;
private string rewardId;
+ ///
+ /// Initialize Builder for LoyaltyEventDeleteReward.
+ ///
+ /// loyaltyProgramId.
+ /// points.
public Builder(
string loyaltyProgramId,
int points)
diff --git a/Square/Models/LoyaltyEventExpirePoints.cs b/Square/Models/LoyaltyEventExpirePoints.cs
index e89ffcae..52332390 100644
--- a/Square/Models/LoyaltyEventExpirePoints.cs
+++ b/Square/Models/LoyaltyEventExpirePoints.cs
@@ -107,6 +107,11 @@ public class Builder
private string loyaltyProgramId;
private int points;
+ ///
+ /// Initialize Builder for LoyaltyEventExpirePoints.
+ ///
+ /// loyaltyProgramId.
+ /// points.
public Builder(
string loyaltyProgramId,
int points)
diff --git a/Square/Models/LoyaltyEventLocationFilter.cs b/Square/Models/LoyaltyEventLocationFilter.cs
index e19bd0a7..14d4fbee 100644
--- a/Square/Models/LoyaltyEventLocationFilter.cs
+++ b/Square/Models/LoyaltyEventLocationFilter.cs
@@ -96,6 +96,10 @@ public class Builder
{
private IList locationIds;
+ ///
+ /// Initialize Builder for LoyaltyEventLocationFilter.
+ ///
+ /// locationIds.
public Builder(
IList locationIds)
{
diff --git a/Square/Models/LoyaltyEventLoyaltyAccountFilter.cs b/Square/Models/LoyaltyEventLoyaltyAccountFilter.cs
index 702714f2..4ab86c64 100644
--- a/Square/Models/LoyaltyEventLoyaltyAccountFilter.cs
+++ b/Square/Models/LoyaltyEventLoyaltyAccountFilter.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string loyaltyAccountId;
+ ///
+ /// Initialize Builder for LoyaltyEventLoyaltyAccountFilter.
+ ///
+ /// loyaltyAccountId.
public Builder(
string loyaltyAccountId)
{
diff --git a/Square/Models/LoyaltyEventOrderFilter.cs b/Square/Models/LoyaltyEventOrderFilter.cs
index 82668734..71e4d663 100644
--- a/Square/Models/LoyaltyEventOrderFilter.cs
+++ b/Square/Models/LoyaltyEventOrderFilter.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string orderId;
+ ///
+ /// Initialize Builder for LoyaltyEventOrderFilter.
+ ///
+ /// orderId.
public Builder(
string orderId)
{
diff --git a/Square/Models/LoyaltyEventOther.cs b/Square/Models/LoyaltyEventOther.cs
index abf4c107..a8a31006 100644
--- a/Square/Models/LoyaltyEventOther.cs
+++ b/Square/Models/LoyaltyEventOther.cs
@@ -107,6 +107,11 @@ public class Builder
private string loyaltyProgramId;
private int points;
+ ///
+ /// Initialize Builder for LoyaltyEventOther.
+ ///
+ /// loyaltyProgramId.
+ /// points.
public Builder(
string loyaltyProgramId,
int points)
diff --git a/Square/Models/LoyaltyEventRedeemReward.cs b/Square/Models/LoyaltyEventRedeemReward.cs
index 9c4d33ae..47fb7baa 100644
--- a/Square/Models/LoyaltyEventRedeemReward.cs
+++ b/Square/Models/LoyaltyEventRedeemReward.cs
@@ -122,6 +122,10 @@ public class Builder
private string rewardId;
private string orderId;
+ ///
+ /// Initialize Builder for LoyaltyEventRedeemReward.
+ ///
+ /// loyaltyProgramId.
public Builder(
string loyaltyProgramId)
{
diff --git a/Square/Models/LoyaltyEventTypeFilter.cs b/Square/Models/LoyaltyEventTypeFilter.cs
index d6ec1d85..802dfd45 100644
--- a/Square/Models/LoyaltyEventTypeFilter.cs
+++ b/Square/Models/LoyaltyEventTypeFilter.cs
@@ -97,6 +97,10 @@ public class Builder
{
private IList types;
+ ///
+ /// Initialize Builder for LoyaltyEventTypeFilter.
+ ///
+ /// types.
public Builder(
IList types)
{
diff --git a/Square/Models/LoyaltyProgramAccrualRule.cs b/Square/Models/LoyaltyProgramAccrualRule.cs
index cae336bf..31f63099 100644
--- a/Square/Models/LoyaltyProgramAccrualRule.cs
+++ b/Square/Models/LoyaltyProgramAccrualRule.cs
@@ -201,6 +201,10 @@ public class Builder
private Models.LoyaltyProgramAccrualRuleItemVariationData itemVariationData;
private Models.LoyaltyProgramAccrualRuleCategoryData categoryData;
+ ///
+ /// Initialize Builder for LoyaltyProgramAccrualRule.
+ ///
+ /// accrualType.
public Builder(
string accrualType)
{
diff --git a/Square/Models/LoyaltyProgramAccrualRuleCategoryData.cs b/Square/Models/LoyaltyProgramAccrualRuleCategoryData.cs
index d911589d..fd231869 100644
--- a/Square/Models/LoyaltyProgramAccrualRuleCategoryData.cs
+++ b/Square/Models/LoyaltyProgramAccrualRuleCategoryData.cs
@@ -95,6 +95,10 @@ public class Builder
{
private string categoryId;
+ ///
+ /// Initialize Builder for LoyaltyProgramAccrualRuleCategoryData.
+ ///
+ /// categoryId.
public Builder(
string categoryId)
{
diff --git a/Square/Models/LoyaltyProgramAccrualRuleItemVariationData.cs b/Square/Models/LoyaltyProgramAccrualRuleItemVariationData.cs
index 44c92329..cd1df2be 100644
--- a/Square/Models/LoyaltyProgramAccrualRuleItemVariationData.cs
+++ b/Square/Models/LoyaltyProgramAccrualRuleItemVariationData.cs
@@ -95,6 +95,10 @@ public class Builder
{
private string itemVariationId;
+ ///
+ /// Initialize Builder for LoyaltyProgramAccrualRuleItemVariationData.
+ ///
+ /// itemVariationId.
public Builder(
string itemVariationId)
{
diff --git a/Square/Models/LoyaltyProgramAccrualRuleSpendData.cs b/Square/Models/LoyaltyProgramAccrualRuleSpendData.cs
index fdd3c530..ce07c0d5 100644
--- a/Square/Models/LoyaltyProgramAccrualRuleSpendData.cs
+++ b/Square/Models/LoyaltyProgramAccrualRuleSpendData.cs
@@ -196,6 +196,11 @@ public class Builder
private IList excludedCategoryIds;
private IList excludedItemVariationIds;
+ ///
+ /// Initialize Builder for LoyaltyProgramAccrualRuleSpendData.
+ ///
+ /// amountMoney.
+ /// taxMode.
public Builder(
Models.Money amountMoney,
string taxMode)
diff --git a/Square/Models/LoyaltyProgramAccrualRuleVisitData.cs b/Square/Models/LoyaltyProgramAccrualRuleVisitData.cs
index 15381e29..32da408f 100644
--- a/Square/Models/LoyaltyProgramAccrualRuleVisitData.cs
+++ b/Square/Models/LoyaltyProgramAccrualRuleVisitData.cs
@@ -113,6 +113,10 @@ public class Builder
private string taxMode;
private Models.Money minimumAmountMoney;
+ ///
+ /// Initialize Builder for LoyaltyProgramAccrualRuleVisitData.
+ ///
+ /// taxMode.
public Builder(
string taxMode)
{
diff --git a/Square/Models/LoyaltyProgramExpirationPolicy.cs b/Square/Models/LoyaltyProgramExpirationPolicy.cs
index fa2247e1..d04cc689 100644
--- a/Square/Models/LoyaltyProgramExpirationPolicy.cs
+++ b/Square/Models/LoyaltyProgramExpirationPolicy.cs
@@ -95,6 +95,10 @@ public class Builder
{
private string expirationDuration;
+ ///
+ /// Initialize Builder for LoyaltyProgramExpirationPolicy.
+ ///
+ /// expirationDuration.
public Builder(
string expirationDuration)
{
diff --git a/Square/Models/LoyaltyProgramRewardDefinition.cs b/Square/Models/LoyaltyProgramRewardDefinition.cs
index 0f8ee09f..6f60e1bf 100644
--- a/Square/Models/LoyaltyProgramRewardDefinition.cs
+++ b/Square/Models/LoyaltyProgramRewardDefinition.cs
@@ -177,6 +177,11 @@ public class Builder
private Models.Money fixedDiscountMoney;
private Models.Money maxDiscountMoney;
+ ///
+ /// Initialize Builder for LoyaltyProgramRewardDefinition.
+ ///
+ /// scope.
+ /// discountType.
public Builder(
string scope,
string discountType)
diff --git a/Square/Models/LoyaltyProgramRewardTier.cs b/Square/Models/LoyaltyProgramRewardTier.cs
index 3316b486..f95e8c78 100644
--- a/Square/Models/LoyaltyProgramRewardTier.cs
+++ b/Square/Models/LoyaltyProgramRewardTier.cs
@@ -163,6 +163,11 @@ public class Builder
private Models.LoyaltyProgramRewardDefinition definition;
private string createdAt;
+ ///
+ /// Initialize Builder for LoyaltyProgramRewardTier.
+ ///
+ /// points.
+ /// pricingRuleReference.
public Builder(
int points,
Models.CatalogObjectReference pricingRuleReference)
diff --git a/Square/Models/LoyaltyProgramTerminology.cs b/Square/Models/LoyaltyProgramTerminology.cs
index 656c4ef0..1b123440 100644
--- a/Square/Models/LoyaltyProgramTerminology.cs
+++ b/Square/Models/LoyaltyProgramTerminology.cs
@@ -107,6 +107,11 @@ public class Builder
private string one;
private string other;
+ ///
+ /// Initialize Builder for LoyaltyProgramTerminology.
+ ///
+ /// one.
+ /// other.
public Builder(
string one,
string other)
diff --git a/Square/Models/LoyaltyPromotion.cs b/Square/Models/LoyaltyPromotion.cs
index 6f5ee0b8..10d3f21b 100644
--- a/Square/Models/LoyaltyPromotion.cs
+++ b/Square/Models/LoyaltyPromotion.cs
@@ -342,6 +342,12 @@ public class Builder
private IList qualifyingItemVariationIds;
private IList qualifyingCategoryIds;
+ ///
+ /// Initialize Builder for LoyaltyPromotion.
+ ///
+ /// name.
+ /// incentive.
+ /// availableTime.
public Builder(
string name,
Models.LoyaltyPromotionIncentive incentive,
diff --git a/Square/Models/LoyaltyPromotionAvailableTimeData.cs b/Square/Models/LoyaltyPromotionAvailableTimeData.cs
index f7fc8524..944fb032 100644
--- a/Square/Models/LoyaltyPromotionAvailableTimeData.cs
+++ b/Square/Models/LoyaltyPromotionAvailableTimeData.cs
@@ -131,6 +131,10 @@ public class Builder
private string startDate;
private string endDate;
+ ///
+ /// Initialize Builder for LoyaltyPromotionAvailableTimeData.
+ ///
+ /// timePeriods.
public Builder(
IList timePeriods)
{
diff --git a/Square/Models/LoyaltyPromotionIncentive.cs b/Square/Models/LoyaltyPromotionIncentive.cs
index 8e3a1603..eb81a9ca 100644
--- a/Square/Models/LoyaltyPromotionIncentive.cs
+++ b/Square/Models/LoyaltyPromotionIncentive.cs
@@ -121,6 +121,10 @@ public class Builder
private Models.LoyaltyPromotionIncentivePointsMultiplierData pointsMultiplierData;
private Models.LoyaltyPromotionIncentivePointsAdditionData pointsAdditionData;
+ ///
+ /// Initialize Builder for LoyaltyPromotionIncentive.
+ ///
+ /// type.
public Builder(
string type)
{
diff --git a/Square/Models/LoyaltyPromotionIncentivePointsAdditionData.cs b/Square/Models/LoyaltyPromotionIncentivePointsAdditionData.cs
index 1f3bbfed..681de400 100644
--- a/Square/Models/LoyaltyPromotionIncentivePointsAdditionData.cs
+++ b/Square/Models/LoyaltyPromotionIncentivePointsAdditionData.cs
@@ -97,6 +97,10 @@ public class Builder
{
private int pointsAddition;
+ ///
+ /// Initialize Builder for LoyaltyPromotionIncentivePointsAdditionData.
+ ///
+ /// pointsAddition.
public Builder(
int pointsAddition)
{
diff --git a/Square/Models/LoyaltyPromotionTriggerLimit.cs b/Square/Models/LoyaltyPromotionTriggerLimit.cs
index 2f98d3ed..2d8423e2 100644
--- a/Square/Models/LoyaltyPromotionTriggerLimit.cs
+++ b/Square/Models/LoyaltyPromotionTriggerLimit.cs
@@ -108,6 +108,10 @@ public class Builder
private int times;
private string interval;
+ ///
+ /// Initialize Builder for LoyaltyPromotionTriggerLimit.
+ ///
+ /// times.
public Builder(
int times)
{
diff --git a/Square/Models/LoyaltyReward.cs b/Square/Models/LoyaltyReward.cs
index 81b6e499..f6c3e2ac 100644
--- a/Square/Models/LoyaltyReward.cs
+++ b/Square/Models/LoyaltyReward.cs
@@ -247,6 +247,11 @@ public class Builder
private string updatedAt;
private string redeemedAt;
+ ///
+ /// Initialize Builder for LoyaltyReward.
+ ///
+ /// loyaltyAccountId.
+ /// rewardTierId.
public Builder(
string loyaltyAccountId,
string rewardTierId)
diff --git a/Square/Models/MeasurementUnitCustom.cs b/Square/Models/MeasurementUnitCustom.cs
index f5359a55..227aab9a 100644
--- a/Square/Models/MeasurementUnitCustom.cs
+++ b/Square/Models/MeasurementUnitCustom.cs
@@ -108,6 +108,11 @@ public class Builder
private string name;
private string abbreviation;
+ ///
+ /// Initialize Builder for MeasurementUnitCustom.
+ ///
+ /// name.
+ /// abbreviation.
public Builder(
string name,
string abbreviation)
diff --git a/Square/Models/Merchant.cs b/Square/Models/Merchant.cs
index 39e8e49c..3cf51137 100644
--- a/Square/Models/Merchant.cs
+++ b/Square/Models/Merchant.cs
@@ -267,6 +267,10 @@ public class Builder
private string mainLocationId;
private string createdAt;
+ ///
+ /// Initialize Builder for Merchant.
+ ///
+ /// country.
public Builder(
string country)
{
diff --git a/Square/Models/ObtainTokenRequest.cs b/Square/Models/ObtainTokenRequest.cs
index bcb63c5c..2c0c21ca 100644
--- a/Square/Models/ObtainTokenRequest.cs
+++ b/Square/Models/ObtainTokenRequest.cs
@@ -395,6 +395,11 @@ public class Builder
private bool? shortLived;
private string codeVerifier;
+ ///
+ /// Initialize Builder for ObtainTokenRequest.
+ ///
+ /// clientId.
+ /// grantType.
public Builder(
string clientId,
string grantType)
diff --git a/Square/Models/Order.cs b/Square/Models/Order.cs
index 3524042f..e4730c9f 100644
--- a/Square/Models/Order.cs
+++ b/Square/Models/Order.cs
@@ -782,6 +782,10 @@ public class Builder
private IList rewards;
private Models.Money netAmountDueMoney;
+ ///
+ /// Initialize Builder for Order.
+ ///
+ /// locationId.
public Builder(
string locationId)
{
diff --git a/Square/Models/OrderFulfillmentFulfillmentEntry.cs b/Square/Models/OrderFulfillmentFulfillmentEntry.cs
index a34b7898..dac1f5fd 100644
--- a/Square/Models/OrderFulfillmentFulfillmentEntry.cs
+++ b/Square/Models/OrderFulfillmentFulfillmentEntry.cs
@@ -201,6 +201,11 @@ public class Builder
private string uid;
private IDictionary metadata;
+ ///
+ /// Initialize Builder for OrderFulfillmentFulfillmentEntry.
+ ///
+ /// lineItemUid.
+ /// quantity.
public Builder(
string lineItemUid,
string quantity)
diff --git a/Square/Models/OrderLineItem.cs b/Square/Models/OrderLineItem.cs
index b7b294d2..0c6d290c 100644
--- a/Square/Models/OrderLineItem.cs
+++ b/Square/Models/OrderLineItem.cs
@@ -681,6 +681,10 @@ public class Builder
private Models.OrderLineItemPricingBlocklists pricingBlocklists;
private Models.Money totalServiceChargeMoney;
+ ///
+ /// Initialize Builder for OrderLineItem.
+ ///
+ /// quantity.
public Builder(
string quantity)
{
diff --git a/Square/Models/OrderLineItemAppliedDiscount.cs b/Square/Models/OrderLineItemAppliedDiscount.cs
index 428891f5..0b7e96f6 100644
--- a/Square/Models/OrderLineItemAppliedDiscount.cs
+++ b/Square/Models/OrderLineItemAppliedDiscount.cs
@@ -163,6 +163,10 @@ public class Builder
private string uid;
private Models.Money appliedMoney;
+ ///
+ /// Initialize Builder for OrderLineItemAppliedDiscount.
+ ///
+ /// discountUid.
public Builder(
string discountUid)
{
diff --git a/Square/Models/OrderLineItemAppliedServiceCharge.cs b/Square/Models/OrderLineItemAppliedServiceCharge.cs
index 569352e0..7ac2c5f0 100644
--- a/Square/Models/OrderLineItemAppliedServiceCharge.cs
+++ b/Square/Models/OrderLineItemAppliedServiceCharge.cs
@@ -163,6 +163,10 @@ public class Builder
private string uid;
private Models.Money appliedMoney;
+ ///
+ /// Initialize Builder for OrderLineItemAppliedServiceCharge.
+ ///
+ /// serviceChargeUid.
public Builder(
string serviceChargeUid)
{
diff --git a/Square/Models/OrderLineItemAppliedTax.cs b/Square/Models/OrderLineItemAppliedTax.cs
index 3b9b733e..38831aa1 100644
--- a/Square/Models/OrderLineItemAppliedTax.cs
+++ b/Square/Models/OrderLineItemAppliedTax.cs
@@ -163,6 +163,10 @@ public class Builder
private string uid;
private Models.Money appliedMoney;
+ ///
+ /// Initialize Builder for OrderLineItemAppliedTax.
+ ///
+ /// taxUid.
public Builder(
string taxUid)
{
diff --git a/Square/Models/OrderLineItemTax.cs b/Square/Models/OrderLineItemTax.cs
index f6da0939..c2422f19 100644
--- a/Square/Models/OrderLineItemTax.cs
+++ b/Square/Models/OrderLineItemTax.cs
@@ -154,6 +154,7 @@ internal OrderLineItemTax(Dictionary shouldSerialize,
/// The percentage of the tax, as a string representation of a decimal
/// number. For example, a value of `"7.25"` corresponds to a percentage of
/// 7.25%.
+ /// Either `percentage` or `amount_money` should be set, but not both.
///
[JsonProperty("percentage")]
public string Percentage { get; }
diff --git a/Square/Models/OrderReturnLineItem.cs b/Square/Models/OrderReturnLineItem.cs
index fe7036c5..f8158213 100644
--- a/Square/Models/OrderReturnLineItem.cs
+++ b/Square/Models/OrderReturnLineItem.cs
@@ -637,6 +637,10 @@ public class Builder
private IList appliedServiceCharges;
private Models.Money totalServiceChargeMoney;
+ ///
+ /// Initialize Builder for OrderReturnLineItem.
+ ///
+ /// quantity.
public Builder(
string quantity)
{
diff --git a/Square/Models/OrderReward.cs b/Square/Models/OrderReward.cs
index 7a7027c9..b4c13e49 100644
--- a/Square/Models/OrderReward.cs
+++ b/Square/Models/OrderReward.cs
@@ -107,6 +107,11 @@ public class Builder
private string id;
private string rewardTierId;
+ ///
+ /// Initialize Builder for OrderReward.
+ ///
+ /// id.
+ /// rewardTierId.
public Builder(
string id,
string rewardTierId)
diff --git a/Square/Models/PayOrderRequest.cs b/Square/Models/PayOrderRequest.cs
index bbe36d5c..e31240c7 100644
--- a/Square/Models/PayOrderRequest.cs
+++ b/Square/Models/PayOrderRequest.cs
@@ -175,6 +175,10 @@ public class Builder
private int? orderVersion;
private IList paymentIds;
+ ///
+ /// Initialize Builder for PayOrderRequest.
+ ///
+ /// idempotencyKey.
public Builder(
string idempotencyKey)
{
diff --git a/Square/Models/PaymentBalanceActivityFeeDetail.cs b/Square/Models/PaymentBalanceActivityFeeDetail.cs
index 176eec5f..0268b838 100644
--- a/Square/Models/PaymentBalanceActivityFeeDetail.cs
+++ b/Square/Models/PaymentBalanceActivityFeeDetail.cs
@@ -46,7 +46,10 @@ internal PaymentBalanceActivityFeeDetail(Dictionary shouldSerializ
}
///
- /// The ID of the payment associated with this activity.
+ /// The ID of the payment associated with this activity
+ /// This will only be populated when a principal LedgerEntryToken is also populated.
+ /// If the fee is independent (there is no principal LedgerEntryToken) then this will likely not
+ /// be populated.
///
[JsonProperty("payment_id")]
public string PaymentId { get; }
diff --git a/Square/Models/PaymentLink.cs b/Square/Models/PaymentLink.cs
index eb3e88f9..62ef8a14 100644
--- a/Square/Models/PaymentLink.cs
+++ b/Square/Models/PaymentLink.cs
@@ -297,6 +297,10 @@ public class Builder
private string updatedAt;
private string paymentNote;
+ ///
+ /// Initialize Builder for PaymentLink.
+ ///
+ /// version.
public Builder(
int version)
{
diff --git a/Square/Models/PaymentRefund.cs b/Square/Models/PaymentRefund.cs
index 8fdb8126..50bd58ce 100644
--- a/Square/Models/PaymentRefund.cs
+++ b/Square/Models/PaymentRefund.cs
@@ -181,8 +181,8 @@ internal PaymentRefund(Dictionary shouldSerialize,
///
/// The destination type for this refund.
- /// Current values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `BUY_NOW_PAY_LATER`, `CASH`, and
- /// `EXTERNAL`.
+ /// Current values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `BUY_NOW_PAY_LATER`, `CASH`,
+ /// `EXTERNAL`, and `SQUARE_ACCOUNT`.
///
[JsonProperty("destination_type")]
public string DestinationType { get; }
@@ -451,6 +451,11 @@ public class Builder
private string updatedAt;
private string teamMemberId;
+ ///
+ /// Initialize Builder for PaymentRefund.
+ ///
+ /// id.
+ /// amountMoney.
public Builder(
string id,
Models.Money amountMoney)
diff --git a/Square/Models/Payout.cs b/Square/Models/Payout.cs
index 0c25eda2..6b7cfd4e 100644
--- a/Square/Models/Payout.cs
+++ b/Square/Models/Payout.cs
@@ -333,6 +333,11 @@ public class Builder
private string arrivalDate;
private string endToEndId;
+ ///
+ /// Initialize Builder for Payout.
+ ///
+ /// id.
+ /// locationId.
public Builder(
string id,
string locationId)
diff --git a/Square/Models/PayoutEntry.cs b/Square/Models/PayoutEntry.cs
index 70c3cd19..b0a24513 100644
--- a/Square/Models/PayoutEntry.cs
+++ b/Square/Models/PayoutEntry.cs
@@ -568,6 +568,11 @@ public class Builder
private Models.PaymentBalanceActivityThirdPartyFeeDetail typeThirdPartyFeeDetails;
private Models.PaymentBalanceActivityThirdPartyFeeRefundDetail typeThirdPartyFeeRefundDetails;
+ ///
+ /// Initialize Builder for PayoutEntry.
+ ///
+ /// id.
+ /// payoutId.
public Builder(
string id,
string payoutId)
diff --git a/Square/Models/PhaseInput.cs b/Square/Models/PhaseInput.cs
index ae754783..5f9d093c 100644
--- a/Square/Models/PhaseInput.cs
+++ b/Square/Models/PhaseInput.cs
@@ -140,6 +140,10 @@ public class Builder
private long ordinal;
private string orderTemplateId;
+ ///
+ /// Initialize Builder for PhaseInput.
+ ///
+ /// ordinal.
public Builder(
long ordinal)
{
diff --git a/Square/Models/PublishInvoiceRequest.cs b/Square/Models/PublishInvoiceRequest.cs
index b33dd714..57686951 100644
--- a/Square/Models/PublishInvoiceRequest.cs
+++ b/Square/Models/PublishInvoiceRequest.cs
@@ -144,6 +144,10 @@ public class Builder
private int version;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for PublishInvoiceRequest.
+ ///
+ /// version.
public Builder(
int version)
{
diff --git a/Square/Models/QrCodeOptions.cs b/Square/Models/QrCodeOptions.cs
index c4b3eab6..039f957a 100644
--- a/Square/Models/QrCodeOptions.cs
+++ b/Square/Models/QrCodeOptions.cs
@@ -121,6 +121,12 @@ public class Builder
private string body;
private string barcodeContents;
+ ///
+ /// Initialize Builder for QrCodeOptions.
+ ///
+ /// title.
+ /// body.
+ /// barcodeContents.
public Builder(
string title,
string body,
diff --git a/Square/Models/QuickPay.cs b/Square/Models/QuickPay.cs
index a1d520e6..e405f26e 100644
--- a/Square/Models/QuickPay.cs
+++ b/Square/Models/QuickPay.cs
@@ -125,6 +125,12 @@ public class Builder
private Models.Money priceMoney;
private string locationId;
+ ///
+ /// Initialize Builder for QuickPay.
+ ///
+ /// name.
+ /// priceMoney.
+ /// locationId.
public Builder(
string name,
Models.Money priceMoney,
diff --git a/Square/Models/ReceiptOptions.cs b/Square/Models/ReceiptOptions.cs
index d44ecf05..5ec25b29 100644
--- a/Square/Models/ReceiptOptions.cs
+++ b/Square/Models/ReceiptOptions.cs
@@ -174,6 +174,10 @@ public class Builder
private bool? printOnly;
private bool? isDuplicate;
+ ///
+ /// Initialize Builder for ReceiptOptions.
+ ///
+ /// paymentId.
public Builder(
string paymentId)
{
diff --git a/Square/Models/RedeemLoyaltyRewardRequest.cs b/Square/Models/RedeemLoyaltyRewardRequest.cs
index 6fb6ac56..8219598f 100644
--- a/Square/Models/RedeemLoyaltyRewardRequest.cs
+++ b/Square/Models/RedeemLoyaltyRewardRequest.cs
@@ -108,6 +108,11 @@ public class Builder
private string idempotencyKey;
private string locationId;
+ ///
+ /// Initialize Builder for RedeemLoyaltyRewardRequest.
+ ///
+ /// idempotencyKey.
+ /// locationId.
public Builder(
string idempotencyKey,
string locationId)
diff --git a/Square/Models/Refund.cs b/Square/Models/Refund.cs
index e5ed447a..76f802ea 100644
--- a/Square/Models/Refund.cs
+++ b/Square/Models/Refund.cs
@@ -289,6 +289,15 @@ public class Builder
private Models.Money processingFeeMoney;
private IList additionalRecipients;
+ ///
+ /// Initialize Builder for Refund.
+ ///
+ /// id.
+ /// locationId.
+ /// tenderId.
+ /// reason.
+ /// amountMoney.
+ /// status.
public Builder(
string id,
string locationId,
diff --git a/Square/Models/RefundPaymentRequest.cs b/Square/Models/RefundPaymentRequest.cs
index 407dff4f..a5568f3d 100644
--- a/Square/Models/RefundPaymentRequest.cs
+++ b/Square/Models/RefundPaymentRequest.cs
@@ -417,6 +417,11 @@ public class Builder
private string paymentVersionToken;
private string teamMemberId;
+ ///
+ /// Initialize Builder for RefundPaymentRequest.
+ ///
+ /// idempotencyKey.
+ /// amountMoney.
public Builder(
string idempotencyKey,
Models.Money amountMoney)
diff --git a/Square/Models/RegisterDomainRequest.cs b/Square/Models/RegisterDomainRequest.cs
index 002c3358..02c27d99 100644
--- a/Square/Models/RegisterDomainRequest.cs
+++ b/Square/Models/RegisterDomainRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string domainName;
+ ///
+ /// Initialize Builder for RegisterDomainRequest.
+ ///
+ /// domainName.
public Builder(
string domainName)
{
diff --git a/Square/Models/RetrieveCashDrawerShiftRequest.cs b/Square/Models/RetrieveCashDrawerShiftRequest.cs
index 33b5f554..c8badc18 100644
--- a/Square/Models/RetrieveCashDrawerShiftRequest.cs
+++ b/Square/Models/RetrieveCashDrawerShiftRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string locationId;
+ ///
+ /// Initialize Builder for RetrieveCashDrawerShiftRequest.
+ ///
+ /// locationId.
public Builder(
string locationId)
{
diff --git a/Square/Models/RetrieveCatalogObjectResponse.cs b/Square/Models/RetrieveCatalogObjectResponse.cs
index fe9bf865..f6543cb5 100644
--- a/Square/Models/RetrieveCatalogObjectResponse.cs
+++ b/Square/Models/RetrieveCatalogObjectResponse.cs
@@ -48,12 +48,14 @@ public RetrieveCatalogObjectResponse(
public IList Errors { get; }
///
+ /// `, the `CatalogObject` instance must have the ``-specific data set on the `_data` attribute. The resulting `CatalogObject` instance is also a `Catalog` instance.
/// For a more detailed discussion of the Catalog data model, please see the
/// [Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog) guide.
+ /// ]]>
///
[JsonProperty("object", NullValueHandling = NullValueHandling.Ignore)]
public Models.CatalogObject MObject { get; }
diff --git a/Square/Models/RetrieveGiftCardFromGANRequest.cs b/Square/Models/RetrieveGiftCardFromGANRequest.cs
index dde9a975..06ad360a 100644
--- a/Square/Models/RetrieveGiftCardFromGANRequest.cs
+++ b/Square/Models/RetrieveGiftCardFromGANRequest.cs
@@ -96,6 +96,10 @@ public class Builder
{
private string gan;
+ ///
+ /// Initialize Builder for RetrieveGiftCardFromGANRequest.
+ ///
+ /// gan.
public Builder(
string gan)
{
diff --git a/Square/Models/RetrieveGiftCardFromNonceRequest.cs b/Square/Models/RetrieveGiftCardFromNonceRequest.cs
index 1c2e9d2b..cf99ade3 100644
--- a/Square/Models/RetrieveGiftCardFromNonceRequest.cs
+++ b/Square/Models/RetrieveGiftCardFromNonceRequest.cs
@@ -95,6 +95,10 @@ public class Builder
{
private string nonce;
+ ///
+ /// Initialize Builder for RetrieveGiftCardFromNonceRequest.
+ ///
+ /// nonce.
public Builder(
string nonce)
{
diff --git a/Square/Models/SaveCardOptions.cs b/Square/Models/SaveCardOptions.cs
index 93a816c0..9088d0cb 100644
--- a/Square/Models/SaveCardOptions.cs
+++ b/Square/Models/SaveCardOptions.cs
@@ -157,6 +157,10 @@ public class Builder
private string cardId;
private string referenceId;
+ ///
+ /// Initialize Builder for SaveCardOptions.
+ ///
+ /// customerId.
public Builder(
string customerId)
{
diff --git a/Square/Models/SearchAvailabilityFilter.cs b/Square/Models/SearchAvailabilityFilter.cs
index ef504b9d..53189400 100644
--- a/Square/Models/SearchAvailabilityFilter.cs
+++ b/Square/Models/SearchAvailabilityFilter.cs
@@ -211,6 +211,10 @@ public class Builder
private IList segmentFilters;
private string bookingId;
+ ///
+ /// Initialize Builder for SearchAvailabilityFilter.
+ ///
+ /// startAtRange.
public Builder(
Models.TimeRange startAtRange)
{
diff --git a/Square/Models/SearchAvailabilityQuery.cs b/Square/Models/SearchAvailabilityQuery.cs
index 920a7440..031557ca 100644
--- a/Square/Models/SearchAvailabilityQuery.cs
+++ b/Square/Models/SearchAvailabilityQuery.cs
@@ -94,6 +94,10 @@ public class Builder
{
private Models.SearchAvailabilityFilter filter;
+ ///
+ /// Initialize Builder for SearchAvailabilityQuery.
+ ///
+ /// filter.
public Builder(
Models.SearchAvailabilityFilter filter)
{
diff --git a/Square/Models/SearchAvailabilityRequest.cs b/Square/Models/SearchAvailabilityRequest.cs
index 6b6b12ed..f849eb2b 100644
--- a/Square/Models/SearchAvailabilityRequest.cs
+++ b/Square/Models/SearchAvailabilityRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private Models.SearchAvailabilityQuery query;
+ ///
+ /// Initialize Builder for SearchAvailabilityRequest.
+ ///
+ /// query.
public Builder(
Models.SearchAvailabilityQuery query)
{
diff --git a/Square/Models/SearchInvoicesRequest.cs b/Square/Models/SearchInvoicesRequest.cs
index b7f68800..4b0a41a4 100644
--- a/Square/Models/SearchInvoicesRequest.cs
+++ b/Square/Models/SearchInvoicesRequest.cs
@@ -123,6 +123,10 @@ public class Builder
private int? limit;
private string cursor;
+ ///
+ /// Initialize Builder for SearchInvoicesRequest.
+ ///
+ /// query.
public Builder(
Models.InvoiceQuery query)
{
diff --git a/Square/Models/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs b/Square/Models/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs
index 54f38e62..d1045ba0 100644
--- a/Square/Models/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs
+++ b/Square/Models/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.cs
@@ -107,6 +107,10 @@ public class Builder
private string loyaltyAccountId;
private string status;
+ ///
+ /// Initialize Builder for SearchLoyaltyRewardsRequestLoyaltyRewardQuery.
+ ///
+ /// loyaltyAccountId.
public Builder(
string loyaltyAccountId)
{
diff --git a/Square/Models/SearchOrdersResponse.cs b/Square/Models/SearchOrdersResponse.cs
index 77d98fb7..a90d9f68 100644
--- a/Square/Models/SearchOrdersResponse.cs
+++ b/Square/Models/SearchOrdersResponse.cs
@@ -62,7 +62,7 @@ public SearchOrdersResponse(
///
/// The pagination cursor to be used in a subsequent request. If unset,
/// this is the final response.
- /// For more information, see [Pagination](https://developer.squareup.com/docs/basics/build-basics/common-api-patterns/pagination).
+ /// For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
///
[JsonProperty("cursor", NullValueHandling = NullValueHandling.Ignore)]
public string Cursor { get; }
diff --git a/Square/Models/SearchOrdersSort.cs b/Square/Models/SearchOrdersSort.cs
index 1c6d78d2..b8fd48f8 100644
--- a/Square/Models/SearchOrdersSort.cs
+++ b/Square/Models/SearchOrdersSort.cs
@@ -107,6 +107,10 @@ public class Builder
private string sortField;
private string sortOrder;
+ ///
+ /// Initialize Builder for SearchOrdersSort.
+ ///
+ /// sortField.
public Builder(
string sortField)
{
diff --git a/Square/Models/SearchOrdersStateFilter.cs b/Square/Models/SearchOrdersStateFilter.cs
index 971c35b1..359d53f0 100644
--- a/Square/Models/SearchOrdersStateFilter.cs
+++ b/Square/Models/SearchOrdersStateFilter.cs
@@ -95,6 +95,10 @@ public class Builder
{
private IList states;
+ ///
+ /// Initialize Builder for SearchOrdersStateFilter.
+ ///
+ /// states.
public Builder(
IList states)
{
diff --git a/Square/Models/SegmentFilter.cs b/Square/Models/SegmentFilter.cs
index c805ea5c..8d51ceae 100644
--- a/Square/Models/SegmentFilter.cs
+++ b/Square/Models/SegmentFilter.cs
@@ -110,6 +110,10 @@ public class Builder
private string serviceVariationId;
private Models.FilterValue teamMemberIdFilter;
+ ///
+ /// Initialize Builder for SegmentFilter.
+ ///
+ /// serviceVariationId.
public Builder(
string serviceVariationId)
{
diff --git a/Square/Models/SelectOption.cs b/Square/Models/SelectOption.cs
index 1b9dccc0..5578ccea 100644
--- a/Square/Models/SelectOption.cs
+++ b/Square/Models/SelectOption.cs
@@ -107,6 +107,11 @@ public class Builder
private string referenceId;
private string title;
+ ///
+ /// Initialize Builder for SelectOption.
+ ///
+ /// referenceId.
+ /// title.
public Builder(
string referenceId,
string title)
diff --git a/Square/Models/SelectOptions.cs b/Square/Models/SelectOptions.cs
index 7f9cd163..87e5e240 100644
--- a/Square/Models/SelectOptions.cs
+++ b/Square/Models/SelectOptions.cs
@@ -133,6 +133,12 @@ public class Builder
private IList options;
private Models.SelectOption selectedOption;
+ ///
+ /// Initialize Builder for SelectOptions.
+ ///
+ /// title.
+ /// body.
+ /// options.
public Builder(
string title,
string body,
diff --git a/Square/Models/Shift.cs b/Square/Models/Shift.cs
index 2bc951b4..9f0893fa 100644
--- a/Square/Models/Shift.cs
+++ b/Square/Models/Shift.cs
@@ -399,6 +399,11 @@ public class Builder
private string teamMemberId;
private Models.Money declaredCashTipMoney;
+ ///
+ /// Initialize Builder for Shift.
+ ///
+ /// locationId.
+ /// startAt.
public Builder(
string locationId,
string startAt)
diff --git a/Square/Models/ShippingFee.cs b/Square/Models/ShippingFee.cs
index 636aa435..65d86ae7 100644
--- a/Square/Models/ShippingFee.cs
+++ b/Square/Models/ShippingFee.cs
@@ -145,6 +145,10 @@ public class Builder
private Models.Money charge;
private string name;
+ ///
+ /// Initialize Builder for ShippingFee.
+ ///
+ /// charge.
public Builder(
Models.Money charge)
{
diff --git a/Square/Models/SignatureOptions.cs b/Square/Models/SignatureOptions.cs
index 27447270..96d76679 100644
--- a/Square/Models/SignatureOptions.cs
+++ b/Square/Models/SignatureOptions.cs
@@ -120,6 +120,11 @@ public class Builder
private string body;
private IList signature;
+ ///
+ /// Initialize Builder for SignatureOptions.
+ ///
+ /// title.
+ /// body.
public Builder(
string title,
string body)
diff --git a/Square/Models/Snippet.cs b/Square/Models/Snippet.cs
index c26b1364..713b7256 100644
--- a/Square/Models/Snippet.cs
+++ b/Square/Models/Snippet.cs
@@ -146,6 +146,10 @@ public class Builder
private string createdAt;
private string updatedAt;
+ ///
+ /// Initialize Builder for Snippet.
+ ///
+ /// content.
public Builder(
string content)
{
diff --git a/Square/Models/SubscriptionEvent.cs b/Square/Models/SubscriptionEvent.cs
index f20c18bf..7041a2d7 100644
--- a/Square/Models/SubscriptionEvent.cs
+++ b/Square/Models/SubscriptionEvent.cs
@@ -215,6 +215,13 @@ public class Builder
private Models.SubscriptionEventInfo info;
private IList phases;
+ ///
+ /// Initialize Builder for SubscriptionEvent.
+ ///
+ /// id.
+ /// subscriptionEventType.
+ /// effectiveDate.
+ /// planVariationId.
public Builder(
string id,
string subscriptionEventType,
diff --git a/Square/Models/SubscriptionPhase.cs b/Square/Models/SubscriptionPhase.cs
index 73365ae2..81b1dc7f 100644
--- a/Square/Models/SubscriptionPhase.cs
+++ b/Square/Models/SubscriptionPhase.cs
@@ -237,6 +237,10 @@ public class Builder
private long? ordinal;
private Models.SubscriptionPricing pricing;
+ ///
+ /// Initialize Builder for SubscriptionPhase.
+ ///
+ /// cadence.
public Builder(
string cadence)
{
diff --git a/Square/Models/Tender.cs b/Square/Models/Tender.cs
index 03f7b776..3ff95130 100644
--- a/Square/Models/Tender.cs
+++ b/Square/Models/Tender.cs
@@ -469,6 +469,10 @@ public class Builder
private IList additionalRecipients;
private string paymentId;
+ ///
+ /// Initialize Builder for Tender.
+ ///
+ /// type.
public Builder(
string type)
{
diff --git a/Square/Models/TerminalCheckout.cs b/Square/Models/TerminalCheckout.cs
index c6705c7a..196c6541 100644
--- a/Square/Models/TerminalCheckout.cs
+++ b/Square/Models/TerminalCheckout.cs
@@ -551,6 +551,11 @@ public class Builder
private string statementDescriptionIdentifier;
private Models.Money tipMoney;
+ ///
+ /// Initialize Builder for TerminalCheckout.
+ ///
+ /// amountMoney.
+ /// deviceOptions.
public Builder(
Models.Money amountMoney,
Models.DeviceCheckoutOptions deviceOptions)
diff --git a/Square/Models/TerminalRefund.cs b/Square/Models/TerminalRefund.cs
index 6c55e9a8..3c7d7e1c 100644
--- a/Square/Models/TerminalRefund.cs
+++ b/Square/Models/TerminalRefund.cs
@@ -333,6 +333,13 @@ public class Builder
private string appId;
private string locationId;
+ ///
+ /// Initialize Builder for TerminalRefund.
+ ///
+ /// paymentId.
+ /// amountMoney.
+ /// reason.
+ /// deviceId.
public Builder(
string paymentId,
Models.Money amountMoney,
diff --git a/Square/Models/UnlinkCustomerFromGiftCardRequest.cs b/Square/Models/UnlinkCustomerFromGiftCardRequest.cs
index 58c95fd6..c77daca9 100644
--- a/Square/Models/UnlinkCustomerFromGiftCardRequest.cs
+++ b/Square/Models/UnlinkCustomerFromGiftCardRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private string customerId;
+ ///
+ /// Initialize Builder for UnlinkCustomerFromGiftCardRequest.
+ ///
+ /// customerId.
public Builder(
string customerId)
{
diff --git a/Square/Models/UpdateBookingCustomAttributeDefinitionRequest.cs b/Square/Models/UpdateBookingCustomAttributeDefinitionRequest.cs
index d8ee86da..3ab7cd44 100644
--- a/Square/Models/UpdateBookingCustomAttributeDefinitionRequest.cs
+++ b/Square/Models/UpdateBookingCustomAttributeDefinitionRequest.cs
@@ -142,6 +142,10 @@ public class Builder
private Models.CustomAttributeDefinition customAttributeDefinition;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpdateBookingCustomAttributeDefinitionRequest.
+ ///
+ /// customAttributeDefinition.
public Builder(
Models.CustomAttributeDefinition customAttributeDefinition)
{
diff --git a/Square/Models/UpdateBookingRequest.cs b/Square/Models/UpdateBookingRequest.cs
index 0a282021..680eef06 100644
--- a/Square/Models/UpdateBookingRequest.cs
+++ b/Square/Models/UpdateBookingRequest.cs
@@ -141,6 +141,10 @@ public class Builder
private Models.Booking booking;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpdateBookingRequest.
+ ///
+ /// booking.
public Builder(
Models.Booking booking)
{
diff --git a/Square/Models/UpdateBreakTypeRequest.cs b/Square/Models/UpdateBreakTypeRequest.cs
index 7d3b8378..4138e594 100644
--- a/Square/Models/UpdateBreakTypeRequest.cs
+++ b/Square/Models/UpdateBreakTypeRequest.cs
@@ -95,6 +95,10 @@ public class Builder
{
private Models.BreakType breakType;
+ ///
+ /// Initialize Builder for UpdateBreakTypeRequest.
+ ///
+ /// breakType.
public Builder(
Models.BreakType breakType)
{
diff --git a/Square/Models/UpdateCatalogImageRequest.cs b/Square/Models/UpdateCatalogImageRequest.cs
index 2f01ac61..27ff35ab 100644
--- a/Square/Models/UpdateCatalogImageRequest.cs
+++ b/Square/Models/UpdateCatalogImageRequest.cs
@@ -96,6 +96,10 @@ public class Builder
{
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpdateCatalogImageRequest.
+ ///
+ /// idempotencyKey.
public Builder(
string idempotencyKey)
{
diff --git a/Square/Models/UpdateCatalogImageResponse.cs b/Square/Models/UpdateCatalogImageResponse.cs
index 57a9258e..a05987e4 100644
--- a/Square/Models/UpdateCatalogImageResponse.cs
+++ b/Square/Models/UpdateCatalogImageResponse.cs
@@ -45,12 +45,14 @@ public UpdateCatalogImageResponse(
public IList Errors { get; }
///
+ /// `, the `CatalogObject` instance must have the ``-specific data set on the `_data` attribute. The resulting `CatalogObject` instance is also a `Catalog` instance.
/// For a more detailed discussion of the Catalog data model, please see the
/// [Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog) guide.
+ /// ]]>
///
[JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
public Models.CatalogObject Image { get; }
diff --git a/Square/Models/UpdateCustomerCustomAttributeDefinitionRequest.cs b/Square/Models/UpdateCustomerCustomAttributeDefinitionRequest.cs
index 6e42c563..4e4cfac3 100644
--- a/Square/Models/UpdateCustomerCustomAttributeDefinitionRequest.cs
+++ b/Square/Models/UpdateCustomerCustomAttributeDefinitionRequest.cs
@@ -142,6 +142,10 @@ public class Builder
private Models.CustomAttributeDefinition customAttributeDefinition;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpdateCustomerCustomAttributeDefinitionRequest.
+ ///
+ /// customAttributeDefinition.
public Builder(
Models.CustomAttributeDefinition customAttributeDefinition)
{
diff --git a/Square/Models/UpdateCustomerGroupRequest.cs b/Square/Models/UpdateCustomerGroupRequest.cs
index 628cd880..200a7e53 100644
--- a/Square/Models/UpdateCustomerGroupRequest.cs
+++ b/Square/Models/UpdateCustomerGroupRequest.cs
@@ -96,6 +96,10 @@ public class Builder
{
private Models.CustomerGroup mGroup;
+ ///
+ /// Initialize Builder for UpdateCustomerGroupRequest.
+ ///
+ /// mGroup.
public Builder(
Models.CustomerGroup mGroup)
{
diff --git a/Square/Models/UpdateInvoiceRequest.cs b/Square/Models/UpdateInvoiceRequest.cs
index 2b4df301..a1415699 100644
--- a/Square/Models/UpdateInvoiceRequest.cs
+++ b/Square/Models/UpdateInvoiceRequest.cs
@@ -176,6 +176,10 @@ public class Builder
private string idempotencyKey;
private IList fieldsToClear;
+ ///
+ /// Initialize Builder for UpdateInvoiceRequest.
+ ///
+ /// invoice.
public Builder(
Models.Invoice invoice)
{
diff --git a/Square/Models/UpdateItemModifierListsRequest.cs b/Square/Models/UpdateItemModifierListsRequest.cs
index 749c299f..4026fbd8 100644
--- a/Square/Models/UpdateItemModifierListsRequest.cs
+++ b/Square/Models/UpdateItemModifierListsRequest.cs
@@ -173,6 +173,10 @@ public class Builder
private IList modifierListsToEnable;
private IList modifierListsToDisable;
+ ///
+ /// Initialize Builder for UpdateItemModifierListsRequest.
+ ///
+ /// itemIds.
public Builder(
IList itemIds)
{
diff --git a/Square/Models/UpdateItemTaxesRequest.cs b/Square/Models/UpdateItemTaxesRequest.cs
index 8d3f1e5a..6851d50b 100644
--- a/Square/Models/UpdateItemTaxesRequest.cs
+++ b/Square/Models/UpdateItemTaxesRequest.cs
@@ -174,6 +174,10 @@ public class Builder
private IList taxesToEnable;
private IList taxesToDisable;
+ ///
+ /// Initialize Builder for UpdateItemTaxesRequest.
+ ///
+ /// itemIds.
public Builder(
IList itemIds)
{
diff --git a/Square/Models/UpdateLocationCustomAttributeDefinitionRequest.cs b/Square/Models/UpdateLocationCustomAttributeDefinitionRequest.cs
index 5fbb5631..e44c57e5 100644
--- a/Square/Models/UpdateLocationCustomAttributeDefinitionRequest.cs
+++ b/Square/Models/UpdateLocationCustomAttributeDefinitionRequest.cs
@@ -142,6 +142,10 @@ public class Builder
private Models.CustomAttributeDefinition customAttributeDefinition;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpdateLocationCustomAttributeDefinitionRequest.
+ ///
+ /// customAttributeDefinition.
public Builder(
Models.CustomAttributeDefinition customAttributeDefinition)
{
diff --git a/Square/Models/UpdateLocationSettingsRequest.cs b/Square/Models/UpdateLocationSettingsRequest.cs
index 76531392..e8102b79 100644
--- a/Square/Models/UpdateLocationSettingsRequest.cs
+++ b/Square/Models/UpdateLocationSettingsRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private Models.CheckoutLocationSettings locationSettings;
+ ///
+ /// Initialize Builder for UpdateLocationSettingsRequest.
+ ///
+ /// locationSettings.
public Builder(
Models.CheckoutLocationSettings locationSettings)
{
diff --git a/Square/Models/UpdateMerchantCustomAttributeDefinitionRequest.cs b/Square/Models/UpdateMerchantCustomAttributeDefinitionRequest.cs
index d9cf7b1b..a5169f27 100644
--- a/Square/Models/UpdateMerchantCustomAttributeDefinitionRequest.cs
+++ b/Square/Models/UpdateMerchantCustomAttributeDefinitionRequest.cs
@@ -142,6 +142,10 @@ public class Builder
private Models.CustomAttributeDefinition customAttributeDefinition;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpdateMerchantCustomAttributeDefinitionRequest.
+ ///
+ /// customAttributeDefinition.
public Builder(
Models.CustomAttributeDefinition customAttributeDefinition)
{
diff --git a/Square/Models/UpdateMerchantSettingsRequest.cs b/Square/Models/UpdateMerchantSettingsRequest.cs
index 9900b86b..c6c6a1f6 100644
--- a/Square/Models/UpdateMerchantSettingsRequest.cs
+++ b/Square/Models/UpdateMerchantSettingsRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private Models.CheckoutMerchantSettings merchantSettings;
+ ///
+ /// Initialize Builder for UpdateMerchantSettingsRequest.
+ ///
+ /// merchantSettings.
public Builder(
Models.CheckoutMerchantSettings merchantSettings)
{
diff --git a/Square/Models/UpdateOrderCustomAttributeDefinitionRequest.cs b/Square/Models/UpdateOrderCustomAttributeDefinitionRequest.cs
index c69fa996..320ab704 100644
--- a/Square/Models/UpdateOrderCustomAttributeDefinitionRequest.cs
+++ b/Square/Models/UpdateOrderCustomAttributeDefinitionRequest.cs
@@ -142,6 +142,10 @@ public class Builder
private Models.CustomAttributeDefinition customAttributeDefinition;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpdateOrderCustomAttributeDefinitionRequest.
+ ///
+ /// customAttributeDefinition.
public Builder(
Models.CustomAttributeDefinition customAttributeDefinition)
{
diff --git a/Square/Models/UpdatePaymentLinkRequest.cs b/Square/Models/UpdatePaymentLinkRequest.cs
index ac084dea..95a27663 100644
--- a/Square/Models/UpdatePaymentLinkRequest.cs
+++ b/Square/Models/UpdatePaymentLinkRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private Models.PaymentLink paymentLink;
+ ///
+ /// Initialize Builder for UpdatePaymentLinkRequest.
+ ///
+ /// paymentLink.
public Builder(
Models.PaymentLink paymentLink)
{
diff --git a/Square/Models/UpdatePaymentRequest.cs b/Square/Models/UpdatePaymentRequest.cs
index 2d629d18..83e8b00f 100644
--- a/Square/Models/UpdatePaymentRequest.cs
+++ b/Square/Models/UpdatePaymentRequest.cs
@@ -109,6 +109,10 @@ public class Builder
private string idempotencyKey;
private Models.Payment payment;
+ ///
+ /// Initialize Builder for UpdatePaymentRequest.
+ ///
+ /// idempotencyKey.
public Builder(
string idempotencyKey)
{
diff --git a/Square/Models/UpdateShiftRequest.cs b/Square/Models/UpdateShiftRequest.cs
index 3f6bf384..8b55a335 100644
--- a/Square/Models/UpdateShiftRequest.cs
+++ b/Square/Models/UpdateShiftRequest.cs
@@ -96,6 +96,10 @@ public class Builder
{
private Models.Shift shift;
+ ///
+ /// Initialize Builder for UpdateShiftRequest.
+ ///
+ /// shift.
public Builder(
Models.Shift shift)
{
diff --git a/Square/Models/UpdateVendorRequest.cs b/Square/Models/UpdateVendorRequest.cs
index 4e2ad3c6..ddcab8bd 100644
--- a/Square/Models/UpdateVendorRequest.cs
+++ b/Square/Models/UpdateVendorRequest.cs
@@ -144,6 +144,10 @@ public class Builder
private Models.Vendor vendor;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpdateVendorRequest.
+ ///
+ /// vendor.
public Builder(
Models.Vendor vendor)
{
diff --git a/Square/Models/UpdateWageSettingRequest.cs b/Square/Models/UpdateWageSettingRequest.cs
index ba4bb806..775c7fcd 100644
--- a/Square/Models/UpdateWageSettingRequest.cs
+++ b/Square/Models/UpdateWageSettingRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private Models.WageSetting wageSetting;
+ ///
+ /// Initialize Builder for UpdateWageSettingRequest.
+ ///
+ /// wageSetting.
public Builder(
Models.WageSetting wageSetting)
{
diff --git a/Square/Models/UpdateWorkweekConfigRequest.cs b/Square/Models/UpdateWorkweekConfigRequest.cs
index 96571232..4959754f 100644
--- a/Square/Models/UpdateWorkweekConfigRequest.cs
+++ b/Square/Models/UpdateWorkweekConfigRequest.cs
@@ -95,6 +95,10 @@ public class Builder
{
private Models.WorkweekConfig workweekConfig;
+ ///
+ /// Initialize Builder for UpdateWorkweekConfigRequest.
+ ///
+ /// workweekConfig.
public Builder(
Models.WorkweekConfig workweekConfig)
{
diff --git a/Square/Models/UpsertBookingCustomAttributeRequest.cs b/Square/Models/UpsertBookingCustomAttributeRequest.cs
index d443c2bb..090ad1ee 100644
--- a/Square/Models/UpsertBookingCustomAttributeRequest.cs
+++ b/Square/Models/UpsertBookingCustomAttributeRequest.cs
@@ -142,6 +142,10 @@ public class Builder
private Models.CustomAttribute customAttribute;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpsertBookingCustomAttributeRequest.
+ ///
+ /// customAttribute.
public Builder(
Models.CustomAttribute customAttribute)
{
diff --git a/Square/Models/UpsertCatalogObjectRequest.cs b/Square/Models/UpsertCatalogObjectRequest.cs
index 90955921..b051083c 100644
--- a/Square/Models/UpsertCatalogObjectRequest.cs
+++ b/Square/Models/UpsertCatalogObjectRequest.cs
@@ -45,12 +45,14 @@ public UpsertCatalogObjectRequest(
public string IdempotencyKey { get; }
///
+ /// `, the `CatalogObject` instance must have the ``-specific data set on the `_data` attribute. The resulting `CatalogObject` instance is also a `Catalog` instance.
/// For a more detailed discussion of the Catalog data model, please see the
/// [Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog) guide.
+ /// ]]>
///
[JsonProperty("object")]
public Models.CatalogObject MObject { get; }
@@ -119,6 +121,11 @@ public class Builder
private string idempotencyKey;
private Models.CatalogObject mObject;
+ ///
+ /// Initialize Builder for UpsertCatalogObjectRequest.
+ ///
+ /// idempotencyKey.
+ /// mObject.
public Builder(
string idempotencyKey,
Models.CatalogObject mObject)
diff --git a/Square/Models/UpsertCatalogObjectResponse.cs b/Square/Models/UpsertCatalogObjectResponse.cs
index af38bb30..b0213a5d 100644
--- a/Square/Models/UpsertCatalogObjectResponse.cs
+++ b/Square/Models/UpsertCatalogObjectResponse.cs
@@ -48,12 +48,14 @@ public UpsertCatalogObjectResponse(
public IList Errors { get; }
///
+ /// `, the `CatalogObject` instance must have the ``-specific data set on the `_data` attribute. The resulting `CatalogObject` instance is also a `Catalog` instance.
/// For a more detailed discussion of the Catalog data model, please see the
/// [Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog) guide.
+ /// ]]>
///
[JsonProperty("catalog_object", NullValueHandling = NullValueHandling.Ignore)]
public Models.CatalogObject CatalogObject { get; }
diff --git a/Square/Models/UpsertCustomerCustomAttributeRequest.cs b/Square/Models/UpsertCustomerCustomAttributeRequest.cs
index a92841d6..7fd78f74 100644
--- a/Square/Models/UpsertCustomerCustomAttributeRequest.cs
+++ b/Square/Models/UpsertCustomerCustomAttributeRequest.cs
@@ -142,6 +142,10 @@ public class Builder
private Models.CustomAttribute customAttribute;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpsertCustomerCustomAttributeRequest.
+ ///
+ /// customAttribute.
public Builder(
Models.CustomAttribute customAttribute)
{
diff --git a/Square/Models/UpsertLocationCustomAttributeRequest.cs b/Square/Models/UpsertLocationCustomAttributeRequest.cs
index e2d9e0e8..8fd4421d 100644
--- a/Square/Models/UpsertLocationCustomAttributeRequest.cs
+++ b/Square/Models/UpsertLocationCustomAttributeRequest.cs
@@ -142,6 +142,10 @@ public class Builder
private Models.CustomAttribute customAttribute;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpsertLocationCustomAttributeRequest.
+ ///
+ /// customAttribute.
public Builder(
Models.CustomAttribute customAttribute)
{
diff --git a/Square/Models/UpsertMerchantCustomAttributeRequest.cs b/Square/Models/UpsertMerchantCustomAttributeRequest.cs
index ee10396c..533031f4 100644
--- a/Square/Models/UpsertMerchantCustomAttributeRequest.cs
+++ b/Square/Models/UpsertMerchantCustomAttributeRequest.cs
@@ -142,6 +142,10 @@ public class Builder
private Models.CustomAttribute customAttribute;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpsertMerchantCustomAttributeRequest.
+ ///
+ /// customAttribute.
public Builder(
Models.CustomAttribute customAttribute)
{
diff --git a/Square/Models/UpsertOrderCustomAttributeRequest.cs b/Square/Models/UpsertOrderCustomAttributeRequest.cs
index 5c4dc382..9bdb2ebb 100644
--- a/Square/Models/UpsertOrderCustomAttributeRequest.cs
+++ b/Square/Models/UpsertOrderCustomAttributeRequest.cs
@@ -142,6 +142,10 @@ public class Builder
private Models.CustomAttribute customAttribute;
private string idempotencyKey;
+ ///
+ /// Initialize Builder for UpsertOrderCustomAttributeRequest.
+ ///
+ /// customAttribute.
public Builder(
Models.CustomAttribute customAttribute)
{
diff --git a/Square/Models/UpsertSnippetRequest.cs b/Square/Models/UpsertSnippetRequest.cs
index cecf4e66..95e07858 100644
--- a/Square/Models/UpsertSnippetRequest.cs
+++ b/Square/Models/UpsertSnippetRequest.cs
@@ -94,6 +94,10 @@ public class Builder
{
private Models.Snippet snippet;
+ ///
+ /// Initialize Builder for UpsertSnippetRequest.
+ ///
+ /// snippet.
public Builder(
Models.Snippet snippet)
{
diff --git a/Square/Models/V1CreateRefundRequest.cs b/Square/Models/V1CreateRefundRequest.cs
deleted file mode 100644
index c9d3d423..00000000
--- a/Square/Models/V1CreateRefundRequest.cs
+++ /dev/null
@@ -1,280 +0,0 @@
-namespace Square.Models
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using APIMatic.Core.Utilities.Converters;
- using Newtonsoft.Json;
- using Newtonsoft.Json.Converters;
- using Square;
- using Square.Utilities;
-
- ///
- /// V1CreateRefundRequest.
- ///
- public class V1CreateRefundRequest
- {
- private readonly Dictionary shouldSerialize;
- ///
- /// Initializes a new instance of the class.
- ///
- /// payment_id.
- /// type.
- /// reason.
- /// refunded_money.
- /// request_idempotence_key.
- public V1CreateRefundRequest(
- string paymentId,
- string type,
- string reason,
- Models.V1Money refundedMoney = null,
- string requestIdempotenceKey = null)
- {
- shouldSerialize = new Dictionary
- {
- { "request_idempotence_key", false }
- };
-
- this.PaymentId = paymentId;
- this.Type = type;
- this.Reason = reason;
- this.RefundedMoney = refundedMoney;
- if (requestIdempotenceKey != null)
- {
- shouldSerialize["request_idempotence_key"] = true;
- this.RequestIdempotenceKey = requestIdempotenceKey;
- }
-
- }
- internal V1CreateRefundRequest(Dictionary shouldSerialize,
- string paymentId,
- string type,
- string reason,
- Models.V1Money refundedMoney = null,
- string requestIdempotenceKey = null)
- {
- this.shouldSerialize = shouldSerialize;
- PaymentId = paymentId;
- Type = type;
- Reason = reason;
- RefundedMoney = refundedMoney;
- RequestIdempotenceKey = requestIdempotenceKey;
- }
-
- ///
- /// The ID of the payment to refund. If you are creating a `PARTIAL`
- /// refund for a split tender payment, instead provide the id of the
- /// particular tender you want to refund.
- ///
- [JsonProperty("payment_id")]
- public string PaymentId { get; }
-
- ///
- /// Gets or sets Type.
- ///
- [JsonProperty("type")]
- public string Type { get; }
-
- ///
- /// The reason for the refund.
- ///
- [JsonProperty("reason")]
- public string Reason { get; }
-
- ///
- /// Gets or sets RefundedMoney.
- ///
- [JsonProperty("refunded_money", NullValueHandling = NullValueHandling.Ignore)]
- public Models.V1Money RefundedMoney { get; }
-
- ///
- /// An optional key to ensure idempotence if you issue the same PARTIAL refund request more than once.
- ///
- [JsonProperty("request_idempotence_key")]
- public string RequestIdempotenceKey { get; }
-
- ///
- public override string ToString()
- {
- var toStringOutput = new List();
-
- this.ToString(toStringOutput);
-
- return $"V1CreateRefundRequest : ({string.Join(", ", toStringOutput)})";
- }
-
- ///
- /// Checks if the field should be serialized or not.
- ///
- /// A boolean weather the field should be serialized or not.
- public bool ShouldSerializeRequestIdempotenceKey()
- {
- return this.shouldSerialize["request_idempotence_key"];
- }
-
- ///
- public override bool Equals(object obj)
- {
- if (obj == null)
- {
- return false;
- }
-
- if (obj == this)
- {
- return true;
- }
- return obj is V1CreateRefundRequest other && ((this.PaymentId == null && other.PaymentId == null) || (this.PaymentId?.Equals(other.PaymentId) == true)) &&
- ((this.Type == null && other.Type == null) || (this.Type?.Equals(other.Type) == true)) &&
- ((this.Reason == null && other.Reason == null) || (this.Reason?.Equals(other.Reason) == true)) &&
- ((this.RefundedMoney == null && other.RefundedMoney == null) || (this.RefundedMoney?.Equals(other.RefundedMoney) == true)) &&
- ((this.RequestIdempotenceKey == null && other.RequestIdempotenceKey == null) || (this.RequestIdempotenceKey?.Equals(other.RequestIdempotenceKey) == true));
- }
-
- ///
- public override int GetHashCode()
- {
- int hashCode = 1278947048;
- hashCode = HashCode.Combine(this.PaymentId, this.Type, this.Reason, this.RefundedMoney, this.RequestIdempotenceKey);
-
- return hashCode;
- }
- ///
- /// ToString overload.
- ///
- /// List of strings.
- protected void ToString(List toStringOutput)
- {
- toStringOutput.Add($"this.PaymentId = {(this.PaymentId == null ? "null" : this.PaymentId)}");
- toStringOutput.Add($"this.Type = {(this.Type == null ? "null" : this.Type.ToString())}");
- toStringOutput.Add($"this.Reason = {(this.Reason == null ? "null" : this.Reason)}");
- toStringOutput.Add($"this.RefundedMoney = {(this.RefundedMoney == null ? "null" : this.RefundedMoney.ToString())}");
- toStringOutput.Add($"this.RequestIdempotenceKey = {(this.RequestIdempotenceKey == null ? "null" : this.RequestIdempotenceKey)}");
- }
-
- ///
- /// Converts to builder object.
- ///
- /// Builder.
- public Builder ToBuilder()
- {
- var builder = new Builder(
- this.PaymentId,
- this.Type,
- this.Reason)
- .RefundedMoney(this.RefundedMoney)
- .RequestIdempotenceKey(this.RequestIdempotenceKey);
- return builder;
- }
-
- ///
- /// Builder class.
- ///
- public class Builder
- {
- private Dictionary shouldSerialize = new Dictionary
- {
- { "request_idempotence_key", false },
- };
-
- private string paymentId;
- private string type;
- private string reason;
- private Models.V1Money refundedMoney;
- private string requestIdempotenceKey;
-
- public Builder(
- string paymentId,
- string type,
- string reason)
- {
- this.paymentId = paymentId;
- this.type = type;
- this.reason = reason;
- }
-
- ///
- /// PaymentId.
- ///
- /// paymentId.
- /// Builder.
- public Builder PaymentId(string paymentId)
- {
- this.paymentId = paymentId;
- return this;
- }
-
- ///
- /// Type.
- ///
- /// type.
- /// Builder.
- public Builder Type(string type)
- {
- this.type = type;
- return this;
- }
-
- ///
- /// Reason.
- ///
- /// reason.
- /// Builder.
- public Builder Reason(string reason)
- {
- this.reason = reason;
- return this;
- }
-
- ///
- /// RefundedMoney.
- ///
- /// refundedMoney.
- /// Builder.
- public Builder RefundedMoney(Models.V1Money refundedMoney)
- {
- this.refundedMoney = refundedMoney;
- return this;
- }
-
- ///
- /// RequestIdempotenceKey.
- ///
- /// requestIdempotenceKey.
- /// Builder.
- public Builder RequestIdempotenceKey(string requestIdempotenceKey)
- {
- shouldSerialize["request_idempotence_key"] = true;
- this.requestIdempotenceKey = requestIdempotenceKey;
- return this;
- }
-
- ///
- /// Marks the field to not be serailized.
- ///
- public void UnsetRequestIdempotenceKey()
- {
- this.shouldSerialize["request_idempotence_key"] = false;
- }
-
-
- ///
- /// Builds class object.
- ///
- /// V1CreateRefundRequest.
- public V1CreateRefundRequest Build()
- {
- return new V1CreateRefundRequest(shouldSerialize,
- this.paymentId,
- this.type,
- this.reason,
- this.refundedMoney,
- this.requestIdempotenceKey);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Square/Models/V1ListPaymentsRequest.cs b/Square/Models/V1ListPaymentsRequest.cs
deleted file mode 100644
index 39b50a49..00000000
--- a/Square/Models/V1ListPaymentsRequest.cs
+++ /dev/null
@@ -1,396 +0,0 @@
-namespace Square.Models
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using APIMatic.Core.Utilities.Converters;
- using Newtonsoft.Json;
- using Newtonsoft.Json.Converters;
- using Square;
- using Square.Utilities;
-
- ///
- /// V1ListPaymentsRequest.
- ///
- public class V1ListPaymentsRequest
- {
- private readonly Dictionary shouldSerialize;
- ///
- /// Initializes a new instance of the class.
- ///
- /// order.
- /// begin_time.
- /// end_time.
- /// limit.
- /// batch_token.
- /// include_partial.
- public V1ListPaymentsRequest(
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null,
- bool? includePartial = null)
- {
- shouldSerialize = new Dictionary
- {
- { "begin_time", false },
- { "end_time", false },
- { "limit", false },
- { "batch_token", false },
- { "include_partial", false }
- };
-
- this.Order = order;
- if (beginTime != null)
- {
- shouldSerialize["begin_time"] = true;
- this.BeginTime = beginTime;
- }
-
- if (endTime != null)
- {
- shouldSerialize["end_time"] = true;
- this.EndTime = endTime;
- }
-
- if (limit != null)
- {
- shouldSerialize["limit"] = true;
- this.Limit = limit;
- }
-
- if (batchToken != null)
- {
- shouldSerialize["batch_token"] = true;
- this.BatchToken = batchToken;
- }
-
- if (includePartial != null)
- {
- shouldSerialize["include_partial"] = true;
- this.IncludePartial = includePartial;
- }
-
- }
- internal V1ListPaymentsRequest(Dictionary shouldSerialize,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null,
- bool? includePartial = null)
- {
- this.shouldSerialize = shouldSerialize;
- Order = order;
- BeginTime = beginTime;
- EndTime = endTime;
- Limit = limit;
- BatchToken = batchToken;
- IncludePartial = includePartial;
- }
-
- ///
- /// The order (e.g., chronological or alphabetical) in which results from a request are returned.
- ///
- [JsonProperty("order", NullValueHandling = NullValueHandling.Ignore)]
- public string Order { get; }
-
- ///
- /// The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
- ///
- [JsonProperty("begin_time")]
- public string BeginTime { get; }
-
- ///
- /// The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
- ///
- [JsonProperty("end_time")]
- public string EndTime { get; }
-
- ///
- /// The maximum number of payments to return in a single response. This value cannot exceed 200.
- ///
- [JsonProperty("limit")]
- public int? Limit { get; }
-
- ///
- /// A pagination cursor to retrieve the next set of results for your
- /// original query to the endpoint.
- ///
- [JsonProperty("batch_token")]
- public string BatchToken { get; }
-
- ///
- /// Indicates whether or not to include partial payments in the response. Partial payments will have the tenders collected so far, but the itemizations will be empty until the payment is completed.
- ///
- [JsonProperty("include_partial")]
- public bool? IncludePartial { get; }
-
- ///
- public override string ToString()
- {
- var toStringOutput = new List();
-
- this.ToString(toStringOutput);
-
- return $"V1ListPaymentsRequest : ({string.Join(", ", toStringOutput)})";
- }
-
- ///
- /// Checks if the field should be serialized or not.
- ///
- /// A boolean weather the field should be serialized or not.
- public bool ShouldSerializeBeginTime()
- {
- return this.shouldSerialize["begin_time"];
- }
-
- ///
- /// Checks if the field should be serialized or not.
- ///
- /// A boolean weather the field should be serialized or not.
- public bool ShouldSerializeEndTime()
- {
- return this.shouldSerialize["end_time"];
- }
-
- ///
- /// Checks if the field should be serialized or not.
- ///
- /// A boolean weather the field should be serialized or not.
- public bool ShouldSerializeLimit()
- {
- return this.shouldSerialize["limit"];
- }
-
- ///
- /// Checks if the field should be serialized or not.
- ///
- /// A boolean weather the field should be serialized or not.
- public bool ShouldSerializeBatchToken()
- {
- return this.shouldSerialize["batch_token"];
- }
-
- ///
- /// Checks if the field should be serialized or not.
- ///
- /// A boolean weather the field should be serialized or not.
- public bool ShouldSerializeIncludePartial()
- {
- return this.shouldSerialize["include_partial"];
- }
-
- ///
- public override bool Equals(object obj)
- {
- if (obj == null)
- {
- return false;
- }
-
- if (obj == this)
- {
- return true;
- }
- return obj is V1ListPaymentsRequest other && ((this.Order == null && other.Order == null) || (this.Order?.Equals(other.Order) == true)) &&
- ((this.BeginTime == null && other.BeginTime == null) || (this.BeginTime?.Equals(other.BeginTime) == true)) &&
- ((this.EndTime == null && other.EndTime == null) || (this.EndTime?.Equals(other.EndTime) == true)) &&
- ((this.Limit == null && other.Limit == null) || (this.Limit?.Equals(other.Limit) == true)) &&
- ((this.BatchToken == null && other.BatchToken == null) || (this.BatchToken?.Equals(other.BatchToken) == true)) &&
- ((this.IncludePartial == null && other.IncludePartial == null) || (this.IncludePartial?.Equals(other.IncludePartial) == true));
- }
-
- ///
- public override int GetHashCode()
- {
- int hashCode = 358877715;
- hashCode = HashCode.Combine(this.Order, this.BeginTime, this.EndTime, this.Limit, this.BatchToken, this.IncludePartial);
-
- return hashCode;
- }
- ///
- /// ToString overload.
- ///
- /// List of strings.
- protected void ToString(List toStringOutput)
- {
- toStringOutput.Add($"this.Order = {(this.Order == null ? "null" : this.Order.ToString())}");
- toStringOutput.Add($"this.BeginTime = {(this.BeginTime == null ? "null" : this.BeginTime)}");
- toStringOutput.Add($"this.EndTime = {(this.EndTime == null ? "null" : this.EndTime)}");
- toStringOutput.Add($"this.Limit = {(this.Limit == null ? "null" : this.Limit.ToString())}");
- toStringOutput.Add($"this.BatchToken = {(this.BatchToken == null ? "null" : this.BatchToken)}");
- toStringOutput.Add($"this.IncludePartial = {(this.IncludePartial == null ? "null" : this.IncludePartial.ToString())}");
- }
-
- ///
- /// Converts to builder object.
- ///
- /// Builder.
- public Builder ToBuilder()
- {
- var builder = new Builder()
- .Order(this.Order)
- .BeginTime(this.BeginTime)
- .EndTime(this.EndTime)
- .Limit(this.Limit)
- .BatchToken(this.BatchToken)
- .IncludePartial(this.IncludePartial);
- return builder;
- }
-
- ///
- /// Builder class.
- ///
- public class Builder
- {
- private Dictionary shouldSerialize = new Dictionary
- {
- { "begin_time", false },
- { "end_time", false },
- { "limit", false },
- { "batch_token", false },
- { "include_partial", false },
- };
-
- private string order;
- private string beginTime;
- private string endTime;
- private int? limit;
- private string batchToken;
- private bool? includePartial;
-
- ///
- /// Order.
- ///
- /// order.
- /// Builder.
- public Builder Order(string order)
- {
- this.order = order;
- return this;
- }
-
- ///
- /// BeginTime.
- ///
- /// beginTime.
- /// Builder.
- public Builder BeginTime(string beginTime)
- {
- shouldSerialize["begin_time"] = true;
- this.beginTime = beginTime;
- return this;
- }
-
- ///
- /// EndTime.
- ///
- /// endTime.
- /// Builder.
- public Builder EndTime(string endTime)
- {
- shouldSerialize["end_time"] = true;
- this.endTime = endTime;
- return this;
- }
-
- ///
- /// Limit.
- ///
- /// limit.
- /// Builder.
- public Builder Limit(int? limit)
- {
- shouldSerialize["limit"] = true;
- this.limit = limit;
- return this;
- }
-
- ///
- /// BatchToken.
- ///
- /// batchToken.
- /// Builder.
- public Builder BatchToken(string batchToken)
- {
- shouldSerialize["batch_token"] = true;
- this.batchToken = batchToken;
- return this;
- }
-
- ///
- /// IncludePartial.
- ///
- /// includePartial.
- /// Builder.
- public Builder IncludePartial(bool? includePartial)
- {
- shouldSerialize["include_partial"] = true;
- this.includePartial = includePartial;
- return this;
- }
-
- ///
- /// Marks the field to not be serailized.
- ///
- public void UnsetBeginTime()
- {
- this.shouldSerialize["begin_time"] = false;
- }
-
- ///
- /// Marks the field to not be serailized.
- ///
- public void UnsetEndTime()
- {
- this.shouldSerialize["end_time"] = false;
- }
-
- ///
- /// Marks the field to not be serailized.
- ///
- public void UnsetLimit()
- {
- this.shouldSerialize["limit"] = false;
- }
-
- ///
- /// Marks the field to not be serailized.
- ///
- public void UnsetBatchToken()
- {
- this.shouldSerialize["batch_token"] = false;
- }
-
- ///
- /// Marks the field to not be serailized.
- ///
- public void UnsetIncludePartial()
- {
- this.shouldSerialize["include_partial"] = false;
- }
-
-
- ///
- /// Builds class object.
- ///
- /// V1ListPaymentsRequest.
- public V1ListPaymentsRequest Build()
- {
- return new V1ListPaymentsRequest(shouldSerialize,
- this.order,
- this.beginTime,
- this.endTime,
- this.limit,
- this.batchToken,
- this.includePartial);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Square/Models/V1ListPaymentsResponse.cs b/Square/Models/V1ListPaymentsResponse.cs
deleted file mode 100644
index 5401168d..00000000
--- a/Square/Models/V1ListPaymentsResponse.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-namespace Square.Models
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using APIMatic.Core.Utilities.Converters;
- using Newtonsoft.Json;
- using Newtonsoft.Json.Converters;
- using Square;
- using Square.Utilities;
-
- ///
- /// V1ListPaymentsResponse.
- ///
- public class V1ListPaymentsResponse
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// items.
- public V1ListPaymentsResponse(
- IList items = null)
- {
- this.Items = items;
- }
-
- ///
- /// Gets or sets Items.
- ///
- [JsonProperty("items", NullValueHandling = NullValueHandling.Ignore)]
- public IList Items { get; }
-
- ///
- public override string ToString()
- {
- var toStringOutput = new List();
-
- this.ToString(toStringOutput);
-
- return $"V1ListPaymentsResponse : ({string.Join(", ", toStringOutput)})";
- }
-
- ///
- public override bool Equals(object obj)
- {
- if (obj == null)
- {
- return false;
- }
-
- if (obj == this)
- {
- return true;
- }
- return obj is V1ListPaymentsResponse other && ((this.Items == null && other.Items == null) || (this.Items?.Equals(other.Items) == true));
- }
-
- ///
- public override int GetHashCode()
- {
- int hashCode = -722526871;
- hashCode = HashCode.Combine(this.Items);
-
- return hashCode;
- }
- ///
- /// ToString overload.
- ///
- /// List of strings.
- protected void ToString(List toStringOutput)
- {
- toStringOutput.Add($"this.Items = {(this.Items == null ? "null" : $"[{string.Join(", ", this.Items)} ]")}");
- }
-
- ///
- /// Converts to builder object.
- ///
- /// Builder.
- public Builder ToBuilder()
- {
- var builder = new Builder()
- .Items(this.Items);
- return builder;
- }
-
- ///
- /// Builder class.
- ///
- public class Builder
- {
- private IList items;
-
- ///
- /// Items.
- ///
- /// items.
- /// Builder.
- public Builder Items(IList items)
- {
- this.items = items;
- return this;
- }
-
- ///
- /// Builds class object.
- ///
- /// V1ListPaymentsResponse.
- public V1ListPaymentsResponse Build()
- {
- return new V1ListPaymentsResponse(
- this.items);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Square/Models/V1ListRefundsRequest.cs b/Square/Models/V1ListRefundsRequest.cs
deleted file mode 100644
index f0b60532..00000000
--- a/Square/Models/V1ListRefundsRequest.cs
+++ /dev/null
@@ -1,344 +0,0 @@
-namespace Square.Models
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using APIMatic.Core.Utilities.Converters;
- using Newtonsoft.Json;
- using Newtonsoft.Json.Converters;
- using Square;
- using Square.Utilities;
-
- ///
- /// V1ListRefundsRequest.
- ///
- public class V1ListRefundsRequest
- {
- private readonly Dictionary shouldSerialize;
- ///
- /// Initializes a new instance of the class.
- ///
- /// order.
- /// begin_time.
- /// end_time.
- /// limit.
- /// batch_token.
- public V1ListRefundsRequest(
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null)
- {
- shouldSerialize = new Dictionary
- {
- { "begin_time", false },
- { "end_time", false },
- { "limit", false },
- { "batch_token", false }
- };
-
- this.Order = order;
- if (beginTime != null)
- {
- shouldSerialize["begin_time"] = true;
- this.BeginTime = beginTime;
- }
-
- if (endTime != null)
- {
- shouldSerialize["end_time"] = true;
- this.EndTime = endTime;
- }
-
- if (limit != null)
- {
- shouldSerialize["limit"] = true;
- this.Limit = limit;
- }
-
- if (batchToken != null)
- {
- shouldSerialize["batch_token"] = true;
- this.BatchToken = batchToken;
- }
-
- }
- internal V1ListRefundsRequest(Dictionary shouldSerialize,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string batchToken = null)
- {
- this.shouldSerialize = shouldSerialize;
- Order = order;
- BeginTime = beginTime;
- EndTime = endTime;
- Limit = limit;
- BatchToken = batchToken;
- }
-
- ///
- /// The order (e.g., chronological or alphabetical) in which results from a request are returned.
- ///
- [JsonProperty("order", NullValueHandling = NullValueHandling.Ignore)]
- public string Order { get; }
-
- ///
- /// The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
- ///
- [JsonProperty("begin_time")]
- public string BeginTime { get; }
-
- ///
- /// The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
- ///
- [JsonProperty("end_time")]
- public string EndTime { get; }
-
- ///
- /// The approximate number of refunds to return in a single response. Default: 100. Max: 200. Response may contain more results than the prescribed limit when refunds are made simultaneously to multiple tenders in a payment or when refunds are generated in an exchange to account for the value of returned goods.
- ///
- [JsonProperty("limit")]
- public int? Limit { get; }
-
- ///
- /// A pagination cursor to retrieve the next set of results for your
- /// original query to the endpoint.
- ///
- [JsonProperty("batch_token")]
- public string BatchToken { get; }
-
- ///
- public override string ToString()
- {
- var toStringOutput = new List();
-
- this.ToString(toStringOutput);
-
- return $"V1ListRefundsRequest : ({string.Join(", ", toStringOutput)})";
- }
-
- ///
- /// Checks if the field should be serialized or not.
- ///
- /// A boolean weather the field should be serialized or not.
- public bool ShouldSerializeBeginTime()
- {
- return this.shouldSerialize["begin_time"];
- }
-
- ///
- /// Checks if the field should be serialized or not.
- ///
- /// A boolean weather the field should be serialized or not.
- public bool ShouldSerializeEndTime()
- {
- return this.shouldSerialize["end_time"];
- }
-
- ///
- /// Checks if the field should be serialized or not.
- ///
- /// A boolean weather the field should be serialized or not.
- public bool ShouldSerializeLimit()
- {
- return this.shouldSerialize["limit"];
- }
-
- ///
- /// Checks if the field should be serialized or not.
- ///
- /// A boolean weather the field should be serialized or not.
- public bool ShouldSerializeBatchToken()
- {
- return this.shouldSerialize["batch_token"];
- }
-
- ///
- public override bool Equals(object obj)
- {
- if (obj == null)
- {
- return false;
- }
-
- if (obj == this)
- {
- return true;
- }
- return obj is V1ListRefundsRequest other && ((this.Order == null && other.Order == null) || (this.Order?.Equals(other.Order) == true)) &&
- ((this.BeginTime == null && other.BeginTime == null) || (this.BeginTime?.Equals(other.BeginTime) == true)) &&
- ((this.EndTime == null && other.EndTime == null) || (this.EndTime?.Equals(other.EndTime) == true)) &&
- ((this.Limit == null && other.Limit == null) || (this.Limit?.Equals(other.Limit) == true)) &&
- ((this.BatchToken == null && other.BatchToken == null) || (this.BatchToken?.Equals(other.BatchToken) == true));
- }
-
- ///
- public override int GetHashCode()
- {
- int hashCode = 572382122;
- hashCode = HashCode.Combine(this.Order, this.BeginTime, this.EndTime, this.Limit, this.BatchToken);
-
- return hashCode;
- }
- ///
- /// ToString overload.
- ///
- /// List of strings.
- protected void ToString(List toStringOutput)
- {
- toStringOutput.Add($"this.Order = {(this.Order == null ? "null" : this.Order.ToString())}");
- toStringOutput.Add($"this.BeginTime = {(this.BeginTime == null ? "null" : this.BeginTime)}");
- toStringOutput.Add($"this.EndTime = {(this.EndTime == null ? "null" : this.EndTime)}");
- toStringOutput.Add($"this.Limit = {(this.Limit == null ? "null" : this.Limit.ToString())}");
- toStringOutput.Add($"this.BatchToken = {(this.BatchToken == null ? "null" : this.BatchToken)}");
- }
-
- ///
- /// Converts to builder object.
- ///
- /// Builder.
- public Builder ToBuilder()
- {
- var builder = new Builder()
- .Order(this.Order)
- .BeginTime(this.BeginTime)
- .EndTime(this.EndTime)
- .Limit(this.Limit)
- .BatchToken(this.BatchToken);
- return builder;
- }
-
- ///
- /// Builder class.
- ///
- public class Builder
- {
- private Dictionary shouldSerialize = new Dictionary
- {
- { "begin_time", false },
- { "end_time", false },
- { "limit", false },
- { "batch_token", false },
- };
-
- private string order;
- private string beginTime;
- private string endTime;
- private int? limit;
- private string batchToken;
-
- ///
- /// Order.
- ///
- /// order.
- /// Builder.
- public Builder Order(string order)
- {
- this.order = order;
- return this;
- }
-
- ///
- /// BeginTime.
- ///
- /// beginTime.
- /// Builder.
- public Builder BeginTime(string beginTime)
- {
- shouldSerialize["begin_time"] = true;
- this.beginTime = beginTime;
- return this;
- }
-
- ///
- /// EndTime.
- ///
- /// endTime.
- /// Builder.
- public Builder EndTime(string endTime)
- {
- shouldSerialize["end_time"] = true;
- this.endTime = endTime;
- return this;
- }
-
- ///
- /// Limit.
- ///
- /// limit.
- /// Builder.
- public Builder Limit(int? limit)
- {
- shouldSerialize["limit"] = true;
- this.limit = limit;
- return this;
- }
-
- ///
- /// BatchToken.
- ///
- /// batchToken.
- /// Builder.
- public Builder BatchToken(string batchToken)
- {
- shouldSerialize["batch_token"] = true;
- this.batchToken = batchToken;
- return this;
- }
-
- ///
- /// Marks the field to not be serailized.
- ///
- public void UnsetBeginTime()
- {
- this.shouldSerialize["begin_time"] = false;
- }
-
- ///
- /// Marks the field to not be serailized.
- ///
- public void UnsetEndTime()
- {
- this.shouldSerialize["end_time"] = false;
- }
-
- ///
- /// Marks the field to not be serailized.
- ///
- public void UnsetLimit()
- {
- this.shouldSerialize["limit"] = false;
- }
-
- ///
- /// Marks the field to not be serailized.
- ///
- public void UnsetBatchToken()
- {
- this.shouldSerialize["batch_token"] = false;
- }
-
-
- ///
- /// Builds class object.
- ///
- /// V1ListRefundsRequest.
- public V1ListRefundsRequest Build()
- {
- return new V1ListRefundsRequest(shouldSerialize,
- this.order,
- this.beginTime,
- this.endTime,
- this.limit,
- this.batchToken);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Square/Models/V1ListRefundsResponse.cs b/Square/Models/V1ListRefundsResponse.cs
deleted file mode 100644
index 4455cfa9..00000000
--- a/Square/Models/V1ListRefundsResponse.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-namespace Square.Models
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using APIMatic.Core.Utilities.Converters;
- using Newtonsoft.Json;
- using Newtonsoft.Json.Converters;
- using Square;
- using Square.Utilities;
-
- ///
- /// V1ListRefundsResponse.
- ///
- public class V1ListRefundsResponse
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// items.
- public V1ListRefundsResponse(
- IList items = null)
- {
- this.Items = items;
- }
-
- ///
- /// Gets or sets Items.
- ///
- [JsonProperty("items", NullValueHandling = NullValueHandling.Ignore)]
- public IList Items { get; }
-
- ///
- public override string ToString()
- {
- var toStringOutput = new List();
-
- this.ToString(toStringOutput);
-
- return $"V1ListRefundsResponse : ({string.Join(", ", toStringOutput)})";
- }
-
- ///
- public override bool Equals(object obj)
- {
- if (obj == null)
- {
- return false;
- }
-
- if (obj == this)
- {
- return true;
- }
- return obj is V1ListRefundsResponse other && ((this.Items == null && other.Items == null) || (this.Items?.Equals(other.Items) == true));
- }
-
- ///
- public override int GetHashCode()
- {
- int hashCode = 475312657;
- hashCode = HashCode.Combine(this.Items);
-
- return hashCode;
- }
- ///
- /// ToString overload.
- ///
- /// List of strings.
- protected void ToString(List toStringOutput)
- {
- toStringOutput.Add($"this.Items = {(this.Items == null ? "null" : $"[{string.Join(", ", this.Items)} ]")}");
- }
-
- ///
- /// Converts to builder object.
- ///
- /// Builder.
- public Builder ToBuilder()
- {
- var builder = new Builder()
- .Items(this.Items);
- return builder;
- }
-
- ///
- /// Builder class.
- ///
- public class Builder
- {
- private IList items;
-
- ///
- /// Items.
- ///
- /// items.
- /// Builder.
- public Builder Items(IList items)
- {
- this.items = items;
- return this;
- }
-
- ///
- /// Builds class object.
- ///
- /// V1ListRefundsResponse.
- public V1ListRefundsResponse Build()
- {
- return new V1ListRefundsResponse(
- this.items);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Square/Models/V1ListSettlementsRequest.cs b/Square/Models/V1ListSettlementsRequest.cs
deleted file mode 100644
index 30c42c45..00000000
--- a/Square/Models/V1ListSettlementsRequest.cs
+++ /dev/null
@@ -1,371 +0,0 @@
-namespace Square.Models
-{
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using APIMatic.Core.Utilities.Converters;
- using Newtonsoft.Json;
- using Newtonsoft.Json.Converters;
- using Square;
- using Square.Utilities;
-
- ///
- /// V1ListSettlementsRequest.
- ///
- public class V1ListSettlementsRequest
- {
- private readonly Dictionary shouldSerialize;
- ///
- /// Initializes a new instance of the class.
- ///
- /// order.
- /// begin_time.
- /// end_time.
- /// limit.
- /// status.
- /// batch_token.
- public V1ListSettlementsRequest(
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string status = null,
- string batchToken = null)
- {
- shouldSerialize = new Dictionary
- {
- { "begin_time", false },
- { "end_time", false },
- { "limit", false },
- { "batch_token", false }
- };
-
- this.Order = order;
- if (beginTime != null)
- {
- shouldSerialize["begin_time"] = true;
- this.BeginTime = beginTime;
- }
-
- if (endTime != null)
- {
- shouldSerialize["end_time"] = true;
- this.EndTime = endTime;
- }
-
- if (limit != null)
- {
- shouldSerialize["limit"] = true;
- this.Limit = limit;
- }
-
- this.Status = status;
- if (batchToken != null)
- {
- shouldSerialize["batch_token"] = true;
- this.BatchToken = batchToken;
- }
-
- }
- internal V1ListSettlementsRequest(Dictionary shouldSerialize,
- string order = null,
- string beginTime = null,
- string endTime = null,
- int? limit = null,
- string status = null,
- string batchToken = null)
- {
- this.shouldSerialize = shouldSerialize;
- Order = order;
- BeginTime = beginTime;
- EndTime = endTime;
- Limit = limit;
- Status = status;
- BatchToken = batchToken;
- }
-
- ///
- /// The order (e.g., chronological or alphabetical) in which results from a request are returned.
- ///
- [JsonProperty("order", NullValueHandling = NullValueHandling.Ignore)]
- public string Order { get; }
-
- ///
- /// The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
- ///
- [JsonProperty("begin_time")]
- public string BeginTime { get; }
-
- ///
- /// The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
- ///
- [JsonProperty("end_time")]
- public string EndTime { get; }
-
- ///
- /// The maximum number of settlements to return in a single response. This value cannot exceed 200.
- ///
- [JsonProperty("limit")]
- public int? Limit { get; }
-
- ///
- /// Gets or sets Status.
- ///
- [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
- public string Status { get; }
-
- ///
- /// A pagination cursor to retrieve the next set of results for your
- /// original query to the endpoint.
- ///
- [JsonProperty("batch_token")]
- public string BatchToken { get; }
-
- ///
- public override string ToString()
- {
- var toStringOutput = new List();
-
- this.ToString(toStringOutput);
-
- return $"V1ListSettlementsRequest : ({string.Join(", ", toStringOutput)})";
- }
-
- ///