Skip to content

Commit 2a3cf99

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.449.0
1 parent c2be80b commit 2a3cf99

Some content is hidden

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

43 files changed

+317
-302
lines changed

.speakeasy/gen.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 6be0ff6b-aa40-4b34-a3eb-72d091b3c545
33
management:
4-
docChecksum: 4872a098e96fdd74a02537943961bed7
5-
docVersion: 3.2.5
6-
speakeasyVersion: 1.448.0
7-
generationVersion: 2.466.0
8-
releaseVersion: 0.4.1
9-
configChecksum: d185556e87f2ddeec66e007d4dc7d70f
4+
docChecksum: 8ff3e37e3bcdf4b0ef72f37df29c2c47
5+
docVersion: 3.3.0
6+
speakeasyVersion: 1.449.0
7+
generationVersion: 2.467.4
8+
releaseVersion: 0.5.0
9+
configChecksum: 53afcfd3f663695977d7e8589f51f2c3
1010
repoURL: https://github.com/BoltApp/Bolt-CSharp-SDK.git
1111
features:
1212
csharp:

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: false
1414
oAuth2PasswordEnabled: false
1515
csharp:
16-
version: 0.4.1
16+
version: 0.5.0
1717
additionalDependencies: []
1818
author: Speakeasy
1919
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.448.0
1+
speakeasyVersion: 1.449.0
22
sources:
33
bolt-csharp-api:
44
sourceNamespace: bolt-csharp-api
5-
sourceRevisionDigest: sha256:539bafcd23aedcb7bdcc67c61a97cd1e0c65a1d1a2d57d739f0c0a1073025732
6-
sourceBlobDigest: sha256:6a2aeb90866b3a655e132aaf94933f5edeb2b5d182423e38c1fde6af06d74aed
5+
sourceRevisionDigest: sha256:0a1817afa56dd122fa887b7c8df99062e9d899d29bc46af209e03738c4d1e75a
6+
sourceBlobDigest: sha256:51c81ecaaa90446ad8968d89a42a84bcd2b3bfa0f97ba4cb8aae067637538117
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1732667414
10-
- 3.2.5
9+
- speakeasy-sdk-regen-1733185923
10+
- 3.3.0
1111
targets:
1212
bolt-sdk:
1313
source: bolt-csharp-api
1414
sourceNamespace: bolt-csharp-api
15-
sourceRevisionDigest: sha256:539bafcd23aedcb7bdcc67c61a97cd1e0c65a1d1a2d57d739f0c0a1073025732
16-
sourceBlobDigest: sha256:6a2aeb90866b3a655e132aaf94933f5edeb2b5d182423e38c1fde6af06d74aed
15+
sourceRevisionDigest: sha256:0a1817afa56dd122fa887b7c8df99062e9d899d29bc46af209e03738c4d1e75a
16+
sourceBlobDigest: sha256:51c81ecaaa90446ad8968d89a42a84bcd2b3bfa0f97ba4cb8aae067637538117
1717
codeSamplesNamespace: bolt-csharp-api-code-samples
18-
codeSamplesRevisionDigest: sha256:d2f4eaf74c2442ae4de0cf4a885c019a3c918e0f4eddc11ebb993c834ddacfc0
18+
codeSamplesRevisionDigest: sha256:8d19b56b300b5fbfe771442a578084d888dd830cf41482639e30b55f9b94d2fe
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

Boltpay/SDK/Account.cs

+21-21
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface IAccount
3535
/// Retrieve a shopper's account details, such as addresses and payment information. The account's details are filtered to be relevant to your merchant account, and some fields may be missing for some accounts. See the schema for details.
3636
/// </remarks>
3737
/// </summary>
38-
Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, string xMerchantClientId);
38+
Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, string? xMerchantClientId = null);
3939

4040
/// <summary>
4141
/// Add an address
@@ -44,7 +44,7 @@ public interface IAccount
4444
/// Add an address to the shopper&apos;s account
4545
/// </remarks>
4646
/// </summary>
47-
Task<AccountAddressCreateResponse> AddAddressAsync(string xPublishableKey, string xMerchantClientId, AddressListingInput addressListing);
47+
Task<AccountAddressCreateResponse> AddAddressAsync(string xPublishableKey, AddressListingInput addressListing, string? xMerchantClientId = null);
4848

