Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate 5.0.0-beta.9 (#26)
Browse files Browse the repository at this point in the history
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.447.0

* write tests to verify shipments paging

* write tests to verify shipments paging

---------

Co-authored-by: speakeasybot <[email protected]>
Co-authored-by: Randall Keur <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent 54b4ec9 commit dbd6843
Show file tree
Hide file tree
Showing 34 changed files with 214 additions and 103 deletions.
26 changes: 14 additions & 12 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
csharp:
version: 5.0.0-beta.8
version: 5.0.0-beta.9
additionalDependencies: []
author: Shippo
clientServerStatusCodesAsErrors: true
Expand Down
15 changes: 8 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
speakeasyVersion: 1.441.0
speakeasyVersion: 1.447.0
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:747d27fc368e3ef531c55d9da0fa5686a41c41560f7c987066214ca3044459c0
sourceBlobDigest: sha256:b267e444289e13e5381eb13cc6671b99c9498b3c6f27111df668633f7ebb7f43
sourceRevisionDigest: sha256:33370e133d3ed110a28d8f54ab74952099de562bdc22dc5386cb760f0fe01b2d
sourceBlobDigest: sha256:8c66d55b10c00886e8fd1f2b6ea6b233bccf17f622fed046dcf302d5da3f91f5
tags:
- latest
- speakeasy-sdk-regen-1731284305
- speakeasy-sdk-regen-1732636811
- "2018-02-08"
targets:
csharp:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:747d27fc368e3ef531c55d9da0fa5686a41c41560f7c987066214ca3044459c0
sourceBlobDigest: sha256:b267e444289e13e5381eb13cc6671b99c9498b3c6f27111df668633f7ebb7f43
sourceRevisionDigest: sha256:33370e133d3ed110a28d8f54ab74952099de562bdc22dc5386cb760f0fe01b2d
sourceBlobDigest: sha256:8c66d55b10c00886e8fd1f2b6ea6b233bccf17f622fed046dcf302d5da3f91f5
codeSamplesNamespace: openapi-code-samples
codeSamplesRevisionDigest: sha256:bdda28778280473412d2b62b2b07df6248e6614029cbe5b0cafaf5b9eb57f890
codeSamplesRevisionDigest: sha256:647654e9271aa56042482d39883ea26ee4daadfc87152727f13dfbf47db42237
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,14 @@ Based on:
### Generated
- [csharp v5.0.0-beta.8] .
### Releases
- [NuGet v5.0.0-beta.8] https://www.nuget.org/packages/Shippo/5.0.0-beta.8 - .
- [NuGet v5.0.0-beta.8] https://www.nuget.org/packages/Shippo/5.0.0-beta.8 - .

## 2024-11-26 16:00:08
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.447.0 (2.463.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v5.0.0-beta.9] .
### Releases
- [NuGet v5.0.0-beta.9] https://www.nuget.org/packages/Shippo/5.0.0-beta.9 - .
6 changes: 3 additions & 3 deletions Shippo/Addresses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public class Addresses: IAddresses
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
17 changes: 8 additions & 9 deletions Shippo/Batches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public interface IBatches
/// For more details on filtering results, see our guide on &lt;a href=&quot;https://docs.goshippo.com/docs/api_concepts/filtering/&quot; target=&quot;blank&quot;&gt; filtering&lt;/a&gt;.
/// </remarks>
/// </summary>
Task<Batch> GetAsync(string batchId, string? shippoApiVersion = null);
Task<Batch> GetAsync(GetBatchRequest request);

/// <summary>
/// Add shipments to a batch
Expand Down Expand Up @@ -111,10 +111,10 @@ public class Batches: IBatches
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down Expand Up @@ -209,13 +209,12 @@ public async Task<Batch> CreateAsync(BatchCreateRequest batchCreateRequest, stri
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

public async Task<Batch> GetAsync(string batchId, string? shippoApiVersion = null)
public async Task<Batch> GetAsync(GetBatchRequest request)
{
var request = new GetBatchRequest()
if (request == null)
{
BatchId = batchId,
ShippoApiVersion = shippoApiVersion,
};
request = new GetBatchRequest();
}
request.ShippoApiVersion ??= SDKConfiguration.ShippoApiVersion;

string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
Expand Down
6 changes: 3 additions & 3 deletions Shippo/CarrierAccounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ public class CarrierAccounts: ICarrierAccounts
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/CarrierParcelTemplates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ public class CarrierParcelTemplates: ICarrierParcelTemplates
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/CustomsDeclarations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public class CustomsDeclarations: ICustomsDeclarations
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/CustomsItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ public class CustomsItems: ICustomsItems
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/Manifests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ public class Manifests: IManifests
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
12 changes: 12 additions & 0 deletions Shippo/Models/Requests/GetBatchRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ public class GetBatchRequest
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=BatchId")]
public string BatchId { get; set; } = default!;

/// <summary>
/// The page number you want to select
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=page")]
public long? Page { get; set; } = 1;

/// <summary>
/// The number of results to return per page (max 100, default 5)
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=results")]
public long? Results { get; set; } = 5;

/// <summary>
/// Optional string used to pick a non-default API version to use. See our &lt;a href=&quot;https://docs.goshippo.com/docs/api_concepts/apiversioning/&quot;&gt;API version&lt;/a&gt; guide.
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions Shippo/Models/Requests/ListShipmentsRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ namespace Shippo.Models.Requests
public class ListShipmentsRequest
{

/// <summary>
/// The page token for paginated results
/// </summary>
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=page_token")]
public string? PageToken { get; set; }

/// <summary>
/// The page number you want to select
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions Shippo/Orders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ public class Orders: IOrders
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/Parcels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ public class Parcels: IParcels
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/Pickups.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public class Pickups: IPickups
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/Rates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ public class Rates: IRates
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/RatesAtCheckout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ public class RatesAtCheckout: IRatesAtCheckout
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/Refunds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ public class Refunds: IRefunds
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/ServiceGroups.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ public class ServiceGroups: IServiceGroups
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/Shipments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ public class Shipments: IShipments
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
2 changes: 1 addition & 1 deletion Shippo/Shippo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Shippo</PackageId>
<Version>5.0.0-beta.8</Version>
<Version>5.0.0-beta.9</Version>
<TargetFramework>net6.0</TargetFramework>
<Authors>Shippo</Authors>
<Copyright>Copyright (c) Shippo 2024</Copyright>
Expand Down
6 changes: 3 additions & 3 deletions Shippo/ShippoAccounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ public class ShippoAccounts: IShippoAccounts
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/ShippoSDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ public class ShippoSDK: IShippoSDK
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "5.0.0-beta.8";
private const string _sdkGenVersion = "2.460.1";
private const string _sdkVersion = "5.0.0-beta.9";
private const string _sdkGenVersion = "2.463.0";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.8 2.460.1 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _client;
Expand Down
Loading

0 comments on commit dbd6843

Please sign in to comment.