Skip to content

Commit 6a2c7f2

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.390.7
1 parent a20fa56 commit 6a2c7f2

Some content is hidden

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

42 files changed

+605
-652
lines changed

.speakeasy/gen.lock

+11-21
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
lockVersion: 2.0.0
22
id: 6be0ff6b-aa40-4b34-a3eb-72d091b3c545
33
management:
4-
docChecksum: 8c2776c2cbcdc065c8bb4d1442f50ef5
5-
docVersion: 3.2.0
6-
speakeasyVersion: 1.357.1
7-
generationVersion: 2.390.0
8-
releaseVersion: 0.2.0
9-
configChecksum: 2284b4e17ce83208fa0f4b8a9943df69
4+
docChecksum: 854d678d5e30ebc1211187f4d0e7b3ba
5+
docVersion: 3.2.1
6+
speakeasyVersion: 1.390.7
7+
generationVersion: 2.409.8
8+
releaseVersion: 0.2.1
9+
configChecksum: bb5ed84f6b764d6bc29bcee70a16f0ac
1010
repoURL: https://github.com/BoltApp/Bolt-CSharp-SDK.git
1111
features:
1212
csharp:
1313
additionalDependencies: 0.1.0
14-
core: 3.9.13
15-
errorUnions: 0.1.0
14+
core: 3.9.16
15+
errorUnions: 0.1.1
1616
flattening: 2.81.2
1717
globalSecurity: 2.83.6
1818
globalSecurityCallbacks: 0.1.0
@@ -25,7 +25,7 @@ features:
2525
nameOverrides: 2.81.2
2626
responseFormat: 0.0.4
2727
sdkHooks: 0.1.0
28-
unions: 0.2.0
28+
unions: 0.2.1
2929
generatedFiles:
3030
- Boltpay/SDK/Account.cs
3131
- Boltpay/SDK/LoggedIn.cs
@@ -135,6 +135,7 @@ generatedFiles:
135135
- Boltpay/SDK/Models/Components/Status.cs
136136
- Boltpay/SDK/Models/Components/PaymentResponseFinalized.cs
137137
- Boltpay/SDK/Models/Components/Transaction.cs
138+
- Boltpay/SDK/Models/Components/TransactionAuthorization.cs
138139
- Boltpay/SDK/Models/Components/PaymentResponsePendingTag.cs
139140
- Boltpay/SDK/Models/Components/PaymentResponsePendingStatus.cs
140141
- Boltpay/SDK/Models/Components/Action.cs
@@ -245,22 +246,12 @@ generatedFiles:
245246
- docs/Models/Components/PaymentMethodKlarnaPaynowOutput.md
246247
- docs/Models/Components/AddressListing.md
247248
- docs/Models/Components/HTTPMetadata.md
248-
- docs/Models/Components/AddressListingInput.md
249-
- docs/Models/Components/PaymentMethodInput.md
250-
- docs/Models/Components/PaymentMethodCreditCardInput.md
251-
- docs/Models/Components/AddressReferenceInput.md
252-
- docs/Models/Components/AddressReferenceExplicitInput.md
253-
- docs/Models/Components/PaymentMethodPaypal.md
254-
- docs/Models/Components/PaymentMethodAffirm.md
255-
- docs/Models/Components/PaymentMethodAfterpay.md
256-
- docs/Models/Components/PaymentMethodKlarna.md
257-
- docs/Models/Components/PaymentMethodKlarnaAccount.md
258-
- docs/Models/Components/PaymentMethodKlarnaPaynow.md
259249
- docs/Models/Components/PaymentResponse.md
260250
- docs/Models/Components/PaymentResponseFinalizedTag.md
261251
- docs/Models/Components/Status.md
262252
- docs/Models/Components/PaymentResponseFinalized.md
263253
- docs/Models/Components/Transaction.md
254+
- docs/Models/Components/TransactionAuthorization.md
264255
- docs/Models/Components/PaymentResponsePendingTag.md
265256
- docs/Models/Components/PaymentResponsePendingStatus.md
266257
- docs/Models/Components/Action.md
@@ -292,7 +283,6 @@ generatedFiles:
292283
- docs/Models/Components/EmailState.md
293284
- docs/Models/Components/PhoneState.md
294285
- docs/Models/Components/AccountTestCreationDataOutput.md
295-
- docs/Models/Components/AccountTestCreationData.md
296286
- docs/Models/Components/AccountTestPhoneData.md
297287
- docs/Models/Components/TestCreditCard.md
298288
- docs/Models/Components/Security.md

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
csharp:
15-
version: 0.2.0
15+
version: 0.2.1
1616
additionalDependencies: []
1717
author: Speakeasy
1818
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.357.1
1+
speakeasyVersion: 1.390.7
22
sources:
33
bolt-csharp-api:
44
sourceNamespace: bolt-csharp-api
5-
sourceRevisionDigest: sha256:089191ece4615c6cdfcd96595c89708045e7b49bb220202fca89eebe914f94af
6-
sourceBlobDigest: sha256:edef54369746b4047687d76d7f92f2adf18f1b45329e3325de4cdd4417f9997c
5+
sourceRevisionDigest: sha256:7cf2f95e80bcf55bcfda06d7c45988074ae88241aa57404a3bd6ee6a8ce11525
6+
sourceBlobDigest: sha256:27d07c65383b445e0fd3a098783adeabae528de8fda49d2e814fb07322139a63
77
tags:
88
- latest
99
- master
1010
targets:
1111
bolt-sdk:
1212
source: bolt-csharp-api
1313
sourceNamespace: bolt-csharp-api
14-
sourceRevisionDigest: sha256:089191ece4615c6cdfcd96595c89708045e7b49bb220202fca89eebe914f94af
15-
sourceBlobDigest: sha256:edef54369746b4047687d76d7f92f2adf18f1b45329e3325de4cdd4417f9997c
14+
sourceRevisionDigest: sha256:7cf2f95e80bcf55bcfda06d7c45988074ae88241aa57404a3bd6ee6a8ce11525
15+
sourceBlobDigest: sha256:27d07c65383b445e0fd3a098783adeabae528de8fda49d2e814fb07322139a63
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

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.2.0";
94-
private const string _sdkGenVersion = "2.390.0";
95-
private const string _openapiDocVersion = "3.2.0";
96-
private const string _userAgent = "speakeasy-sdk/csharp 0.2.0 2.390.0 3.2.0 Boltpay.SDK";
93+
private const string _sdkVersion = "0.2.1";
94+
private const string _sdkGenVersion = "2.409.8";
95+
private const string _openapiDocVersion = "3.2.1";
96+
private const string _userAgent = "speakeasy-sdk/csharp 0.2.1 2.409.8 3.2.1 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.2.0";
140-
private const string _sdkGenVersion = "2.390.0";
141-
private const string _openapiDocVersion = "3.2.0";
142-
private const string _userAgent = "speakeasy-sdk/csharp 0.2.0 2.390.0 3.2.0 Boltpay.SDK";
139+
private const string _sdkVersion = "0.2.1";
140+
private const string _sdkGenVersion = "2.409.8";
141+
private const string _openapiDocVersion = "3.2.1";
142+
private const string _userAgent = "speakeasy-sdk/csharp 0.2.1 2.409.8 3.2.1 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.2.0</Version>
6+
<Version>0.2.1</Version>
77
<TargetFramework>net8.0</TargetFramework>
88
<Authors>Speakeasy</Authors>
99
<Copyright>Copyright (c) Speakeasy 2024</Copyright>