4949
/// <summary>
5050
/// Edit an existing address
@@ -53,7 +53,7 @@ public interface IAccount
5353
/// Edit an existing address on the shopper&apos;s account. This does not edit addresses that are already associated with other resources, such as transactions or shipments.
5454
/// </remarks>
5555
/// </summary>
56-
Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublishableKey, string xMerchantClientId, string id, AddressListingInput addressListing);
56+
Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublishableKey, string id, AddressListingInput addressListing, string? xMerchantClientId = null);
5757

5858
/// <summary>
5959
/// Delete an existing address
@@ -62,7 +62,7 @@ public interface IAccount
6262
/// Delete an existing address. Deleting an address does not invalidate or remove the address from transactions or shipments that are associated with it.
6363
/// </remarks>
6464
/// </summary>
65-
Task<AccountAddressDeleteResponse> DeleteAddressAsync(string xPublishableKey, string xMerchantClientId, string id);
65+
Task<AccountAddressDeleteResponse> DeleteAddressAsync(string xPublishableKey, string id, string? xMerchantClientId = null);
6666

6767
/// <summary>
6868
/// Add a payment method
@@ -71,7 +71,7 @@ public interface IAccount
7171
/// Add a payment method to a shopper&apos;s Bolt Account Wallet. For security purposes, this request must come from your backend. &lt;br/&gt; **Note**: Before using this API, the credit card details must be tokenized by Bolt&apos;s credit card tokenization service. Please review our <a href="https://help.bolt.com/products/ignite/api-implementation/#enhance-payments">Bolt Payment Field Component</a> or <a href="https://help.bolt.com/developers/references/bolt-tokenizer">Install the Bolt Tokenizer</a> documentation.
7272
/// </remarks>
7373
/// </summary>
74-
Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string xPublishableKey, string xMerchantClientId, PaymentMethodInput paymentMethod);
74+
Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string xPublishableKey, PaymentMethodInput paymentMethod, string? xMerchantClientId = null);
7575

7676
/// <summary>
7777
/// Delete an existing payment method
@@ -80,7 +80,7 @@ public interface IAccount
8080
/// Delete an existing payment method. Deleting a payment method does not invalidate or remove it from transactions or orders that are associated with it.
8181
/// </remarks>
8282
/// </summary>
83-
Task<AccountPaymentMethodDeleteResponse> DeletePaymentMethodAsync(string xPublishableKey, string xMerchantClientId, string id);
83+
Task<AccountPaymentMethodDeleteResponse> DeletePaymentMethodAsync(string xPublishableKey, string id, string? xMerchantClientId = null);
8484
}
8585

8686
/// <summary>
@@ -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.4.1";
94-
private const string _sdkGenVersion = "2.466.0";
95-
private const string _openapiDocVersion = "3.2.5";
96-
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.466.0 3.2.5 Boltpay.SDK";
93+
private const string _sdkVersion = "0.5.0";
94+
private const string _sdkGenVersion = "2.467.4";
95+
private const string _openapiDocVersion = "3.3.0";
96+
private const string _userAgent = "speakeasy-sdk/csharp 0.5.0 2.467.4 3.3.0 Boltpay.SDK";
9797
private string _serverUrl = "";
9898
private ISpeakeasyHttpClient _client;
9999
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;
@@ -106,7 +106,7 @@ public Account(ISpeakeasyHttpClient client, Func<Boltpay.SDK.Models.Components.S
106106
SDKConfiguration = config;
107107
}
108108

109-
public async Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, string xMerchantClientId)
109+
public async Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, string? xMerchantClientId = null)
110110
{
111111
var request = new AccountGetRequest()
112112
{
@@ -215,13 +215,13 @@ public async Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, st
215215
}
216216
}
217217

