Skip to content

Commit cbe891c

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.179.0 (#250)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent ddeb836 commit cbe891c

File tree

391 files changed

+8028
-3239
lines changed

Some content is hidden

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

391 files changed

+8028
-3239
lines changed

lending/.speakeasy/gen.lock

Lines changed: 1371 additions & 0 deletions
Large diffs are not rendered by default.

lending/CodatLending/AccountBalances.cs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ public class AccountBalances: IAccountBalances
4141
{
4242
public SDKConfig SDKConfiguration { get; private set; }
4343
private const string _language = "csharp";
44-
private const string _sdkVersion = "5.2.0";
45-
private const string _sdkGenVersion = "2.214.3";
44+
private const string _sdkVersion = "5.3.0";
45+
private const string _sdkGenVersion = "2.257.2";
4646
private const string _openapiDocVersion = "3.0.0";
47-
private const string _userAgent = "speakeasy-sdk/csharp 5.2.0 2.214.3 3.0.0 Codat.Lending";
47+
private const string _userAgent = "speakeasy-sdk/csharp 5.3.0 2.257.2 3.0.0 Codat.Lending";
4848
private string _serverUrl = "";
4949
private ISpeakeasyHttpClient _defaultClient;
50-
private ISpeakeasyHttpClient _securityClient;
50+
private Func<Security>? _securitySource;
5151

52-
public AccountBalances(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config)
52+
public AccountBalances(ISpeakeasyHttpClient defaultClient, Func<Security>? securitySource, string serverUrl, SDKConfig config)
5353
{
5454
_defaultClient = defaultClient;
55-
_securityClient = securityClient;
55+
_securitySource = securitySource;
5656
_serverUrl = serverUrl;
5757
SDKConfiguration = config;
5858
}
@@ -67,8 +67,12 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccou
6767
httpRequest.Headers.Add("user-agent", _userAgent);
6868

6969

70-
var client = _securityClient;
71-
70+
var client = _defaultClient;
71+
if (_securitySource != null)
72+
{
73+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
74+
}
75+
7276
var httpResponse = await client.SendAsync(httpRequest);
7377

7478
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
@@ -86,7 +90,7 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccou
8690
{
8791
response.BankingAccountBalances = JsonConvert.DeserializeObject<BankingAccountBalances>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
8892
}
89-
93+
9094
return response;
9195
}
9296
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
@@ -95,11 +99,12 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccou
9599
{
96100
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
97101
}
98-
102+
99103
return response;
100104
}
101105
return response;
102106
}
107+
103108

104109
}
105110
}