Boltpay/SDK/Guest.cs

+18-8
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.2.0";
52-
private const string _sdkGenVersion = "2.390.0";
53-
private const string _openapiDocVersion = "3.2.0";
54-
private const string _userAgent = "speakeasy-sdk/csharp 0.2.0 2.390.0 3.2.0 Boltpay.SDK";
51+
private const string _sdkVersion = "0.2.1";
52+
private const string _sdkGenVersion = "2.409.8";
53+
private const string _openapiDocVersion = "3.2.1";
54+
private const string _userAgent = "speakeasy-sdk/csharp 0.2.1 2.409.8 3.2.1 Boltpay.SDK";
5555
private string _serverUrl = "";
5656
private ISpeakeasyHttpClient _client;
5757
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;
@@ -86,9 +86,14 @@ public async Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPayments
8686
httpRequest.Content = serializedBody;
8787
}
8888

89-
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
89+
Func<GuestPaymentsInitializeSecurity>? securitySource = null;
90+
if (security != null)
91+
{
92+
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
93+
securitySource = () => security;
94+
}
9095

91-
var hookCtx = new HookContext("guestPaymentsInitialize", null, () => security);
96+
var hookCtx = new HookContext("guestPaymentsInitialize", null, securitySource);
9297

9398
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
9499

@@ -207,9 +212,14 @@ public async Task<GuestPaymentsActionResponse> PerformActionAsync(GuestPaymentsA
207212
httpRequest.Content = serializedBody;
208213
}
209214

