Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.100.2 (#178)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
  • Loading branch information
github-actions[bot] and speakeasybot authored Oct 17, 2023
1 parent 275d5a4 commit 28759bd
Show file tree
Hide file tree
Showing 339 changed files with 2,181 additions and 2,073 deletions.
33 changes: 19 additions & 14 deletions sync-for-payables/CodatSyncPayables/Accounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ public class AccountsSDK: IAccountsSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "2.1.0";
private const string _sdkGenVersion = "2.129.1";
private const string _sdkVersion = "2.2.0";
private const string _sdkGenVersion = "2.159.2";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 3.0.0 Codat.Sync.Payables";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand All @@ -125,7 +126,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu


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

var serializedBody = RequestBodySerializer.Serialize(request, "Account", "json");
if (serializedBody != null)
Expand All @@ -145,9 +146,10 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.CreateAccountResponseValue = JsonConvert.DeserializeObject<Models.Shared.CreateAccountResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -156,7 +158,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (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 @@ -178,7 +180,7 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null


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 @@ -193,9 +195,10 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.Account = JsonConvert.DeserializeObject<Account>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -204,7 +207,7 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null
}
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 @@ -226,7 +229,7 @@ public async Task<GetCreateAccountModelResponse> GetCreateModelAsync(GetCreateAc


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 @@ -241,9 +244,10 @@ public async Task<GetCreateAccountModelResponse> GetCreateModelAsync(GetCreateAc
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.PushOption = JsonConvert.DeserializeObject<PushOption>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -252,7 +256,7 @@ public async Task<GetCreateAccountModelResponse> GetCreateModelAsync(GetCreateAc
}
if((response.StatusCode == 401) || (response.StatusCode == 404) || (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 @@ -274,7 +278,7 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request =


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 @@ -289,9 +293,10 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request =
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.Accounts = JsonConvert.DeserializeObject<Accounts>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -300,7 +305,7 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request =
}
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
40 changes: 23 additions & 17 deletions sync-for-payables/CodatSyncPayables/BillCreditNotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ public class BillCreditNotesSDK: IBillCreditNotesSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "2.1.0";
private const string _sdkGenVersion = "2.129.1";
private const string _sdkVersion = "2.2.0";
private const string _sdkGenVersion = "2.159.2";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 3.0.0 Codat.Sync.Payables";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand All @@ -144,7 +145,7 @@ public BillCreditNotesSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClie


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

var serializedBody = RequestBodySerializer.Serialize(request, "BillCreditNote", "json");
if (serializedBody != null)
Expand All @@ -164,9 +165,10 @@ public BillCreditNotesSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClie
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.CreateBillCreditNoteResponseValue = JsonConvert.DeserializeObject<Models.Shared.CreateBillCreditNoteResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -175,7 +177,7 @@ public BillCreditNotesSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClie
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (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 @@ -197,7 +199,7 @@ public async Task<GetBillCreditNoteResponse> GetAsync(GetBillCreditNoteRequest?


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 @@ -212,9 +214,10 @@ public async Task<GetBillCreditNoteResponse> GetAsync(GetBillCreditNoteRequest?
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.BillCreditNote = JsonConvert.DeserializeObject<BillCreditNote>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -223,7 +226,7 @@ public async Task<GetBillCreditNoteResponse> GetAsync(GetBillCreditNoteRequest?
}
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 @@ -245,7 +248,7 @@ public async Task<GetCreateUpdateBillCreditNoteModelResponse> GetCreateUpdateMod


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 @@ -260,9 +263,10 @@ public async Task<GetCreateUpdateBillCreditNoteModelResponse> GetCreateUpdateMod
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.PushOption = JsonConvert.DeserializeObject<PushOption>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -271,7 +275,7 @@ public async Task<GetCreateUpdateBillCreditNoteModelResponse> GetCreateUpdateMod
}
if((response.StatusCode == 401) || (response.StatusCode == 404) || (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 @@ -293,7 +297,7 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ


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 @@ -308,9 +312,10 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.BillCreditNotes = JsonConvert.DeserializeObject<BillCreditNotes>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -319,7 +324,7 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ
}
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 All @@ -341,7 +346,7 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ


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

var serializedBody = RequestBodySerializer.Serialize(request, "BillCreditNote", "json");
if (serializedBody != null)
Expand All @@ -361,9 +366,10 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.UpdateBillCreditNoteResponseValue = JsonConvert.DeserializeObject<Models.Shared.UpdateBillCreditNoteResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}
Expand All @@ -372,7 +378,7 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (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
Loading

0 comments on commit 28759bd

Please sign in to comment.