lending/CodatLending/AccountTransactions.cs

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ public class AccountTransactions: IAccountTransactions
5757
{
5858
public SDKConfig SDKConfiguration { get; private set; }
5959
private const string _language = "csharp";
60-
private const string _sdkVersion = "5.2.0";
61-
private const string _sdkGenVersion = "2.214.3";
60+
private const string _sdkVersion = "5.3.0";
61+
private const string _sdkGenVersion = "2.257.2";
6262
private const string _openapiDocVersion = "3.0.0";
63-
private const string _userAgent = "speakeasy-sdk/csharp 5.2.0 2.214.3 3.0.0 Codat.Lending";
63+
private const string _userAgent = "speakeasy-sdk/csharp 5.3.0 2.257.2 3.0.0 Codat.Lending";
6464
private string _serverUrl = "";
6565
private ISpeakeasyHttpClient _defaultClient;
66-
private ISpeakeasyHttpClient _securityClient;
66+
private Func<Security>? _securitySource;
6767

68-
public AccountTransactions(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config)
68+
public AccountTransactions(ISpeakeasyHttpClient defaultClient, Func<Security>? securitySource, string serverUrl, SDKConfig config)
6969
{
7070
_defaultClient = defaultClient;
71-
_securityClient = securityClient;
71+
_securitySource = securitySource;
7272
_serverUrl = serverUrl;
7373
SDKConfiguration = config;
7474
}
@@ -83,8 +83,12 @@ public async Task<GetAccountingAccountTransactionResponse> GetAsync(GetAccountin
8383
httpRequest.Headers.Add("user-agent", _userAgent);
8484

8585

86-
var client = _securityClient;
87-
86+
var client = _defaultClient;
87+
if (_securitySource != null)
88+
{
89+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
90+
}
91+
8892
var httpResponse = await client.SendAsync(httpRequest);
8993

9094
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
@@ -102,7 +106,7 @@ public async Task<GetAccountingAccountTransactionResponse> GetAsync(GetAccountin
102106
{
103107
response.AccountingAccountTransaction = JsonConvert.DeserializeObject<AccountingAccountTransaction>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
104108
}
105-
109+
106110
return response;
107111
}
108112
if((response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
@@ -111,11 +115,12 @@ public async Task<GetAccountingAccountTransactionResponse> GetAsync(GetAccountin
111115
{
112116
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
113117
}
114-
118+
115119
return response;
116120
}
117121
return response;
118122
}
123+
119124

120125

121126
public async Task<ListAccountingAccountTransactionsResponse> ListAsync(ListAccountingAccountTransactionsRequest? request = null)
@@ -127,8 +132,12 @@ public async Task<ListAccountingAccountTransactionsResponse> ListAsync(ListAccou
127132
httpRequest.Headers.Add("user-agent", _userAgent);
128133

129134

130-
var client = _securityClient;
131-
135+
var client = _defaultClient;
136+
if (_securitySource != null)
137+
{
138+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
139+
}
140+
132141
var httpResponse = await client.SendAsync(httpRequest);
133142

134143
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
@@ -146,7 +155,7 @@ public async Task<ListAccountingAccountTransactionsResponse> ListAsync(ListAccou
146155
{
147156
response.AccountingAccountTransactions = JsonConvert.DeserializeObject<AccountingAccountTransactions>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
148157
}
149-
158+
150159
return response;
151160
}
152161
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
@@ -155,11 +164,12 @@ public async Task<ListAccountingAccountTransactionsResponse> ListAsync(ListAccou
155164
{
156165
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
157166
}
158-
167+
159168
return response;
160169
}
161170
return response;
162171
}
172+
163173

164174
}
165175
}

lending/CodatLending/Accounts.cs

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ public class Accounts: IAccounts
5757
{
5858
public SDKConfig SDKConfiguration { get; private set; }
5959
private const string _language = "csharp";
60-
private const string _sdkVersion = "5.2.0";
61-
private const string _sdkGenVersion = "2.214.3";
60+
private const string _sdkVersion = "5.3.0";
61+
private const string _sdkGenVersion = "2.257.2";
6262
private const string _openapiDocVersion = "3.0.0";
63-
private const string _userAgent = "speakeasy-sdk/csharp 5.2.0 2.214.3 3.0.0 Codat.Lending";
63+
private const string _userAgent = "speakeasy-sdk/csharp 5.3.0 2.257.2 3.0.0 Codat.Lending";
6464
private string _serverUrl = "";
6565
private ISpeakeasyHttpClient _defaultClient;
66-
private ISpeakeasyHttpClient _securityClient;
66+
private Func<Security>? _securitySource;
6767

68-
public Accounts(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config)
68+
public Accounts(ISpeakeasyHttpClient defaultClient, Func<Security>? securitySource, string serverUrl, SDKConfig config)
6969
{
7070
_defaultClient = defaultClient;
71-
_securityClient = securityClient;
71+
_securitySource = securitySource;
7272
_serverUrl = serverUrl;
7373
SDKConfiguration = config;
7474
}
@@ -83,8 +83,12 @@ public async Task<GetAccountingBankAccountResponse> GetAsync(GetAccountingBankAc
8383
httpRequest.Headers.Add("user-agent", _userAgent);
8484

8585

86-
var client = _securityClient;
87-
86+
var client = _defaultClient;
87+
if (_securitySource != null)
88+
{
89+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
90+
}
91+
8892
var httpResponse = await client.SendAsync(httpRequest);
8993

9094
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
@@ -102,7 +106,7 @@ public async Task<GetAccountingBankAccountResponse> GetAsync(GetAccountingBankAc
102106
{
103107
response.AccountingBankAccount = JsonConvert.DeserializeObject<AccountingBankAccount>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
104108
}
105-
109+
106110
return response;
107111
}
108112
if((response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
@@ -111,11 +115,12 @@ public async Task<GetAccountingBankAccountResponse> GetAsync(GetAccountingBankAc
111115
{
112116
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
113117
}
114-
118+
115119
return response;
116120
}
117121
return response;
118122
}
123+
119124

120125

121126
public async Task<ListAccountingBankAccountsResponse> ListAsync(ListAccountingBankAccountsRequest? request = null)
@@ -127,8 +132,12 @@ public async Task<ListAccountingBankAccountsResponse> ListAsync(ListAccountingBa
127132
httpRequest.Headers.Add("user-agent", _userAgent);
128133

129134

130-
var client = _securityClient;
131-
135+
var client = _defaultClient;
136+
if (_securitySource != null)
137+
{
138+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
139+
}
140+
132141
var httpResponse = await client.SendAsync(httpRequest);
133142

134143
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
@@ -146,7 +155,7 @@ public async Task<ListAccountingBankAccountsResponse> ListAsync(ListAccountingBa
146155
{
147156
response.AccountingBankAccounts = JsonConvert.DeserializeObject<AccountingBankAccounts>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
148157
}
149-
158+
150159
return response;
151160
}
152161
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
@@ -155,11 +164,12 @@ public async Task<ListAccountingBankAccountsResponse> ListAsync(ListAccountingBa
155164
{
156165
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
157166
}
158-
167+
159168
return response;
160169
}
161170
return response;
162171
}
172+
163173

164174
}
165175
}

lending/CodatLending/AccountsPayable.cs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#nullable enable
1111
namespace Codat.Lending
1212
{
13+
using Codat.Lending.Models.Shared;
1314
using Codat.Lending.Utils;
1415
using System;
1516

@@ -25,28 +26,28 @@ public class AccountsPayable: IAccountsPayable
2526
{
2627
public SDKConfig SDKConfiguration { get; private set; }
2728
private const string _language = "csharp";
28-
private const string _sdkVersion = "5.2.0";
29-
private const string _sdkGenVersion = "2.214.3";
29+
private const string _sdkVersion = "5.3.0";
30+
private const string _sdkGenVersion = "2.257.2";
3031
private const string _openapiDocVersion = "3.0.0";
31-
private const string _userAgent = "speakeasy-sdk/csharp 5.2.0 2.214.3 3.0.0 Codat.Lending";
32+
private const string _userAgent = "speakeasy-sdk/csharp 5.3.0 2.257.2 3.0.0 Codat.Lending";
3233
private string _serverUrl = "";
3334
private ISpeakeasyHttpClient _defaultClient;
34-
private ISpeakeasyHttpClient _securityClient;
35+
private Func<Security>? _securitySource;
3536
public IBills Bills { get; private set; }
3637
public ISuppliers Suppliers { get; private set; }
3738
public IBillCreditNotes BillCreditNotes { get; private set; }
3839
public IBillPayments BillPayments { get; private set; }
3940

40-
public AccountsPayable(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config)
41+
public AccountsPayable(ISpeakeasyHttpClient defaultClient, Func<Security>? securitySource, string serverUrl, SDKConfig config)
4142
{
4243
_defaultClient = defaultClient;
43-
_securityClient = securityClient;
44+
_securitySource = securitySource;
4445
_serverUrl = serverUrl;
4546
SDKConfiguration = config;
46-
Bills = new Bills(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
47-
Suppliers = new Suppliers(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
48-
BillCreditNotes = new BillCreditNotes(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
49-
BillPayments = new BillPayments(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
47+
Bills = new Bills(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
48+
Suppliers = new Suppliers(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
49+
BillCreditNotes = new BillCreditNotes(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
50+
BillPayments = new BillPayments(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
5051
}
5152

5253
}

lending/CodatLending/AccountsReceivable.cs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#nullable enable
1111
namespace Codat.Lending
1212
{
13+
using Codat.Lending.Models.Shared;
1314
using Codat.Lending.Utils;
1415
using System;
1516

@@ -27,32 +28,32 @@ public class AccountsReceivable: IAccountsReceivable
2728
{
2829
public SDKConfig SDKConfiguration { get; private set; }
2930
private const string _language = "csharp";
30-
private const string _sdkVersion = "5.2.0";
31-
private const string _sdkGenVersion = "2.214.3";
31+
private const string _sdkVersion = "5.3.0";
32+
private const string _sdkGenVersion = "2.257.2";
3233
private const string _openapiDocVersion = "3.0.0";
33-
private const string _userAgent = "speakeasy-sdk/csharp 5.2.0 2.214.3 3.0.0 Codat.Lending";
34+
private const string _userAgent = "speakeasy-sdk/csharp 5.3.0 2.257.2 3.0.0 Codat.Lending";
3435
private string _serverUrl = "";
3536
private ISpeakeasyHttpClient _defaultClient;
36-
private ISpeakeasyHttpClient _securityClient;
37+
private Func<Security>? _securitySource;
3738
public ICustomers Customers { get; private set; }
3839
public IDirectIncomes DirectIncomes { get; private set; }
3940
public IInvoices Invoices { get; private set; }
4041
public ICreditNotes CreditNotes { get; private set; }
4142
public IPayments Payments { get; private set; }
4243
public IReports Reports { get; private set; }
4344

44-
public AccountsReceivable(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config)
45+
public AccountsReceivable(ISpeakeasyHttpClient defaultClient, Func<Security>? securitySource, string serverUrl, SDKConfig config)
4546
{
4647
_defaultClient = defaultClient;
47-
_securityClient = securityClient;
48+
_securitySource = securitySource;
4849
_serverUrl = serverUrl;
4950
SDKConfiguration = config;
50-
Customers = new Customers(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
51-
DirectIncomes = new DirectIncomes(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
52-
Invoices = new Invoices(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
53-
CreditNotes = new CreditNotes(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
54-
Payments = new Payments(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
55-
Reports = new Reports(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
51+
Customers = new Customers(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
52+
DirectIncomes = new DirectIncomes(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
53+
Invoices = new Invoices(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
54+
CreditNotes = new CreditNotes(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
55+
Payments = new Payments(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
56+
Reports = new Reports(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
5657
}
5758

5859
}

0 commit comments

Comments
 (0)