210-
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
215+
Func<GuestPaymentsActionSecurity>? securitySource = null;
216+
if (security != null)
217+
{
218+
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
219+
securitySource = () => security;
220+
}
211221

212-
var hookCtx = new HookContext("guestPaymentsAction", null, () => security);
222+
var hookCtx = new HookContext("guestPaymentsAction", null, securitySource);
213223

214224
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
215225

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.2.0";
53-
private const string _sdkGenVersion = "2.390.0";
54-
private const string _openapiDocVersion = "3.2.0";
55-
private const string _userAgent = "speakeasy-sdk/csharp 0.2.0 2.390.0 3.2.0 Boltpay.SDK";
52+
private const string _sdkVersion = "0.2.1";
53+
private const string _sdkGenVersion = "2.409.8";
54+
private const string _openapiDocVersion = "3.2.1";
55+
private const string _userAgent = "speakeasy-sdk/csharp 0.2.1 2.409.8 3.2.1 Boltpay.SDK";
5656
private string _serverUrl = "";
5757
private ISpeakeasyHttpClient _client;
5858
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;

Boltpay/SDK/Models/Components/Transaction.cs

+8
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,21 @@
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;
15+
using System.Collections.Generic;
1416

1517
public class Transaction
1618
{
1719

1820
[JsonProperty("reference")]
1921
public string? Reference { get; set; }
22+
23+
/// <summary>
24+
/// Payment authorization events attached to a transaction
25+
/// </summary>
26+
[JsonProperty("authorizations")]
27+
public List<TransactionAuthorization>? Authorizations { get; set; }
2028
}
2129
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
public class TransactionAuthorization
16+
{
17+
18+
[JsonProperty("processor_reference")]
19+
public string? ProcessorReference { get; set; }
20+
}
21+
}

Boltpay/SDK/Models/Requests/TestingCreditCardGetRequestBody.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public class TestingCreditCardGetRequestBody
2020
/// The expected authorization result when using the generated token for a payment.
2121
/// </summary>
2222
[JsonProperty("type")]
23-
public Type Type { get; set; } = default!;
23+
public Models.Requests.Type Type { get; set; } = default!;
2424
}
2525
}

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.2.0";
53-
private const string _sdkGenVersion = "2.390.0";
54-
private const string _openapiDocVersion = "3.2.0";
55-
private const string _userAgent = "speakeasy-sdk/csharp 0.2.0 2.390.0 3.2.0 Boltpay.SDK";
52+
private const string _sdkVersion = "0.2.1";
53+
private const string _sdkGenVersion = "2.409.8";
54+
private const string _openapiDocVersion = "3.2.1";
55+
private const string _userAgent = "speakeasy-sdk/csharp 0.2.1 2.409.8 3.2.1 Boltpay.SDK";
5656
private string _serverUrl = "";
5757
private ISpeakeasyHttpClient _client;
5858
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;

Boltpay/SDK/Orders.cs

+11-6
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.2.0";
49-
private const string _sdkGenVersion = "2.390.0";
50-
private const string _openapiDocVersion = "3.2.0";
51-
private const string _userAgent = "speakeasy-sdk/csharp 0.2.0 2.390.0 3.2.0 Boltpay.SDK";
48+
private const string _sdkVersion = "0.2.1";
49+
private const string _sdkGenVersion = "2.409.8";
50+
private const string _openapiDocVersion = "3.2.1";
51+
private const string _userAgent = "speakeasy-sdk/csharp 0.2.1 2.409.8 3.2.1 Boltpay.SDK";
5252
private string _serverUrl = "";
5353
private ISpeakeasyHttpClient _client;
5454
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;
@@ -83,9 +83,14 @@ public async Task<OrdersCreateResponse> OrdersCreateAsync(OrdersCreateSecurity s
8383
httpRequest.Content = serializedBody;
8484
}
8585

