diff --git a/.vscode/settings.json b/.vscode/settings.json
index ae17e7fa..8db1bcb7 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -3,5 +3,25 @@
"omnisharp.useEditorFormattingSettings": false,
"[csharp]": {
"editor.defaultFormatter": "ms-dotnettools.csharp"
- }
+ },
+ "workbench.colorCustomizations": {
+ "activityBar.activeBackground": "#26b7e8",
+ "activityBar.background": "#26b7e8",
+ "activityBar.foreground": "#15202b",
+ "activityBar.inactiveForeground": "#15202b99",
+ "activityBarBadge.background": "#ca159c",
+ "activityBarBadge.foreground": "#e7e7e7",
+ "commandCenter.border": "#e7e7e799",
+ "sash.hoverBorder": "#26b7e8",
+ "statusBar.background": "#1599c6",
+ "statusBar.foreground": "#e7e7e7",
+ "statusBarItem.hoverBackground": "#26b7e8",
+ "statusBarItem.remoteBackground": "#1599c6",
+ "statusBarItem.remoteForeground": "#e7e7e7",
+ "titleBar.activeBackground": "#1599c6",
+ "titleBar.activeForeground": "#e7e7e7",
+ "titleBar.inactiveBackground": "#1599c699",
+ "titleBar.inactiveForeground": "#e7e7e799"
+ },
+ "peacock.color": "#1599c6"
}
\ No newline at end of file
diff --git a/ShipEngineSDK/Api/AccountApi.cs b/ShipEngineSDK/Api/AccountApi.cs
index d252b388..fa6136c8 100644
--- a/ShipEngineSDK/Api/AccountApi.cs
+++ b/ShipEngineSDK/Api/AccountApi.cs
@@ -31,8 +31,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsImagesResponseBody)
- Task CreateAccountImage(CreateAccountSettingsImageRequestBody createAccountSettingsImageRequestBody, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (GetAccountSettingsImagesResponseBody)
+ Task> CreateAccountImage(CreateAccountSettingsImageRequestBody createAccountSettingsImageRequestBody, CancellationToken cancellationToken = default);
///
/// Create an Account Image Create an Account Image
@@ -42,8 +42,8 @@ public partial interface IShipEngine
/// HttpClient to use for the request
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsImagesResponseBody)
- Task CreateAccountImage(HttpClient methodClient, CreateAccountSettingsImageRequestBody createAccountSettingsImageRequestBody, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (GetAccountSettingsImagesResponseBody)
+ Task> CreateAccountImage(HttpClient methodClient, CreateAccountSettingsImageRequestBody createAccountSettingsImageRequestBody, CancellationToken cancellationToken = default);
///
/// Delete Account Image By Id Delete Account Image By Id
@@ -52,8 +52,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task DeleteAccountImageById(string labelImageId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> DeleteAccountImageById(string labelImageId, CancellationToken cancellationToken = default);
///
/// Delete Account Image By Id Delete Account Image By Id
@@ -63,8 +63,8 @@ public partial interface IShipEngine
/// HttpClient to use for the request
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task DeleteAccountImageById(HttpClient methodClient, string labelImageId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> DeleteAccountImageById(HttpClient methodClient, string labelImageId, CancellationToken cancellationToken = default);
///
/// Get Account Image By ID Retrieve information for an account image.
@@ -73,8 +73,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsImagesResponseBody)
- Task GetAccountSettingsImagesById(string labelImageId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (GetAccountSettingsImagesResponseBody)
+ Task> GetAccountSettingsImagesById(string labelImageId, CancellationToken cancellationToken = default);
///
/// Get Account Image By ID Retrieve information for an account image.
@@ -84,8 +84,8 @@ public partial interface IShipEngine
/// HttpClient to use for the request
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsImagesResponseBody)
- Task GetAccountSettingsImagesById(HttpClient methodClient, string labelImageId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (GetAccountSettingsImagesResponseBody)
+ Task> GetAccountSettingsImagesById(HttpClient methodClient, string labelImageId, CancellationToken cancellationToken = default);
///
/// List Account Images List all account images for the ShipEngine account
@@ -93,8 +93,8 @@ public partial interface IShipEngine
/// Thrown when required argument is null
/// Thrown when fails to make API call
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListAccountSettingsImagesResponseBody)
- Task ListAccountImages(CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (ListAccountSettingsImagesResponseBody)
+ Task> ListAccountImages(CancellationToken cancellationToken = default);
///
/// List Account Images List all account images for the ShipEngine account
@@ -103,8 +103,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
/// HttpClient to use for the request
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListAccountSettingsImagesResponseBody)
- Task ListAccountImages(HttpClient methodClient, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (ListAccountSettingsImagesResponseBody)
+ Task> ListAccountImages(HttpClient methodClient, CancellationToken cancellationToken = default);
///
/// List Account Settings List all account settings for the ShipEngine account
@@ -112,8 +112,8 @@ public partial interface IShipEngine
/// Thrown when required argument is null
/// Thrown when fails to make API call
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsResponseBody)
- Task ListAccountSettings(CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (GetAccountSettingsResponseBody)
+ Task> ListAccountSettings(CancellationToken cancellationToken = default);
///
/// List Account Settings List all account settings for the ShipEngine account
@@ -122,8 +122,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
/// HttpClient to use for the request
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsResponseBody)
- Task ListAccountSettings(HttpClient methodClient, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (GetAccountSettingsResponseBody)
+ Task> ListAccountSettings(HttpClient methodClient, CancellationToken cancellationToken = default);
///
/// Update Account Image By ID Update information for an account image.
@@ -133,8 +133,8 @@ public partial interface IShipEngine
///
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task UpdateAccountSettingsImagesById(UpdateAccountSettingsImageRequestBody updateAccountSettingsImageRequestBody, string labelImageId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> UpdateAccountSettingsImagesById(UpdateAccountSettingsImageRequestBody updateAccountSettingsImageRequestBody, string labelImageId, CancellationToken cancellationToken = default);
///
/// Update Account Image By ID Update information for an account image.
@@ -145,8 +145,8 @@ public partial interface IShipEngine
///
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task UpdateAccountSettingsImagesById(HttpClient methodClient, UpdateAccountSettingsImageRequestBody updateAccountSettingsImageRequestBody, string labelImageId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> UpdateAccountSettingsImagesById(HttpClient methodClient, UpdateAccountSettingsImageRequestBody updateAccountSettingsImageRequestBody, string labelImageId, CancellationToken cancellationToken = default);
}
@@ -162,8 +162,8 @@ public partial class ShipEngine
/// Thrown when fails to make API call
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsImagesResponseBody)
- public Task CreateAccountImage(CreateAccountSettingsImageRequestBody createAccountSettingsImageRequestBody, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (GetAccountSettingsImagesResponseBody)
+ public Task> CreateAccountImage(CreateAccountSettingsImageRequestBody createAccountSettingsImageRequestBody, CancellationToken cancellationToken = default)
{
return CreateAccountImage(_client, createAccountSettingsImageRequestBody, cancellationToken);
}
@@ -176,8 +176,8 @@ public Task CreateAccountImage(CreateAccou
/// HttpClient to use for the request
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsImagesResponseBody)
- public async Task CreateAccountImage(HttpClient methodClient, CreateAccountSettingsImageRequestBody createAccountSettingsImageRequestBody, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (GetAccountSettingsImagesResponseBody)
+ public async Task> CreateAccountImage(HttpClient methodClient, CreateAccountSettingsImageRequestBody createAccountSettingsImageRequestBody, CancellationToken cancellationToken = default)
{
// verify the required parameter 'createAccountSettingsImageRequestBody' is set
if (createAccountSettingsImageRequestBody == null)
@@ -192,9 +192,7 @@ public async Task CreateAccountImage(HttpC
requestOptions.Operation = "AccountApi.CreateAccountImage";
- var result = await SendHttpRequestAsync(HttpMethods.Post, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Post, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -204,8 +202,8 @@ public async Task CreateAccountImage(HttpC
/// Thrown when fails to make API call
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- public Task DeleteAccountImageById(string labelImageId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (string)
+ public Task> DeleteAccountImageById(string labelImageId, CancellationToken cancellationToken = default)
{
return DeleteAccountImageById(_client, labelImageId, cancellationToken);
}
@@ -218,8 +216,8 @@ public Task DeleteAccountImageById(string labelImageId, CancellationToke
/// HttpClient to use for the request
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- public async Task DeleteAccountImageById(HttpClient methodClient, string labelImageId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (string)
+ public async Task> DeleteAccountImageById(HttpClient methodClient, string labelImageId, CancellationToken cancellationToken = default)
{
// verify the required parameter 'labelImageId' is set
if (labelImageId == null)
@@ -234,9 +232,7 @@ public async Task DeleteAccountImageById(HttpClient methodClient, string
requestOptions.Operation = "AccountApi.DeleteAccountImageById";
- var result = await SendHttpRequestAsync(HttpMethods.Delete, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Delete, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -246,8 +242,8 @@ public async Task DeleteAccountImageById(HttpClient methodClient, string
/// Thrown when fails to make API call
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsImagesResponseBody)
- public Task GetAccountSettingsImagesById(string labelImageId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (GetAccountSettingsImagesResponseBody)
+ public Task> GetAccountSettingsImagesById(string labelImageId, CancellationToken cancellationToken = default)
{
return GetAccountSettingsImagesById(_client, labelImageId, cancellationToken);
}
@@ -260,8 +256,8 @@ public Task GetAccountSettingsImagesById(s
/// HttpClient to use for the request
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsImagesResponseBody)
- public async Task GetAccountSettingsImagesById(HttpClient methodClient, string labelImageId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (GetAccountSettingsImagesResponseBody)
+ public async Task> GetAccountSettingsImagesById(HttpClient methodClient, string labelImageId, CancellationToken cancellationToken = default)
{
// verify the required parameter 'labelImageId' is set
if (labelImageId == null)
@@ -276,9 +272,7 @@ public async Task GetAccountSettingsImages
requestOptions.Operation = "AccountApi.GetAccountSettingsImagesById";
- var result = await SendHttpRequestAsync(HttpMethods.Get, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Get, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -287,8 +281,8 @@ public async Task GetAccountSettingsImages
/// Thrown when required argument is null
/// Thrown when fails to make API call
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListAccountSettingsImagesResponseBody)
- public Task ListAccountImages(CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (ListAccountSettingsImagesResponseBody)
+ public Task> ListAccountImages(CancellationToken cancellationToken = default)
{
return ListAccountImages(_client, cancellationToken);
}
@@ -300,8 +294,8 @@ public Task ListAccountImages(Cancellatio
/// Thrown when fails to make API call
/// HttpClient to use for the request
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListAccountSettingsImagesResponseBody)
- public async Task ListAccountImages(HttpClient methodClient, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (ListAccountSettingsImagesResponseBody)
+ public async Task> ListAccountImages(HttpClient methodClient, CancellationToken cancellationToken = default)
{
RequestOptions requestOptions = new("/v1/account/settings/images");
@@ -309,9 +303,7 @@ public async Task ListAccountImages(HttpC
requestOptions.Operation = "AccountApi.ListAccountImages";
- var result = await SendHttpRequestAsync(HttpMethods.Get, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Get, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -320,8 +312,8 @@ public async Task ListAccountImages(HttpC
/// Thrown when required argument is null
/// Thrown when fails to make API call
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsResponseBody)
- public Task ListAccountSettings(CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (GetAccountSettingsResponseBody)
+ public Task> ListAccountSettings(CancellationToken cancellationToken = default)
{
return ListAccountSettings(_client, cancellationToken);
}
@@ -333,8 +325,8 @@ public Task ListAccountSettings(CancellationToke
/// Thrown when fails to make API call
/// HttpClient to use for the request
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetAccountSettingsResponseBody)
- public async Task ListAccountSettings(HttpClient methodClient, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (GetAccountSettingsResponseBody)
+ public async Task> ListAccountSettings(HttpClient methodClient, CancellationToken cancellationToken = default)
{
RequestOptions requestOptions = new("/v1/account/settings");
@@ -342,9 +334,7 @@ public async Task ListAccountSettings(HttpClient
requestOptions.Operation = "AccountApi.ListAccountSettings";
- var result = await SendHttpRequestAsync(HttpMethods.Get, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Get, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -355,8 +345,8 @@ public async Task ListAccountSettings(HttpClient
///
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- public Task UpdateAccountSettingsImagesById(UpdateAccountSettingsImageRequestBody updateAccountSettingsImageRequestBody, string labelImageId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (string)
+ public Task> UpdateAccountSettingsImagesById(UpdateAccountSettingsImageRequestBody updateAccountSettingsImageRequestBody, string labelImageId, CancellationToken cancellationToken = default)
{
return UpdateAccountSettingsImagesById(_client, updateAccountSettingsImageRequestBody, labelImageId, cancellationToken);
}
@@ -370,8 +360,8 @@ public Task UpdateAccountSettingsImagesById(UpdateAccountSettingsImageRe
///
/// Label Image Id
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- public async Task UpdateAccountSettingsImagesById(HttpClient methodClient, UpdateAccountSettingsImageRequestBody updateAccountSettingsImageRequestBody, string labelImageId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (string)
+ public async Task> UpdateAccountSettingsImagesById(HttpClient methodClient, UpdateAccountSettingsImageRequestBody updateAccountSettingsImageRequestBody, string labelImageId, CancellationToken cancellationToken = default)
{
// verify the required parameter 'updateAccountSettingsImageRequestBody' is set
if (updateAccountSettingsImageRequestBody == null)
@@ -393,9 +383,7 @@ public async Task UpdateAccountSettingsImagesById(HttpClient methodClien
requestOptions.Operation = "AccountApi.UpdateAccountSettingsImagesById";
- var result = await SendHttpRequestAsync(HttpMethods.Put, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Put, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
-}
\ No newline at end of file
+}
diff --git a/ShipEngineSDK/Api/AddressesApi.cs b/ShipEngineSDK/Api/AddressesApi.cs
index 28dd3ad1..e4e00ba5 100644
--- a/ShipEngineSDK/Api/AddressesApi.cs
+++ b/ShipEngineSDK/Api/AddressesApi.cs
@@ -31,8 +31,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
/// The only required field is `text`, which is the text to be parsed. You can optionally also provide an `address` containing already-known values. For example, you may already know the recipient's name, city, and country, and only want to parse the street address into separate lines.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ParseAddressResponseBody)
- Task ParseAddress(ParseAddressRequestBody parseAddressRequestBody, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (ParseAddressResponseBody)
+ Task> ParseAddress(ParseAddressRequestBody parseAddressRequestBody, CancellationToken cancellationToken = default);
///
/// Parse an address The address-recognition API makes it easy for you to extract address data from unstructured text, including the recipient name, line 1, line 2, city, postal code, and more. Data often enters your system as unstructured text (for example: emails, SMS messages, support tickets, or other documents). ShipEngine's address-recognition API helps you extract meaningful, structured data from this unstructured text. The parsed address data is returned in the same structure that's used for other ShipEngine APIs, such as address validation, rate quotes, and shipping labels. > **Note:** Address recognition is currently supported for the United States, Canada, Australia, New Zealand, the United Kingdom, and Ireland.
@@ -42,8 +42,8 @@ public partial interface IShipEngine
/// HttpClient to use for the request
/// The only required field is `text`, which is the text to be parsed. You can optionally also provide an `address` containing already-known values. For example, you may already know the recipient's name, city, and country, and only want to parse the street address into separate lines.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ParseAddressResponseBody)
- Task ParseAddress(HttpClient methodClient, ParseAddressRequestBody parseAddressRequestBody, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (ParseAddressResponseBody)
+ Task> ParseAddress(HttpClient methodClient, ParseAddressRequestBody parseAddressRequestBody, CancellationToken cancellationToken = default);
///
/// Validate An Address Address validation ensures accurate addresses and can lead to reduced shipping costs by preventing address correction surcharges. ShipEngine cross references multiple databases to validate addresses and identify potential deliverability issues.
@@ -52,8 +52,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (List<AddressValidationResult>)
- Task> ValidateAddress(List addressToValidate, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (List<AddressValidationResult>)
+ Task>> ValidateAddress(List addressToValidate, CancellationToken cancellationToken = default);
///
/// Validate An Address Address validation ensures accurate addresses and can lead to reduced shipping costs by preventing address correction surcharges. ShipEngine cross references multiple databases to validate addresses and identify potential deliverability issues.
@@ -63,8 +63,8 @@ public partial interface IShipEngine
/// HttpClient to use for the request
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (List<AddressValidationResult>)
- Task> ValidateAddress(HttpClient methodClient, List addressToValidate, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (List<AddressValidationResult>)
+ Task>> ValidateAddress(HttpClient methodClient, List addressToValidate, CancellationToken cancellationToken = default);
}
@@ -80,8 +80,8 @@ public partial class ShipEngine
/// Thrown when fails to make API call
/// The only required field is `text`, which is the text to be parsed. You can optionally also provide an `address` containing already-known values. For example, you may already know the recipient's name, city, and country, and only want to parse the street address into separate lines.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ParseAddressResponseBody)
- public Task ParseAddress(ParseAddressRequestBody parseAddressRequestBody, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (ParseAddressResponseBody)
+ public Task> ParseAddress(ParseAddressRequestBody parseAddressRequestBody, CancellationToken cancellationToken = default)
{
return ParseAddress(_client, parseAddressRequestBody, cancellationToken);
}
@@ -94,8 +94,8 @@ public Task ParseAddress(ParseAddressRequestBody parse
/// HttpClient to use for the request
/// The only required field is `text`, which is the text to be parsed. You can optionally also provide an `address` containing already-known values. For example, you may already know the recipient's name, city, and country, and only want to parse the street address into separate lines.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ParseAddressResponseBody)
- public async Task ParseAddress(HttpClient methodClient, ParseAddressRequestBody parseAddressRequestBody, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (ParseAddressResponseBody)
+ public async Task> ParseAddress(HttpClient methodClient, ParseAddressRequestBody parseAddressRequestBody, CancellationToken cancellationToken = default)
{
// verify the required parameter 'parseAddressRequestBody' is set
if (parseAddressRequestBody == null)
@@ -110,9 +110,7 @@ public async Task ParseAddress(HttpClient methodClient
requestOptions.Operation = "AddressesApi.ParseAddress";
- var result = await SendHttpRequestAsync(HttpMethods.Put, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Put, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -122,8 +120,8 @@ public async Task ParseAddress(HttpClient methodClient
/// Thrown when fails to make API call
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (List<AddressValidationResult>)
- public Task> ValidateAddress(List addressToValidate, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (List<AddressValidationResult>)
+ public Task>> ValidateAddress(List addressToValidate, CancellationToken cancellationToken = default)
{
return ValidateAddress(_client, addressToValidate, cancellationToken);
}
@@ -136,8 +134,8 @@ public Task> ValidateAddress(ListHttpClient to use for the request
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (List<AddressValidationResult>)
- public async Task> ValidateAddress(HttpClient methodClient, List addressToValidate, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (List<AddressValidationResult>)
+ public async Task>> ValidateAddress(HttpClient methodClient, List addressToValidate, CancellationToken cancellationToken = default)
{
// verify the required parameter 'addressToValidate' is set
if (addressToValidate == null)
@@ -152,9 +150,7 @@ public async Task> ValidateAddress(HttpClient meth
requestOptions.Operation = "AddressesApi.ValidateAddress";
- var result = await SendHttpRequestAsync>(HttpMethods.Post, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse>(HttpMethods.Post, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
-}
\ No newline at end of file
+}
diff --git a/ShipEngineSDK/Api/BatchesApi.cs b/ShipEngineSDK/Api/BatchesApi.cs
index e388d35a..329dbfee 100644
--- a/ShipEngineSDK/Api/BatchesApi.cs
+++ b/ShipEngineSDK/Api/BatchesApi.cs
@@ -32,8 +32,8 @@ public partial interface IShipEngine
///
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task AddToBatch(AddToBatchRequestBody addToBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> AddToBatch(AddToBatchRequestBody addToBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
///
/// Add to a Batch Add a Shipment or Rate to a Batch
@@ -44,8 +44,8 @@ public partial interface IShipEngine
///
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task AddToBatch(HttpClient methodClient, AddToBatchRequestBody addToBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> AddToBatch(HttpClient methodClient, AddToBatchRequestBody addToBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
///
/// Create A Batch Create a Batch
@@ -54,8 +54,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (CreateBatchResponseBody)
- Task CreateBatch(CreateBatchRequest createBatchRequest, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (CreateBatchResponseBody)
+ Task> CreateBatch(CreateBatchRequest createBatchRequest, CancellationToken cancellationToken = default);
///
/// Create A Batch Create a Batch
@@ -65,8 +65,8 @@ public partial interface IShipEngine
/// HttpClient to use for the request
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (CreateBatchResponseBody)
- Task CreateBatch(HttpClient methodClient, CreateBatchRequest createBatchRequest, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (CreateBatchResponseBody)
+ Task> CreateBatch(HttpClient methodClient, CreateBatchRequest createBatchRequest, CancellationToken cancellationToken = default);
///
/// Delete Batch By Id Delete Batch By Id
@@ -75,8 +75,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task DeleteBatch(string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> DeleteBatch(string batchId, CancellationToken cancellationToken = default);
///
/// Delete Batch By Id Delete Batch By Id
@@ -86,8 +86,8 @@ public partial interface IShipEngine
/// HttpClient to use for the request
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task DeleteBatch(HttpClient methodClient, string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> DeleteBatch(HttpClient methodClient, string batchId, CancellationToken cancellationToken = default);
///
/// Get Batch By External ID Get Batch By External ID
@@ -96,8 +96,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetBatchByExternalIdResponseBody)
- Task GetBatchByExternalId(string externalBatchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (GetBatchByExternalIdResponseBody)
+ Task> GetBatchByExternalId(string externalBatchId, CancellationToken cancellationToken = default);
///
/// Get Batch By External ID Get Batch By External ID
@@ -107,8 +107,8 @@ public partial interface IShipEngine
/// HttpClient to use for the request
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetBatchByExternalIdResponseBody)
- Task GetBatchByExternalId(HttpClient methodClient, string externalBatchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (GetBatchByExternalIdResponseBody)
+ Task> GetBatchByExternalId(HttpClient methodClient, string externalBatchId, CancellationToken cancellationToken = default);
///
/// Get Batch By ID Get Batch By ID
@@ -117,8 +117,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetBatchByIdResponseBody)
- Task GetBatchById(string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (GetBatchByIdResponseBody)
+ Task> GetBatchById(string batchId, CancellationToken cancellationToken = default);
///
/// Get Batch By ID Get Batch By ID
@@ -128,8 +128,8 @@ public partial interface IShipEngine
/// HttpClient to use for the request
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetBatchByIdResponseBody)
- Task GetBatchById(HttpClient methodClient, string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (GetBatchByIdResponseBody)
+ Task> GetBatchById(HttpClient methodClient, string batchId, CancellationToken cancellationToken = default);
///
/// Get Batch Errors Error handling in batches are handled differently than in a single synchronous request. You must retrieve the status of your batch by [getting a batch](https://www.shipengine.com/docs/reference/get-batch-by-id/) and getting an overview of the statuses or you can list errors directly here below to get detailed information about the errors.
@@ -140,8 +140,8 @@ public partial interface IShipEngine
/// (optional)
/// Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. (optional, default to 1)
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListBatchErrorsResponseBody)
- Task ListBatchErrors(string batchId, int? pagesize, int? page, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (ListBatchErrorsResponseBody)
+ Task> ListBatchErrors(string batchId, int? pagesize, int? page, CancellationToken cancellationToken = default);
///
/// Get Batch Errors Error handling in batches are handled differently than in a single synchronous request. You must retrieve the status of your batch by [getting a batch](https://www.shipengine.com/docs/reference/get-batch-by-id/) and getting an overview of the statuses or you can list errors directly here below to get detailed information about the errors.
@@ -153,8 +153,8 @@ public partial interface IShipEngine
/// (optional)
/// Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. (optional, default to 1)
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListBatchErrorsResponseBody)
- Task ListBatchErrors(HttpClient methodClient, string batchId, int? pagesize, int? page, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (ListBatchErrorsResponseBody)
+ Task> ListBatchErrors(HttpClient methodClient, string batchId, int? pagesize, int? page, CancellationToken cancellationToken = default);
///
/// List Batches List Batches associated with your Shipengine account
@@ -168,8 +168,8 @@ public partial interface IShipEngine
/// Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. (optional, default to 1)
/// The number of results to return per response. (optional, default to 25)
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListBatchesResponseBody)
- Task ListBatches(BatchStatus? status, BatchesSortBy? sortBy, SortDir? sortDir, string? batchNumber, int? page, int? pageSize, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (ListBatchesResponseBody)
+ Task> ListBatches(BatchStatus? status, BatchesSortBy? sortBy, SortDir? sortDir, string? batchNumber, int? page, int? pageSize, CancellationToken cancellationToken = default);
///
/// List Batches List Batches associated with your Shipengine account
@@ -184,8 +184,8 @@ public partial interface IShipEngine
/// Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. (optional, default to 1)
/// The number of results to return per response. (optional, default to 25)
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListBatchesResponseBody)
- Task ListBatches(HttpClient methodClient, BatchStatus? status, BatchesSortBy? sortBy, SortDir? sortDir, string? batchNumber, int? page, int? pageSize, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (ListBatchesResponseBody)
+ Task> ListBatches(HttpClient methodClient, BatchStatus? status, BatchesSortBy? sortBy, SortDir? sortDir, string? batchNumber, int? page, int? pageSize, CancellationToken cancellationToken = default);
///
/// Process Batch ID Labels Process Batch ID Labels
@@ -195,8 +195,8 @@ public partial interface IShipEngine
///
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task ProcessBatch(ProcessBatchRequestBody processBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> ProcessBatch(ProcessBatchRequestBody processBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
///
/// Process Batch ID Labels Process Batch ID Labels
@@ -207,8 +207,8 @@ public partial interface IShipEngine
///
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task ProcessBatch(HttpClient methodClient, ProcessBatchRequestBody processBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> ProcessBatch(HttpClient methodClient, ProcessBatchRequestBody processBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
///
/// Remove From Batch Remove a shipment or rate from a batch
@@ -218,8 +218,8 @@ public partial interface IShipEngine
///
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task RemoveFromBatch(RemoveFromBatchRequestBody removeFromBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> RemoveFromBatch(RemoveFromBatchRequestBody removeFromBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
///
/// Remove From Batch Remove a shipment or rate from a batch
@@ -230,8 +230,8 @@ public partial interface IShipEngine
///
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task RemoveFromBatch(HttpClient methodClient, RemoveFromBatchRequestBody removeFromBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> RemoveFromBatch(HttpClient methodClient, RemoveFromBatchRequestBody removeFromBatchRequestBody, string batchId, CancellationToken cancellationToken = default);
///
/// Update Batch By Id Update Batch By Id
@@ -240,8 +240,8 @@ public partial interface IShipEngine
/// Thrown when fails to make API call
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task UpdateBatch(string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> UpdateBatch(string batchId, CancellationToken cancellationToken = default);
///
/// Update Batch By Id Update Batch By Id
@@ -251,8 +251,8 @@ public partial interface IShipEngine
/// HttpClient to use for the request
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- Task UpdateBatch(HttpClient methodClient, string batchId, CancellationToken cancellationToken = default);
+ /// Task of ShipEngineResponse (string)
+ Task> UpdateBatch(HttpClient methodClient, string batchId, CancellationToken cancellationToken = default);
}
@@ -269,8 +269,8 @@ public partial class ShipEngine
///
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- public Task AddToBatch(AddToBatchRequestBody addToBatchRequestBody, string batchId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (string)
+ public Task> AddToBatch(AddToBatchRequestBody addToBatchRequestBody, string batchId, CancellationToken cancellationToken = default)
{
return AddToBatch(_client, addToBatchRequestBody, batchId, cancellationToken);
}
@@ -284,8 +284,8 @@ public Task AddToBatch(AddToBatchRequestBody addToBatchRequestBody, stri
///
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- public async Task AddToBatch(HttpClient methodClient, AddToBatchRequestBody addToBatchRequestBody, string batchId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (string)
+ public async Task> AddToBatch(HttpClient methodClient, AddToBatchRequestBody addToBatchRequestBody, string batchId, CancellationToken cancellationToken = default)
{
// verify the required parameter 'addToBatchRequestBody' is set
if (addToBatchRequestBody == null)
@@ -307,9 +307,7 @@ public async Task AddToBatch(HttpClient methodClient, AddToBatchRequestB
requestOptions.Operation = "BatchesApi.AddToBatch";
- var result = await SendHttpRequestAsync(HttpMethods.Post, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Post, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -319,8 +317,8 @@ public async Task AddToBatch(HttpClient methodClient, AddToBatchRequestB
/// Thrown when fails to make API call
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (CreateBatchResponseBody)
- public Task CreateBatch(CreateBatchRequest createBatchRequest, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (CreateBatchResponseBody)
+ public Task> CreateBatch(CreateBatchRequest createBatchRequest, CancellationToken cancellationToken = default)
{
return CreateBatch(_client, createBatchRequest, cancellationToken);
}
@@ -333,8 +331,8 @@ public Task CreateBatch(CreateBatchRequest createBatchR
/// HttpClient to use for the request
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (CreateBatchResponseBody)
- public async Task CreateBatch(HttpClient methodClient, CreateBatchRequest createBatchRequest, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (CreateBatchResponseBody)
+ public async Task> CreateBatch(HttpClient methodClient, CreateBatchRequest createBatchRequest, CancellationToken cancellationToken = default)
{
// verify the required parameter 'createBatchRequest' is set
if (createBatchRequest == null)
@@ -349,9 +347,7 @@ public async Task CreateBatch(HttpClient methodClient,
requestOptions.Operation = "BatchesApi.CreateBatch";
- var result = await SendHttpRequestAsync(HttpMethods.Post, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Post, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -361,8 +357,8 @@ public async Task CreateBatch(HttpClient methodClient,
/// Thrown when fails to make API call
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- public Task DeleteBatch(string batchId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (string)
+ public Task> DeleteBatch(string batchId, CancellationToken cancellationToken = default)
{
return DeleteBatch(_client, batchId, cancellationToken);
}
@@ -375,8 +371,8 @@ public Task DeleteBatch(string batchId, CancellationToken cancellationTo
/// HttpClient to use for the request
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (string)
- public async Task DeleteBatch(HttpClient methodClient, string batchId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (string)
+ public async Task> DeleteBatch(HttpClient methodClient, string batchId, CancellationToken cancellationToken = default)
{
// verify the required parameter 'batchId' is set
if (batchId == null)
@@ -391,9 +387,7 @@ public async Task DeleteBatch(HttpClient methodClient, string batchId, C
requestOptions.Operation = "BatchesApi.DeleteBatch";
- var result = await SendHttpRequestAsync(HttpMethods.Delete, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Delete, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -403,8 +397,8 @@ public async Task DeleteBatch(HttpClient methodClient, string batchId, C
/// Thrown when fails to make API call
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetBatchByExternalIdResponseBody)
- public Task GetBatchByExternalId(string externalBatchId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (GetBatchByExternalIdResponseBody)
+ public Task> GetBatchByExternalId(string externalBatchId, CancellationToken cancellationToken = default)
{
return GetBatchByExternalId(_client, externalBatchId, cancellationToken);
}
@@ -417,8 +411,8 @@ public Task GetBatchByExternalId(string extern
/// HttpClient to use for the request
///
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetBatchByExternalIdResponseBody)
- public async Task GetBatchByExternalId(HttpClient methodClient, string externalBatchId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (GetBatchByExternalIdResponseBody)
+ public async Task> GetBatchByExternalId(HttpClient methodClient, string externalBatchId, CancellationToken cancellationToken = default)
{
// verify the required parameter 'externalBatchId' is set
if (externalBatchId == null)
@@ -433,9 +427,7 @@ public async Task GetBatchByExternalId(HttpCli
requestOptions.Operation = "BatchesApi.GetBatchByExternalId";
- var result = await SendHttpRequestAsync(HttpMethods.Get, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Get, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -445,8 +437,8 @@ public async Task GetBatchByExternalId(HttpCli
/// Thrown when fails to make API call
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetBatchByIdResponseBody)
- public Task GetBatchById(string batchId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (GetBatchByIdResponseBody)
+ public Task> GetBatchById(string batchId, CancellationToken cancellationToken = default)
{
return GetBatchById(_client, batchId, cancellationToken);
}
@@ -459,8 +451,8 @@ public Task GetBatchById(string batchId, CancellationT
/// HttpClient to use for the request
/// Batch ID
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (GetBatchByIdResponseBody)
- public async Task GetBatchById(HttpClient methodClient, string batchId, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (GetBatchByIdResponseBody)
+ public async Task> GetBatchById(HttpClient methodClient, string batchId, CancellationToken cancellationToken = default)
{
// verify the required parameter 'batchId' is set
if (batchId == null)
@@ -475,9 +467,7 @@ public async Task GetBatchById(HttpClient methodClient
requestOptions.Operation = "BatchesApi.GetBatchById";
- var result = await SendHttpRequestAsync(HttpMethods.Get, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Get, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -489,8 +479,8 @@ public async Task GetBatchById(HttpClient methodClient
/// (optional)
/// Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. (optional, default to 1)
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListBatchErrorsResponseBody)
- public Task ListBatchErrors(string batchId, int? pagesize = default, int? page = default, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (ListBatchErrorsResponseBody)
+ public Task> ListBatchErrors(string batchId, int? pagesize = default, int? page = default, CancellationToken cancellationToken = default)
{
return ListBatchErrors(_client, batchId, pagesize, page, cancellationToken);
}
@@ -505,8 +495,8 @@ public Task ListBatchErrors(string batchId, int? pa
/// (optional)
/// Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. (optional, default to 1)
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListBatchErrorsResponseBody)
- public async Task ListBatchErrors(HttpClient methodClient, string batchId, int? pagesize = default, int? page = default, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (ListBatchErrorsResponseBody)
+ public async Task> ListBatchErrors(HttpClient methodClient, string batchId, int? pagesize = default, int? page = default, CancellationToken cancellationToken = default)
{
// verify the required parameter 'batchId' is set
if (batchId == null)
@@ -529,9 +519,7 @@ public async Task ListBatchErrors(HttpClient method
requestOptions.Operation = "BatchesApi.ListBatchErrors";
- var result = await SendHttpRequestAsync(HttpMethods.Get, requestOptions, methodClient, _config, cancellationToken);
-
- return result;
+ return await GetHttpResponse(HttpMethods.Get, requestOptions.FullPath(), requestOptions.Data, methodClient, _config, cancellationToken);
}
///
@@ -546,8 +534,8 @@ public async Task ListBatchErrors(HttpClient method
/// Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. (optional, default to 1)
/// The number of results to return per response. (optional, default to 25)
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListBatchesResponseBody)
- public Task ListBatches(BatchStatus? status = default, BatchesSortBy? sortBy = default, SortDir? sortDir = default, string? batchNumber = default, int? page = default, int? pageSize = default, CancellationToken cancellationToken = default)
+ /// Task of ShipEngineResponse (ListBatchesResponseBody)
+ public Task> ListBatches(BatchStatus? status = default, BatchesSortBy? sortBy = default, SortDir? sortDir = default, string? batchNumber = default, int? page = default, int? pageSize = default, CancellationToken cancellationToken = default)
{
return ListBatches(_client, status, sortBy, sortDir, batchNumber, page, pageSize, cancellationToken);
}
@@ -565,8 +553,8 @@ public Task ListBatches(BatchStatus? status = default,
/// Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. (optional, default to 1)
/// The number of results to return per response. (optional, default to 25)
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (ListBatchesResponseBody)
- public async Task ListBatches(HttpClient methodClient, BatchStatus? status = default, BatchesSortBy? sortBy = default, SortDir? sortDir = default, string? batchNumber = default, int? page = default, int? pageSize = default, CancellationToken cancellationToken = default)
+ ///