Skip to content

Commit 0746395

Browse files
Merge pull request #133 from ShipEngine/update-spec
Update for latest spec 1.1.202603171403
2 parents 5c9b2e4 + bacbfa5 commit 0746395

111 files changed

Lines changed: 4214 additions & 308 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi-generator/FILES

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ ShipEngineSDK/Model/CreateLabelFromRateRequestBody.cs
102102
ShipEngineSDK/Model/CreateLabelFromRateResponseBody.cs
103103
ShipEngineSDK/Model/CreateLabelFromShipmentRequestBody.cs
104104
ShipEngineSDK/Model/CreateLabelFromShipmentResponseBody.cs
105+
ShipEngineSDK/Model/CreateLabelRateShopperRequestBody.cs
106+
ShipEngineSDK/Model/CreateLabelRateShopperResponseBody.cs
105107
ShipEngineSDK/Model/CreateLabelRequestBody.cs
106108
ShipEngineSDK/Model/CreateLabelResponseBody.cs
107109
ShipEngineSDK/Model/CreateManifestByObjectRequestBody.cs
@@ -239,6 +241,7 @@ ShipEngineSDK/Model/ParseShipmentRequestBody.cs
239241
ShipEngineSDK/Model/ParseShipmentResponseBody.cs
240242
ShipEngineSDK/Model/PartialAddress.cs
241243
ShipEngineSDK/Model/PartialShipment.cs
244+
ShipEngineSDK/Model/PartialShipmentForRateShopper.cs
242245
ShipEngineSDK/Model/PartialShippingAddress.cs
243246
ShipEngineSDK/Model/PartialShippingAddressTo.cs
244247
ShipEngineSDK/Model/PartialShippingAddressToGeolocationInner.cs
@@ -251,6 +254,7 @@ ShipEngineSDK/Model/ProcessBatchRequestBody.cs
251254
ShipEngineSDK/Model/Products.cs
252255
ShipEngineSDK/Model/PurchaseLabelWithoutShipment.cs
253256
ShipEngineSDK/Model/Rate.cs
257+
ShipEngineSDK/Model/RateAttributes.cs
254258
ShipEngineSDK/Model/RateDetail.cs
255259
ShipEngineSDK/Model/RateDetailAttributes.cs
256260
ShipEngineSDK/Model/RateDetailType.cs
@@ -268,9 +272,11 @@ ShipEngineSDK/Model/RateResponseStatus.cs
268272
ShipEngineSDK/Model/RateShipmentRequest.cs
269273
ShipEngineSDK/Model/RateType.cs
270274
ShipEngineSDK/Model/RatesInformation.cs
275+
ShipEngineSDK/Model/RatesInformationRatesInner.cs
271276
ShipEngineSDK/Model/ReasonCode.cs
272277
ShipEngineSDK/Model/RecognizedEntity.cs
273278
ShipEngineSDK/Model/Redirect.cs
279+
ShipEngineSDK/Model/RegulatedContentType.cs
274280
ShipEngineSDK/Model/RegulationLevel.cs
275281
ShipEngineSDK/Model/RemoveFromBatchRequestBody.cs
276282
ShipEngineSDK/Model/ResponseMessage.cs
@@ -434,6 +440,8 @@ docs/models/CreateLabelFromRateRequestBody.md
434440
docs/models/CreateLabelFromRateResponseBody.md
435441
docs/models/CreateLabelFromShipmentRequestBody.md
436442
docs/models/CreateLabelFromShipmentResponseBody.md
443+
docs/models/CreateLabelRateShopperRequestBody.md
444+
docs/models/CreateLabelRateShopperResponseBody.md
437445
docs/models/CreateLabelRequestBody.md
438446
docs/models/CreateLabelResponseBody.md
439447
docs/models/CreateManifestByObjectRequestBody.md
@@ -571,6 +579,7 @@ docs/models/ParseShipmentRequestBody.md
571579
docs/models/ParseShipmentResponseBody.md
572580
docs/models/PartialAddress.md
573581
docs/models/PartialShipment.md
582+
docs/models/PartialShipmentForRateShopper.md
574583
docs/models/PartialShippingAddress.md
575584
docs/models/PartialShippingAddressTo.md
576585
docs/models/PartialShippingAddressToGeolocationInner.md
@@ -583,6 +592,7 @@ docs/models/ProcessBatchRequestBody.md
583592
docs/models/Products.md
584593
docs/models/PurchaseLabelWithoutShipment.md
585594
docs/models/Rate.md
595+
docs/models/RateAttributes.md
586596
docs/models/RateDetail.md
587597
docs/models/RateDetailAttributes.md
588598
docs/models/RateDetailType.md
@@ -600,9 +610,11 @@ docs/models/RateResponseStatus.md
600610
docs/models/RateShipmentRequest.md
601611
docs/models/RateType.md
602612
docs/models/RatesInformation.md
613+
docs/models/RatesInformationRatesInner.md
603614
docs/models/ReasonCode.md
604615
docs/models/RecognizedEntity.md
605616
docs/models/Redirect.md
617+
docs/models/RegulatedContentType.md
606618
docs/models/RegulationLevel.md
607619
docs/models/RemoveFromBatchRequestBody.md
608620
docs/models/ResponseMessage.md

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,11 @@ Fixed handling of No Content responses
233233
### Changed
234234

