Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.449.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Dec 3, 2024
1 parent c2be80b commit 2a3cf99
Show file tree
Hide file tree
Showing 43 changed files with 317 additions and 302 deletions.
12 changes: 6 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: 6be0ff6b-aa40-4b34-a3eb-72d091b3c545
management:
docChecksum: 4872a098e96fdd74a02537943961bed7
docVersion: 3.2.5
speakeasyVersion: 1.448.0
generationVersion: 2.466.0
releaseVersion: 0.4.1
configChecksum: d185556e87f2ddeec66e007d4dc7d70f
docChecksum: 8ff3e37e3bcdf4b0ef72f37df29c2c47
docVersion: 3.3.0
speakeasyVersion: 1.449.0
generationVersion: 2.467.4
releaseVersion: 0.5.0
configChecksum: 53afcfd3f663695977d7e8589f51f2c3
repoURL: https://github.com/BoltApp/Bolt-CSharp-SDK.git
features:
csharp:
Expand Down
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: false
oAuth2PasswordEnabled: false
csharp:
version: 0.4.1
version: 0.5.0
additionalDependencies: []
author: Speakeasy
clientServerStatusCodesAsErrors: true
Expand Down
16 changes: 8 additions & 8 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.448.0
speakeasyVersion: 1.449.0
sources:
bolt-csharp-api:
sourceNamespace: bolt-csharp-api
sourceRevisionDigest: sha256:539bafcd23aedcb7bdcc67c61a97cd1e0c65a1d1a2d57d739f0c0a1073025732
sourceBlobDigest: sha256:6a2aeb90866b3a655e132aaf94933f5edeb2b5d182423e38c1fde6af06d74aed
sourceRevisionDigest: sha256:0a1817afa56dd122fa887b7c8df99062e9d899d29bc46af209e03738c4d1e75a
sourceBlobDigest: sha256:51c81ecaaa90446ad8968d89a42a84bcd2b3bfa0f97ba4cb8aae067637538117
tags:
- latest
- speakeasy-sdk-regen-1732667414
- 3.2.5
- speakeasy-sdk-regen-1733185923
- 3.3.0
targets:
bolt-sdk:
source: bolt-csharp-api
sourceNamespace: bolt-csharp-api
sourceRevisionDigest: sha256:539bafcd23aedcb7bdcc67c61a97cd1e0c65a1d1a2d57d739f0c0a1073025732
sourceBlobDigest: sha256:6a2aeb90866b3a655e132aaf94933f5edeb2b5d182423e38c1fde6af06d74aed
sourceRevisionDigest: sha256:0a1817afa56dd122fa887b7c8df99062e9d899d29bc46af209e03738c4d1e75a
sourceBlobDigest: sha256:51c81ecaaa90446ad8968d89a42a84bcd2b3bfa0f97ba4cb8aae067637538117
codeSamplesNamespace: bolt-csharp-api-code-samples
codeSamplesRevisionDigest: sha256:d2f4eaf74c2442ae4de0cf4a885c019a3c918e0f4eddc11ebb993c834ddacfc0
codeSamplesRevisionDigest: sha256:8d19b56b300b5fbfe771442a578084d888dd830cf41482639e30b55f9b94d2fe
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
42 changes: 21 additions & 21 deletions Boltpay/SDK/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public interface IAccount
/// 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.
/// </remarks>
/// </summary>
Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, string xMerchantClientId);
Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, string? xMerchantClientId = null);

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

/// <summary>
/// Edit an existing address
Expand All @@ -53,7 +53,7 @@ public interface IAccount
/// 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.
/// </remarks>
/// </summary>
Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublishableKey, string xMerchantClientId, string id, AddressListingInput addressListing);
Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublishableKey, string id, AddressListingInput addressListing, string? xMerchantClientId = null);

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

/// <summary>
/// Add a payment method
Expand All @@ -71,7 +71,7 @@ public interface IAccount
/// 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.
/// </remarks>
/// </summary>
Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string xPublishableKey, string xMerchantClientId, PaymentMethodInput paymentMethod);
Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string xPublishableKey, PaymentMethodInput paymentMethod, string? xMerchantClientId = null);

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