218-
public async Task<AccountAddressCreateResponse> AddAddressAsync(string xPublishableKey, string xMerchantClientId, AddressListingInput addressListing)
218+
public async Task<AccountAddressCreateResponse> AddAddressAsync(string xPublishableKey, AddressListingInput addressListing, string? xMerchantClientId = null)
219219
{
220220
var request = new AccountAddressCreateRequest()
221221
{
222222
XPublishableKey = xPublishableKey,
223-
XMerchantClientId = xMerchantClientId,
224223
AddressListing = addressListing,
224+
XMerchantClientId = xMerchantClientId,
225225
};
226226
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
227227

@@ -331,14 +331,14 @@ public async Task<AccountAddressCreateResponse> AddAddressAsync(string xPublisha
331331
}
332332
}
333333

334-
public async Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublishableKey, string xMerchantClientId, string id, AddressListingInput addressListing)
334+
public async Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublishableKey, string id, AddressListingInput addressListing, string? xMerchantClientId = null)
335335
{
336336
var request = new AccountAddressEditRequest()
337337
{
338338
XPublishableKey = xPublishableKey,
339-
XMerchantClientId = xMerchantClientId,
340339
Id = id,
341340
AddressListing = addressListing,
341+
XMerchantClientId = xMerchantClientId,
342342
};
343343
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
344344
var urlString = URLBuilder.Build(baseUrl, "/account/addresses/{id}", request);
@@ -447,13 +447,13 @@ public async Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublish
447447
}
448448
}
449449

450-
public async Task<AccountAddressDeleteResponse> DeleteAddressAsync(string xPublishableKey, string xMerchantClientId, string id)
450+
public async Task<AccountAddressDeleteResponse> DeleteAddressAsync(string xPublishableKey, string id, string? xMerchantClientId = null)
451451
{
452452
var request = new AccountAddressDeleteRequest()
453453
{
454454
XPublishableKey = xPublishableKey,
455-
XMerchantClientId = xMerchantClientId,
456455
Id = id,
456+
XMerchantClientId = xMerchantClientId,
457457
};
458458
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
459459
var urlString = URLBuilder.Build(baseUrl, "/account/addresses/{id}", request);
@@ -537,13 +537,13 @@ public async Task<AccountAddressDeleteResponse> DeleteAddressAsync(string xPubli
537537
}
538538
}
539539

540-
public async Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string xPublishableKey, string xMerchantClientId, PaymentMethodInput paymentMethod)
540+
public async Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string xPublishableKey, PaymentMethodInput paymentMethod, string? xMerchantClientId = null)
541541
{
542542
var request = new AccountAddPaymentMethodRequest()
543543
{
544544
XPublishableKey = xPublishableKey,
545-
XMerchantClientId = xMerchantClientId,
546545
PaymentMethod = paymentMethod,
546+
XMerchantClientId = xMerchantClientId,
547547
};
548548
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
549549

@@ -655,13 +655,13 @@ public async Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string
655655
}
656656
}
657657

658-
public async Task<AccountPaymentMethodDeleteResponse> DeletePaymentMethodAsync(string xPublishableKey, string xMerchantClientId, string id)
658+
public async Task<AccountPaymentMethodDeleteResponse> DeletePaymentMethodAsync(string xPublishableKey, string id, string? xMerchantClientId = null)
659659
{
660660
var request = new AccountPaymentMethodDeleteRequest()
661661
{
662662
XPublishableKey = xPublishableKey,
663-
XMerchantClientId = xMerchantClientId,
664663
Id = id,
664+
XMerchantClientId = xMerchantClientId,
665665
};
666666
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
667667
var urlString = URLBuilder.Build(baseUrl, "/account/payment-methods/{id}", request);

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.4.1";
140-
private const string _sdkGenVersion = "2.466.0";
141-
private const string _openapiDocVersion = "3.2.5";
142-
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.466.0 3.2.5 Boltpay.SDK";
139+
private const string _sdkVersion = "0.5.0";
140+
private const string _sdkGenVersion = "2.467.4";
141+
private const string _openapiDocVersion = "3.3.0";
142+
private const string _userAgent = "speakeasy-sdk/csharp 0.5.0 2.467.4 3.3.0 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.4.1</Version>
6+
<Version>0.5.0</Version>
77
<TargetFramework>net8.0</TargetFramework>
88
<Authors>Speakeasy</Authors>
99
<Copyright>Copyright (c) Speakeasy 2024</Copyright>

Boltpay/SDK/Guest.cs

+10-10
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public interface IGuest
3232
/// Initialize a Bolt guest shopper&apos;s intent to pay for a cart, using the specified payment method. Payments must be finalized before indicating the payment result to the shopper. Some payment methods will finalize automatically after initialization. For these payments, they will transition directly to &quot;finalized&quot; and the response from Initialize Payment will contain a finalized payment.
3333
/// </remarks>
3434
/// </summary>
35-
Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPaymentsInitializeSecurity security, string xPublishableKey, string xMerchantClientId, GuestPaymentInitializeRequest guestPaymentInitializeRequest);
35+
Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPaymentsInitializeSecurity security, string xPublishableKey, GuestPaymentInitializeRequest guestPaymentInitializeRequest, string? xMerchantClientId = null);
3636

