Skip to content

Commit 1888a34

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.446.0
1 parent 21a36fc commit 1888a34

21 files changed

+187
-92
lines changed

.speakeasy/gen.lock

+29-25
Large diffs are not rendered by default.

.speakeasy/gen.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ generation:
1111
requestResponseComponentNamesFeb2024: true
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
14+
oAuth2PasswordEnabled: false
1415
csharp:
15-
version: 0.3.0
16+
version: 0.4.0
1617
additionalDependencies: []
1718
author: Speakeasy
1819
clientServerStatusCodesAsErrors: true
20+
defaultErrorName: SDKException
1921
disableNamespacePascalCasingApr2024: true
2022
dotnetVersion: net8.0
2123
enableSourceLink: false
2224
flattenGlobalSecurity: true
25+
flatteningOrder: ""
2326
imports:
2427
option: openapi
2528
paths:
@@ -31,6 +34,7 @@ csharp:
3134
includeDebugSymbols: false
3235
inputModelSuffix: input
3336
maxMethodParams: 4
37+
methodArguments: infer-optional-args
3438
outputModelSuffix: output
3539
packageName: Boltpay.SDK
3640
packageTags: ""

.speakeasy/workflow.lock

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
speakeasyVersion: 1.421.2
1+
speakeasyVersion: 1.446.0
22
sources:
33
bolt-csharp-api:
44
sourceNamespace: bolt-csharp-api
5-
sourceRevisionDigest: sha256:e6d1652183b280c58d60fd08b6c61af949eedae16c2132d08f6c24654f2e12d0
6-
sourceBlobDigest: sha256:27ef8260eccf290aa1e165a587971b1472681ad89653dbbf18fcaf785d2f22b2
5+
sourceRevisionDigest: sha256:e2b326948e81c7cb593d168783a30c6fc367813a6840dff5519e43bb4819ca7a
6+
sourceBlobDigest: sha256:0ba32db401957a274c014d3f824ed12e26ced169b6d211c494e2ab5761046c6f
77
tags:
88
- latest
9-
- master
9+
- speakeasy-sdk-regen-1732581010
10+
- 3.2.4
1011
targets:
1112
bolt-sdk:
1213
source: bolt-csharp-api
1314
sourceNamespace: bolt-csharp-api
14-
sourceRevisionDigest: sha256:e6d1652183b280c58d60fd08b6c61af949eedae16c2132d08f6c24654f2e12d0
15-
sourceBlobDigest: sha256:27ef8260eccf290aa1e165a587971b1472681ad89653dbbf18fcaf785d2f22b2
15+
sourceRevisionDigest: sha256:e2b326948e81c7cb593d168783a30c6fc367813a6840dff5519e43bb4819ca7a
16+
sourceBlobDigest: sha256:0ba32db401957a274c014d3f824ed12e26ced169b6d211c494e2ab5761046c6f
17+
codeSamplesNamespace: bolt-csharp-api-code-samples
18+
codeSamplesRevisionDigest: sha256:67afb7044b2e9fd2aa413e1ba105cdec6706f96685451ffb5eba3a0408126be8
1619
workflow:
1720
workflowVersion: 1.0.0
1821
speakeasyVersion: latest
@@ -26,3 +29,7 @@ workflow:
2629
bolt-sdk:
2730
target: csharp
2831
source: bolt-csharp-api
32+
codeSamples:
33+
registry:
34+
location: registry.speakeasyapi.dev/bolt/boltpublicapi/bolt-csharp-api-code-samples
35+
blocking: false

.speakeasy/workflow.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ targets:
1010
bolt-sdk:
1111
target: csharp
1212
source: bolt-csharp-api
13+
codeSamples:
14+
registry:
15+
location: registry.speakeasyapi.dev/bolt/boltpublicapi/bolt-csharp-api-code-samples
16+
blocking: false

