Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ dockerfile
docker-compose.*

node_modules
out
out
.claude
20 changes: 20 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,14 @@ ShipEngineSDK/Model/CreateAndValidateShipment.cs
ShipEngineSDK/Model/CreateBatchRequest.cs
ShipEngineSDK/Model/CreateBatchRequestBody.cs
ShipEngineSDK/Model/CreateBatchResponseBody.cs
ShipEngineSDK/Model/CreateCombinedLabelDocumentRequestBody.cs
ShipEngineSDK/Model/CreateCombinedLabelDocumentResponseBodyYaml.cs
ShipEngineSDK/Model/CreateLabelFromRateRequestBody.cs
ShipEngineSDK/Model/CreateLabelFromRateResponseBody.cs
ShipEngineSDK/Model/CreateLabelFromShipmentRequestBody.cs
ShipEngineSDK/Model/CreateLabelFromShipmentResponseBody.cs
ShipEngineSDK/Model/CreateLabelRateShopperRequestBody.cs
ShipEngineSDK/Model/CreateLabelRateShopperResponseBody.cs
ShipEngineSDK/Model/CreateLabelRequestBody.cs
ShipEngineSDK/Model/CreateLabelResponseBody.cs
ShipEngineSDK/Model/CreateManifestByObjectRequestBody.cs
Expand All @@ -113,6 +117,7 @@ ShipEngineSDK/Model/CreateReturnLabelResponseBody.cs
ShipEngineSDK/Model/CreateShipmentResponseBodyFields.cs
ShipEngineSDK/Model/CreateShipmentsRequestBody.cs
ShipEngineSDK/Model/CreateShipmentsResponseBody.cs
ShipEngineSDK/Model/CreateTagRequestBody.cs
ShipEngineSDK/Model/CreateTagResponseBody.cs
ShipEngineSDK/Model/CreateWarehouseRequestBody.cs
ShipEngineSDK/Model/CreateWarehouseResponseBody.cs
Expand All @@ -138,6 +143,7 @@ ShipEngineSDK/Model/ErrorSource.cs
ShipEngineSDK/Model/ErrorType.cs
ShipEngineSDK/Model/ErrorWithLabelIdResponseBody.cs
ShipEngineSDK/Model/EstimateRatesRequestBody.cs
ShipEngineSDK/Model/EstimatedImportCharges.cs
ShipEngineSDK/Model/FedexAccountSettings.cs
ShipEngineSDK/Model/FedexAccountSettingsRequestBody.cs
ShipEngineSDK/Model/FedexPickupType.cs
Expand Down Expand Up @@ -235,6 +241,7 @@ ShipEngineSDK/Model/ParseShipmentRequestBody.cs
ShipEngineSDK/Model/ParseShipmentResponseBody.cs
ShipEngineSDK/Model/PartialAddress.cs
ShipEngineSDK/Model/PartialShipment.cs
ShipEngineSDK/Model/PartialShipmentForRateShopper.cs
ShipEngineSDK/Model/PartialShippingAddress.cs
ShipEngineSDK/Model/PartialShippingAddressTo.cs
ShipEngineSDK/Model/PartialShippingAddressToGeolocationInner.cs
Expand All @@ -247,6 +254,7 @@ ShipEngineSDK/Model/ProcessBatchRequestBody.cs
ShipEngineSDK/Model/Products.cs
ShipEngineSDK/Model/PurchaseLabelWithoutShipment.cs
ShipEngineSDK/Model/Rate.cs
ShipEngineSDK/Model/RateAttributes.cs
ShipEngineSDK/Model/RateDetail.cs
ShipEngineSDK/Model/RateDetailAttributes.cs
ShipEngineSDK/Model/RateDetailType.cs
Expand All @@ -264,9 +272,11 @@ ShipEngineSDK/Model/RateResponseStatus.cs
ShipEngineSDK/Model/RateShipmentRequest.cs
ShipEngineSDK/Model/RateType.cs
ShipEngineSDK/Model/RatesInformation.cs
ShipEngineSDK/Model/RatesInformationRatesInner.cs
ShipEngineSDK/Model/ReasonCode.cs
ShipEngineSDK/Model/RecognizedEntity.cs
ShipEngineSDK/Model/Redirect.cs
ShipEngineSDK/Model/RegulatedContentType.cs
ShipEngineSDK/Model/RegulationLevel.cs
ShipEngineSDK/Model/RemoveFromBatchRequestBody.cs
ShipEngineSDK/Model/ResponseMessage.cs
Expand Down Expand Up @@ -424,10 +434,14 @@ docs/models/CreateAndValidateShipment.md
docs/models/CreateBatchRequest.md
docs/models/CreateBatchRequestBody.md
docs/models/CreateBatchResponseBody.md
docs/models/CreateCombinedLabelDocumentRequestBody.md
docs/models/CreateCombinedLabelDocumentResponseBodyYaml.md
docs/models/CreateLabelFromRateRequestBody.md
docs/models/CreateLabelFromRateResponseBody.md
docs/models/CreateLabelFromShipmentRequestBody.md
docs/models/CreateLabelFromShipmentResponseBody.md
docs/models/CreateLabelRateShopperRequestBody.md
docs/models/CreateLabelRateShopperResponseBody.md
docs/models/CreateLabelRequestBody.md
docs/models/CreateLabelResponseBody.md
docs/models/CreateManifestByObjectRequestBody.md
Expand All @@ -441,6 +455,7 @@ docs/models/CreateReturnLabelResponseBody.md
docs/models/CreateShipmentResponseBodyFields.md
docs/models/CreateShipmentsRequestBody.md
docs/models/CreateShipmentsResponseBody.md
docs/models/CreateTagRequestBody.md
docs/models/CreateTagResponseBody.md
docs/models/CreateWarehouseRequestBody.md
docs/models/CreateWarehouseResponseBody.md
Expand All @@ -466,6 +481,7 @@ docs/models/ErrorSource.md
docs/models/ErrorType.md
docs/models/ErrorWithLabelIdResponseBody.md
docs/models/EstimateRatesRequestBody.md
docs/models/EstimatedImportCharges.md
docs/models/FedexAccountSettings.md
docs/models/FedexAccountSettingsRequestBody.md
docs/models/FedexPickupType.md
Expand Down Expand Up @@ -563,6 +579,7 @@ docs/models/ParseShipmentRequestBody.md
docs/models/ParseShipmentResponseBody.md
docs/models/PartialAddress.md
docs/models/PartialShipment.md
docs/models/PartialShipmentForRateShopper.md
docs/models/PartialShippingAddress.md
docs/models/PartialShippingAddressTo.md
docs/models/PartialShippingAddressToGeolocationInner.md
Expand All @@ -575,6 +592,7 @@ docs/models/ProcessBatchRequestBody.md
docs/models/Products.md
docs/models/PurchaseLabelWithoutShipment.md
docs/models/Rate.md
docs/models/RateAttributes.md
docs/models/RateDetail.md
docs/models/RateDetailAttributes.md
docs/models/RateDetailType.md
Expand All @@ -592,9 +610,11 @@ docs/models/RateResponseStatus.md
docs/models/RateShipmentRequest.md
docs/models/RateType.md
docs/models/RatesInformation.md
docs/models/RatesInformationRatesInner.md
docs/models/ReasonCode.md
docs/models/RecognizedEntity.md
docs/models/Redirect.md
docs/models/RegulatedContentType.md
docs/models/RegulationLevel.md
docs/models/RemoveFromBatchRequestBody.md
docs/models/ResponseMessage.md
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var shipengine = new ShipEngine("___YOUR_API_KEY_HERE__");