3737
/// <summary>
3838
/// Finalize a pending guest payment
@@ -41,17 +41,17 @@ public interface IGuest
4141
/// Finalize a pending payment being made by a Bolt guest shopper. Upon receipt of a finalized payment result, payment success should be communicated to the shopper.
4242
/// </remarks>
4343
/// </summary>
44-
Task<GuestPaymentsActionResponse> PerformActionAsync(GuestPaymentsActionSecurity security, string xPublishableKey, string xMerchantClientId, string id, PaymentActionRequest paymentActionRequest);
44+
Task<GuestPaymentsActionResponse> PerformActionAsync(GuestPaymentsActionSecurity security, string xPublishableKey, string id, PaymentActionRequest paymentActionRequest, string? xMerchantClientId = null);
4545
}
4646

4747
public class Guest: IGuest
4848
{
4949
public SDKConfig SDKConfiguration { get; private set; }
5050
private const string _language = "csharp";
51-
private const string _sdkVersion = "0.4.1";
52-
private const string _sdkGenVersion = "2.466.0";
53-
private const string _openapiDocVersion = "3.2.5";
54-
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.466.0 3.2.5 Boltpay.SDK";
51+
private const string _sdkVersion = "0.5.0";
52+
private const string _sdkGenVersion = "2.467.4";
53+
private const string _openapiDocVersion = "3.3.0";
54+
private const string _userAgent = "speakeasy-sdk/csharp 0.5.0 2.467.4 3.3.0 Boltpay.SDK";
5555
private string _serverUrl = "";
5656
private ISpeakeasyHttpClient _client;
5757
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;
@@ -64,13 +64,13 @@ public Guest(ISpeakeasyHttpClient client, Func<Boltpay.SDK.Models.Components.Sec
6464
SDKConfiguration = config;
6565
}
6666

67-
public async Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPaymentsInitializeSecurity security, string xPublishableKey, string xMerchantClientId, GuestPaymentInitializeRequest guestPaymentInitializeRequest)
67+
public async Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPaymentsInitializeSecurity security, string xPublishableKey, GuestPaymentInitializeRequest guestPaymentInitializeRequest, string? xMerchantClientId = null)
6868
{
6969
var request = new GuestPaymentsInitializeRequest()
7070
{
7171
XPublishableKey = xPublishableKey,
72-
XMerchantClientId = xMerchantClientId,
7372
GuestPaymentInitializeRequest = guestPaymentInitializeRequest,
73+
XMerchantClientId = xMerchantClientId,
7474
};
7575
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
7676

@@ -186,14 +186,14 @@ public async Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPayments
186186
}
187187
}
188188

189-
public async Task<GuestPaymentsActionResponse> PerformActionAsync(GuestPaymentsActionSecurity security, string xPublishableKey, string xMerchantClientId, string id, PaymentActionRequest paymentActionRequest)
189+
public async Task<GuestPaymentsActionResponse> PerformActionAsync(GuestPaymentsActionSecurity security, string xPublishableKey, string id, PaymentActionRequest paymentActionRequest, string? xMerchantClientId = null)
190190
{
191191
var request = new GuestPaymentsActionRequest()
192192
{
193193
XPublishableKey = xPublishableKey,
194-
XMerchantClientId = xMerchantClientId,
195194
Id = id,
196195
PaymentActionRequest = paymentActionRequest,
196+
XMerchantClientId = xMerchantClientId,
197197
};
198198
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
199199
var urlString = URLBuilder.Build(baseUrl, "/guest/payments/{id}", request);

0 commit comments

Comments
 (0)