86-
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
86+
Func<OrdersCreateSecurity>? securitySource = null;
87+
if (security != null)
88+
{
89+
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
90+
securitySource = () => security;
91+
}
8792

88-
var hookCtx = new HookContext("ordersCreate", null, () => security);
93+
var hookCtx = new HookContext("ordersCreate", null, securitySource);
8994

9095
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
9196

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.2.0";
28-
private const string _sdkGenVersion = "2.390.0";
29-
private const string _openapiDocVersion = "3.2.0";
30-
private const string _userAgent = "speakeasy-sdk/csharp 0.2.0 2.390.0 3.2.0 Boltpay.SDK";
27+
private const string _sdkVersion = "0.2.1";
28+
private const string _sdkGenVersion = "2.409.8";
29+
private const string _openapiDocVersion = "3.2.1";
30+
private const string _userAgent = "speakeasy-sdk/csharp 0.2.1 2.409.8 3.2.1 Boltpay.SDK";
3131
private string _serverUrl = "";
3232
private ISpeakeasyHttpClient _client;
3333
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;

Boltpay/SDK/Testing.cs

+25-10
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.2.0";
67-
private const string _sdkGenVersion = "2.390.0";
68-
private const string _openapiDocVersion = "3.2.0";
69-
private const string _userAgent = "speakeasy-sdk/csharp 0.2.0 2.390.0 3.2.0 Boltpay.SDK";
66+
private const string _sdkVersion = "0.2.1";
67+
private const string _sdkGenVersion = "2.409.8";
68+
private const string _openapiDocVersion = "3.2.1";
69+
private const string _userAgent = "speakeasy-sdk/csharp 0.2.1 2.409.8 3.2.1 Boltpay.SDK";
7070
private string _serverUrl = "";
7171
private ISpeakeasyHttpClient _client;
7272
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;
@@ -100,9 +100,14 @@ public async Task<TestingAccountCreateResponse> CreateAccountAsync(TestingAccoun
100100
httpRequest.Content = serializedBody;
101101
}
102102

103-
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
103+
Func<TestingAccountCreateSecurity>? securitySource = null;
104+
if (security != null)
105+
{
106+
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
107+
securitySource = () => security;
108+
}
104109

105-
var hookCtx = new HookContext("testingAccountCreate", null, () => security);
110+
var hookCtx = new HookContext("testingAccountCreate", null, securitySource);
106111

107112
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
108113

@@ -209,9 +214,14 @@ public async Task<TestingAccountPhoneGetResponse> TestingAccountPhoneGetAsync(Te
209214
httpRequest.Headers.Add("user-agent", _userAgent);
210215
HeaderSerializer.PopulateHeaders(ref httpRequest, request);
211216

212-
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
217+
Func<TestingAccountPhoneGetSecurity>? securitySource = null;
218+
if (security != null)
219+
{
220+
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
221+
securitySource = () => security;
222+
}
213223

214-
var hookCtx = new HookContext("testingAccountPhoneGet", null, () => security);
224+
var hookCtx = new HookContext("testingAccountPhoneGet", null, securitySource);
215225

216226
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
217227

@@ -319,9 +329,14 @@ public async Task<TestingCreditCardGetResponse> GetCreditCardAsync(TestingCredit
319329
httpRequest.Content = serializedBody;
320330
}
321331

322-
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
332+
Func<TestingCreditCardGetSecurity>? securitySource = null;
333+
if (security != null)
334+
{
335+
httpRequest = new SecurityMetadata(() => security).Apply(httpRequest);
336+
securitySource = () => security;
337+
}
323338

324-
var hookCtx = new HookContext("testingCreditCardGet", null, () => security);
339+
var hookCtx = new HookContext("testingCreditCardGet", null, securitySource);
325340

326341
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
327342

0 commit comments

Comments
 (0)