diff --git a/src/libs/Sightengine/Generated/Sightengine.SightengineClient.CheckText.g.cs b/src/libs/Sightengine/Generated/Sightengine.SightengineClient.CheckText.g.cs index d0447ba..029c614 100644 --- a/src/libs/Sightengine/Generated/Sightengine.SightengineClient.CheckText.g.cs +++ b/src/libs/Sightengine/Generated/Sightengine.SightengineClient.CheckText.g.cs @@ -147,12 +147,25 @@ partial void ProcessCheckTextResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/x-www-form-urlencoded"); + var __formValues = new global::System.Collections.Generic.List>(); + __formValues.Add(new global::System.Collections.Generic.KeyValuePair( + "text", + request.Text ?? string.Empty)); + __formValues.Add(new global::System.Collections.Generic.KeyValuePair( + "lang", + request.Lang ?? string.Empty)); + __formValues.Add(new global::System.Collections.Generic.KeyValuePair( + "mode", + request.Mode.ToValueString())); + if (request.OptCountries != default) + { + __formValues.Add(new global::System.Collections.Generic.KeyValuePair( + "opt_countries", + request.OptCountries ?? string.Empty)); + } + var __httpRequestContent = new global::System.Net.Http.FormUrlEncodedContent(__formValues); __httpRequest.Content = __httpRequestContent; + global::Sightengine.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, clientHeaders: Options.Headers,