235235
- Extend shipment endpoints to request, create, update and delete estimated import charges.
236+
237+
## 3.2.0
238+
239+
### Changed
240+
241+
- Updated to latest spec
242+
- Fixed serialization so that nullable fields are not required in deserialization,
243+
and not emitted during serialization if they are null.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ var shipengine = new ShipEngine("___YOUR_API_KEY_HERE__");
3535

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

38-
- API version: 1.1.202503131403
39-
- SDK version: 3.0.0
38+
- API version: 1.1.202603171403
39+
- SDK version: 3.1.0
4040
- Generator version: 7.7.0
4141
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
4242
For more information, please visit [https://www.shipengine.com/contact/](https://www.shipengine.com/contact/)
@@ -89,6 +89,7 @@ API | Method | Description
8989
*Labels* | [**CreateCombinedLabelDocument**](docs//apis/LabelsApi.md#createcombinedlabeldocument) | Created Combined Label Document
9090
*Labels* | [**CreateLabel**](docs//apis/LabelsApi.md#createlabel) | Purchase Label
9191
*Labels* | [**CreateLabelFromRate**](docs//apis/LabelsApi.md#createlabelfromrate) | Purchase Label with Rate ID
92+
*Labels* | [**CreateLabelFromRateShopper**](docs//apis/LabelsApi.md#createlabelfromrateshopper) | Purchase Label from Rate Shopper
9293
*Labels* | [**CreateLabelFromShipment**](docs//apis/LabelsApi.md#createlabelfromshipment) | Purchase Label with Shipment ID
9394
*Labels* | [**CreateReturnLabel**](docs//apis/LabelsApi.md#createreturnlabel) | Create a return label
9495
*Labels* | [**GetLabelByExternalShipmentId**](docs//apis/LabelsApi.md#getlabelbyexternalshipmentid) | Get Label By External Shipment ID

ShipEngineSDK/Api/BatchesApi.cs

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,17 @@ public partial interface IShipEngine
163163
/// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
164164
/// <param name="status"> (optional)</param>
165165
/// <param name="sortBy"> (optional)</param>
166+
/// <param name="createdAtStart">Only return batches that were created on or after a specific date/time (optional)</param>
167+
/// <param name="createdAtEnd">Only return batches that were created on or before a specific date/time (optional)</param>
168+
/// <param name="processedAtStart">Only return batches that were processed on or after a specific date/time (optional)</param>
169+
/// <param name="processedAtEnd">Only return batches that were processed on or before a specific date/time (optional)</param>
166170
/// <param name="sortDir">Controls the sort order of the query. (optional)</param>
167171
/// <param name="batchNumber">Batch Number (optional)</param>
168172
/// <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>
169173
/// <param name="pageSize">The number of results to return per response. (optional, default to 25)</param>
170174
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
171175
/// <returns>Task of ApiResponse (ListBatchesResponseBody)</returns>
172-
Task<ListBatchesResponseBody> ListBatches(BatchStatus? status, BatchesSortBy? sortBy, SortDir? sortDir, string? batchNumber, int? page, int? pageSize, CancellationToken cancellationToken = default);
176+
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);
173177

174178
/// <summary>
175179
/// List Batches List Batches associated with your Shipengine account
@@ -179,13 +183,17 @@ public partial interface IShipEngine
179183
/// <param name="methodClient">HttpClient to use for the request</param>
180184
/// <param name="status"> (optional)</param>
181185
/// <param name="sortBy"> (optional)</param>
186+
/// <param name="createdAtStart">Only return batches that were created on or after a specific date/time (optional)</param>
187+
/// <param name="createdAtEnd">Only return batches that were created on or before a specific date/time (optional)</param>
188+
/// <param name="processedAtStart">Only return batches that were processed on or after a specific date/time (optional)</param>
189+
/// <param name="processedAtEnd">Only return batches that were processed on or before a specific date/time (optional)</param>
182190
/// <param name="sortDir">Controls the sort order of the query. (optional)</param>
183191
/// <param name="batchNumber">Batch Number (optional)</param>
184192
/// <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>
185193
/// <param name="pageSize">The number of results to return per response. (optional, default to 25)</param>
186194
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
187195
/// <returns>Task of ApiResponse (ListBatchesResponseBody)</returns>
188-
Task<ListBatchesResponseBody> ListBatches(HttpClient methodClient, BatchStatus? status, BatchesSortBy? sortBy, SortDir? sortDir, string? batchNumber, int? page, int? pageSize, CancellationToken cancellationToken = default);
196+
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);
189197

190198
/// <summary>
191199
/// Process Batch ID Labels Process Batch ID Labels
@@ -541,15 +549,19 @@ public async Task<ListBatchErrorsResponseBody> ListBatchErrors(HttpClient method
541549
/// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
542550
/// <param name="status"> (optional)</param>
543551
/// <param name="sortBy"> (optional)</param>
552+
/// <param name="createdAtStart">Only return batches that were created on or after a specific date/time (optional)</param>
553+
/// <param name="createdAtEnd">Only return batches that were created on or before a specific date/time (optional)</param>
554+
/// <param name="processedAtStart">Only return batches that were processed on or after a specific date/time (optional)</param>
555+
/// <param name="processedAtEnd">Only return batches that were processed on or before a specific date/time (optional)</param>
544556
/// <param name="sortDir">Controls the sort order of the query. (optional)</param>
545557
/// <param name="batchNumber">Batch Number (optional)</param>
546558
/// <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>
547559
/// <param name="pageSize">The number of results to return per response. (optional, default to 25)</param>
548560
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
549561
/// <returns>Task of ApiResponse (ListBatchesResponseBody)</returns>
550-
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)
562+
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)
551563
{
552-
return ListBatches(_client, status, sortBy, sortDir, batchNumber, page, pageSize, cancellationToken);
564+
return ListBatches(_client, status, sortBy, createdAtStart, createdAtEnd, processedAtStart, processedAtEnd, sortDir, batchNumber, page, pageSize, cancellationToken);
553565
}
554566

555567
/// <summary>
@@ -560,13 +572,17 @@ public Task<ListBatchesResponseBody> ListBatches(BatchStatus? status = default,
560572
/// <param name="methodClient">HttpClient to use for the request</param>
561573
/// <param name="status"> (optional)</param>
562574
/// <param name="sortBy"> (optional)</param>
575+
/// <param name="createdAtStart">Only return batches that were created on or after a specific date/time (optional)</param>
576+
/// <param name="createdAtEnd">Only return batches that were created on or before a specific date/time (optional)</param>
577+
/// <param name="processedAtStart">Only return batches that were processed on or after a specific date/time (optional)</param>
578+
/// <param name="processedAtEnd">Only return batches that were processed on or before a specific date/time (optional)</param>
563579
/// <param name="sortDir">Controls the sort order of the query. (optional)</param>
564580
/// <param name="batchNumber">Batch Number (optional)</param>
565581
/// <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>
566582
/// <param name="pageSize">The number of results to return per response. (optional, default to 25)</param>
567583
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
568584
/// <returns>Task of ApiResponse (ListBatchesResponseBody)</returns>
569-
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)
585+
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)
570586
{
571587

572588
RequestOptions requestOptions = new("/v1/batches");
@@ -579,6 +595,22 @@ public async Task<ListBatchesResponseBody> ListBatches(HttpClient methodClient,
579595
{
580596
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "sort_by", sortBy));
581597
}
598+
if (createdAtStart != null)
599+
{
600+
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "created_at_start", createdAtStart));
601+
}
602+
if (createdAtEnd != null)
603+
{
604+
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "created_at_end", createdAtEnd));
605+
}
606+
if (processedAtStart != null)
607+
{
608+
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "processed_at_start", processedAtStart));
609+
}
610+
if (processedAtEnd != null)
611+
{
612+
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "processed_at_end", processedAtEnd));
613+
}
582614
if (sortDir != null)
583615
{
584616
requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "sort_dir", sortDir));

0 commit comments

Comments
 (0)