From 386a13b0cacb046b8502d0de129fe15d92e4ab4b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 06:25:02 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Mubert/Generated/Mubert.Exceptions.g.cs | 134 ++++++++++++++++++ ...licClient.GetPublicMusicLibraryParams.g.cs | 67 ++++----- ...licClient.GetPublicMusicLibraryTracks.g.cs | 67 ++++----- ...ubert.PublicClient.GetPublicPlaylists.g.cs | 54 ++++--- .../Mubert.PublicClient.GetPublicPrices.g.cs | 24 ++-- ...t.PublicClient.GetPublicPricesByPrice.g.cs | 39 +++-- ...ublicClient.GetPublicStreamingGetLink.g.cs | 54 ++++--- ...ublicClient.GetPublicSubscriptionsBuy.g.cs | 65 ++++----- ...icClient.GetPublicSubscriptionsCancel.g.cs | 50 +++---- .../Mubert.PublicClient.GetPublicTracks.g.cs | 67 ++++----- ...t.PublicClient.GetPublicTracksByTrack.g.cs | 82 +++++------ ...ent.GetPublicTracksSessionBySessionId.g.cs | 82 +++++------ ...blicClient.PostPublicStreamingRestart.g.cs | 54 ++++--- ...lient.PostPublicStreamingSetIntensity.g.cs | 54 ++++--- ...lient.PostPublicStreamingSetLoopState.g.cs | 54 ++++--- ....PublicClient.PostPublicStripeWebhook.g.cs | 39 +++-- ...blicClient.PostPublicSubscriptionsBuy.g.cs | 65 ++++----- ...cClient.PostPublicSubscriptionsCancel.g.cs | 50 +++---- .../Mubert.PublicClient.PostPublicTracks.g.cs | 67 ++++----- ...licClient.PostPublicTracksByTrackEdit.g.cs | 82 +++++------ ...Client.PostPublicTracksByTrackSimilar.g.cs | 82 +++++------ ...t.PublicClient.PostPublicTracksRecord.g.cs | 67 ++++----- ...t.PublicClient.PostPublicTracksStored.g.cs | 82 +++++------ ...ient.DeleteServiceCustomersByCustomer.g.cs | 82 +++++------ ...blicServiceClient.GetServiceCustomers.g.cs | 67 ++++----- ...eClient.GetServiceCustomersByCustomer.g.cs | 82 +++++------ ...GetServiceCustomersCustomIdByCustomid.g.cs | 82 +++++------ ...ublicServiceClient.GetServiceLicenses.g.cs | 67 ++++----- ...iceClient.GetServiceLicensesByLicense.g.cs | 82 +++++------ ...licServiceClient.PostServiceCustomers.g.cs | 67 ++++----- ...eClient.PutServiceCustomersByCustomer.g.cs | 82 +++++------ ...iceClient.PutServiceLicensesByLicense.g.cs | 67 ++++----- ...eClient.GetServiceStripeBillingPortal.g.cs | 50 +++---- ...ient.GetServiceStripeSubscriptionsBuy.g.cs | 65 ++++----- ...t.GetServiceStripeSubscriptionsCancel.g.cs | 50 +++---- ...Client.PostServiceStripeBillingPortal.g.cs | 50 +++---- ...ent.PostServiceStripeSubscriptionsBuy.g.cs | 65 ++++----- ....PostServiceStripeSubscriptionsCancel.g.cs | 50 +++---- 38 files changed, 1186 insertions(+), 1303 deletions(-) diff --git a/src/libs/Mubert/Generated/Mubert.Exceptions.g.cs b/src/libs/Mubert/Generated/Mubert.Exceptions.g.cs index f8e9947..9efbf72 100644 --- a/src/libs/Mubert/Generated/Mubert.Exceptions.g.cs +++ b/src/libs/Mubert/Generated/Mubert.Exceptions.g.cs @@ -12,16 +12,19 @@ public partial class ApiException : global::System.Exception /// The HTTP status code of the response. /// public global::System.Net.HttpStatusCode StatusCode { get; } + /// /// The response body as a string, or null if the body could not be read. /// This is always populated for error responses regardless of the ReadResponseAsString setting. /// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read. /// public string? ResponseBody { get; set; } + /// /// The response headers. /// public global::System.Collections.Generic.Dictionary>? ResponseHeaders { get; set; } + /// /// Initializes a new instance of the class. /// @@ -49,6 +52,103 @@ public ApiException(string message, global::System.Exception? innerException, gl { StatusCode = statusCode; } + + /// + /// Constructs an instance whose runtime type matches the response status code when the typed exception hierarchy is enabled. Always returns a plain when the hierarchy is disabled. + /// + /// The HTTP status code of the response. + /// The error message. + /// An inner exception, when one is available. + /// The response headers; consulted for 429 Retry-After parsing when present. + public static global::Mubert.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Mubert.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::Mubert.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Mubert.ApiException.Create(statusCode, message, innerException, responseHeaders); + exception.ResponseBody = responseBody; + exception.ResponseHeaders = responseHeaders; + return exception; + } + + /// + /// Parses a Retry-After response header (delta-seconds or HTTP-date) into a . + /// Returns null when the header is missing or unparseable. Public so consumer code that observes + /// directly can recover the value without re-implementing the parser. + /// + public static global::System.TimeSpan? TryParseRetryAfter( + global::System.Collections.Generic.IDictionary>? headers) + { + if (headers == null) + { + return null; + } + + global::System.Collections.Generic.IEnumerable? values = null; + foreach (var entry in headers) + { + if (string.Equals(entry.Key, "Retry-After", global::System.StringComparison.OrdinalIgnoreCase)) + { + values = entry.Value; + break; + } + } + + if (values == null) + { + return null; + } + + string? raw = null; + foreach (var value in values) + { + if (!string.IsNullOrWhiteSpace(value)) + { + raw = value.Trim(); + break; + } + } + + if (string.IsNullOrEmpty(raw)) + { + return null; + } + + if (int.TryParse( + raw, + global::System.Globalization.NumberStyles.Integer, + global::System.Globalization.CultureInfo.InvariantCulture, + out var seconds) && seconds >= 0) + { + return global::System.TimeSpan.FromSeconds(seconds); + } + + if (global::System.DateTimeOffset.TryParse( + raw, + global::System.Globalization.CultureInfo.InvariantCulture, + global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal, + out var when)) + { + var delta = when - global::System.DateTimeOffset.UtcNow; + return delta > global::System.TimeSpan.Zero ? delta : global::System.TimeSpan.Zero; + } + + return null; + } } /// @@ -88,5 +188,39 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode) { } + + /// + /// Constructs an whose runtime type matches the response status code when the typed exception hierarchy is enabled. + /// + /// The HTTP status code of the response. + /// The error message. + /// An inner exception, when one is available. + /// The response headers; consulted for 429 Retry-After parsing when present. + public static new global::Mubert.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Mubert.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::Mubert.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + T? responseObject, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Mubert.ApiException.Create(statusCode, message, innerException, responseHeaders); + exception.ResponseBody = responseBody; + exception.ResponseObject = responseObject; + exception.ResponseHeaders = responseHeaders; + return exception; + } } } \ No newline at end of file diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryParams.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryParams.g.cs index 57ae3dd..e6cccb2 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryParams.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryParams.g.cs @@ -488,18 +488,17 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -526,18 +525,17 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -560,17 +558,16 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -604,17 +601,15 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -651,17 +646,15 @@ partial void ProcessGetPublicMusicLibraryParamsResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryTracks.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryTracks.g.cs index 98b064e..ea676da 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryTracks.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicMusicLibraryTracks.g.cs @@ -544,18 +544,17 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -582,18 +581,17 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -616,17 +614,16 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -660,17 +657,15 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -707,17 +702,15 @@ partial void ProcessGetPublicMusicLibraryTracksResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPlaylists.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPlaylists.g.cs index bc738f2..542a350 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPlaylists.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPlaylists.g.cs @@ -342,18 +342,17 @@ partial void ProcessGetPublicPlaylistsResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -380,18 +379,17 @@ partial void ProcessGetPublicPlaylistsResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -425,17 +423,15 @@ partial void ProcessGetPublicPlaylistsResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -472,17 +468,15 @@ partial void ProcessGetPublicPlaylistsResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPrices.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPrices.g.cs index f1bd53e..b9413ca 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPrices.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPrices.g.cs @@ -363,17 +363,15 @@ partial void ProcessGetPublicPricesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -410,17 +408,15 @@ partial void ProcessGetPublicPricesResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPricesByPrice.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPricesByPrice.g.cs index 6037ea8..f0d9699 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPricesByPrice.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicPricesByPrice.g.cs @@ -369,18 +369,17 @@ partial void ProcessGetPublicPricesByPriceResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -414,17 +413,15 @@ partial void ProcessGetPublicPricesByPriceResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -461,17 +458,15 @@ partial void ProcessGetPublicPricesByPriceResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicStreamingGetLink.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicStreamingGetLink.g.cs index 7667217..91eb226 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicStreamingGetLink.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicStreamingGetLink.g.cs @@ -404,18 +404,17 @@ partial void ProcessGetPublicStreamingGetLinkResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -442,18 +441,17 @@ partial void ProcessGetPublicStreamingGetLinkResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -487,17 +485,15 @@ partial void ProcessGetPublicStreamingGetLinkResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -534,17 +530,15 @@ partial void ProcessGetPublicStreamingGetLinkResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsBuy.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsBuy.g.cs index 8c7bd8d..7d8d2fe 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsBuy.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsBuy.g.cs @@ -356,17 +356,16 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( __exception_302 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_302, - statusCode: __response.StatusCode) - { - ResponseBody = __content_302, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_302, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Stripe price not found if ((int)__response.StatusCode == 404) @@ -393,18 +392,17 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -427,17 +425,16 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -471,17 +468,15 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -518,17 +513,15 @@ partial void ProcessGetPublicSubscriptionsBuyResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsCancel.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsCancel.g.cs index b364bd4..dcf1e87 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsCancel.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicSubscriptionsCancel.g.cs @@ -351,17 +351,16 @@ await GetPublicSubscriptionsCancelAsResponseAsync( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -384,17 +383,16 @@ await GetPublicSubscriptionsCancelAsResponseAsync( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +419,15 @@ await GetPublicSubscriptionsCancelAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -459,17 +455,15 @@ await GetPublicSubscriptionsCancelAsResponseAsync( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracks.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracks.g.cs index 71e9300..4080d2f 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracks.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracks.g.cs @@ -400,18 +400,17 @@ partial void ProcessGetPublicTracksResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -438,18 +437,17 @@ partial void ProcessGetPublicTracksResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -472,17 +470,16 @@ partial void ProcessGetPublicTracksResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -516,17 +513,15 @@ partial void ProcessGetPublicTracksResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -563,17 +558,15 @@ partial void ProcessGetPublicTracksResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksByTrack.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksByTrack.g.cs index 39ab0ef..9dbb139 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksByTrack.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksByTrack.g.cs @@ -355,18 +355,17 @@ partial void ProcessGetPublicTracksByTrackResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -393,18 +392,17 @@ partial void ProcessGetPublicTracksByTrackResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found - Different reasons specified in the error content if ((int)__response.StatusCode == 404) @@ -431,18 +429,17 @@ partial void ProcessGetPublicTracksByTrackResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -465,17 +462,16 @@ partial void ProcessGetPublicTracksByTrackResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -509,17 +505,15 @@ partial void ProcessGetPublicTracksByTrackResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -556,17 +550,15 @@ partial void ProcessGetPublicTracksByTrackResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksSessionBySessionId.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksSessionBySessionId.g.cs index 666eaea..428fbab 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksSessionBySessionId.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.GetPublicTracksSessionBySessionId.g.cs @@ -364,18 +364,17 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -402,18 +401,17 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found - Different reasons specified in the error content if ((int)__response.StatusCode == 404) @@ -440,18 +438,17 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -474,17 +471,16 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -518,17 +514,15 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -565,17 +559,15 @@ partial void ProcessGetPublicTracksSessionBySessionIdResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingRestart.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingRestart.g.cs index 3d53a3b..8d60ab8 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingRestart.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingRestart.g.cs @@ -355,18 +355,17 @@ await PostPublicStreamingRestartAsResponseAsync( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -393,18 +392,17 @@ await PostPublicStreamingRestartAsResponseAsync( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -431,17 +429,15 @@ await PostPublicStreamingRestartAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -469,17 +465,15 @@ await PostPublicStreamingRestartAsResponseAsync( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetIntensity.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetIntensity.g.cs index 25fb324..adfc611 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetIntensity.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetIntensity.g.cs @@ -355,18 +355,17 @@ await PostPublicStreamingSetIntensityAsResponseAsync( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -393,18 +392,17 @@ await PostPublicStreamingSetIntensityAsResponseAsync( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -431,17 +429,15 @@ await PostPublicStreamingSetIntensityAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -469,17 +465,15 @@ await PostPublicStreamingSetIntensityAsResponseAsync( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetLoopState.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetLoopState.g.cs index 17ca0bb..61bfcc2 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetLoopState.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStreamingSetLoopState.g.cs @@ -355,18 +355,17 @@ await PostPublicStreamingSetLoopStateAsResponseAsync( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -393,18 +392,17 @@ await PostPublicStreamingSetLoopStateAsResponseAsync( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -431,17 +429,15 @@ await PostPublicStreamingSetLoopStateAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -469,17 +465,15 @@ await PostPublicStreamingSetLoopStateAsResponseAsync( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStripeWebhook.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStripeWebhook.g.cs index 83b8828..0c21bbe 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStripeWebhook.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicStripeWebhook.g.cs @@ -333,18 +333,17 @@ await PostPublicStripeWebhookAsResponseAsync( __exception_400 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -371,17 +370,15 @@ await PostPublicStripeWebhookAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -409,17 +406,15 @@ await PostPublicStripeWebhookAsResponseAsync( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsBuy.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsBuy.g.cs index f87201e..d9fbdb0 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsBuy.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsBuy.g.cs @@ -356,17 +356,16 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( __exception_302 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_302, - statusCode: __response.StatusCode) - { - ResponseBody = __content_302, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_302, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Stripe price not found if ((int)__response.StatusCode == 404) @@ -393,18 +392,17 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -427,17 +425,16 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -471,17 +468,15 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -518,17 +513,15 @@ partial void ProcessPostPublicSubscriptionsBuyResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsCancel.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsCancel.g.cs index 637b002..85fc3c6 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsCancel.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicSubscriptionsCancel.g.cs @@ -351,17 +351,16 @@ await PostPublicSubscriptionsCancelAsResponseAsync( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -384,17 +383,16 @@ await PostPublicSubscriptionsCancelAsResponseAsync( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +419,15 @@ await PostPublicSubscriptionsCancelAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -459,17 +455,15 @@ await PostPublicSubscriptionsCancelAsResponseAsync( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracks.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracks.g.cs index 40718a3..bd1ac10 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracks.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracks.g.cs @@ -362,18 +362,17 @@ partial void ProcessPostPublicTracksResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -400,18 +399,17 @@ partial void ProcessPostPublicTracksResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -434,17 +432,16 @@ partial void ProcessPostPublicTracksResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -478,17 +475,15 @@ partial void ProcessPostPublicTracksResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -525,17 +520,15 @@ partial void ProcessPostPublicTracksResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackEdit.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackEdit.g.cs index e65f031..d2fa4b0 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackEdit.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackEdit.g.cs @@ -375,18 +375,17 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -413,18 +412,17 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found - Different reasons specified in the error content if ((int)__response.StatusCode == 404) @@ -451,18 +449,17 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -485,17 +482,16 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -529,17 +525,15 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -576,17 +570,15 @@ partial void ProcessPostPublicTracksByTrackEditResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackSimilar.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackSimilar.g.cs index 60c04b6..5a52302 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackSimilar.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksByTrackSimilar.g.cs @@ -375,18 +375,17 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -413,18 +412,17 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found - Different reasons specified in the error content if ((int)__response.StatusCode == 404) @@ -451,18 +449,17 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -485,17 +482,16 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -529,17 +525,15 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -576,17 +570,15 @@ partial void ProcessPostPublicTracksByTrackSimilarResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksRecord.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksRecord.g.cs index 504c947..f2b92fc 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksRecord.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksRecord.g.cs @@ -362,18 +362,17 @@ partial void ProcessPostPublicTracksRecordResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -400,18 +399,17 @@ partial void ProcessPostPublicTracksRecordResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -434,17 +432,16 @@ partial void ProcessPostPublicTracksRecordResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -478,17 +475,15 @@ partial void ProcessPostPublicTracksRecordResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -525,17 +520,15 @@ partial void ProcessPostPublicTracksRecordResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksStored.g.cs b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksStored.g.cs index 4327ac0..654f6eb 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksStored.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicClient.PostPublicTracksStored.g.cs @@ -362,18 +362,17 @@ partial void ProcessPostPublicTracksStoredResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -400,18 +399,17 @@ partial void ProcessPostPublicTracksStoredResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found - Different reasons specified in the error content if ((int)__response.StatusCode == 404) @@ -438,18 +436,17 @@ partial void ProcessPostPublicTracksStoredResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -472,17 +469,16 @@ partial void ProcessPostPublicTracksStoredResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -516,17 +512,15 @@ partial void ProcessPostPublicTracksStoredResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -563,17 +557,15 @@ partial void ProcessPostPublicTracksStoredResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.DeleteServiceCustomersByCustomer.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.DeleteServiceCustomersByCustomer.g.cs index 3b02b37..7e90b79 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.DeleteServiceCustomersByCustomer.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.DeleteServiceCustomersByCustomer.g.cs @@ -368,18 +368,17 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -406,18 +405,17 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found - Different reasons specified in the error content if ((int)__response.StatusCode == 404) @@ -444,18 +442,17 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -478,17 +475,16 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -515,17 +511,15 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -553,17 +547,15 @@ await DeleteServiceCustomersByCustomerAsResponseAsync( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomers.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomers.g.cs index 9b63ecd..11c9078 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomers.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomers.g.cs @@ -372,18 +372,17 @@ partial void ProcessGetServiceCustomersResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -410,18 +409,17 @@ partial void ProcessGetServiceCustomersResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -444,17 +442,16 @@ partial void ProcessGetServiceCustomersResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -488,17 +485,15 @@ partial void ProcessGetServiceCustomersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -535,17 +530,15 @@ partial void ProcessGetServiceCustomersResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersByCustomer.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersByCustomer.g.cs index 6c3ebea..6c40f83 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersByCustomer.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersByCustomer.g.cs @@ -355,18 +355,17 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -393,18 +392,17 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found - Different reasons specified in the error content if ((int)__response.StatusCode == 404) @@ -431,18 +429,17 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -465,17 +462,16 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -509,17 +505,15 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -556,17 +550,15 @@ partial void ProcessGetServiceCustomersByCustomerResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersCustomIdByCustomid.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersCustomIdByCustomid.g.cs index 6149c71..ff8c2e1 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersCustomIdByCustomid.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceCustomersCustomIdByCustomid.g.cs @@ -355,18 +355,17 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -393,18 +392,17 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found - Different reasons specified in the error content if ((int)__response.StatusCode == 404) @@ -431,18 +429,17 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -465,17 +462,16 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -509,17 +505,15 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -556,17 +550,15 @@ partial void ProcessGetServiceCustomersCustomIdByCustomidResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicenses.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicenses.g.cs index 57a9108..be2b6d1 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicenses.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicenses.g.cs @@ -372,18 +372,17 @@ partial void ProcessGetServiceLicensesResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -410,18 +409,17 @@ partial void ProcessGetServiceLicensesResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -444,17 +442,16 @@ partial void ProcessGetServiceLicensesResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -488,17 +485,15 @@ partial void ProcessGetServiceLicensesResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -535,17 +530,15 @@ partial void ProcessGetServiceLicensesResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicensesByLicense.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicensesByLicense.g.cs index e4b994e..12ca375 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicensesByLicense.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.GetServiceLicensesByLicense.g.cs @@ -355,18 +355,17 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -393,18 +392,17 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found - Different reasons specified in the error content if ((int)__response.StatusCode == 404) @@ -431,18 +429,17 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -465,17 +462,16 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -509,17 +505,15 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -556,17 +550,15 @@ partial void ProcessGetServiceLicensesByLicenseResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PostServiceCustomers.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PostServiceCustomers.g.cs index 2baf87d..3c258e7 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PostServiceCustomers.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PostServiceCustomers.g.cs @@ -362,18 +362,17 @@ partial void ProcessPostServiceCustomersResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -400,18 +399,17 @@ partial void ProcessPostServiceCustomersResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -434,17 +432,16 @@ partial void ProcessPostServiceCustomersResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -478,17 +475,15 @@ partial void ProcessPostServiceCustomersResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -525,17 +520,15 @@ partial void ProcessPostServiceCustomersResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceCustomersByCustomer.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceCustomersByCustomer.g.cs index d33e024..8e6335d 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceCustomersByCustomer.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceCustomersByCustomer.g.cs @@ -375,18 +375,17 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -413,18 +412,17 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Not Found - Different reasons specified in the error content if ((int)__response.StatusCode == 404) @@ -451,18 +449,17 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -485,17 +482,16 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -529,17 +525,15 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -576,17 +570,15 @@ partial void ProcessPutServiceCustomersByCustomerResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceLicensesByLicense.g.cs b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceLicensesByLicense.g.cs index fa8d1ac..37daa6e 100644 --- a/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceLicensesByLicense.g.cs +++ b/src/libs/Mubert/Generated/Mubert.PublicServiceClient.PutServiceLicensesByLicense.g.cs @@ -371,17 +371,16 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Unauthenticated - the user is not authenticated to access this resource if ((int)__response.StatusCode == 401) @@ -408,18 +407,17 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( __exception_401 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Forbidden - Different reasons specified in the error content if ((int)__response.StatusCode == 403) @@ -446,18 +444,17 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( __exception_403 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -491,17 +488,15 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -538,17 +533,15 @@ partial void ProcessPutServiceLicensesByLicenseResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeBillingPortal.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeBillingPortal.g.cs index b07e05a..d9a8455 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeBillingPortal.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeBillingPortal.g.cs @@ -358,17 +358,16 @@ partial void ProcessGetServiceStripeBillingPortalResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -391,17 +390,16 @@ partial void ProcessGetServiceStripeBillingPortalResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -435,17 +433,15 @@ partial void ProcessGetServiceStripeBillingPortalResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -482,17 +478,15 @@ partial void ProcessGetServiceStripeBillingPortalResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsBuy.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsBuy.g.cs index c7ca2f9..97aa332 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsBuy.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsBuy.g.cs @@ -356,17 +356,16 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( __exception_302 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_302, - statusCode: __response.StatusCode) - { - ResponseBody = __content_302, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_302, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Stripe price not found if ((int)__response.StatusCode == 404) @@ -393,18 +392,17 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -427,17 +425,16 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -471,17 +468,15 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -518,17 +513,15 @@ partial void ProcessGetServiceStripeSubscriptionsBuyResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsCancel.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsCancel.g.cs index 2a761a2..6645efe 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsCancel.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.GetServiceStripeSubscriptionsCancel.g.cs @@ -351,17 +351,16 @@ await GetServiceStripeSubscriptionsCancelAsResponseAsync( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -384,17 +383,16 @@ await GetServiceStripeSubscriptionsCancelAsResponseAsync( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +419,15 @@ await GetServiceStripeSubscriptionsCancelAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -459,17 +455,15 @@ await GetServiceStripeSubscriptionsCancelAsResponseAsync( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeBillingPortal.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeBillingPortal.g.cs index aa47718..607cabe 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeBillingPortal.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeBillingPortal.g.cs @@ -351,17 +351,16 @@ await PostServiceStripeBillingPortalAsResponseAsync( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -384,17 +383,16 @@ await PostServiceStripeBillingPortalAsResponseAsync( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +419,15 @@ await PostServiceStripeBillingPortalAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -459,17 +455,15 @@ await PostServiceStripeBillingPortalAsResponseAsync( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsBuy.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsBuy.g.cs index 25bd03e..983c7c5 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsBuy.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsBuy.g.cs @@ -356,17 +356,16 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( __exception_302 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_302, - statusCode: __response.StatusCode) - { - ResponseBody = __content_302, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_302, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Stripe price not found if ((int)__response.StatusCode == 404) @@ -393,18 +392,17 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -427,17 +425,16 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -471,17 +468,15 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -518,17 +513,15 @@ partial void ProcessPostServiceStripeSubscriptionsBuyResponseContent( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsCancel.g.cs b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsCancel.g.cs index a20d2a9..978ac73 100644 --- a/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsCancel.g.cs +++ b/src/libs/Mubert/Generated/Mubert.ServiceClient.PostServiceStripeSubscriptionsCancel.g.cs @@ -351,17 +351,16 @@ await PostServiceStripeSubscriptionsCancelAsResponseAsync( __exception_404 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 422) @@ -384,17 +383,16 @@ await PostServiceStripeSubscriptionsCancelAsResponseAsync( __exception_422 = __ex; } - throw new global::Mubert.ApiException( + + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +419,15 @@ await PostServiceStripeSubscriptionsCancelAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -459,17 +455,15 @@ await PostServiceStripeSubscriptionsCancelAsResponseAsync( { } - throw new global::Mubert.ApiException( + throw global::Mubert.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } }