Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.100.2 (#180)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Oct 17, 2023
1 parent eae6ca8 commit 275d5a4
Show file tree
Hide file tree
Showing 846 changed files with 5,978 additions and 4,279 deletions.
12 changes: 7 additions & 5 deletions lending/CodatLending/AccountingBankData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ public class AccountingBankDataSDK: IAccountingBankDataSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.2.1";
private const string _sdkGenVersion = "2.129.1";
private const string _sdkVersion = "4.3.0";
private const string _sdkGenVersion = "2.159.2";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.3.0 2.159.2 3.0.0 Codat.Lending";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand All @@ -79,7 +80,7 @@ public async Task<ListAccountingBankAccountTransactionsResponse> ListTransaction


var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
httpRequest.Headers.Add("user-agent", _userAgent);


var client = _securityClient;
Expand All @@ -94,9 +95,10 @@ public async Task<ListAccountingBankAccountTransactionsResponse> ListTransaction
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.AccountingBankTransactions = JsonConvert.DeserializeObject<AccountingBankTransactions>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -105,7 +107,7 @@ public async Task<ListAccountingBankAccountTransactionsResponse> ListTransaction
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand Down
19 changes: 11 additions & 8 deletions lending/CodatLending/AccountingBankDataAccounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ public class AccountingBankDataAccountsSDK: IAccountingBankDataAccountsSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.2.1";
private const string _sdkGenVersion = "2.129.1";
private const string _sdkVersion = "4.3.0";
private const string _sdkGenVersion = "2.159.2";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.3.0 2.159.2 3.0.0 Codat.Lending";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand All @@ -84,7 +85,7 @@ public async Task<GetAccountingBankAccountResponse> GetAsync(GetAccountingBankAc


var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
httpRequest.Headers.Add("user-agent", _userAgent);


var client = _securityClient;
Expand All @@ -99,9 +100,10 @@ public async Task<GetAccountingBankAccountResponse> GetAsync(GetAccountingBankAc
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.AccountingBankAccount = JsonConvert.DeserializeObject<AccountingBankAccount>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -110,7 +112,7 @@ public async Task<GetAccountingBankAccountResponse> GetAsync(GetAccountingBankAc
}
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -132,7 +134,7 @@ public async Task<ListAccountingBankAccountsResponse> ListAsync(ListAccountingBa


var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
httpRequest.Headers.Add("user-agent", _userAgent);


var client = _securityClient;
Expand All @@ -147,9 +149,10 @@ public async Task<ListAccountingBankAccountsResponse> ListAsync(ListAccountingBa
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.AccountingBankAccounts = JsonConvert.DeserializeObject<AccountingBankAccounts>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -158,7 +161,7 @@ public async Task<ListAccountingBankAccountsResponse> ListAsync(ListAccountingBa
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand Down
5 changes: 3 additions & 2 deletions lending/CodatLending/AccountsPayable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ public class AccountsPayableSDK: IAccountsPayableSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.2.1";
private const string _sdkGenVersion = "2.129.1";
private const string _sdkVersion = "4.3.0";
private const string _sdkGenVersion = "2.159.2";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.3.0 2.159.2 3.0.0 Codat.Lending";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
19 changes: 11 additions & 8 deletions lending/CodatLending/AccountsPayableBillCreditNotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ public class AccountsPayableBillCreditNotesSDK: IAccountsPayableBillCreditNotesS
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.2.1";
private const string _sdkGenVersion = "2.129.1";
private const string _sdkVersion = "4.3.0";
private const string _sdkGenVersion = "2.159.2";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.3.0 2.159.2 3.0.0 Codat.Lending";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand All @@ -84,7 +85,7 @@ public async Task<GetAccountingBillCreditNoteResponse> GetAsync(GetAccountingBil


var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
httpRequest.Headers.Add("user-agent", _userAgent);


var client = _securityClient;
Expand All @@ -99,9 +100,10 @@ public async Task<GetAccountingBillCreditNoteResponse> GetAsync(GetAccountingBil
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.AccountingBillCreditNote = JsonConvert.DeserializeObject<AccountingBillCreditNote>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -110,7 +112,7 @@ public async Task<GetAccountingBillCreditNoteResponse> GetAsync(GetAccountingBil
}
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -132,7 +134,7 @@ public async Task<ListAccountingBillCreditNotesResponse> ListAsync(ListAccountin


var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
httpRequest.Headers.Add("user-agent", _userAgent);


var client = _securityClient;
Expand All @@ -147,9 +149,10 @@ public async Task<ListAccountingBillCreditNotesResponse> ListAsync(ListAccountin
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.AccountingBillCreditNotes = JsonConvert.DeserializeObject<AccountingBillCreditNotes>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -158,7 +161,7 @@ public async Task<ListAccountingBillCreditNotesResponse> ListAsync(ListAccountin
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand Down
19 changes: 11 additions & 8 deletions lending/CodatLending/AccountsPayableBillPayments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ public class AccountsPayableBillPaymentsSDK: IAccountsPayableBillPaymentsSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.2.1";
private const string _sdkGenVersion = "2.129.1";
private const string _sdkVersion = "4.3.0";
private const string _sdkGenVersion = "2.159.2";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.3.0 2.159.2 3.0.0 Codat.Lending";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand All @@ -84,7 +85,7 @@ public async Task<GetAccountingBillPaymentResponse> GetAsync(GetAccountingBillPa


var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
httpRequest.Headers.Add("user-agent", _userAgent);


var client = _securityClient;
Expand All @@ -99,9 +100,10 @@ public async Task<GetAccountingBillPaymentResponse> GetAsync(GetAccountingBillPa
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.AccountingBillPayment = JsonConvert.DeserializeObject<AccountingBillPayment>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -110,7 +112,7 @@ public async Task<GetAccountingBillPaymentResponse> GetAsync(GetAccountingBillPa
}
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -132,7 +134,7 @@ public async Task<ListAccountingBillPaymentsResponse> ListAsync(ListAccountingBi


var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
httpRequest.Headers.Add("user-agent", _userAgent);


var client = _securityClient;
Expand All @@ -147,9 +149,10 @@ public async Task<ListAccountingBillPaymentsResponse> ListAsync(ListAccountingBi
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.AccountingBillPayments = JsonConvert.DeserializeObject<AccountingBillPayments>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -158,7 +161,7 @@ public async Task<ListAccountingBillPaymentsResponse> ListAsync(ListAccountingBi
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand Down
Loading

0 comments on commit 275d5a4

Please sign in to comment.