/// <summary>
Expand All @@ -90,10 +90,10 @@ public class Account: IAccount
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.4.1";
private const string _sdkGenVersion = "2.466.0";
private const string _openapiDocVersion = "3.2.5";
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.466.0 3.2.5 Boltpay.SDK";
private const string _sdkVersion = "0.5.0";
private const string _sdkGenVersion = "2.467.4";
private const string _openapiDocVersion = "3.3.0";
private const string _userAgent = "speakeasy-sdk/csharp 0.5.0 2.467.4 3.3.0 Boltpay.SDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;
Expand All @@ -106,7 +106,7 @@ public Account(ISpeakeasyHttpClient client, Func<Boltpay.SDK.Models.Components.S
SDKConfiguration = config;
}

public async Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, string xMerchantClientId)
public async Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, string? xMerchantClientId = null)
{
var request = new AccountGetRequest()
{
Expand Down Expand Up @@ -215,13 +215,13 @@ public async Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, st
}
}

public async Task<AccountAddressCreateResponse> AddAddressAsync(string xPublishableKey, string xMerchantClientId, AddressListingInput addressListing)
public async Task<AccountAddressCreateResponse> AddAddressAsync(string xPublishableKey, AddressListingInput addressListing, string? xMerchantClientId = null)
{
var request = new AccountAddressCreateRequest()
{
XPublishableKey = xPublishableKey,
XMerchantClientId = xMerchantClientId,
AddressListing = addressListing,
XMerchantClientId = xMerchantClientId,
};
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();

Expand Down Expand Up @@ -331,14 +331,14 @@ public async Task<AccountAddressCreateResponse> AddAddressAsync(string xPublisha
}
}

public async Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublishableKey, string xMerchantClientId, string id, AddressListingInput addressListing)
public async Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublishableKey, string id, AddressListingInput addressListing, string? xMerchantClientId = null)
{
var request = new AccountAddressEditRequest()
{
XPublishableKey = xPublishableKey,
XMerchantClientId = xMerchantClientId,
Id = id,
AddressListing = addressListing,
XMerchantClientId = xMerchantClientId,
};
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
var urlString = URLBuilder.Build(baseUrl, "/account/addresses/{id}", request);
Expand Down Expand Up @@ -447,13 +447,13 @@ public async Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublish
}
}

public async Task<AccountAddressDeleteResponse> DeleteAddressAsync(string xPublishableKey, string xMerchantClientId, string id)
public async Task<AccountAddressDeleteResponse> DeleteAddressAsync(string xPublishableKey, string id, string? xMerchantClientId = null)
{
var request = new AccountAddressDeleteRequest()
{
XPublishableKey = xPublishableKey,
XMerchantClientId = xMerchantClientId,
Id = id,
XMerchantClientId = xMerchantClientId,
};
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
var urlString = URLBuilder.Build(baseUrl, "/account/addresses/{id}", request);
Expand Down Expand Up @@ -537,13 +537,13 @@ public async Task<AccountAddressDeleteResponse> DeleteAddressAsync(string xPubli
}
}

public async Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string xPublishableKey, string xMerchantClientId, PaymentMethodInput paymentMethod)
public async Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string xPublishableKey, PaymentMethodInput paymentMethod, string? xMerchantClientId = null)
{
var request = new AccountAddPaymentMethodRequest()
{
XPublishableKey = xPublishableKey,
XMerchantClientId = xMerchantClientId,
PaymentMethod = paymentMethod,
XMerchantClientId = xMerchantClientId,
};
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();

Expand Down Expand Up @@ -655,13 +655,13 @@ public async Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string
}
}

