Skip to content

Commit 28759bd

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.100.2 (#178)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 275d5a4 commit 28759bd

File tree

339 files changed

+2181
-2073
lines changed

Some content is hidden

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

339 files changed

+2181
-2073
lines changed

sync-for-payables/CodatSyncPayables/Accounts.cs

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ public class AccountsSDK: IAccountsSDK
9898
{
9999
public SDKConfig Config { get; private set; }
100100
private const string _language = "csharp";
101-
private const string _sdkVersion = "2.1.0";
102-
private const string _sdkGenVersion = "2.129.1";
101+
private const string _sdkVersion = "2.2.0";
102+
private const string _sdkGenVersion = "2.159.2";
103103
private const string _openapiDocVersion = "3.0.0";
104+
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 3.0.0 Codat.Sync.Payables";
104105
private string _serverUrl = "";
105106
private ISpeakeasyHttpClient _defaultClient;
106107
private ISpeakeasyHttpClient _securityClient;
@@ -125,7 +126,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
125126

126127

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

130131
var serializedBody = RequestBodySerializer.Serialize(request, "Account", "json");
131132
if (serializedBody != null)
@@ -145,9 +146,10 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
145146
ContentType = contentType,
146147
RawResponse = httpResponse
147148
};
149+
148150
if((response.StatusCode == 200))
149151
{
150-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
152+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
151153
{
152154
response.CreateAccountResponseValue = JsonConvert.DeserializeObject<Models.Shared.CreateAccountResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
153155
}
@@ -156,7 +158,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
156158
}
157159
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
158160
{
159-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
161+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
160162
{
161163
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
162164
}
@@ -178,7 +180,7 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null
178180

179181

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

183185

184186
var client = _securityClient;
@@ -193,9 +195,10 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null
193195
ContentType = contentType,
194196
RawResponse = httpResponse
195197
};
198+
196199
if((response.StatusCode == 200))
197200
{
198-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
201+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
199202
{
200203
response.Account = JsonConvert.DeserializeObject<Account>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
201204
}
@@ -204,7 +207,7 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null
204207
}
205208
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429))
206209
{
207-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
210+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
208211
{
209212
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
210213
}
@@ -226,7 +229,7 @@ public async Task<GetCreateAccountModelResponse> GetCreateModelAsync(GetCreateAc
226229

227230

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

231234

232235
var client = _securityClient;
@@ -241,9 +244,10 @@ public async Task<GetCreateAccountModelResponse> GetCreateModelAsync(GetCreateAc
241244
ContentType = contentType,
242245
RawResponse = httpResponse
243246
};
247+
244248
if((response.StatusCode == 200))
245249
{
246-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
250+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
247251
{
248252
response.PushOption = JsonConvert.DeserializeObject<PushOption>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
249253
}
@@ -252,7 +256,7 @@ public async Task<GetCreateAccountModelResponse> GetCreateModelAsync(GetCreateAc
252256
}
253257
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
254258
{
255-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
259+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
256260
{
257261
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
258262
}
@@ -274,7 +278,7 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request =
274278

275279

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

279283

280284
var client = _securityClient;
@@ -289,9 +293,10 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request =
289293
ContentType = contentType,
290294
RawResponse = httpResponse
291295
};
296+
292297
if((response.StatusCode == 200))
293298
{
294-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
299+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
295300
{
296301
response.Accounts = JsonConvert.DeserializeObject<Accounts>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
297302
}
@@ -300,7 +305,7 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request =
300305
}
301306
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409))
302307
{
303-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
308+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
304309
{
305310
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
306311
}

sync-for-payables/CodatSyncPayables/BillCreditNotes.cs

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ public class BillCreditNotesSDK: IBillCreditNotesSDK
117117
{
118118
public SDKConfig Config { get; private set; }
119119
private const string _language = "csharp";
120-
private const string _sdkVersion = "2.1.0";
121-
private const string _sdkGenVersion = "2.129.1";
120+
private const string _sdkVersion = "2.2.0";
121+
private const string _sdkGenVersion = "2.159.2";
122122
private const string _openapiDocVersion = "3.0.0";
123+
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 3.0.0 Codat.Sync.Payables";
123124
private string _serverUrl = "";
124125
private ISpeakeasyHttpClient _defaultClient;
125126
private ISpeakeasyHttpClient _securityClient;
@@ -144,7 +145,7 @@ public BillCreditNotesSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClie
144145

145146

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

149150
var serializedBody = RequestBodySerializer.Serialize(request, "BillCreditNote", "json");
150151
if (serializedBody != null)
@@ -164,9 +165,10 @@ public BillCreditNotesSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClie
164165
ContentType = contentType,
165166
RawResponse = httpResponse
166167
};
168+
167169
if((response.StatusCode == 200))
168170
{
169-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
171+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
170172
{
171173
response.CreateBillCreditNoteResponseValue = JsonConvert.DeserializeObject<Models.Shared.CreateBillCreditNoteResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
172174
}
@@ -175,7 +177,7 @@ public BillCreditNotesSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClie
175177
}
176178
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
177179
{
178-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
180+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
179181
{
180182
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
181183
}
@@ -197,7 +199,7 @@ public async Task<GetBillCreditNoteResponse> GetAsync(GetBillCreditNoteRequest?
197199

198200

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

202204

203205
var client = _securityClient;
@@ -212,9 +214,10 @@ public async Task<GetBillCreditNoteResponse> GetAsync(GetBillCreditNoteRequest?
212214
ContentType = contentType,
213215
RawResponse = httpResponse
214216
};
217+
215218
if((response.StatusCode == 200))
216219
{
217-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
220+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
218221
{
219222
response.BillCreditNote = JsonConvert.DeserializeObject<BillCreditNote>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
220223
}
@@ -223,7 +226,7 @@ public async Task<GetBillCreditNoteResponse> GetAsync(GetBillCreditNoteRequest?
223226
}
224227
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429))
225228
{
226-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
229+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
227230
{
228231
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
229232
}
@@ -245,7 +248,7 @@ public async Task<GetCreateUpdateBillCreditNoteModelResponse> GetCreateUpdateMod
245248

246249

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

250253

251254
var client = _securityClient;
@@ -260,9 +263,10 @@ public async Task<GetCreateUpdateBillCreditNoteModelResponse> GetCreateUpdateMod
260263
ContentType = contentType,
261264
RawResponse = httpResponse
262265
};
266+
263267
if((response.StatusCode == 200))
264268
{
265-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
269+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
266270
{
267271
response.PushOption = JsonConvert.DeserializeObject<PushOption>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
268272
}
@@ -271,7 +275,7 @@ public async Task<GetCreateUpdateBillCreditNoteModelResponse> GetCreateUpdateMod
271275
}
272276
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
273277
{
274-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
278+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
275279
{
276280
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
277281
}
@@ -293,7 +297,7 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ
293297

294298

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

298302

299303
var client = _securityClient;
@@ -308,9 +312,10 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ
308312
ContentType = contentType,
309313
RawResponse = httpResponse
310314
};
315+
311316
if((response.StatusCode == 200))
312317
{
313-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
318+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
314319
{
315320
response.BillCreditNotes = JsonConvert.DeserializeObject<BillCreditNotes>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
316321
}
@@ -319,7 +324,7 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ
319324
}
320325
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409))
321326
{
322-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
327+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
323328
{
324329
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
325330
}
@@ -341,7 +346,7 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ
341346

342347

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

346351
var serializedBody = RequestBodySerializer.Serialize(request, "BillCreditNote", "json");
347352
if (serializedBody != null)
@@ -361,9 +366,10 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ
361366
ContentType = contentType,
362367
RawResponse = httpResponse
363368
};
369+
364370
if((response.StatusCode == 200))
365371
{
366-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
372+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
367373
{
368374
response.UpdateBillCreditNoteResponseValue = JsonConvert.DeserializeObject<Models.Shared.UpdateBillCreditNoteResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
369375
}
@@ -372,7 +378,7 @@ public async Task<ListBillCreditNotesResponse> ListAsync(ListBillCreditNotesRequ
372378
}
373379
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
374380
{
375-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
381+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
376382
{
377383
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
378384
}

0 commit comments

Comments
 (0)