Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.453.4
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Dec 9, 2024
1 parent dbd6843 commit e5ac0e6
Show file tree
Hide file tree
Showing 32 changed files with 143 additions and 137 deletions.
19 changes: 14 additions & 5 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: 256e7d68eaf807fc9ef86f8311e8a13f
docChecksum: f5fb49c650f0b24e378f83b41c734d6d
docVersion: "2018-02-08"
speakeasyVersion: 1.447.0
generationVersion: 2.463.0
releaseVersion: 5.0.0-beta.9
configChecksum: 3671fecd164d670575a5fadc76984fa8
speakeasyVersion: 1.453.4
generationVersion: 2.474.6
releaseVersion: 5.0.0-beta.10
configChecksum: 7dc9f9bcc95976d1774705d3cd4ae64a
repoURL: https://github.com/goshippo/shippo-csharp-sdk.git
published: true
features:
Expand Down Expand Up @@ -1458,4 +1458,13 @@ examples:
parameters:
path:
webhookId: "<value>"
batch: {}
track:
speakeasy-default-track:
requestBody:
application/json: {"data": {"address_from": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "address_to": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "carrier": "usps", "messages": ["<value>"], "metadata": "Order 000123", "original_eta": "2021-07-23T00:00:00Z", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "tracking_history": [{"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2023-07-25T17:47:12.180Z", "object_id": "<id>", "object_updated": "2023-02-21T22:35:19.645Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": true}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}], "tracking_number": "9205590164917312751089", "tracking_status": {"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2024-05-20T11:37:56.914Z", "object_id": "<id>", "object_updated": "2023-06-07T16:48:30.895Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": true}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}}}
transaction:
speakeasy-default-transaction:
requestBody:
application/json: {"data": {"created_by": {"first_name": "Shwan", "last_name": "Ippotle", "username": "[email protected]"}, "label_file_type": "PDF_4x6", "label_url": "https://shippo-delivery.s3.amazonaws.com/70ae8117ee1749e393f249d5b77c45e0.pdf?Signature=vDw1ltcyGveVR1OQoUDdzC43BY8%3D&Expires=1437093830&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "messages": [], "object_id": "915d94940ea54c3a80cbfa328722f5a1", "object_owner": "[email protected]", "parcel": "e94c7fdfdc7b495dbb390a28d929d90a", "qr_code_url": "https://shippo-delivery.s3.amazonaws.com/96_qr_code.pdf?Signature=PEdWrp0mFWAGwJp7FW3b%2FeA2eyY%3D&Expires=1385930652&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "rate": {"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "provider": "USPS", "carrier_account": "078870331023437cb917f5187429b093", "servicelevel_name": "Priority Mail", "servicelevel_token": "fedex_ground"}, "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"}}
generatedTests: {}
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.9
version: 5.0.0-beta.10
additionalDependencies: []
author: Shippo
clientServerStatusCodesAsErrors: true
Expand Down
18 changes: 9 additions & 9 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.447.0
speakeasyVersion: 1.453.4
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:33370e133d3ed110a28d8f54ab74952099de562bdc22dc5386cb760f0fe01b2d
sourceBlobDigest: sha256:8c66d55b10c00886e8fd1f2b6ea6b233bccf17f622fed046dcf302d5da3f91f5
sourceRevisionDigest: sha256:f7c47b6c84bc07d0c59dd9296e3ca6c9b54f81b6052697cd7a8d1207909d85d2
sourceBlobDigest: sha256:1b88a763bf9a88c705175433cac246f726297ba1d331abf5d03334a6e25e9b89
tags:
- latest
- speakeasy-sdk-regen-1732636811
- speakeasy-sdk-regen-1733098817
- "2018-02-08"
targets:
csharp:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:33370e133d3ed110a28d8f54ab74952099de562bdc22dc5386cb760f0fe01b2d
sourceBlobDigest: sha256:8c66d55b10c00886e8fd1f2b6ea6b233bccf17f622fed046dcf302d5da3f91f5
codeSamplesNamespace: openapi-code-samples
codeSamplesRevisionDigest: sha256:647654e9271aa56042482d39883ea26ee4daadfc87152727f13dfbf47db42237
sourceRevisionDigest: sha256:f7c47b6c84bc07d0c59dd9296e3ca6c9b54f81b6052697cd7a8d1207909d85d2
sourceBlobDigest: sha256:1b88a763bf9a88c705175433cac246f726297ba1d331abf5d03334a6e25e9b89
codeSamplesNamespace: openapi-csharp-code-samples
codeSamplesRevisionDigest: sha256:b97db66366052964aee970194174183c13118eb276056c2cec29b73c766c21d7
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -34,5 +34,5 @@ workflow:
apiKey: $nuget_api_key
codeSamples:
registry:
location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples
location: registry.speakeasyapi.dev/shippo/shippo/openapi-csharp-code-samples
blocking: false
2 changes: 1 addition & 1 deletion .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ targets:
apiKey: $nuget_api_key
codeSamples:
registry:
location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples
location: registry.speakeasyapi.dev/shippo/shippo/openapi-csharp-code-samples
blocking: false
60 changes: 27 additions & 33 deletions NUGET.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,32 @@

### Example

```csharp
using Shippo;
using Shippo.Models.Components;

var sdk = new ShippoSDK(shippoApiVersion: "2018-02-08");

WebhookPayloadBatch req = new WebhookPayloadBatch() {};

await sdk.BatchAsync(req);

// handle response
```
<!-- End SDK Example Usage [usage] -->

<!-- Start Authentication [security] -->
## Authentication

### Per-Client Security Schemes

This SDK supports the following security scheme globally:

| Name | Type | Scheme |
| -------------- | ------ | ------- |
| `APIKeyHeader` | apiKey | API key |

To authenticate with the API the `APIKeyHeader` parameter must be set when initializing the SDK client instance. For example:
```csharp
using Shippo;
using Shippo.Models.Requests;
Expand All @@ -24,7 +50,7 @@ var res = await sdk.Addresses.ListAsync(

// handle response
```
<!-- End SDK Example Usage [usage] -->
<!-- End Authentication [security] -->

<!-- Start Error Handling [errors] -->
## Error Handling
Expand Down Expand Up @@ -127,36 +153,4 @@ var res = await sdk.Addresses.ListAsync(
```
<!-- End Server Selection [server] -->

<!-- Start Authentication [security] -->
## Authentication

### Per-Client Security Schemes

This SDK supports the following security scheme globally:

| Name | Type | Scheme |
| -------------- | ------ | ------- |
| `APIKeyHeader` | apiKey | API key |

To authenticate with the API the `APIKeyHeader` parameter must be set when initializing the SDK client instance. For example:
```csharp
using Shippo;
using Shippo.Models.Requests;
using Shippo.Models.Components;

var sdk = new ShippoSDK(
apiKeyHeader: "<YOUR_API_KEY_HERE>",
shippoApiVersion: "2018-02-08"
);

var res = await sdk.Addresses.ListAsync(
page: 1,
results: 5,
shippoApiVersion: "2018-02-08"
);

// handle response
```
<!-- End Authentication [security] -->

<!-- Placeholder for Future Speakeasy SDK Sections -->
30 changes: 14 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ Shippo external API.: Use this API to integrate with the Shippo service

<!-- Start Table of Contents [toc] -->
## Table of Contents
<!-- $toc-max-depth=2 -->
* [<img src="https://docs.goshippo.com/images/Logo.png" width="30" alt="Shippo logo"> Shippo C# SDK](#img-srchttpsdocsgoshippocomimageslogopng-width30-altshippo-logo-shippo-c-sdk)
* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Custom HTTP Client](#custom-http-client)
* [Documentation](#documentation)
* [Available Resources and Operations](#available-resources-and-operations)
* [Development](#development)
* [Contributions](#contributions)
* [About Shippo](#about-shippo)

* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Authentication](#authentication)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Installation [installation] -->
Expand Down Expand Up @@ -55,19 +59,13 @@ dotnet add reference Shippo/Shippo.csproj

```csharp
using Shippo;
using Shippo.Models.Requests;
using Shippo.Models.Components;

var sdk = new ShippoSDK(
apiKeyHeader: "<YOUR_API_KEY_HERE>",
shippoApiVersion: "2018-02-08"
);
var sdk = new ShippoSDK(shippoApiVersion: "2018-02-08");

var res = await sdk.Addresses.ListAsync(
page: 1,
results: 5,
shippoApiVersion: "2018-02-08"
);
WebhookPayloadBatch req = new WebhookPayloadBatch() {};

await sdk.BatchAsync(req);

// handle response
```
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,14 @@ Based on:
### 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 - .
- [NuGet v5.0.0-beta.9] https://www.nuget.org/packages/Shippo/5.0.0-beta.9 - .

## 2024-12-09 00:20:17
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.453.4 (2.474.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v5.0.0-beta.10] .
### Releases
- [NuGet v5.0.0-beta.10] https://www.nuget.org/packages/Shippo/5.0.0-beta.10 - .
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.9";
private const string _sdkGenVersion = "2.463.0";
private const string _sdkVersion = "5.0.0-beta.10";
private const string _sdkGenVersion = "2.474.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.474.6 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/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.9";
private const string _sdkGenVersion = "2.463.0";
private const string _sdkVersion = "5.0.0-beta.10";
private const string _sdkGenVersion = "2.474.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.474.6 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/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.9";
private const string _sdkGenVersion = "2.463.0";
private const string _sdkVersion = "5.0.0-beta.10";
private const string _sdkGenVersion = "2.474.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.474.6 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.9";
private const string _sdkGenVersion = "2.463.0";
private const string _sdkVersion = "5.0.0-beta.10";
private const string _sdkGenVersion = "2.474.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.474.6 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.9";
private const string _sdkGenVersion = "2.463.0";
private const string _sdkVersion = "5.0.0-beta.10";
private const string _sdkGenVersion = "2.474.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.474.6 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.9";
private const string _sdkGenVersion = "2.463.0";
private const string _sdkVersion = "5.0.0-beta.10";
private const string _sdkGenVersion = "2.474.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.474.6 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.9";
private const string _sdkGenVersion = "2.463.0";
private const string _sdkVersion = "5.0.0-beta.10";
private const string _sdkGenVersion = "2.474.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.474.6 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
3 changes: 0 additions & 3 deletions Shippo/Models/Components/CarriersEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ namespace Shippo.Models.Components
/// | new_zealand_post | New Zealand Post (also used for Pace and CourierPost)|<br/>
/// | nippon_express | Nippon Express|<br/>
/// | ontrac | OnTrac|<br/>
/// | orangeds | OrangeDS|<br/>
/// | parcelforce | Parcelforce|<br/>
/// | passport | Passport|<br/>
/// | pcf | PCF|<br/>
Expand Down Expand Up @@ -170,8 +169,6 @@ public enum CarriersEnum
NipponExpress,
[JsonProperty("ontrac")]
Ontrac,
[JsonProperty("orangeds")]
Orangeds,
[JsonProperty("parcelforce")]
Parcelforce,
[JsonProperty("passport")]
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.9";
private const string _sdkGenVersion = "2.463.0";
private const string _sdkVersion = "5.0.0-beta.10";
private const string _sdkGenVersion = "2.474.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.474.6 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.9";
private const string _sdkGenVersion = "2.463.0";
private const string _sdkVersion = "5.0.0-beta.10";
private const string _sdkGenVersion = "2.474.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.474.6 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.9";
private const string _sdkGenVersion = "2.463.0";
private const string _sdkVersion = "5.0.0-beta.10";
private const string _sdkGenVersion = "2.474.6";
private const string _openapiDocVersion = "2018-02-08";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.474.6 2018-02-08 Shippo";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Shippo.Models.Components.Security>? _securitySource;
Expand Down
Loading

0 comments on commit e5ac0e6

Please sign in to comment.