public async Task<AccountPaymentMethodDeleteResponse> DeletePaymentMethodAsync(string xPublishableKey, string xMerchantClientId, string id)
public async Task<AccountPaymentMethodDeleteResponse> DeletePaymentMethodAsync(string xPublishableKey, string id, string? xMerchantClientId = null)
{
var request = new AccountPaymentMethodDeleteRequest()
{
XPublishableKey = xPublishableKey,
XMerchantClientId = xMerchantClientId,
Id = id,
XMerchantClientId = xMerchantClientId,
};
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
var urlString = URLBuilder.Build(baseUrl, "/account/payment-methods/{id}", request);
Expand Down
8 changes: 4 additions & 4 deletions Boltpay/SDK/BoltSDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ public class BoltSDK: IBoltSDK
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "0.4.1";
private const string _sdkGenVersion = "2.466.0";
private const string _openapiDocVersion = "3.2.5";
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.466.0 3.2.5 Boltpay.SDK";
private const string _sdkVersion = "0.5.0";
private const string _sdkGenVersion = "2.467.4";
private const string _openapiDocVersion = "3.3.0";
private const string _userAgent = "speakeasy-sdk/csharp 0.5.0 2.467.4 3.3.0 Boltpay.SDK";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _client;
Expand Down
2 changes: 1 addition & 1 deletion Boltpay/SDK/Boltpay.SDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Boltpay.SDK</PackageId>
<Version>0.4.1</Version>
<Version>0.5.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Speakeasy</Authors>
<Copyright>Copyright (c) Speakeasy 2024</Copyright>
Expand Down
20 changes: 10 additions & 10 deletions Boltpay/SDK/Guest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public interface IGuest
/// 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.
/// </remarks>
/// </summary>
Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPaymentsInitializeSecurity security, string xPublishableKey, string xMerchantClientId, GuestPaymentInitializeRequest guestPaymentInitializeRequest);
Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPaymentsInitializeSecurity security, string xPublishableKey, GuestPaymentInitializeRequest guestPaymentInitializeRequest, string? xMerchantClientId = null);

/// <summary>
/// Finalize a pending guest payment
Expand All @@ -41,17 +41,17 @@ public interface IGuest
/// 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.
/// </remarks>
/// </summary>
Task<GuestPaymentsActionResponse> PerformActionAsync(GuestPaymentsActionSecurity security, string xPublishableKey, string xMerchantClientId, string id, PaymentActionRequest paymentActionRequest);
Task<GuestPaymentsActionResponse> PerformActionAsync(GuestPaymentsActionSecurity security, string xPublishableKey, string id, PaymentActionRequest paymentActionRequest, string? xMerchantClientId = null);
}

public class Guest: IGuest
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.4.1";
private const string _sdkGenVersion = "2.466.0";
private const string _openapiDocVersion = "3.2.5";
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.466.0 3.2.5 Boltpay.SDK";
private const string _sdkVersion = "0.5.0";
private const string _sdkGenVersion = "2.467.4";
private const string _openapiDocVersion = "3.3.0";
private const string _userAgent = "speakeasy-sdk/csharp 0.5.0 2.467.4 3.3.0 Boltpay.SDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Boltpay.SDK.Models.Components.Security>? _securitySource;
Expand All @@ -64,13 +64,13 @@ public Guest(ISpeakeasyHttpClient client, Func<Boltpay.SDK.Models.Components.Sec
SDKConfiguration = config;
}

public async Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPaymentsInitializeSecurity security, string xPublishableKey, string xMerchantClientId, GuestPaymentInitializeRequest guestPaymentInitializeRequest)
public async Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPaymentsInitializeSecurity security, string xPublishableKey, GuestPaymentInitializeRequest guestPaymentInitializeRequest, string? xMerchantClientId = null)
{
var request = new GuestPaymentsInitializeRequest()
{
XPublishableKey = xPublishableKey,
XMerchantClientId = xMerchantClientId,
GuestPaymentInitializeRequest = guestPaymentInitializeRequest,
XMerchantClientId = xMerchantClientId,
};
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();

Expand Down Expand Up @@ -186,14 +186,14 @@ public async Task<GuestPaymentsInitializeResponse> InitializeAsync(GuestPayments
}
}

public async Task<GuestPaymentsActionResponse> PerformActionAsync(GuestPaymentsActionSecurity security, string xPublishableKey, string xMerchantClientId, string id, PaymentActionRequest paymentActionRequest)
public async Task<GuestPaymentsActionResponse> PerformActionAsync(GuestPaymentsActionSecurity security, string xPublishableKey, string id, PaymentActionRequest paymentActionRequest, string? xMerchantClientId = null)
{
var request = new GuestPaymentsActionRequest()
{
XPublishableKey = xPublishableKey,
XMerchantClientId = xMerchantClientId,
Id = id,
PaymentActionRequest = paymentActionRequest,
XMerchantClientId = xMerchantClientId,
};
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
var urlString = URLBuilder.Build(baseUrl, "/guest/payments/{id}", request);
Expand Down
Loading

0 comments on commit 2a3cf99

Please sign in to comment.