This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.1.202501091801
- API version: 1.1.202603171403
- SDK version: 3.0.0
- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
Expand Down Expand Up @@ -86,8 +86,10 @@ API | Method | Description
*Insurance* | [**ConnectInsurer**](docs//apis/InsuranceApi.md#connectinsurer) | Connect a Shipsurance Account
*Insurance* | [**DisconnectInsurer**](docs//apis/InsuranceApi.md#disconnectinsurer) | Disconnect a Shipsurance Account
*Insurance* | [**GetInsuranceBalance**](docs//apis/InsuranceApi.md#getinsurancebalance) | Get Insurance Funds Balance
*Labels* | [**CreateCombinedLabelDocument**](docs//apis/LabelsApi.md#createcombinedlabeldocument) | Created Combined Label Document
*Labels* | [**CreateLabel**](docs//apis/LabelsApi.md#createlabel) | Purchase Label
*Labels* | [**CreateLabelFromRate**](docs//apis/LabelsApi.md#createlabelfromrate) | Purchase Label with Rate ID
*Labels* | [**CreateLabelFromRateShopper**](docs//apis/LabelsApi.md#createlabelfromrateshopper) | Purchase Label from Rate Shopper
*Labels* | [**CreateLabelFromShipment**](docs//apis/LabelsApi.md#createlabelfromshipment) | Purchase Label with Shipment ID
*Labels* | [**CreateReturnLabel**](docs//apis/LabelsApi.md#createreturnlabel) | Create a return label
*Labels* | [**GetLabelByExternalShipmentId**](docs//apis/LabelsApi.md#getlabelbyexternalshipmentid) | Get Label By External Shipment ID
Expand Down Expand Up @@ -127,6 +129,7 @@ API | Method | Description
*Shipments* | [**UntagShipment**](docs//apis/ShipmentsApi.md#untagshipment) | Remove Tag from Shipment
*Shipments* | [**UpdateShipment**](docs//apis/ShipmentsApi.md#updateshipment) | Update Shipment By ID
*Tags* | [**CreateTag**](docs//apis/TagsApi.md#createtag) | Create a New Tag
*Tags* | [**CreateTag_0**](docs//apis/TagsApi.md#createtag_0) | Create a New Tag
*Tags* | [**DeleteTag**](docs//apis/TagsApi.md#deletetag) | Delete Tag
*Tags* | [**ListTags**](docs//apis/TagsApi.md#listtags) | Get Tags
*Tags* | [**RenameTag**](docs//apis/TagsApi.md#renametag) | Update Tag Name
Expand Down
42 changes: 37 additions & 5 deletions ShipEngineSDK/Api/BatchesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,17 @@
/// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
/// <param name="status"> (optional)</param>
/// <param name="sortBy"> (optional)</param>
/// <param name="createdAtStart">Only return batches that were created on or after a specific date/time (optional)</param>
/// <param name="createdAtEnd">Only return batches that were created on or before a specific date/time (optional)</param>
/// <param name="processedAtStart">Only return batches that were processed on or after a specific date/time (optional)</param>
/// <param name="processedAtEnd">Only return batches that were processed on or before a specific date/time (optional)</param>
/// <param name="sortDir">Controls the sort order of the query. (optional)</param>
/// <param name="batchNumber">Batch Number (optional)</param>
/// <param name="page">Return a specific page of results. Defaults to the first page. If set to a number that&#39;s greater than the number of pages of results, an empty page is returned. (optional, default to 1)</param>
/// <param name="pageSize">The number of results to return per response. (optional, default to 25)</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (ListBatchesResponseBody)</returns>
Task<ListBatchesResponseBody> ListBatches(BatchStatus? status, BatchesSortBy? sortBy, SortDir? sortDir, string? batchNumber, int? page, int? pageSize, CancellationToken cancellationToken = default);
Task<ListBatchesResponseBody> ListBatches(BatchStatus? status, BatchesSortBy? sortBy, DateTimeOffset? createdAtStart, DateTimeOffset? createdAtEnd, DateTimeOffset? processedAtStart, DateTimeOffset? processedAtEnd, SortDir? sortDir, string? batchNumber, int? page, int? pageSize, CancellationToken cancellationToken = default);

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 176 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

/// <summary>
/// List Batches List Batches associated with your Shipengine account
Expand All @@ -179,13 +183,17 @@
/// <param name="methodClient">HttpClient to use for the request</param>
/// <param name="status"> (optional)</param>
/// <param name="sortBy"> (optional)</param>
/// <param name="createdAtStart">Only return batches that were created on or after a specific date/time (optional)</param>
/// <param name="createdAtEnd">Only return batches that were created on or before a specific date/time (optional)</param>
/// <param name="processedAtStart">Only return batches that were processed on or after a specific date/time (optional)</param>
/// <param name="processedAtEnd">Only return batches that were processed on or before a specific date/time (optional)</param>
/// <param name="sortDir">Controls the sort order of the query. (optional)</param>
/// <param name="batchNumber">Batch Number (optional)</param>
/// <param name="page">Return a specific page of results. Defaults to the first page. If set to a number that&#39;s greater than the number of pages of results, an empty page is returned. (optional, default to 1)</param>
/// <param name="pageSize">The number of results to return per response. (optional, default to 25)</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (ListBatchesResponseBody)</returns>
Task<ListBatchesResponseBody> ListBatches(HttpClient methodClient, BatchStatus? status, BatchesSortBy? sortBy, SortDir? sortDir, string? batchNumber, int? page, int? pageSize, CancellationToken cancellationToken = default);
Task<ListBatchesResponseBody> ListBatches(HttpClient methodClient, BatchStatus? status, BatchesSortBy? sortBy, DateTimeOffset? createdAtStart, DateTimeOffset? createdAtEnd, DateTimeOffset? processedAtStart, DateTimeOffset? processedAtEnd, SortDir? sortDir, string? batchNumber, int? page, int? pageSize, CancellationToken cancellationToken = default);

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Check warning on line 196 in ShipEngineSDK/Api/BatchesApi.cs

View workflow job for this annotation

GitHub Actions / .Net 8.0 on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

/// <summary>
/// Process Batch ID Labels Process Batch ID Labels
Expand Down Expand Up @@ -541,15 +549,19 @@
/// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
/// <param name="status"> (optional)</param>
/// <param name="sortBy"> (optional)</param>
/// <param name="createdAtStart">Only return batches that were created on or after a specific date/time (optional)</param>
/// <param name="createdAtEnd">Only return batches that were created on or before a specific date/time (optional)</param>
/// <param name="processedAtStart">Only return batches that were processed on or after a specific date/time (optional)</param>
/// <param name="processedAtEnd">Only return batches that were processed on or before a specific date/time (optional)</param>
/// <param name="sortDir">Controls the sort order of the query. (optional)</param>
/// <param name="batchNumber">Batch Number (optional)</param>
/// <param name="page">Return a specific page of results. Defaults to the first page. If set to a number that&#39;s greater than the number of pages of results, an empty page is returned. (optional, default to 1)</param>
/// <param name="pageSize">The number of results to return per response. (optional, default to 25)</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (ListBatchesResponseBody)</returns>
public Task<ListBatchesResponseBody> ListBatches(BatchStatus? status = default, BatchesSortBy? sortBy = default, SortDir? sortDir = default, string? batchNumber = default, int? page = default, int? pageSize = default, CancellationToken cancellationToken = default)
public Task<ListBatchesResponseBody> ListBatches(BatchStatus? status = default, BatchesSortBy? sortBy = default, DateTimeOffset? createdAtStart = default, DateTimeOffset? createdAtEnd = default, DateTimeOffset? processedAtStart = default, DateTimeOffset? processedAtEnd = 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);
return ListBatches(_client, status, sortBy, createdAtStart, createdAtEnd, processedAtStart, processedAtEnd, sortDir, batchNumber, page, pageSize, cancellationToken);
}

/// <summary>
Expand All @@ -560,13 +572,17 @@
/// <param name="methodClient">HttpClient to use for the request</param>
/// <param name="status"> (optional)</param>
/// <param name="sortBy"> (optional)</param>
/// <param name="createdAtStart">Only return batches that were created on or after a specific date/time (optional)</param>
/// <param name="createdAtEnd">Only return batches that were created on or before a specific date/time (optional)</param>
/// <param name="processedAtStart">Only return batches that were processed on or after a specific date/time (optional)</param>
/// <param name="processedAtEnd">Only return batches that were processed on or before a specific date/time (optional)</param>
/// <param name="sortDir">Controls the sort order of the query. (optional)</param>
/// <param name="batchNumber">Batch Number (optional)</param>
/// <param name="page">Return a specific page of results. Defaults to the first page. If set to a number that&#39;s greater than the number of pages of results, an empty page is returned. (optional, default to 1)</param>
/// <param name="pageSize">The number of results to return per response. (optional, default to 25)</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (ListBatchesResponseBody)</returns>
public async Task<ListBatchesResponseBody> ListBatches(HttpClient methodClient, BatchStatus? status = default, BatchesSortBy? sortBy = default, SortDir? sortDir = default, string? batchNumber = default, int? page = default, int? pageSize = default, CancellationToken cancellationToken = default)
public async Task<ListBatchesResponseBody> ListBatches(HttpClient methodClient, BatchStatus? status = default, BatchesSortBy? sortBy = default, DateTimeOffset? createdAtStart = default, DateTimeOffset? createdAtEnd = default, DateTimeOffset? processedAtStart = default, DateTimeOffset? processedAtEnd = default, SortDir? sortDir = default, string? batchNumber = default, int? page = default, int? pageSize = default, CancellationToken cancellationToken = default)
{

RequestOptions requestOptions = new("/v1/batches");
Expand All @@ -579,6 +595,22 @@
{
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "sort_by", sortBy));
}
if (createdAtStart != null)
{
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "created_at_start", createdAtStart));
}
if (createdAtEnd != null)
{
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "created_at_end", createdAtEnd));
}
if (processedAtStart != null)
{
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "processed_at_start", processedAtStart));
}
if (processedAtEnd != null)
{
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "processed_at_end", processedAtEnd));
}
if (sortDir != null)
{
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "sort_dir", sortDir));
Expand Down
Loading
Loading