Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.327.0 (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
shippo-sdks[bot] and speakeasybot authored Jul 8, 2024
1 parent 9c3851f commit 42ee7de
Show file tree
Hide file tree
Showing 65 changed files with 537 additions and 235 deletions.
19 changes: 13 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 24fc7546-e445-46cb-91d2-49cbb44a86ac
management:
docChecksum: 41c0262ad846794c25bcac117519320e
docChecksum: 850c0347c21c750cc8eb3f72361a24af
docVersion: "2018-02-08"
speakeasyVersion: 1.314.2
generationVersion: 2.349.6
releaseVersion: 5.0.0-beta.2
configChecksum: 9842347bd30bb5b594a1ae4010a10d0d
speakeasyVersion: 1.327.0
generationVersion: 2.359.6
releaseVersion: 5.0.0-beta.3
configChecksum: fd36f786bd7347a20012813f711541d3
repoURL: https://github.com/goshippo/shippo-csharp-sdk.git
published: true
features:
Expand All @@ -26,7 +26,8 @@ features:
nullables: 0.1.0
responseFormat: 0.0.4
sdkHooks: 0.1.0
unions: 0.1.0
unions: 0.1.1
webhooks: 1.0.0
generatedFiles:
- Shippo/Addresses.cs
- Shippo/Batches.cs
Expand Down Expand Up @@ -275,6 +276,9 @@ generatedFiles:
- Shippo/Models/Components/WebhookEventTypeEnum.cs
- Shippo/Models/Components/WebhookPaginatedList.cs
- Shippo/Models/Components/Security.cs
- Shippo/Models/Components/WebhookPayloadBatch.cs
- Shippo/Models/Components/WebhookPayloadTrack.cs
- Shippo/Models/Components/WebhookPayloadTransaction.cs
- Shippo/Models/Components/AddressValidationResultsMessageCodeEnum.cs
- Shippo/Models/Components/AddressValidationResultsMessageSourceEnum.cs
- Shippo/Models/Components/ServiceLevel.cs
Expand Down Expand Up @@ -602,6 +606,9 @@ generatedFiles:
- docs/Models/Components/WebhookEventTypeEnum.md
- docs/Models/Components/WebhookPaginatedList.md
- docs/Models/Components/Security.md
- docs/Models/Components/WebhookPayloadBatch.md
- docs/Models/Components/WebhookPayloadTrack.md
- docs/Models/Components/WebhookPayloadTransaction.md
- docs/Models/Components/AddressValidationResultsMessageCodeEnum.md
- docs/Models/Components/AddressValidationResultsMessageSourceEnum.md
- docs/Models/Components/ServiceLevel.md
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
csharp:
version: 5.0.0-beta.2
version: 5.0.0-beta.3
additionalDependencies: []
author: Shippo
clientServerStatusCodesAsErrors: true
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.308.1
speakeasyVersion: 1.327.0
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:0973633772cf0bf48055466a6ae9774683ec5f2c63680c9b6a2feadd38a476f3
sourceBlobDigest: sha256:97e758606963b80e9be3344ab97898c57664129782e9744932ca9acbe3464876
sourceRevisionDigest: sha256:ff8f6e30ace61500192f7a52037b594a791d90c63f3a3ac697c0cfb62696fcf9
sourceBlobDigest: sha256:b67139437deca4054a3aea9ed667bdad37fc1579c4d0fae56449c3a0268f0415
tags:
- latest
- main
targets:
csharp:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:0973633772cf0bf48055466a6ae9774683ec5f2c63680c9b6a2feadd38a476f3
sourceBlobDigest: sha256:97e758606963b80e9be3344ab97898c57664129782e9744932ca9acbe3464876
sourceRevisionDigest: sha256:ff8f6e30ace61500192f7a52037b594a791d90c63f3a3ac697c0cfb62696fcf9
sourceBlobDigest: sha256:b67139437deca4054a3aea9ed667bdad37fc1579c4d0fae56449c3a0268f0415
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ Based on:
### Generated
- [csharp v5.0.0-beta.2] .
### Releases
- [NuGet v5.0.0-beta.2] https://www.nuget.org/packages/Shippo/5.0.0-beta.2 - .
- [NuGet v5.0.0-beta.2] https://www.nuget.org/packages/Shippo/5.0.0-beta.2 - .

## 2024-07-08 17:08:22
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.327.0 (2.359.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v5.0.0-beta.3] .
### Releases
- [NuGet v5.0.0-beta.3] https://www.nuget.org/packages/Shippo/5.0.0-beta.3 - .
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.2";
private const string _sdkGenVersion = "2.349.6";
private const string _sdkVersion = "5.0.0-beta.3";
private const string _sdkGenVersion = "2.359.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.2 2.349.6 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.3 2.359.6 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
6 changes: 3 additions & 3 deletions Shippo/Batches.cs
Original file line number Diff line number Diff line change
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.2";
private const string _sdkGenVersion = "2.349.6";
private const string _sdkVersion = "5.0.0-beta.3";
private const string _sdkGenVersion = "2.359.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.2 2.349.6 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.3 2.359.6 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
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.2";
private const string _sdkGenVersion = "2.349.6";
private const string _sdkVersion = "5.0.0-beta.3";
private const string _sdkGenVersion = "2.359.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.2 2.349.6 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.3 2.359.6 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
14 changes: 10 additions & 4 deletions Shippo/CarrierParcelTemplates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ public interface ICarrierParcelTemplates
/// List all carrier parcel templates
///
/// <remarks>
/// List all carrier parcel template objects. &lt;br&gt; Use the following query string params to filter the results as needed. &lt;br&gt; &lt;ul&gt; &lt;li&gt;`include=all` (the default). Includes templates from all carriers &lt;/li&gt; &lt;li&gt;`include=user`. Includes templates only from carriers which the user has added (whether or not they&apos;re currently enabled) &lt;/li&gt; &lt;li&gt;`include=enabled`. includes templates only for carriers which the user has added and enabled &lt;/li&gt; &lt;li&gt;`carrier=*token*`. filter by specific carrier, e.g. fedex, usps &lt;/li&gt; &lt;/ul&gt;
/// List all carrier parcel template objects. &lt;br&gt; Use the following query string params to filter the results as needed. &lt;br&gt;<br/>
/// &lt;ul&gt;<br/>
/// &lt;li&gt;`include=all` (the default). Includes templates from all carriers &lt;/li&gt;<br/>
/// &lt;li&gt;`include=user`. Includes templates only from carriers which the user has added (whether or not they&apos;re currently enabled) &lt;/li&gt;<br/>
/// &lt;li&gt;`include=enabled`. includes templates only for carriers which the user has added and enabled &lt;/li&gt;<br/>
/// &lt;li&gt;`carrier=*token*`. filter by specific carrier, e.g. fedex, usps &lt;/li&gt;<br/>
/// &lt;/ul&gt;
/// </remarks>
/// </summary>
Task<CarrierParcelTemplateList> ListAsync(Include? include = null, string? carrier = null, string? shippoApiVersion = null);
Expand All @@ -64,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.2";
private const string _sdkGenVersion = "2.349.6";
private const string _sdkVersion = "5.0.0-beta.3";
private const string _sdkGenVersion = "2.359.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.2 2.349.6 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.3 2.359.6 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<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.2";
private const string _sdkGenVersion = "2.349.6";
private const string _sdkVersion = "5.0.0-beta.3";
private const string _sdkGenVersion = "2.359.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.2 2.349.6 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.3 2.359.6 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<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.2";
private const string _sdkGenVersion = "2.349.6";
private const string _sdkVersion = "5.0.0-beta.3";
private const string _sdkGenVersion = "2.359.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.2 2.349.6 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.3 2.359.6 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<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.2";
private const string _sdkGenVersion = "2.349.6";
private const string _sdkVersion = "5.0.0-beta.3";
private const string _sdkGenVersion = "2.359.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.2 2.349.6 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.3 2.359.6 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
2 changes: 1 addition & 1 deletion Shippo/Models/Components/CarrierParcelTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CarrierParcelTemplate
/// True if the carrier parcel template allows custom dimensions, such as USPS Softpack.
/// </summary>
[JsonProperty("is_variable_dimensions")]
public string? IsVariableDimensions { get; set; }
public bool? IsVariableDimensions { get; set; }

/// <summary>
/// The length of the package, in units specified by the distance_unit attribute
Expand Down
8 changes: 7 additions & 1 deletion Shippo/Models/Components/Insurance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ namespace Shippo.Models.Components
using Shippo.Utils;

/// <summary>
/// To add 3rd party insurance powered by &lt;a href=&quot;https://docs.goshippo.com/docs/shipments/shippinginsurance/&quot;&gt;XCover&lt;/a&gt;, specify &lt;br&gt; `amount`, `content`, and `currency`. &lt;br&gt; Alternatively, you can choose carrier provided insurance by additionally specifying `provider` (UPS, FedEx and OnTrac only). &lt;br&gt;&lt;br&gt; If you do not want to add insurance to you shipment, do not set these parameters.
/// To add 3rd party insurance powered by &lt;a href=&quot;https://docs.goshippo.com/docs/shipments/shippinginsurance/&quot;&gt;XCover&lt;/a&gt;, <br/>
///
/// <remarks>
/// specify &lt;br&gt; `amount`, `content`, and `currency`. &lt;br&gt; Alternatively, you can choose carrier provided insurance <br/>
/// by additionally specifying `provider` (UPS, FedEx and OnTrac only). &lt;br&gt;&lt;br&gt; If you do not want to add insurance <br/>
/// to your shipment, do not set these parameters.
/// </remarks>
/// </summary>
public class Insurance
{
Expand Down
15 changes: 13 additions & 2 deletions Shippo/Models/Components/ServiceGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ public class ServiceGroup
public string? FreeShippingThresholdCurrency { get; set; }

/// <summary>
/// For service groups of type `FREE_SHIPPING`, this field must be required to configure the minimum cart total (total cost of items in the cart) for this service group to be returned for rates at checkout. Optional unless type is `FREE_SHIPPING`
/// For service groups of type `FREE_SHIPPING`, this field must be required to configure the minimum <br/>
///
/// <remarks>
/// cart total (total cost of items in the cart) for this service group to be returned for rates at <br/>
/// checkout. Optional unless type is `FREE_SHIPPING`
/// </remarks>
/// </summary>
[JsonProperty("free_shipping_threshold_min")]
public string? FreeShippingThresholdMin { get; set; }
Expand All @@ -67,7 +72,13 @@ public class ServiceGroup
public long? RateAdjustment { get; set; }

/// <summary>
/// The type of the service group.&lt;br&gt; `LIVE_RATE` - Shippo will make a rating request and return real-time rates for the shipping group, only falling back to the specified flat rate amount if no rates match a service level in the service group.&lt;br&gt; `FLAT_RATE` - Returns a shipping option with the specified flat rate amount.&lt;br&gt; `FREE_SHIPPING` - Returns a shipping option with a price of $0 only if the total cost of items exceeds the amount defined by `free_shipping_threshold_min`
/// The type of the service group.&lt;br&gt; <br/>
///
/// <remarks>
/// `LIVE_RATE` - Shippo will make a rating request and return real-time rates for the shipping group, only falling back to the specified flat rate amount if no rates match a service level in the service group.&lt;br&gt; <br/>
/// `FLAT_RATE` - Returns a shipping option with the specified flat rate amount.&lt;br&gt; <br/>
/// `FREE_SHIPPING` - Returns a shipping option with a price of $0 only if the total cost of items exceeds the amount defined by `free_shipping_threshold_min`
/// </remarks>
/// </summary>
[JsonProperty("type")]
public ServiceGroupTypeEnum Type { get; set; } = default!;
Expand Down
15 changes: 13 additions & 2 deletions Shippo/Models/Components/ServiceGroupCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ public class ServiceGroupCreateRequest
public string? FreeShippingThresholdCurrency { get; set; }

/// <summary>
/// For service groups of type `FREE_SHIPPING`, this field must be required to configure the minimum cart total (total cost of items in the cart) for this service group to be returned for rates at checkout. Optional unless type is `FREE_SHIPPING`
/// For service groups of type `FREE_SHIPPING`, this field must be required to configure the minimum <br/>
///
/// <remarks>
/// cart total (total cost of items in the cart) for this service group to be returned for rates at <br/>
/// checkout. Optional unless type is `FREE_SHIPPING`
/// </remarks>
/// </summary>
[JsonProperty("free_shipping_threshold_min")]
public string? FreeShippingThresholdMin { get; set; }
Expand All @@ -67,7 +72,13 @@ public class ServiceGroupCreateRequest
public long? RateAdjustment { get; set; }

/// <summary>
/// The type of the service group.&lt;br&gt; `LIVE_RATE` - Shippo will make a rating request and return real-time rates for the shipping group, only falling back to the specified flat rate amount if no rates match a service level in the service group.&lt;br&gt; `FLAT_RATE` - Returns a shipping option with the specified flat rate amount.&lt;br&gt; `FREE_SHIPPING` - Returns a shipping option with a price of $0 only if the total cost of items exceeds the amount defined by `free_shipping_threshold_min`
/// The type of the service group.&lt;br&gt; <br/>
///
/// <remarks>
/// `LIVE_RATE` - Shippo will make a rating request and return real-time rates for the shipping group, only falling back to the specified flat rate amount if no rates match a service level in the service group.&lt;br&gt; <br/>
/// `FLAT_RATE` - Returns a shipping option with the specified flat rate amount.&lt;br&gt; <br/>
/// `FREE_SHIPPING` - Returns a shipping option with a price of $0 only if the total cost of items exceeds the amount defined by `free_shipping_threshold_min`
/// </remarks>
/// </summary>
[JsonProperty("type")]
public ServiceGroupTypeEnum Type { get; set; } = default!;
Expand Down
8 changes: 7 additions & 1 deletion Shippo/Models/Components/ServiceGroupTypeEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ namespace Shippo.Models.Components
using System;

/// <summary>
/// The type of the service group.&lt;br&gt; `LIVE_RATE` - Shippo will make a rating request and return real-time rates for the shipping group, only falling back to the specified flat rate amount if no rates match a service level in the service group.&lt;br&gt; `FLAT_RATE` - Returns a shipping option with the specified flat rate amount.&lt;br&gt; `FREE_SHIPPING` - Returns a shipping option with a price of $0 only if the total cost of items exceeds the amount defined by `free_shipping_threshold_min`
/// The type of the service group.&lt;br&gt; <br/>
///
/// <remarks>
/// `LIVE_RATE` - Shippo will make a rating request and return real-time rates for the shipping group, only falling back to the specified flat rate amount if no rates match a service level in the service group.&lt;br&gt; <br/>
/// `FLAT_RATE` - Returns a shipping option with the specified flat rate amount.&lt;br&gt; <br/>
/// `FREE_SHIPPING` - Returns a shipping option with a price of $0 only if the total cost of items exceeds the amount defined by `free_shipping_threshold_min`
/// </remarks>
/// </summary>
public enum ServiceGroupTypeEnum
{
Expand Down
Loading

0 comments on commit 42ee7de

Please sign in to comment.