Boltpay/SDK/Account.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ public class Account: IAccount
9090
{
9191
public SDKConfig SDKConfiguration { get; private set; }
9292
private const string _language = "csharp";
93-
private const string _sdkVersion = "0.3.0";
94-
private const string _sdkGenVersion = "2.438.15";
95-
private const string _openapiDocVersion = "3.2.3";
96-
private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.438.15 3.2.3 Boltpay.SDK";
93+
private const string _sdkVersion = "0.4.0";
94+
private const string _sdkGenVersion = "2.462.0";
95+
private const string _openapiDocVersion = "3.2.4";
96+
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.462.0 3.2.4 Boltpay.SDK";
9797
private string _serverUrl = "";
9898
private ISpeakeasyHttpClient _client;
9999
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;

Boltpay/SDK/BoltSDK.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ public class BoltSDK: IBoltSDK
136136
public SDKConfig SDKConfiguration { get; private set; }
137137

138138
private const string _language = "csharp";
139-
private const string _sdkVersion = "0.3.0";
140-
private const string _sdkGenVersion = "2.438.15";
141-
private const string _openapiDocVersion = "3.2.3";
142-
private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.438.15 3.2.3 Boltpay.SDK";
139+
private const string _sdkVersion = "0.4.0";
140+
private const string _sdkGenVersion = "2.462.0";
141+
private const string _openapiDocVersion = "3.2.4";
142+
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.462.0 3.2.4 Boltpay.SDK";
143143
private string _serverUrl = "";
144144
private int _serverIndex = 0;
145145
private ISpeakeasyHttpClient _client;

Boltpay/SDK/Boltpay.SDK.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<IsPackable>true</IsPackable>
55
<PackageId>Boltpay.SDK</PackageId>
6-
<Version>0.3.0</Version>
6+
<Version>0.4.0</Version>
77
<TargetFramework>net8.0</TargetFramework>
88
<Authors>Speakeasy</Authors>
99
<Copyright>Copyright (c) Speakeasy 2024</Copyright>

Boltpay/SDK/Guest.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public class Guest: IGuest
4848
{
4949
public SDKConfig SDKConfiguration { get; private set; }
5050
private const string _language = "csharp";
51-
private const string _sdkVersion = "0.3.0";
52-
private const string _sdkGenVersion = "2.438.15";
53-
private const string _openapiDocVersion = "3.2.3";
54-
private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.438.15 3.2.3 Boltpay.SDK";
51+
private const string _sdkVersion = "0.4.0";
52+
private const string _sdkGenVersion = "2.462.0";
53+
private const string _openapiDocVersion = "3.2.4";
54+
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.462.0 3.2.4 Boltpay.SDK";
5555
private string _serverUrl = "";
5656
private ISpeakeasyHttpClient _client;
5757
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;

Boltpay/SDK/LoggedIn.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public class LoggedIn: ILoggedIn
4949
{
5050
public SDKConfig SDKConfiguration { get; private set; }
5151
private const string _language = "csharp";
52-
private const string _sdkVersion = "0.3.0";
53-
private const string _sdkGenVersion = "2.438.15";
54-
private const string _openapiDocVersion = "3.2.3";
55-
private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.438.15 3.2.3 Boltpay.SDK";
52+
private const string _sdkVersion = "0.4.0";
53+
private const string _sdkGenVersion = "2.462.0";
54+
private const string _openapiDocVersion = "3.2.4";
55+
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.462.0 3.2.4 Boltpay.SDK";
5656
private string _serverUrl = "";
5757
private ISpeakeasyHttpClient _client;
5858
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4+
//
5+
// Changes to this file may cause incorrect behavior and will be lost when
6+
// the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
#nullable enable
10+
namespace Boltpay.SDK.Models.Components
11+
{
12+
using Boltpay.SDK.Utils;
13+
using Newtonsoft.Json;
14+
15+
/// <summary>
16+
/// Raw authorization response from the payment processor
17+
/// </summary>
18+
public class ProcessorResponse
19+
{
20+
21+
[JsonProperty("content_type")]
22+
public string? ContentType { get; set; }
23+
24+
[JsonProperty("api_version")]
25+
public string? ApiVersion { get; set; }
26+
27+
[JsonProperty("text")]
28+
public string? Text { get; set; }
29+
}
30+
}

Boltpay/SDK/Models/Components/TransactionAuthorization.cs

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#nullable enable
1010
namespace Boltpay.SDK.Models.Components
1111
{
12+
using Boltpay.SDK.Models.Components;
1213
using Boltpay.SDK.Utils;
1314
using Newtonsoft.Json;
1415

@@ -17,5 +18,11 @@ public class TransactionAuthorization
1718

1819
[JsonProperty("processor_reference")]
1920
public string? ProcessorReference { get; set; }
21+
22+
/// <summary>
23+
/// Raw authorization response from the payment processor
24+
/// </summary>
25+
[JsonProperty("processor_response")]
26+
public ProcessorResponse? ProcessorResponse { get; set; }
2027
}
2128
}

Boltpay/SDK/OAuth.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public class OAuth: IOAuth
4949
{
5050
public SDKConfig SDKConfiguration { get; private set; }
5151
private const string _language = "csharp";
52-
private const string _sdkVersion = "0.3.0";
53-
private const string _sdkGenVersion = "2.438.15";
54-
private const string _openapiDocVersion = "3.2.3";
55-
private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.438.15 3.2.3 Boltpay.SDK";
52+
private const string _sdkVersion = "0.4.0";
53+
private const string _sdkGenVersion = "2.462.0";
54+
private const string _openapiDocVersion = "3.2.4";
55+
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.462.0 3.2.4 Boltpay.SDK";
5656
private string _serverUrl = "";
5757
private ISpeakeasyHttpClient _client;
5858
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;

Boltpay/SDK/Orders.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ public class Orders: IOrders
4545
{
4646
public SDKConfig SDKConfiguration { get; private set; }
4747
private const string _language = "csharp";
48-
private const string _sdkVersion = "0.3.0";
49-
private const string _sdkGenVersion = "2.438.15";
50-
private const string _openapiDocVersion = "3.2.3";
51-
private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.438.15 3.2.3 Boltpay.SDK";
48+
private const string _sdkVersion = "0.4.0";
49+
private const string _sdkGenVersion = "2.462.0";
50+
private const string _openapiDocVersion = "3.2.4";
51+
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.462.0 3.2.4 Boltpay.SDK";
5252
private string _serverUrl = "";
5353
private ISpeakeasyHttpClient _client;
5454
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;

Boltpay/SDK/Payments.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public class Payments: IPayments
2424
{
2525
public SDKConfig SDKConfiguration { get; private set; }
2626
private const string _language = "csharp";
27-
private const string _sdkVersion = "0.3.0";
28-
private const string _sdkGenVersion = "2.438.15";
29-
private const string _openapiDocVersion = "3.2.3";
30-
private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.438.15 3.2.3 Boltpay.SDK";
27+
private const string _sdkVersion = "0.4.0";
28+
private const string _sdkGenVersion = "2.462.0";
29+
private const string _openapiDocVersion = "3.2.4";
30+
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.462.0 3.2.4 Boltpay.SDK";
3131
private string _serverUrl = "";
3232
private ISpeakeasyHttpClient _client;
3333
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;

Boltpay/SDK/Testing.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ public class Testing: ITesting
6363
{
6464
public SDKConfig SDKConfiguration { get; private set; }
6565
private const string _language = "csharp";
66-
private const string _sdkVersion = "0.3.0";
67-
private const string _sdkGenVersion = "2.438.15";
68-
private const string _openapiDocVersion = "3.2.3";
69-
private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.438.15 3.2.3 Boltpay.SDK";
66+
private const string _sdkVersion = "0.4.0";
67+
private const string _sdkGenVersion = "2.462.0";
68+
private const string _openapiDocVersion = "3.2.4";
69+
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.462.0 3.2.4 Boltpay.SDK";
7070
private string _serverUrl = "";
7171
private ISpeakeasyHttpClient _client;
7272
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;

README.md

+31-21
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ By default, an API error will raise a `Boltpay.SDK.Models.Errors.SDKException` e
118118

119119
When custom error responses are specified for an operation, the SDK may also throw their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `GetDetailsAsync` method throws the following exceptions:
120120

121-
| Error Type | Status Code | Content Type |
122-
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
123-
| Boltpay.SDK.Models.Errors.Error | 4XX | application/json |
124-
| Boltpay.SDK.Models.Errors.FieldError | 4XX | application/json |
125-
| Boltpay.SDK.Models.Errors.SDKException | 5XX | \*/\* |
121+
| Error Type | Status Code | Content Type |
122+
| -------------------------------------- | ----------- | ---------------- |
123+
| Boltpay.SDK.Models.Errors.Error | 4XX | application/json |
124+
| Boltpay.SDK.Models.Errors.FieldError | 4XX | application/json |
125+
| Boltpay.SDK.Models.Errors.SDKException | 5XX | \*/\* |
126126

127127
### Example
128128

@@ -171,24 +171,34 @@ catch (Exception ex)
171171
<!-- Start Server Selection [server] -->
172172
## Server Selection
173173

174-
### Select Server by Index
175-
176-
You can override the default server globally by passing a server index to the `serverIndex: number` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
177-
178-
| # | Server | Variables |
179-
| - | ------ | --------- |
180-
| 0 | `https://{environment}.bolt.com/v3` | `environment` (default is `api-sandbox`) |
174+
### Server Variables
181175

176+
The default server `https://{environment}.bolt.com/v3` contains variables and is set to `https://api-sandbox.bolt.com/v3` by default. To override default values, the following parameters are available when initializing the SDK client instance:
177+
* `environment: ServerEnvironment`
182178

179+
### Override Server URL Per-Client
183180

184-
#### Variables
181+
The default server can also be overridden globally by passing a URL to the `serverUrl: string` optional parameter when initializing the SDK client instance. For example:
182+
```csharp
183+
using Boltpay.SDK;
184+
using Boltpay.SDK.Models.Requests;
185+
using Boltpay.SDK.Models.Components;
185186

186-
Some of the server options above contain variables. If you want to set the values of those variables, the following options are provided for doing so:
187-
* `environment: ServerEnvironment`
187+
var sdk = new BoltSDK(
188+
serverUrl: "https://api-sandbox.bolt.com/v3",
189+
security: new Security() {
190+
Oauth = "<YOUR_OAUTH_HERE>",
191+
ApiKey = "<YOUR_API_KEY_HERE>",
192+
}
193+
);
188194

189-
### Override Server URL Per-Client
195+
var res = await sdk.Account.GetDetailsAsync(
196+
xPublishableKey: "<value>",
197+
xMerchantClientId: "<id>"
198+
);
190199

191-
The default server can also be overridden globally by passing a URL to the `serverUrl: str` optional parameter when initializing the SDK client instance. For example:
200+
// handle response
201+
```
192202
<!-- End Server Selection [server] -->
193203

194204
<!-- Start Authentication [security] -->
@@ -198,10 +208,10 @@ The default server can also be overridden globally by passing a URL to the `serv
198208

199209
This SDK supports the following security schemes globally:
200210

201-
| Name | Type | Scheme |
202-
| ------------ | ------------ | ------------ |
203-
| `Oauth` | oauth2 | OAuth2 token |
204-
| `ApiKey` | apiKey | API key |
211+
| Name | Type | Scheme |
212+
| -------- | ------ | ------------ |
213+
| `Oauth` | oauth2 | OAuth2 token |
214+
| `ApiKey` | apiKey | API key |
205215

206216
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
207217
```csharp

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,14 @@ Based on:
5858
### Generated
5959
- [csharp v0.3.0] .
6060
### Releases
61-
- [NuGet v0.3.0] https://www.nuget.org/packages/Boltpay.SDK/0.3.0 - .
61+
- [NuGet v0.3.0] https://www.nuget.org/packages/Boltpay.SDK/0.3.0 - .
62+
63+
## 2024-11-26 00:30:07
64+
### Changes
65+
Based on:
66+
- OpenAPI Doc
67+
- Speakeasy CLI 1.446.0 (2.462.0) https://github.com/speakeasy-api/speakeasy
68+
### Generated
69+
- [csharp v0.4.0] .
70+
### Releases
71+
- [NuGet v0.4.0] https://www.nuget.org/packages/Boltpay.SDK/0.4.0 - .

docs/Models/Components/ProcessorResponse.md

+12
Large diffs are not rendered by default.

docs/Models/Components/TransactionAuthorization.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- |
8-
| `ProcessorReference` | *string* | :heavy_minus_sign: | N/A | 123456789XYZ |
6+
| Field | Type | Required | Description | Example |
7+
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
8+
| `ProcessorReference` | *string* | :heavy_minus_sign: | N/A | 123456789XYZ |
9+
| `ProcessorResponse` | [ProcessorResponse](../../Models/Components/ProcessorResponse.md) | :heavy_minus_sign: | Raw authorization response from the payment processor | |

docs/sdks/boltsdk/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
## Overview
44

5-
Bolt API Reference: A comprehensive Bolt API reference for interacting with Accounts, Payments, Orders and more.
5+
Bolt API Reference: A comprehensive Bolt API reference for interacting with Accounts, Payments, Orders and more.
6+
7+
### Available Operations

docs/sdks/payments/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# Payments
2-
(*Payments*)
2+
(*Payments*)
3+
4+
## Overview
5+
6+
### Available Operations

0 commit comments

Comments
 (0)